|
|
|
@ -467,6 +467,8 @@ export default {
|
|
|
|
|
dicts: ['product_type', 'workorder_type', 'shift_type'],
|
|
|
|
|
data() {
|
|
|
|
|
return {
|
|
|
|
|
// 拆分车数换算值
|
|
|
|
|
converCarNum: null,
|
|
|
|
|
// 变更校验车数书否显示
|
|
|
|
|
checkType: false,
|
|
|
|
|
// 暂存线体code
|
|
|
|
@ -686,6 +688,7 @@ export default {
|
|
|
|
|
carNum: null
|
|
|
|
|
}
|
|
|
|
|
this.formFields = []
|
|
|
|
|
this.converCarNum = null;
|
|
|
|
|
|
|
|
|
|
//初始化日期为默认今天
|
|
|
|
|
this.splitForm.productDate = new Date()
|
|
|
|
@ -695,10 +698,22 @@ 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
|
|
|
|
|
})
|
|
|
|
|
// 设置车数换算值
|
|
|
|
|
for (let i = 0; i < this.routes.length; i++) {
|
|
|
|
|
if (this.routes[i].routeCode == this.selectWork.routeCode) {
|
|
|
|
|
this.converCarNum = this.routes[i].carNumUnit;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
console.log("车数设置成功")
|
|
|
|
|
console.log(this.converCarNum)
|
|
|
|
|
})
|
|
|
|
|
// 获取工艺设备信息
|
|
|
|
|
getProEquipment(this.selectWork.routeCode).then(response2 => {
|
|
|
|
@ -795,11 +810,23 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 变更-变更工艺
|
|
|
|
|
routeChange(e) {
|
|
|
|
|
getProEquipment(e).then(response => {
|
|
|
|
|
routeChange(routeCode) {
|
|
|
|
|
console.log("工艺变更")
|
|
|
|
|
console.log(routeCode)
|
|
|
|
|
getProEquipment(routeCode).then(response => {
|
|
|
|
|
this.eRouteOptions = response.data
|
|
|
|
|
})
|
|
|
|
|
this.workForm.routeCode = e
|
|
|
|
|
this.workForm.routeCode = routeCode
|
|
|
|
|
|
|
|
|
|
// 设置车数换算值
|
|
|
|
|
for (let i = 0; i < this.routes.length; i++) {
|
|
|
|
|
if (this.routes[i].routeCode == routeCode) {
|
|
|
|
|
this.converCarNum = this.routes[i].carNumUnit;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
console.log("设置好车数换算值")
|
|
|
|
|
console.log(this.converCarNum)
|
|
|
|
|
},
|
|
|
|
|
// 变更-变更班次
|
|
|
|
|
shiftChange(e) {
|
|
|
|
|