|
|
|
@ -526,6 +526,9 @@ export default { |
|
|
|
//初始化标题 |
|
|
|
this.titleCon = '结束卷操作 \ |
|
|
|
派工单号:'+scheduleData.seqNo; |
|
|
|
//处理异常的原因 |
|
|
|
this.pageData.exceptionFlag = 'N'; |
|
|
|
this.pageData.exceptionReason = ''; |
|
|
|
//刷新当前派工单的信息 |
|
|
|
this.refreshPageData(); |
|
|
|
}, |
|
|
|
@ -769,9 +772,16 @@ export default { |
|
|
|
this.$message.error(data.msg); |
|
|
|
}else if (data.resultMap.resultCode == '201'){ |
|
|
|
//打开异常原因录入的界面 |
|
|
|
|
|
|
|
this.$confirm(data.resultMap.resultMsg, '提示', { |
|
|
|
confirmButtonText: '确认', |
|
|
|
celButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
this.showExceptionReasonModal(); |
|
|
|
}); |
|
|
|
}else{ |
|
|
|
//执行结束卷操作 |
|
|
|
this.finishRollOperation(); |
|
|
|
} |
|
|
|
}); |
|
|
|
|
|
|
|
@ -779,6 +789,8 @@ export default { |
|
|
|
|
|
|
|
/*结束卷的具体操作*/ |
|
|
|
finishRollOperation(){ |
|
|
|
//验证通过提交到后台 |
|
|
|
let postData = {'pageData': JSON.stringify(this.pageData), 'materialList': JSON.stringify(this.sfdcMaterialList)}; |
|
|
|
//处理信息 |
|
|
|
finishRollWithNoFqc(postData).then(({data}) => { |
|
|
|
this.$message.error('qty_reported找不到!'); |
|
|
|
@ -794,6 +806,17 @@ export default { |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
/*打开异常原因录入页面*/ |
|
|
|
showExceptionReasonModal(){ |
|
|
|
//1.首先调用菜单判断方式 打开生产过程的材料的页面 |
|
|
|
//checkProduceButton('produceMaterialFlag'); |
|
|
|
//打开生产过程的工具的页面 |
|
|
|
this.$nextTick(() => { |
|
|
|
this.showExceptionFlag = true; |
|
|
|
this.$refs.comExceptionReason.init(); |
|
|
|
}); |
|
|
|
}, |
|
|
|
|
|
|
|
/*处理异常的原因*/ |
|
|
|
initExceptionReason(exceptionReason){ |
|
|
|
//处理异常的原因 |
|
|
|
|