|
|
@ -508,24 +508,14 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 更改工艺 */
|
|
|
|
/** 更改工艺 */
|
|
|
|
routeChange(e){
|
|
|
|
routeChange(e){
|
|
|
|
console.log("您更改了工艺")
|
|
|
|
|
|
|
|
console.log(e)
|
|
|
|
|
|
|
|
this.workForm.routeCode = e
|
|
|
|
this.workForm.routeCode = e
|
|
|
|
console.log("这里是全部数据")
|
|
|
|
|
|
|
|
console.log(this.workForm)
|
|
|
|
|
|
|
|
console.log("这里是订单数据")
|
|
|
|
|
|
|
|
console.log(this.productData)
|
|
|
|
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 更改班次 */
|
|
|
|
/** 更改班次 */
|
|
|
|
shiftChange(e){
|
|
|
|
shiftChange(e){
|
|
|
|
console.log("您更改了班次")
|
|
|
|
|
|
|
|
console.log(e)
|
|
|
|
|
|
|
|
this.workForm.shiftId = e
|
|
|
|
this.workForm.shiftId = e
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 拆分数量 */
|
|
|
|
/** 拆分数量 */
|
|
|
|
splitNumChange(e){
|
|
|
|
splitNumChange(e){
|
|
|
|
console.log("拆分数量改变")
|
|
|
|
|
|
|
|
console.log(e)
|
|
|
|
|
|
|
|
//不能为负数
|
|
|
|
//不能为负数
|
|
|
|
if (e <= 0) {
|
|
|
|
if (e <= 0) {
|
|
|
|
e = 1
|
|
|
|
e = 1
|
|
|
@ -572,17 +562,10 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 工单日期选择 */
|
|
|
|
/** 工单日期选择 */
|
|
|
|
checkDate(e){
|
|
|
|
checkDate(e){
|
|
|
|
console.log("工单日期改变")
|
|
|
|
|
|
|
|
console.log(e)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.workForm.productDate = e
|
|
|
|
this.workForm.productDate = e
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 成型机选择 */
|
|
|
|
/** 成型机选择 */
|
|
|
|
machineType(e) {
|
|
|
|
machineType(e) {
|
|
|
|
console.log("成型机选择改变")
|
|
|
|
|
|
|
|
console.log(e)
|
|
|
|
|
|
|
|
console.log(this.proline)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.workForm.prodLineCode = e
|
|
|
|
this.workForm.prodLineCode = e
|
|
|
|
},
|
|
|
|
},
|
|
|
|
/** 查询生产工单列表 */
|
|
|
|
/** 查询生产工单列表 */
|
|
|
@ -682,8 +665,6 @@ export default {
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
|
|
|
|
|
|
|
|
console.log("这里是你要的数据")
|
|
|
|
|
|
|
|
console.log(this.selectWork)
|
|
|
|
|
|
|
|
// 数据初始化
|
|
|
|
// 数据初始化
|
|
|
|
this.reset();
|
|
|
|
this.reset();
|
|
|
|
this.splitData = [];
|
|
|
|
this.splitData = [];
|
|
|
@ -700,7 +681,7 @@ export default {
|
|
|
|
//初始化日期为默认今天
|
|
|
|
//初始化日期为默认今天
|
|
|
|
this.splitForm.productDate = new Date()
|
|
|
|
this.splitForm.productDate = new Date()
|
|
|
|
//获取成型机和班次
|
|
|
|
//获取成型机和班次
|
|
|
|
getprodLineShift(row.orderType).then(response => {
|
|
|
|
getprodLineShift(this.selectWork.prodType).then(response => {
|
|
|
|
this.proline = response.data.lines
|
|
|
|
this.proline = response.data.lines
|
|
|
|
this.workShift = response.data.shifts
|
|
|
|
this.workShift = response.data.shifts
|
|
|
|
this.routes = response.data.routes
|
|
|
|
this.routes = response.data.routes
|
|
|
@ -708,8 +689,6 @@ export default {
|
|
|
|
// 获取批次信息list
|
|
|
|
// 获取批次信息list
|
|
|
|
getWorkBatchList(this.selectWork).then(response => {
|
|
|
|
getWorkBatchList(this.selectWork).then(response => {
|
|
|
|
this.formFields = response.data
|
|
|
|
this.formFields = response.data
|
|
|
|
console.log("这里是批次数据")
|
|
|
|
|
|
|
|
console.log(response.data)
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
// 获取工单和订单信息
|
|
|
|
// 获取工单和订单信息
|
|
|
@ -717,8 +696,6 @@ export default {
|
|
|
|
this.proLoading = true // 设置加载状态为true,表示正在加载
|
|
|
|
this.proLoading = true // 设置加载状态为true,表示正在加载
|
|
|
|
this.workerLoading = true // 设置加载状态为true,表示正在加载
|
|
|
|
this.workerLoading = true // 设置加载状态为true,表示正在加载
|
|
|
|
getOrderAndWork(this.selectWork).then(response =>{
|
|
|
|
getOrderAndWork(this.selectWork).then(response =>{
|
|
|
|
console.log("这里是返回数据")
|
|
|
|
|
|
|
|
console.log(response)
|
|
|
|
|
|
|
|
this.splitData.push(response.data.workOrder)
|
|
|
|
this.splitData.push(response.data.workOrder)
|
|
|
|
this.productData.push(response.data.order)
|
|
|
|
this.productData.push(response.data.order)
|
|
|
|
|
|
|
|
|
|
|
|