|
|
@ -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: '',
|
|
|
|