|
|
|
@ -388,7 +388,7 @@
|
|
|
|
|
<el-col :offset="1" :span="7">
|
|
|
|
|
<!-- 车数 -->
|
|
|
|
|
<el-form-item v-if="checkType" size="small" label="分配车数:">
|
|
|
|
|
<el-input required type="number" @input="changeCarNum" v-model="splitForm.carNum"></el-input>
|
|
|
|
|
<el-input required disabled type="number" @input="changeCarNum" v-model="splitForm.carNum"></el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
@ -698,10 +698,6 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
// 获取工艺信息
|
|
|
|
|
getProRoutes(this.selectWork.productCode).then(response => {
|
|
|
|
|
console.log("这里是选中工单信息")
|
|
|
|
|
console.log(this.selectWork)
|
|
|
|
|
console.log("这里是开始获取工艺信息")
|
|
|
|
|
console.log(response.data)
|
|
|
|
|
this.routes = response.data
|
|
|
|
|
getProEquipment(this.selectWork.routeCode).then(response => {
|
|
|
|
|
this.proline = response.data
|
|
|
|
@ -712,8 +708,6 @@ export default {
|
|
|
|
|
this.converCarNum = this.routes[i].carNumUnit;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
console.log("车数设置成功")
|
|
|
|
|
console.log(this.converCarNum)
|
|
|
|
|
})
|
|
|
|
|
// 获取工艺设备信息
|
|
|
|
|
getProEquipment(this.selectWork.routeCode).then(response2 => {
|
|
|
|
@ -811,8 +805,6 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
// 变更-变更工艺
|
|
|
|
|
routeChange(routeCode) {
|
|
|
|
|
console.log("工艺变更")
|
|
|
|
|
console.log(routeCode)
|
|
|
|
|
getProEquipment(routeCode).then(response => {
|
|
|
|
|
this.eRouteOptions = response.data
|
|
|
|
|
})
|
|
|
|
@ -825,8 +817,11 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
console.log("设置好车数换算值")
|
|
|
|
|
console.log(this.converCarNum)
|
|
|
|
|
// 重新设置车数
|
|
|
|
|
// 设置页面显示值
|
|
|
|
|
this.splitForm.carNum = Math.ceil(this.splitForm.splitNum / this.converCarNum);
|
|
|
|
|
// 设置后端传输值
|
|
|
|
|
this.workForm.carNum = Math.ceil(this.splitForm.splitNum / this.converCarNum);
|
|
|
|
|
},
|
|
|
|
|
// 变更-变更班次
|
|
|
|
|
shiftChange(e) {
|
|
|
|
@ -916,6 +911,16 @@ export default {
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
this.workForm.splitNum = this.splitForm.splitNum
|
|
|
|
|
// 车数处理逻辑
|
|
|
|
|
if (this.converCarNum != null) {
|
|
|
|
|
this.splitForm.carNum = Math.ceil(this.splitForm.splitNum / this.converCarNum);
|
|
|
|
|
this.workForm.carNum = Math.ceil(this.splitForm.splitNum / this.converCarNum);
|
|
|
|
|
}else {
|
|
|
|
|
this.$message({
|
|
|
|
|
message: '获取车数换算值异常!',
|
|
|
|
|
type: 'error'
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
this.product = this.productData[0]
|
|
|
|
|
},
|
|
|
|
|