Browse Source

工序需求时间 2023年1月11日 sxm

master
[li_she] 3 years ago
parent
commit
ccb2fcb6fd
  1. 12
      src/views/modules/shopOrder/shopOrder/common/routingAddAndEdit.vue
  2. 46
      src/views/modules/yieldReport/com_malformed_material.vue

12
src/views/modules/shopOrder/shopOrder/common/routingAddAndEdit.vue

@ -276,10 +276,10 @@
this.$message.warning('效率不能为空!') this.$message.warning('效率不能为空!')
return return
} }
if (!this.selectRow.timeRequired) {
this.$message.warning('需求时间不能为空!')
return
}
// if (!this.selectRow.timeRequired) {
// this.$message.warning('!')
// return
// }
if (!this.selectRow.planFinishTime) { if (!this.selectRow.planFinishTime) {
this.$message.warning('计划完工时间不能为空!') this.$message.warning('计划完工时间不能为空!')
return return
@ -291,8 +291,8 @@
this.$message.warning('计划开工时间不能早于计划完工时间!') this.$message.warning('计划开工时间不能早于计划完工时间!')
return return
} }
if (this.selectRow.timeRequired<=0){
this.$message.warning('需求时间不能小于0!')
if (this.selectRow.timeRequired<0){
this.$message.warning('需求时间不能小于0!')
return return
} }
if (this.selectRow.crewsize<1) { if (this.selectRow.crewsize<1) {

46
src/views/modules/yieldReport/com_malformed_material.vue

@ -18,7 +18,7 @@
<el-button type="primary" @click="feedingMaterialRollFun">{{ buttons.confirmButton }}</el-button> <el-button type="primary" @click="feedingMaterialRollFun">{{ buttons.confirmButton }}</el-button>
</el-col> </el-col>
</el-row> </el-row>
<el-row >
<el-row>
<el-col style="margin-top: -10px" :span="16"> <el-col style="margin-top: -10px" :span="16">
<el-form-item :label=labels.bomItemNo> <el-form-item :label=labels.bomItemNo>
<el-select v-model="pageData.bomItemNo" :disabled="selectFlag" style="width: 120px"> <el-select v-model="pageData.bomItemNo" :disabled="selectFlag" style="width: 120px">
@ -35,7 +35,7 @@
<el-button type="primary" @click="closeDialog">{{ buttons.closeButton }}</el-button> <el-button type="primary" @click="closeDialog">{{ buttons.closeButton }}</el-button>
</el-col> </el-col>
</el-row> </el-row>
<el-row >
<el-row>
<el-col style="margin-top: -10px" :span="24"> <el-col style="margin-top: -10px" :span="24">
<el-form-item :label='labels.rollNoQty'> <el-form-item :label='labels.rollNoQty'>
<el-input v-model="pageData.rollQty" readonly <el-input v-model="pageData.rollQty" readonly
@ -45,7 +45,7 @@
</el-col> </el-col>
</el-row> </el-row>
<el-row >
<el-row>
<el-col style="margin-top: -10px" :span="24"> <el-col style="margin-top: -10px" :span="24">
<el-form-item :label='labels.depleteQty'> <el-form-item :label='labels.depleteQty'>
<el-input v-model="pageData.qtyConsumed" type="number" min="0" <el-input v-model="pageData.qtyConsumed" type="number" min="0"
@ -66,6 +66,7 @@ import {
scannerMaterial scannerMaterial
} from "@/api/yieldReport/com_produce_material.js"; } from "@/api/yieldReport/com_produce_material.js";
import {infoRollno} from "@/api/crollinfo/crollinfo.js";
import { import {
searchFunctionButtonList, searchFunctionButtonList,
} from "@/api/sysLanguage.js"; } from "@/api/sysLanguage.js";
@ -227,7 +228,7 @@ export default {
methods: { methods: {
// //
init(scheduleData, operatorData,selectSfdcRollData) {
init(scheduleData, operatorData, selectSfdcRollData) {
// //
this.scheduleData = scheduleData; this.scheduleData = scheduleData;
// //
@ -237,7 +238,7 @@ export default {
this.pageData.itemNo = scheduleData.itemNo; this.pageData.itemNo = scheduleData.itemNo;
this.pageData.seqNo = scheduleData.seqNo; this.pageData.seqNo = scheduleData.seqNo;
this.pageData.rollNo = selectSfdcRollData.rollNo; this.pageData.rollNo = selectSfdcRollData.rollNo;
this.pageData.rollQty = selectSfdcRollData.rollQty;
// this.pageData.rollQty = selectSfdcRollData.rollQty;
this.pageData.scanRmRollNo = ''; this.pageData.scanRmRollNo = '';
this.pageData.rmRollNo = ''; this.pageData.rmRollNo = '';
this.pageData.bomItemNo = ''; this.pageData.bomItemNo = '';
@ -291,6 +292,12 @@ export default {
} }
// //
this.refreshSomItemNos(); this.refreshSomItemNos();
//
infoRollno({site: this.pageData.site, rollno: this.pageData.scanRmRollNo}).then(({data}) => {
if (data.code == 0){
this.pageData.rollQty = data.cRollinfo.rollqty
}
})
}, },
/*获取BOM行号*/ /*获取BOM行号*/
@ -328,15 +335,15 @@ export default {
return false; return false;
} }
// //
if (!this.pageData.qtyConsumed ) {
if (!this.pageData.qtyConsumed) {
this.$message.error(this.labels.pleaseQtyConsumed) this.$message.error(this.labels.pleaseQtyConsumed)
return false; return false;
} }
if (this.pageData.qtyConsumed <=0 ) {
if (this.pageData.qtyConsumed <= 0) {
this.$message.error(this.labels.pleaseQtyConsumed2) this.$message.error(this.labels.pleaseQtyConsumed2)
return false; return false;
} }
if (this.pageData.qtyConsumed > this.pageData.rollQty ) {
if (this.pageData.qtyConsumed > this.pageData.rollQty) {
this.$message.error(this.labels.pleaseQtyConsumed3) this.$message.error(this.labels.pleaseQtyConsumed3)
return false; return false;
} }
@ -346,16 +353,16 @@ export default {
// //
this.pageData.scanRmRollNo = ''; this.pageData.scanRmRollNo = '';
let dto = { let dto = {
site:this.$store.state.user.site,
orderNo: this.pageData.orderNo,
itemNo: this.pageData.itemNo,
seqNo: this.pageData.seqNo,
userId: this.$store.state.user.name,
rollNo: this.pageData.rollNo,
rmRollNo: this.pageData.rmRollNo,
bomItemNo: this.pageData.bomItemNo,
operatorId: this.pageData.operatorId,
qtyConsumed: this.pageData.qtyConsumed ,
site: this.$store.state.user.site,
orderNo: this.pageData.orderNo,
itemNo: this.pageData.itemNo,
seqNo: this.pageData.seqNo,
userId: this.$store.state.user.name,
rollNo: this.pageData.rollNo,
rmRollNo: this.pageData.rmRollNo,
bomItemNo: this.pageData.bomItemNo,
operatorId: this.pageData.operatorId,
qtyConsumed: this.pageData.qtyConsumed,
} }
// //
scannerMaterial(this.pageData).then(({data}) => { scannerMaterial(this.pageData).then(({data}) => {
@ -368,6 +375,9 @@ export default {
this.pageData.bomItemNo = -1; this.pageData.bomItemNo = -1;
this.bomList = []; this.bomList = [];
this.timeArray = []; this.timeArray = [];
this.pageData.rollQty = '';
this.pageData.qtyConsumed = '';
this.closeDialog()
} }
}); });
}, },

Loading…
Cancel
Save