diff --git a/src/views/mes/reportWork/index.vue b/src/views/mes/reportWork/index.vue index b4c0068b..b6463af9 100644 --- a/src/views/mes/reportWork/index.vue +++ b/src/views/mes/reportWork/index.vue @@ -184,10 +184,17 @@ - + - + + + @@ -648,7 +655,7 @@ import moment from 'moment'; import { getlistCK } from '@/api/wms/outorder' export default { name: "ReportWork", - dicts: ['report_type'], + dicts: ['report_type','report_sap_status'], components: {ReportWorkConsume,ItemSelectUser,ItemSelectWorkOrder,ItemSelectEquip}, data() { return { @@ -968,7 +975,7 @@ export default { this.reset(); let sr = this.selectRow[0]; - if(sr.uploadStatus =='sap报工成功'){ + if(sr.uploadStatus =='1'){ this.optType = 'view' }else{ this.optType = '' @@ -1005,7 +1012,7 @@ export default { this.reset(); this.optType = "edit"; let sr = this.selectRow[0]; - if(sr.uploadStatus =='sap报工成功'){ + if(sr.uploadStatus =='1'){ this.$modal.msgError(`上传sap成功,不允许修改`); return } @@ -1041,7 +1048,7 @@ export default { handleDelete(row) { let sr = this.selectRow[0]; - if(sr.uploadStatus =='sap报工成功'){ + if(sr.uploadStatus =='1'){ this.$modal.msgError(`上传sap成功,不允许删除`); return } @@ -1058,7 +1065,7 @@ export default { handleReport(row) { this.loading = true; let sr = this.selectRow[0]; - if(sr.uploadStatus =='sap报工成功'){ + if(sr.uploadStatus =='1'){ this.$modal.msgError(`上报sap已完成,不能重复报工`); return } @@ -1103,7 +1110,7 @@ export default { this.reset(); let sr = row; - if(sr.uploadStatus =='sap报工成功'){ + if(sr.uploadStatus =='1'){ this.optType = 'view' }else{ this.optType = '' @@ -1172,7 +1179,6 @@ export default { }, /** 报工损耗按钮操作 */ handleConsumeHz(row) { - debugger this.reset(); let sr = this.selectRow[0]; this.queryParams.workorderCode = sr.workorderCode;