diff --git a/src/api/board.js b/src/api/board.js index 7d4fbe7..40c679e 100644 --- a/src/api/board.js +++ b/src/api/board.js @@ -19,3 +19,5 @@ export const SORoutingBoardForBaoZhuang= data => createAPI(`board/SORoutingBoard export const PODetailForW= data => createAPI(`board/PODetailForW`,'post',data) export const transFerBoardForHunlian= data => createAPI(`board/transFerBoardForHunlian`,'post',data) export const getSiteData= data => createAPI(`board/getSiteData`,'post',data) +export const SORoutingBoardForShuiZhu= data => createAPI(`board/SORoutingBoardForShuiZhu`,'post',data) +export const SeqNoForLiuHua= data => createAPI(`board/SeqNoForLiuHua`,'post',data) diff --git a/src/api/production.js b/src/api/production.js index 8407824..11a97f5 100644 --- a/src/api/production.js +++ b/src/api/production.js @@ -59,3 +59,8 @@ export const cancelTask=data => createAPI(`dailyPlan/cancelTask`, 'post', data); export const reportTask=data => createAPI(`dailyPlan/reportTask`, 'post', data); export const cancelReportTask=data => createAPI(`dailyPlan/cancelReportTask`, 'post', data); + +export const getAllWorkCenterDataForUser=data => createAPI(`dailyPlan/getAllWorkCenterDataForUser`, 'post', data); +export const getWorkCenterUserData=data => createAPI(`dailyPlan/getWorkCenterUserData`, 'post', data); +export const addUserSkill=data => createAPI(`dailyPlan/addUserSkill`, 'post', data); +export const deleteUserSkill=data => createAPI(`dailyPlan/deleteUserSkill`, 'post', data); diff --git a/src/router/index.js b/src/router/index.js index 9ee022f..282a9c3 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -38,6 +38,8 @@ const globalRoutes = [ { path: '/transFerBoardForHunlian', component: _import('modules/board/transFerBoardForHunlian'), name: 'transFerBoardForHunlian', meta: { title: '混炼待入库看板' } }, { path: '/SORoutingBoardForBaoZhuang', component: _import('modules/board/SORoutingBoardForBaoZhuang'), name: 'SORoutingBoardForBaoZhuang', meta: { title: '包装工序看板' } }, { path: '/test', component: _import('modules/board/test'), name: 'test', meta: { title: 'test' } }, + { path: '/SeqNoForLiuHua', component: _import('modules/board/SeqNoForLiuHua'), name: 'SeqNoForLiuHua', meta: { title: '生产派工单看板' } }, + { path: '/SORoutingBoardForShuiZhu', component: _import('modules/board/SORoutingBoardForShuiZhu'), name: 'SORoutingBoardForShuiZhu', meta: { title: '水煮烘烤工序看板' } }, ] diff --git a/src/views/modules/board/SORoutingBoardForShuiZhu.vue b/src/views/modules/board/SORoutingBoardForShuiZhu.vue new file mode 100644 index 0000000..ea7ae2e --- /dev/null +++ b/src/views/modules/board/SORoutingBoardForShuiZhu.vue @@ -0,0 +1,209 @@ + + + + + diff --git a/src/views/modules/board/SeqNoForLiuHua.vue b/src/views/modules/board/SeqNoForLiuHua.vue new file mode 100644 index 0000000..3e3eb0b --- /dev/null +++ b/src/views/modules/board/SeqNoForLiuHua.vue @@ -0,0 +1,215 @@ + + + + + diff --git a/src/views/modules/production/closeSchedule.vue b/src/views/modules/production/closeSchedule.vue index 96691f2..5e38a0b 100644 --- a/src/views/modules/production/closeSchedule.vue +++ b/src/views/modules/production/closeSchedule.vue @@ -436,6 +436,7 @@ sResourceID:'', sShiftNo:'', closedFlag:'', + userId:this.$store.state.user.name }, photoUrl:'', sopData:{ diff --git a/src/views/modules/production/generateReport.vue b/src/views/modules/production/generateReport.vue index 5f37af9..fc4ba56 100644 --- a/src/views/modules/production/generateReport.vue +++ b/src/views/modules/production/generateReport.vue @@ -360,16 +360,22 @@ + + + - + - - + + + + + @@ -379,9 +385,12 @@ - - + + + + +
不良品分析 @@ -500,6 +509,8 @@ }, data () { return { + moQty:'', + cavity:'', setUp: { reviewFlag: false, saveButton: false, @@ -511,6 +522,7 @@ KGApprove:'', KGRework:'', saveHeaderData: { + qtyRequire:'', qtyUnApprove:'', site: '', seqNo: '', @@ -578,6 +590,7 @@ tableData: [], date1: '', searchData: { + userId:this.$store.state.user.name, orderNo: '', sWorkCenterNo: '', partNo: '', @@ -908,12 +921,13 @@ return false; } let inData={ - + userId:this.$store.state.user.name, seqNo:this.scanSeqNo } searchSeqNo(inData).then(({data}) => { if (data.code == 0) { if(data.row==null){ + this.scanSeqNo='' this.$alert("派工单不存在!",'错误', { confirmButtonText: '确定' }) @@ -921,6 +935,7 @@ } let currentData = data.row; if(currentData.closedFlag=='Y'){ + this.scanSeqNo='' this.$alert("该派工单已关闭!",'错误', { confirmButtonText: '确定' }) @@ -945,6 +960,7 @@ this.saveHeaderData.scheduleType=currentData.scheduleType; this.saveHeaderData.operatorId=currentData.operatorId; this.saveHeaderData.operatorName=currentData.operatorName; + this.saveHeaderData.qtyRequire=currentData.qtyRequired; this.saveHeaderData.userId=this.$store.state.user.name; this.qty1=''; this.qty2 =''; @@ -952,6 +968,7 @@ this.saveHeaderData.planFinishTime = this.dayjs(new Date()).format('YYYY-MM-DD 00:00:00') searchReportedQty(this.saveHeaderData).then(({data}) => { if(data.code===0) { + this.cavity= data.row.cavity this.qty1 = data.row.qtyReported; this.qty2 = data.row.lastApproveQty; this.saveHeaderData.manufacturingTime = data.row.timeReported; @@ -977,6 +994,7 @@ this.setUp.reviewFlag = true; this.setUp.disabled = true; } else { + this.scanSeqNo='' this.$alert(data.msg, '错误', { confirmButtonText: '确定' }) @@ -994,6 +1012,7 @@ qtyApproveBlur(){ if(this.qty3&&this.qty3!=0&&this.qty3!='erp未维护数据'&&this.saveHeaderData.qtyApprove!=''){ this.KGApprove=(this.saveHeaderData.qtyApprove*this.qty3).toFixed(1) + this.moQty='' } if(this.saveHeaderData.qtyApprove==''){ this.KGApprove='' @@ -1018,6 +1037,7 @@ KGApproveBlur(){ if(this.qty3&&this.qty3!=0&&this.qty3!='erp未维护数据'&&this.KGApprove!=''){ this.saveHeaderData.qtyApprove=(this.KGApprove/this.qty3).toFixed(1) + this.moQty='' } if(this.KGApprove==''){ this.saveHeaderData.qtyApprove='' @@ -1034,7 +1054,8 @@ startSeqNo(){ let inData={ username:this.$store.state.user.name, - seqNo:this.scanSeqNo + seqNo:this.scanSeqNo, + } startSeqNo(inData).then(({data}) => { if (data && data.code === 0) { @@ -1048,6 +1069,7 @@ } }) } else { + this.scanSeqNo=''; this.$alert(data.msg, '错误', { confirmButtonText: '确定' }) @@ -1071,6 +1093,7 @@ } }) } else { + this.scanSeqNo=''; this.$alert(data.msg, '错误', { confirmButtonText: '确定' }) @@ -1094,12 +1117,17 @@ } }) } else { + this.scanSeqNo=''; this.$alert(data.msg, '错误', { confirmButtonText: '确定' }) } }) }, + moQtyBlur(){ + this.saveHeaderData.qtyApprove=Number(this.cavity*this.moQty).toFixed(1); + this.KGApprove=''; + } }, created () { } diff --git a/src/views/modules/production/operator.vue b/src/views/modules/production/operator.vue index fd48ee2..2bf1764 100644 --- a/src/views/modules/production/operator.vue +++ b/src/views/modules/production/operator.vue @@ -97,8 +97,8 @@
- 操作员编码: - 操作员姓名: + 操作员编码: + 操作员姓名:
diff --git a/src/views/modules/production/scheduleForSOTask.vue b/src/views/modules/production/scheduleForSOTask.vue index fefbc49..8a31b6e 100644 --- a/src/views/modules/production/scheduleForSOTask.vue +++ b/src/views/modules/production/scheduleForSOTask.vue @@ -279,7 +279,7 @@ - @@ -365,7 +365,7 @@