白坯订单管理

yangwl
wws 1 year ago
parent 13a2dd7e47
commit fcf19fd4e0

@ -387,7 +387,7 @@
</el-col> </el-col>
<el-col :offset="1" :span="7"> <el-col :offset="1" :span="7">
<!-- 车数 --> <!-- 车数 -->
<el-form-item v-if="this.splitForm.carNum != null" size="small" label="分配车数:"> <el-form-item size="small" label="分配车数:">
<el-input required type="number" @input="changeCarNum" v-model="splitForm.carNum"></el-input> <el-input required type="number" @input="changeCarNum" v-model="splitForm.carNum"></el-input>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -521,7 +521,7 @@ export default {
productDate: null, productDate: null,
shiftId: null, shiftId: null,
routeCode: null, routeCode: null,
carNum: null, carNum: 0,
}, },
// //
loading: true, loading: true,
@ -628,7 +628,10 @@ export default {
message: '车数不能超过拆分数量!', message: '车数不能超过拆分数量!',
type: 'warning' type: 'warning'
}) })
this.splitForm.carNum = this.splitForm.splitNum; console.log("拆分数量")
console.log(this.splitForm.splitNum)
num = this.splitForm.splitNum
this.splitForm.carNum = num;
} }
// //
if (num <= 0) { if (num <= 0) {
@ -636,9 +639,10 @@ export default {
message: '车数数量不能小于0', message: '车数数量不能小于0',
type: 'warning' type: 'warning'
}) })
this.splitForm.carNum = 1; num = 1;
this.splitForm.carNum = num;
} }
this.splitForm.carNum = num; this.workForm.carNum = num;
}, },
// - // -
handleUpdateDown(row) { handleUpdateDown(row) {
@ -681,6 +685,7 @@ export default {
productDate: null, productDate: null,
shiftId: null, shiftId: null,
routeCode: null, routeCode: null,
carNum: null
} }
this.formFields = [] this.formFields = []
@ -731,12 +736,13 @@ export default {
this.splitForm.splitNum = this.splitData[0].quantitySplit this.splitForm.splitNum = this.splitData[0].quantitySplit
// //
this.splitForm.prodLineCodeArray = response.data.workOrder.prodLineCodeArray this.splitForm.prodLineCodeArray = response.data.workOrder.prodLineCodeArray
//
this.splitForm.carNum = this.splitData[0].carNum
// //
this.splitForm.shiftId = this.splitData[0].shiftDesc this.splitForm.shiftId = this.splitData[0].shiftDesc
// //
this.splitForm.routeCode = this.splitData[0].routeCode this.splitForm.routeCode = this.splitData[0].routeCode
//
this.splitForm.carNum = this.splitData[0].carNum
// //
if (this.productData[0].prodType == 'white'){ if (this.productData[0].prodType == 'white'){
@ -994,7 +1000,8 @@ export default {
splitNum: this.workForm.splitNum, splitNum: this.workForm.splitNum,
product: this.productData[0], product: this.productData[0],
routeCode: this.workForm.routeCode, routeCode: this.workForm.routeCode,
proOrderWorkorder: this.selectWork proOrderWorkorder: this.selectWork,
carNum: this.workForm.carNum,
} }
subChangeWorkOrder(data).then(response => { subChangeWorkOrder(data).then(response => {
@ -1014,7 +1021,8 @@ export default {
splitNum: null, splitNum: null,
productDate: null, productDate: null,
shiftId: null, shiftId: null,
formFields: [] formFields: [],
carNum: null
} }
this.formFields = [{ this.formFields = [{
batchCode: '', batchCode: '',

Loading…
Cancel
Save