Browse Source

结束卷代码 BUG 修改

master
Rui_Li 4 years ago
parent
commit
c219fdb00c
  1. 32
      src/views/modules/yieldReport/com_exception_reason.vue
  2. 25
      src/views/modules/yieldReport/com_finish_roll.vue

32
src/views/modules/yieldReport/com_exception_reason.vue

@ -1,20 +1,22 @@
<template> <template>
<div class="customer-css"> <div class="customer-css">
<el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners" <el-dialog :title="titleCon" v-drag v-bind="$attrs" v-on="$listeners"
width="900px" style="height: 415px;" class="customer-dialog">
<el-form :inline="true" label-position="top" style="height: 265px;"
width="360px" style="height: 300px;" class="customer-dialog">
<el-form :inline="true" label-position="top" style="height: 100px;"
label-width="80px"> label-width="80px">
<!-- 菜单信息 --> <!-- 菜单信息 -->
<el-row> <el-row>
<el-col :span="3" >
<el-col :span="24" >
<el-form-item :label="'异常原因:'"> <el-form-item :label="'异常原因:'">
<textarea rows="2" cols="24" placeholder="异常原因"></textarea>
<textarea ref="exceptionReason" v-model="pageData.exceptionReason" rows="4" cols="44"></textarea>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
<span slot="footer" class="dialog-footer" style="margin-top: -20px;">
<el-button type="primary" @click="addExceptionReason"> </el-button>
<el-button type="primary" @click="closeDialog">关闭</el-button>
</span>
</el-dialog> </el-dialog>
</div> </div>
</template> </template>
@ -35,6 +37,12 @@ export default {
methods: { methods: {
/*初始化页面参数*/ /*初始化页面参数*/
init() { init() {
//
this.pageData.exceptionReason = '';
//
this.$nextTick(() => {
this.$refs.exceptionReason.focus();
});
// //
}, },
@ -43,10 +51,13 @@ export default {
this.$emit('update:visible', false); this.$emit('update:visible', false);
}, },
/*添加异常原因的数据*/
addExceptionReason(){
//
this.closeDialog();
//
this.$emit('initExceptionReason');
},
}, },
created() { created() {
@ -58,5 +69,4 @@ export default {
<style scoped lang="scss"> <style scoped lang="scss">
</style> </style>

25
src/views/modules/yieldReport/com_finish_roll.vue

@ -526,6 +526,9 @@ export default {
// //
this.titleCon = '结束卷操作 \ this.titleCon = '结束卷操作 \
派工单号:'+scheduleData.seqNo; 派工单号:'+scheduleData.seqNo;
//
this.pageData.exceptionFlag = 'N';
this.pageData.exceptionReason = '';
// //
this.refreshPageData(); this.refreshPageData();
}, },
@ -769,9 +772,16 @@ export default {
this.$message.error(data.msg); this.$message.error(data.msg);
}else if (data.resultMap.resultCode == '201'){ }else if (data.resultMap.resultCode == '201'){
// //
this.$confirm(data.resultMap.resultMsg, '提示', {
confirmButtonText: '确认',
celButtonText: '取消',
type: 'warning'
}).then(() => {
this.showExceptionReasonModal();
});
}else{ }else{
// //
this.finishRollOperation();
} }
}); });
@ -779,6 +789,8 @@ export default {
/*结束卷的具体操作*/ /*结束卷的具体操作*/
finishRollOperation(){ finishRollOperation(){
//
let postData = {'pageData': JSON.stringify(this.pageData), 'materialList': JSON.stringify(this.sfdcMaterialList)};
// //
finishRollWithNoFqc(postData).then(({data}) => { finishRollWithNoFqc(postData).then(({data}) => {
this.$message.error('qty_reported找不到!'); 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){ initExceptionReason(exceptionReason){
// //

Loading…
Cancel
Save