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
8a5b5bd6
Commit
8a5b5bd6
authored
Mar 09, 2024
by
chenzj
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.local.topsunit.com/mes/mes-pad
into dev
parents
01068f2c
ac7aec34
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
441 additions
and
245 deletions
+441
-245
http.api.js
common/http.api.js
+337
-195
index.vue
pages/index/index.vue
+11
-3
dModelList.vue
pages/mes/prodReport/components/dModelList.vue
+18
-16
index.vue
pages/mes/prodReport/index.vue
+42
-30
login.vue
pages/sys/login/login.vue
+1
-1
zb-table.vue
uni_modules/zb-table/components/zb-table/zb-table.vue
+32
-0
No files found.
common/http.api.js
View file @
8a5b5bd6
...
...
@@ -9,205 +9,347 @@ const install = (Vue, vm) => {
// 将各个定义的接口名称,统一放进对象挂载到vm.$u.api(因为vm就是this,也即this.$u.api)下
vm
.
$u
.
api
=
{
// 基础服务:登录登出、身份信息、菜单授权、切换系统、字典数据等
lang
:
(
params
=
{})
=>
vm
.
$u
.
get
(
'/lang/'
+
params
.
lang
),
index
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/index'
,
params
),
getUserInfo
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/user/getUserInfo'
,
params
),
login
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/login/loginByPassword'
,
params
),
sendCode
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/login/sendCode'
,
params
),
registerUser
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/user/registerUser'
,
params
),
// 基础服务:登录登出、身份信息、菜单授权、切换系统、字典数据等
lang
:
(
params
=
{})
=>
vm
.
$u
.
get
(
'/lang/'
+
params
.
lang
),
index
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/index'
,
params
),
getUserInfo
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/user/getUserInfo'
,
params
),
login
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/login/loginByPassword'
,
params
),
sendCode
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/login/sendCode'
,
params
),
registerUser
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/user/registerUser'
,
params
),
/**
* 系统设置API
*/
//获取工序清单
getProcessList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/process/getProcessList'
,
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
**/
//获取当前工作站的生产任务
getTaskList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/protask/getTaskList'
,
params
),
//根据任务ID获取任务详情
getTaskInfo
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/protask/'
+
params
.
taskId
),
//修改任务状态
changeStatus
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/protask/change'
,
params
),
//生产报工
feedback
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/protask/feedback'
,
params
),
//增加检验
getTaskInfoByTaskCode
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/protask/getProTaskByTaskCode'
,
params
),
//
getIpqcCode
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/system/autocode/get/IPQC_CODE'
,
params
),
//增加缺陷记录
addDefectrecord
:
(
params
=
{})
=>
vm
.
$u
.
putJson
(
config
.
adminPath
+
'/mes/qc/defectrecord'
,
params
),
//查询缺陷列表
getDefectrecordList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mes/qc/defectrecord/list'
,
params
),
//查询检测项
getIpqcLineList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mes/qc/ipqcline/list'
,
params
),
//生产日志
productionLogList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/productionlog/list'
,
params
),
//增加生产日志
addProductionlog
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/productionlog/add'
,
params
),
//增加生产物料扣减
addMaterialusagerecord
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/materialusagerecord'
,
params
),
//生产物料扣减列表
materialusagerecordList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/materialusagerecord/list'
,
params
),
//查询检验列表
ipqcList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mes/qc/ipqc/list'
,
params
),
//增加检验
addIpqc
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/mes/qc/ipqc'
,
params
),
//根据字典类型查询字典数据信息
getDicts
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/system/dict/data/type/'
+
params
),
//根据字典类型查询字典数据信息
getIssusLinebyWorkorderCodes
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/wm/issueline/listByWorkorderCodes'
,
params
),
/**
* 工艺工序相关API
*/
getProcessInfo
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/process/'
+
params
.
processId
),
//获取当前产品的SOP
getSopList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/taskissue/getSopList'
,
params
),
//生产投料
addIssue
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/taskissue/add'
,
params
),
//整个领料单投料
addholeIssue
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/taskissue/addIssue'
,
params
),
//删除投料信息
removeTaskIssue
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/taskissue/'
+
params
.
recordId
),
//获取当前工作站、当前生产任务对应的投料清单
getTaskIssueList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/taskissue/getlist'
,
params
),
//查询可用的领料单
getReserveIssue
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/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
),
getWproworkOrderProcessItem
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/pro/materialRequest/selectworkorder/'
+
params
.
workorderId
),
//退料申请
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
//获取当前产品、当前质检类型的质检模板行信息
getQcTemplateLine
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/qc/templateindex/getLines'
,
params
),
//首页相关api
getIndexCardInfo
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/index/getIndexCardInfo'
,
params
),
getM2mOrderFlowList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/index/getM2mOrderFlowList'
,
params
),
//获取卡可购买套餐包
getM2mOrderPackageList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/index/getM2mOrderPackageList'
,
params
),
//查看生产工单
getWorkorder
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mes/pro/workorder/list'
,
params
),
logout
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/login/logout'
,
params
),
authInfo
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/authInfo'
,
params
),
menuTree
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/menuTree'
,
params
),
switchSys
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/switch/'
+
params
.
sysCode
),
dictData
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/system/dict/data/type/'
+
params
.
dictType
),
// 账号服务:验证码接口、忘记密码接口、注册账号接口等
validCode
:
(
params
=
{})
=>
vm
.
$u
.
getText
(
'/validCode'
,
params
),
getFpValidCode
:
(
params
=
{})
=>
vm
.
$u
.
post
(
'/account/getFpValidCode'
,
params
),
savePwdByValidCode
:
(
params
=
{})
=>
vm
.
$u
.
post
(
'/account/savePwdByValidCode'
,
params
),
getRegValidCode
:
(
params
=
{})
=>
vm
.
$u
.
post
(
'/account/getRegValidCode'
,
params
),
saveRegByValidCode
:
(
params
=
{})
=>
vm
.
$u
.
post
(
'/account/saveRegByValidCode'
,
params
),
// APP公共服务
upgradeCheck
:
()
=>
vm
.
$u
.
post
(
'/app/upgrade/check'
,
{
appCode
:
config
.
appCode
,
appVersion
:
config
.
appVersion
/**
* 系统设置API
*/
//获取工序清单
getProcessList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/process/getProcessList'
,
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
**/
//获取当前工作站的生产任务
getTaskList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/protask/getTaskList'
,
params
),
//根据任务ID获取任务详情
getTaskInfo
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/protask/'
+
params
.
taskId
),
//修改任务状态
changeStatus
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/protask/change'
,
params
),
//生产报工
feedback
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/protask/feedback'
,
params
),
//增加检验
getTaskInfoByTaskCode
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/protask/getProTaskByTaskCode'
,
params
),
//
getIpqcCode
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/system/autocode/get/IPQC_CODE'
,
params
),
//增加缺陷记录
addDefectrecord
:
(
params
=
{})
=>
vm
.
$u
.
putJson
(
config
.
adminPath
+
'/mes/qc/defectrecord'
,
params
),
//查询缺陷列表
getDefectrecordList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mes/qc/defectrecord/list'
,
params
),
//查询检测项
getIpqcLineList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mes/qc/ipqcline/list'
,
params
),
//生产日志
productionLogList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/productionlog/list'
,
params
),
//增加生产日志
addProductionlog
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/productionlog/add'
,
params
),
//增加生产物料扣减
addMaterialusagerecord
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/materialusagerecord'
,
params
),
//生产物料扣减列表
materialusagerecordList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/materialusagerecord/list'
,
params
),
//查询检验列表
ipqcList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mes/qc/ipqc/list'
,
params
),
//增加检验
addIpqc
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/mes/qc/ipqc'
,
params
),
//根据字典类型查询字典数据信息
getDicts
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/system/dict/data/type/'
+
params
),
//根据字典类型查询字典数据信息
getIssusLinebyWorkorderCodes
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/wm/issueline/listByWorkorderCodes'
,
params
),
/**
* 工艺工序相关API
*/
getProcessInfo
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/process/'
+
params
.
processId
),
//获取当前产品的SOP
getSopList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/taskissue/getSopList'
,
params
),
//生产投料
addIssue
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/taskissue/add'
,
params
),
//整个领料单投料
addholeIssue
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/taskissue/addIssue'
,
params
),
//删除投料信息
removeTaskIssue
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/pro/taskissue/'
+
params
.
recordId
),
//获取当前工作站、当前生产任务对应的投料清单
getTaskIssueList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/taskissue/getlist'
,
params
),
//查询可用的领料单
getReserveIssue
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/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
),
getWproworkOrderProcessItem
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/pro/materialRequest/selectworkorder/'
+
params
.
workorderId
),
//退料申请
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
//获取当前产品、当前质检类型的质检模板行信息
getQcTemplateLine
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/qc/templateindex/getLines'
,
params
),
//首页相关api
getIndexCardInfo
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/index/getIndexCardInfo'
,
params
),
getM2mOrderFlowList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/index/getM2mOrderFlowList'
,
params
),
//获取卡可购买套餐包
getM2mOrderPackageList
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/index/getM2mOrderPackageList'
,
params
),
//查看生产工单
getWorkorder
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mes/pro/workorder/list'
,
params
),
logout
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/login/logout'
,
params
),
authInfo
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/authInfo'
,
params
),
menuTree
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/menuTree'
,
params
),
switchSys
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/switch/'
+
params
.
sysCode
),
dictData
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/system/dict/data/type/'
+
params
.
dictType
),
// 账号服务:验证码接口、忘记密码接口、注册账号接口等
validCode
:
(
params
=
{})
=>
vm
.
$u
.
getText
(
'/validCode'
,
params
),
getFpValidCode
:
(
params
=
{})
=>
vm
.
$u
.
post
(
'/account/getFpValidCode'
,
params
),
savePwdByValidCode
:
(
params
=
{})
=>
vm
.
$u
.
post
(
'/account/savePwdByValidCode'
,
params
),
getRegValidCode
:
(
params
=
{})
=>
vm
.
$u
.
post
(
'/account/getRegValidCode'
,
params
),
saveRegByValidCode
:
(
params
=
{})
=>
vm
.
$u
.
post
(
'/account/saveRegByValidCode'
,
params
),
// APP公共服务
upgradeCheck
:
()
=>
vm
.
$u
.
post
(
'/app/upgrade/check'
,
{
appCode
:
config
.
appCode
,
appVersion
:
config
.
appVersion
,
}),
commentSave
:
(
params
=
{})
=>
vm
.
$u
.
post
(
'/app/comment/save'
,
params
),
// 个人信息修改
user
:
{
saveUserInfo
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/user/saveUserInfo'
,
params
),
infoSavePwd
:
(
params
=
{})
=>
vm
.
$u
.
put
(
config
.
adminPath
+
'/system/user/profile/updatePwd'
,
params
),
infoSavePqa
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/sys/user/infoSavePqa'
,
params
),
},
// 员工用户查询
empUser
:
{
listData
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/sys/empUser/listData'
,
params
),
},
// 组织机构查询
office
:
{
treeData
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/sys/office/treeData'
,
params
),
},
//查看异常模块信息
abnormal
:
{
detail
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/qc/information/list'
,
params
),
newlyAdd
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/qc/report'
,
params
),
},
//查看图片
viewpicture
:
{
//查看工单
viewWorkorder
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/protask/getProWorkder'
,
params
),
//查看图片
viewSop
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mes/md/sop/getProWorkder/'
+
params
.
workorderId
),
},
// 增删改查例子
testData
:
{
form
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/test/testData/form'
,
params
),
list
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/test/testData/listData'
,
params
),
save
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/test/testData/save'
,
params
),
disable
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/test/testData/disable'
,
params
),
enable
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/test/testData/enable'
,
params
),
delete
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/test/testData/delete'
,
params
),
},
// 刀模版相关
dModel
:
{
// 获取领用单
getToolsByProcessIdAndArrangeCode
:
(
params
=
{})
=>
vm
.
$u
.
putJson
(
config
.
adminPath
+
'/tm/tmToolRequestUse/getToolsByProcessIdAndArrangeCode'
,
params
),
// 获取上下机记录
getRecordsByProcessIdAndArrangeCode
:
(
params
=
{})
=>
vm
.
$u
.
putJson
(
config
.
adminPath
+
'/tm/tmToolMachinesRecord/getRecordsByProcessIdAndArrangeCode'
,
params
),
// 新增
tmToolMachines
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/tm/tmToolMachines'
,
params
),
tmToolMachinesRecord
:
(
params
=
{})
=>
vm
.
$u
.
putJson
(
config
.
adminPath
+
'/tm/tmToolMachinesRecord'
,
params
)
}
commentSave
:
(
params
=
{})
=>
vm
.
$u
.
post
(
'/app/comment/save'
,
params
),
// 个人信息修改
user
:
{
saveUserInfo
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/mobile/user/saveUserInfo'
,
params
),
infoSavePwd
:
(
params
=
{})
=>
vm
.
$u
.
put
(
config
.
adminPath
+
'/system/user/profile/updatePwd'
,
params
),
infoSavePqa
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/sys/user/infoSavePqa'
,
params
),
},
// 员工用户查询
empUser
:
{
listData
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/sys/empUser/listData'
,
params
),
},
// 组织机构查询
office
:
{
treeData
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/sys/office/treeData'
,
params
),
},
//查看异常模块信息
abnormal
:
{
detail
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/qc/information/list'
,
params
),
newlyAdd
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/qc/report'
,
params
),
},
//查看图片
viewpicture
:
{
//查看工单
viewWorkorder
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mobile/pro/protask/getProWorkder'
,
params
),
//查看图片
viewSop
:
(
params
=
{})
=>
vm
.
$u
.
get
(
config
.
adminPath
+
'/mes/md/sop/getProWorkder/'
+
params
.
workorderId
),
},
// 增删改查例子
testData
:
{
form
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/test/testData/form'
,
params
),
list
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/test/testData/listData'
,
params
),
save
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/test/testData/save'
,
params
),
disable
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/test/testData/disable'
,
params
),
enable
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/test/testData/enable'
,
params
),
delete
:
(
params
=
{})
=>
vm
.
$u
.
post
(
config
.
adminPath
+
'/test/testData/delete'
,
params
),
},
// 刀模版相关
dModel
:
{
// 获取领用单
getToolsByProcessIdAndArrangeCode
:
(
params
=
{})
=>
vm
.
$u
.
putJson
(
config
.
adminPath
+
'/tm/tmToolRequestUse/getToolsByProcessIdAndArrangeCode'
,
params
),
// 获取上下机记录
getRecordsByProcessIdAndArrangeCode
:
(
params
=
{})
=>
vm
.
$u
.
putJson
(
config
.
adminPath
+
'/tm/tmToolMachinesRecord/getRecordsByProcessIdAndArrangeCode'
,
params
),
// 新增
tmToolMachines
:
(
params
=
{})
=>
vm
.
$u
.
postJson
(
config
.
adminPath
+
'/tm/tmToolMachines'
,
params
),
tmToolMachinesRecord
:
(
params
=
{})
=>
vm
.
$u
.
putJson
(
config
.
adminPath
+
'/tm/tmToolMachines'
,
params
),
},
};
}
...
...
pages/index/index.vue
View file @
8a5b5bd6
<
template
>
<view
class=
"common-container"
>
<!--
<u-button
@
click=
"handleTest"
>
跳转测试
</u-button>
-->
<view
class=
"header"
>
<image
mode=
"widthFix"
class=
"header-logo"
style=
"width: 1
1
0px;margin: 10px auto;display: block;"
<image
mode=
"widthFix"
class=
"header-logo"
style=
"width: 1
0
0px;margin: 10px auto;display: block;"
src=
"/static/logo.png"
></image>
<TabHeader></TabHeader>
<view
class=
"setting-body"
...
...
@@ -55,6 +56,7 @@
import
QcContent
from
"../mes/qc/index.vue"
import
ProdReport
from
"../mes/prodReport/index.vue"
import
DictData
from
'@/components/DictData'
import
UButton
from
'../../uview-ui/components/u-button/u-button.vue'
export
default
{
name
:
'HomePage'
,
...
...
@@ -63,7 +65,8 @@
ProContent
,
GxContent
,
QcContent
,
ProdReport
ProdReport
,
UButton
},
data
()
{
return
{
...
...
@@ -97,6 +100,11 @@
uni
.
$off
(
'changeWorkunit'
);
},
methods
:
{
handleTest
()
{
uni
.
navigateTo
({
url
:
'/pages/test/test'
})
},
//用户部分点击
handleUserTaped
()
{
console
.
log
(
"TAPED"
)
...
...
@@ -198,7 +206,7 @@
}
.header
{
width
:
1
2
0px
;
width
:
1
1
0px
;
background-color
:
#132138
;
color
:
aliceblue
;
font-size
:
25px
;
...
...
pages/mes/prodReport/components/dModelList.vue
View file @
8a5b5bd6
...
...
@@ -56,11 +56,11 @@
},
],
}
},
computed
:
{
tableData
()
{
return
this
.
data
||
[]
}
},
computed
:
{
tableData
()
{
return
this
.
data
||
[]
}
},
methods
:
{
async
commonClick
(
type
)
{
...
...
@@ -81,16 +81,18 @@
if
(
!
flag
)
{
return
this
.
$u
.
toast
(
'请选择状态相同的数据'
)
}
}
const
params
=
{
toolMachinesRecordIdList
:
this
.
tableSelectData
.
map
(
v
=>
v
.
toolMachinesRecordId
),
type
}
const
{
code
}
=
await
this
.
$u
.
api
.
dModel
.
tmToolMachinesRecord
(
params
)
if
(
code
==
200
)
{
this
.
$emit
(
'action'
)
}
}
const
params
=
this
.
tableSelectData
.
map
(
v
=>
{
return
{
toolMachinesId
:
v
.
toolMachinesId
,
type
}
})
const
{
code
}
=
await
this
.
$u
.
api
.
dModel
.
tmToolMachinesRecord
(
params
)
if
(
code
==
200
)
{
this
.
$emit
(
'action'
)
}
},
toggleAllSelection
(
checked
,
arr
)
{
...
...
@@ -109,4 +111,4 @@
margin-top
:
20
rpx
;
padding
:
0
20
rpx
;
}
</
style
>
</
style
>
pages/mes/prodReport/index.vue
View file @
8a5b5bd6
...
...
@@ -16,10 +16,11 @@
<view
class=
"prod-body-left-task"
>
<zb-table
ref=
"zbtable"
:columns=
"tableColumn"
:stripe=
"true"
rowKey=
"taskWorkunitId"
@
rowClick=
"rowClick"
@
cellClick=
"cellClick"
@
toggleRowSelection=
"toggleRowSelection"
@
toggleAllSelection=
"toggleAllSelection"
:border=
"true"
...
...
@@ -697,19 +698,22 @@ export default {
tableColumn
:
[
{
type
:
'selection'
,
width
:
35
width
:
80
},
{
name
:
'arrangeCode'
,
label
:
'编排单号'
,
width
:
140
,
func
:
'numclik'
width
:
200
,
cellFun
:
(
row
,
index
)
=>
{
console
.
log
(
row
,
index
)
this
.
tableDataDetail
=
row
.
proWorkorderList
;
this
.
showRowDeatilFlag
=
true
;
}
},
{
name
:
'startTime'
,
label
:
'计划开始时间'
,
width
:
140
,
func
:
'numclik'
},
{
name
:
'endTime'
,
...
...
@@ -737,7 +741,7 @@ export default {
ERROR_STOP
:
'异常停工'
,
FINISH
:
'完工'
},
width
:
6
0
,
width
:
10
0
,
align
:
'center'
},
// {
...
...
@@ -748,14 +752,14 @@ export default {
{
name
:
'taskCode'
,
label
:
'任务单号'
,
width
:
110
},
{
name
:
'workorderCode'
,
label
:
'生产单号'
,
width
:
120
width
:
180
},
// {
// name: 'workorderCode',
// label: '生产单号',
// width: 120
// },
// {
// name: 'itemCode',
// label: '物料编号',
// width: 110,
...
...
@@ -770,7 +774,7 @@ export default {
width
:
60
},
{
name
:
'quantityQua
n
lify'
,
name
:
'quantityQualify'
,
label
:
'合格数量'
,
width
:
80
,
align
:
'center'
...
...
@@ -781,12 +785,12 @@ export default {
width
:
80
,
align
:
'center'
},
{
name
:
'clientName'
,
label
:
'作业人员'
,
width
:
60
,
align
:
'center'
}
//
{
//
name: 'clientName',
//
label: '作业人员',
//
width: 60,
//
align: 'center'
//
}
],
dModelData
:
[],
tableSelectData
:
[],
...
...
@@ -944,12 +948,14 @@ export default {
urls
:
this
.
viewSop
});
},
cellClick
(
row
,
index
,
column
)
{
if
(
column
.
name
===
'arrangeCode'
)
{
this
.
tableDataDetail
=
row
.
proWorkorderList
;
this
.
showRowDeatilFlag
=
true
;
}
},
// cellClick(row, index, column) {
// if (column.name === 'arrangeCode') {
// this.tableDataDetail = row.proWorkorderList;
// this.showRowDeatilFlag = true;
// console.log(e)
// e.stopPropagation()
// }
// },
numclik
(...
arg
)
{
console
.
log
(
'99999999'
,
arg
);
},
...
...
@@ -1067,6 +1073,7 @@ export default {
workunitName
:
this
.
vuex_workunit
.
workunitName
,
processId
:
selectData
.
processId
,
taskId
:
selectData
.
taskId
,
taskWorkunitId
:
selectData
.
taskWorkunitId
,
workorderId
:
selectData
.
workorderId
,
toolRequestUseId
:
data
[
0
].
toolRequestUseId
,
toolMachinesRecordList
:
data
.
map
((
v
)
=>
{
...
...
@@ -1096,14 +1103,16 @@ export default {
});
},
rowClick
(
row
,
index
)
{
this
.
$refs
.
zbtable
.
toggleRowSelection
(
row
)
this
.
curTaskInfo
=
row
;
this
.
getMaterialUsageRecordList
();
},
toggleAllSelection
(
checked
,
arr
)
{
// console.log(arr, 'this.tableSelectData');
this
.
tableSelectData
=
arr
;
},
toggleRowSelection
(
checked
,
arr
)
{
console
.
log
(
this
.
tableSelectData
,
'this.tableSelectData'
);
// console.log(arr
, 'this.tableSelectData');
this
.
tableSelectData
=
arr
;
},
knifeTemp
()
{
...
...
@@ -1292,6 +1301,8 @@ export default {
// this.reset();
this
.
feedbackForms
=
[];
this
.
tableSelectData
.
forEach
((
item
)
=>
{
let
tempQualify
=
item
.
quantity
-
item
.
quantityQualify
<
0
?
0
:
item
.
quantity
-
item
.
quantityQualify
;
tempQualify
=
tempQualify
>
item
.
quantityWait
?
item
.
quantityWait
:
tempQualify
;
const
feedback
=
{
...
item
,
workstationId
:
item
.
workstationId
,
...
...
@@ -1300,7 +1311,7 @@ export default {
taskWorkunitId
:
item
.
taskWorkunitId
,
feedbackChannel
:
'PAD'
,
quantity
:
item
.
quantity
,
quantityQualify
:
item
.
quantity
-
item
.
quantityQuanlify
-
item
.
quantityUnquanlify
,
//默认为排产数量-合格数-不
合格数
quantityQualify
:
tempQualify
,
//默认为排产数量-
合格数
quantityUnqualify
:
0
,
printName
:
false
,
nickName
:
this
.
vuex_user
.
nicfeedbackkName
,
...
...
@@ -1358,8 +1369,8 @@ export default {
taskId
:
item
.
taskId
,
taskCode
:
item
.
taskCode
,
quantityFeedback
:
item
.
quantityQualify
+
item
.
quantityUnqualify
,
quantityQualif
ied
:
item
.
quantityQualify
,
quantityUnqua
nlified
:
item
.
quantityUnqualify
,
quantityQualif
y
:
item
.
quantityQualify
,
quantityUnqua
lify
:
item
.
quantityUnqualify
,
userName
:
this
.
vuex_user
.
userName
,
feedbackType
:
item
.
feedbackType
,
routeId
:
item
.
routeId
,
...
...
@@ -1411,9 +1422,10 @@ export default {
},
feedingInspectionScan
()
{
const
t
=
this
;
const
taskInfo
=
this
.
tableSelectData
[
0
];
uni
.
scanCode
({
success
:
function
(
res
)
{
t
.
$u
.
api
.
validateFeedingInspection
({
plnr
:
res
.
result
}).
then
((
res2
)
=>
{
t
.
$u
.
api
.
validateFeedingInspection
({
plnr
:
res
.
result
,
taskId
:
taskInfo
.
taskId
}).
then
((
res2
)
=>
{
if
(
res2
.
code
===
200
)
{
t
.
feedingInspectionLoadAndScan
(
true
);
}
...
...
pages/sys/login/login.vue
View file @
8a5b5bd6
<
template
>
<view
class=
"login"
>
<u-form
ref=
"loginForm"
:modelValue=
"loginForm"
:rules=
"loginRules"
class=
"login-form"
>
<h3
class=
"title"
>
MES
-PAD
</h3>
<h3
class=
"title"
>
MES
作业端
</h3>
<u-form-item
prop=
"username"
>
<input
v-model=
"loginForm.username"
...
...
uni_modules/zb-table/components/zb-table/zb-table.vue
View file @
8a5b5bd6
...
...
@@ -140,6 +140,11 @@
<text
v-else
>
{{ ite.emptyString }}
</text>
</view>
</template>
<
template
v-else-if=
"ite.cellFun"
>
<view
@
click
.
stop=
"ite.cellFun(item,index)"
class=
"cellfunction"
>
<text>
{{
ite
.
filters
?
itemFilter
(
item
,
ite
)
:
formatterAction
(
item
,
ite
,
index
,
i
)
}}
</text>
</view>
</
template
>
<
template
v-else
>
<!--
{{
ite
.
filters
?
itemFilter
(
item
,
ite
):(
item
[
ite
.
name
]
==
null
||
item
[
ite
.
name
]
===
''
)?
ite
.
emptyString
:
item
[
ite
.
name
]
}}
-->
{{
ite
.
filters
?
itemFilter
(
item
,
ite
)
:
formatterAction
(
item
,
ite
,
index
,
i
)
}}
...
...
@@ -796,6 +801,30 @@ export default {
cellClick
(
row
,
index
,
column
)
{
this
.
$emit
(
'cellClick'
,
row
,
index
,
column
)
},
toggleRowSelection
(
row
)
{
const
items
=
this
.
selectArr
.
find
(
v
=>
v
[
this
.
rowKey
]
===
row
[
this
.
rowKey
])
if
(
items
&&
Object
.
keys
(
items
).
length
>
0
)
{
this
.
data
.
forEach
(
item
=>
{
if
(
item
[
this
.
rowKey
]
===
row
[
this
.
rowKey
])
{
this
.
$set
(
item
,
'checked'
,
false
)
}
})
this
.
selectArr
.
forEach
((
item
,
index
)
=>
{
if
(
item
[
this
.
rowKey
]
===
row
[
this
.
rowKey
])
{
this
.
selectArr
.
splice
(
index
,
1
)
}
});
this
.
$emit
(
'toggleRowSelection'
,
false
,
this
.
selectArr
)
}
else
{
this
.
data
.
forEach
(
item
=>
{
if
(
item
[
this
.
rowKey
]
===
row
[
this
.
rowKey
])
{
this
.
$set
(
item
,
'checked'
,
true
)
this
.
selectArr
.
push
(
item
)
}
})
this
.
$emit
(
'toggleRowSelection'
,
true
,
this
.
selectArr
)
}
},
rowClick
(
row
,
index
)
{
if
(
this
.
highlight
)
{
this
.
currentRowIndex
=
index
...
...
@@ -1352,6 +1381,9 @@ export default {
//height: 100%;
width
:
100%
;
}
.cellfunction
{
text-align
:
left
;
}
.even
{
background-color
:
white
;
...
...
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