Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mes-pad
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ximai
mes-pad
Commits
b46a1d0f
Commit
b46a1d0f
authored
Feb 25, 2024
by
jzc
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.local.topsunit.com/mes/mes-pad
into dev
parents
b88f621b
cc932db8
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
354 additions
and
294 deletions
+354
-294
README.en.md
README.en.md
+1
-1
README.md
README.md
+1
-1
config.js
common/config.js
+10
-10
http.api.js
common/http.api.js
+23
-1
http.interceptor.js
common/http.interceptor.js
+1
-0
index.vue
pages/index/index.vue
+205
-199
index.vue
pages/mes/prodReport/index.vue
+109
-79
index.js
store/index.js
+4
-3
No files found.
README.en.md
View file @
b46a1d0f
#
ktg-
mes-pad
# mes-pad
#### Description
MES系统触控屏端
...
...
README.md
View file @
b46a1d0f
#
ktg-
mes-pad
# mes-pad
#### 介绍
MES系统触控屏端
...
...
common/config.js
View file @
b46a1d0f
const
config
=
{
// 产品名称
productName
:
'
ktg-
mes-pad'
,
productName
:
'mes-pad'
,
// 公司名称
companyName
:
'
ktg
'
,
companyName
:
''
,
// 产品版本号
productVersion
:
'V0.1.0'
,
// 版本检查标识
appCode
:
'android'
,
// 内部版本号码
appVersion
:
1
,
// 管理基础路径
adminPath
:
''
}
// 设置后台接口服务的基础地址
...
...
@@ -26,4 +26,4 @@ config.baseUrl = 'http://192.168.25.105:8080';
//config.baseUrl = "/api";
//config.baseUrl = "http://101.200.162.168:8080";
export
default
config
;
\ No newline at end of file
export
default
config
;
common/http.api.js
View file @
b46a1d0f
...
...
@@ -26,6 +26,8 @@ const install = (Vue, vm) => {
params
),
getWorkstationList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/md/workstation/getWorkstationList'
,
params
),
getWorkUnitList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/md/workunit/getListByUser'
,
params
),
/**
* 生产管理相关API
**/
...
...
@@ -90,6 +92,26 @@ const install = (Vue, vm) => {
'/mobile/pro/taskissue/getReserveIssueList'
,
params
),
//打印流转单
//投料验证
listFeedingInspection
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/proMaterial/listIssueLine'
,
params
),
validateFeedingInspection
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/proMaterial/validateFeedingInspection'
,
params
),
validateFeedingInspectionById
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/proMaterial/validateFeedingInspectionById'
,
params
),
//查询反冲料列表
recoilMaterialList
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/proMaterial/getRecoilMaterial'
,
params
),
//增加反冲料
addRecoilMaterial
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/proMaterial/addRecoilMaterial'
,
params
),
//删除反冲料
deleteRecoilMaterial
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/proMaterial/deleteRecoilMaterial'
,
params
),
//领料申请
listMaterialRequest
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/proMaterial/listMaterialRequest'
,
params
),
addMaterialRequest
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/mobile/pro/proMaterial/addMaterialRequest'
,
params
),
//退料申请
listMaterialReturn
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/proMaterial/listIssueLine'
,
params
),
addMaterialReturn
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/mobile/pro/proMaterial/addMaterialReturn'
,
params
),
//质量相关api
//获取当前产品、当前质检类型的质检模板行信息
...
...
@@ -147,7 +169,7 @@ const install = (Vue, vm) => {
detail
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/qc/information/list'
,
params
),
newlyAdd
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/qc/report'
,
params
),
},
// 增删改查例子
testData
:
{
...
...
common/http.interceptor.js
View file @
b46a1d0f
...
...
@@ -79,6 +79,7 @@ const install = (Vue, vm) => {
// 错误
if
(
data
.
msg
!==
null
)
{
uni
.
showToast
({
icon
:
'none'
,
title
:
data
.
msg
,
duration
:
3000
})
...
...
pages/index/index.vue
View file @
b46a1d0f
This diff is collapsed.
Click to expand it.
pages/mes/prodReport/index.vue
View file @
b46a1d0f
This diff is collapsed.
Click to expand it.
store/index.js
View file @
b46a1d0f
...
...
@@ -12,7 +12,7 @@ try{
// 尝试获取本地是否存在lifeData变量,第一次启动APP时是不存在的
lifeData
=
uni
.
getStorageSync
(
'lifeData'
);
}
catch
(
e
){
}
// 需要永久存储,且下次APP启动需要取出的,在state中的变量名
...
...
@@ -41,14 +41,15 @@ const store = new Vuex.Store({
vuex_remember
:
lifeData
.
vuex_remember
?
lifeData
.
vuex_remember
:
''
,
vuex_locale
:
lifeData
.
vuex_locale
?
lifeData
.
vuex_locale
:
''
,
vuex_isAgent
:
lifeData
.
vuex_isAgent
?
lifeData
.
vuex_isAgent
:
''
,
// 如果vuex_version无需保存到本地永久存储,无需lifeData.vuex_version方式
vuex_config
:
config
,
//当前设备绑定的工作站
vuex_workstation
:
null
,
vuex_workunit
:
null
,
//当前工作站正在进行的生产任务
vuex_task
:
null
,
// 自定义tabbar数据
// vuex_tabbar: [{
// iconPath: "/static/uview/example/component.png",
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment