|
|
|
@ -387,7 +387,7 @@
|
|
|
|
|
</el-col>
|
|
|
|
|
<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-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
@ -521,7 +521,7 @@ export default {
|
|
|
|
|
productDate: null,
|
|
|
|
|
shiftId: null,
|
|
|
|
|
routeCode: null,
|
|
|
|
|
carNum: null,
|
|
|
|
|
carNum: 0,
|
|
|
|
|
},
|
|
|
|
|
// 遮罩层
|
|
|
|
|
loading: true,
|
|
|
|
@ -628,7 +628,10 @@ export default {
|
|
|
|
|
message: '车数不能超过拆分数量!',
|
|
|
|
|
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) {
|
|
|
|
@ -636,9 +639,10 @@ export default {
|
|
|
|
|
message: '车数数量不能小于0!',
|
|
|
|
|
type: 'warning'
|
|
|
|
|
})
|
|
|
|
|
this.splitForm.carNum = 1;
|
|
|
|
|
num = 1;
|
|
|
|
|
this.splitForm.carNum = num;
|
|
|
|
|
}
|
|
|
|
|
this.splitForm.carNum = num;
|
|
|
|
|
this.workForm.carNum = num;
|
|
|
|
|
},
|
|
|
|
|
// 派发-工单派发按钮操作
|
|
|
|
|
handleUpdateDown(row) {
|
|
|
|
@ -681,6 +685,7 @@ export default {
|
|
|
|
|
productDate: null,
|
|
|
|
|
shiftId: null,
|
|
|
|
|
routeCode: null,
|
|
|
|
|
carNum: null
|
|
|
|
|
}
|
|
|
|
|
this.formFields = []
|
|
|
|
|
|
|
|
|
@ -731,12 +736,13 @@ export default {
|
|
|
|
|
this.splitForm.splitNum = this.splitData[0].quantitySplit
|
|
|
|
|
// 设置选择机型
|
|
|
|
|
this.splitForm.prodLineCodeArray = response.data.workOrder.prodLineCodeArray
|
|
|
|
|
// 设置车数
|
|
|
|
|
this.splitForm.carNum = this.splitData[0].carNum
|
|
|
|
|
// 设置班次
|
|
|
|
|
this.splitForm.shiftId = this.splitData[0].shiftDesc
|
|
|
|
|
// 设置工艺
|
|
|
|
|
this.splitForm.routeCode = this.splitData[0].routeCode
|
|
|
|
|
// 设置车数
|
|
|
|
|
this.splitForm.carNum = this.splitData[0].carNum
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 订单为白坯
|
|
|
|
|
if (this.productData[0].prodType == 'white'){
|
|
|
|
@ -994,7 +1000,8 @@ export default {
|
|
|
|
|
splitNum: this.workForm.splitNum,
|
|
|
|
|
product: this.productData[0],
|
|
|
|
|
routeCode: this.workForm.routeCode,
|
|
|
|
|
proOrderWorkorder: this.selectWork
|
|
|
|
|
proOrderWorkorder: this.selectWork,
|
|
|
|
|
carNum: this.workForm.carNum,
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
subChangeWorkOrder(data).then(response => {
|
|
|
|
@ -1014,7 +1021,8 @@ export default {
|
|
|
|
|
splitNum: null,
|
|
|
|
|
productDate: null,
|
|
|
|
|
shiftId: null,
|
|
|
|
|
formFields: []
|
|
|
|
|
formFields: [],
|
|
|
|
|
carNum: null
|
|
|
|
|
}
|
|
|
|
|
this.formFields = [{
|
|
|
|
|
batchCode: '',
|
|
|
|
|