湿料计划管理(计划修改逻辑-计划已接料则不允许修改)、工单管理模块(工单修改成型机显示问题解决)

yangwl
wws 1 year ago
parent 62d80d2138
commit 359b0f7bf2

@ -1,5 +1,13 @@
import request from '@/utils/request'
// 通过主计划id校验是否可拆分
export function checkChangePlan(id) {
return request({
url:'/plan/plan/checkChangePlan/'+id,
method:'get'
})
}
// 修改-提交按钮-修改湿料计划
export function updatePlanDetail(data) {
return request({

@ -794,8 +794,6 @@ export default {
},
/** 查询订单列表 */
getList() {
console.log("这里是日期范围")
console.log(this.queryParams.planDateArray)
this.loading = true
if (this.queryParams.planDateArray != null) {
this.queryParams.planDateStart = moment(this.queryParams.planDateArray[0]).format('YYYY-MM-DD')

@ -351,7 +351,8 @@ import {
getPlan,
delPlan,
addPlan,
updatePlan
updatePlan,
checkChangePlan
} from '@/api/plan/plan'
import moment from 'moment'
@ -750,8 +751,6 @@ export default {
getBMSList(productDate).then(response => {
if (response.data !== undefined) {
this.bmsList = response.data
console.log('这里是bms开始')
console.log(this.bmsList)
}
})
//
@ -768,43 +767,48 @@ export default {
},
/** 修改按钮操作 */
handleUpdate(row) {
console.log('这里是修改操作区域')
console.log(row)
//
this.reset()
this.selectBucketList = null
this.workOrderTime = null
this.workOrderList = []
this.selectProductList = null
this.newWorkOrderList = []
this.bmapId = null
//
this.form.planTime = new Date()
//
this.workLoading = true // true
// list
getPlanDetailList(row.id).then(response => {
if (response.data !== undefined) {
this.wetMaterialPlanList = response.data
this.refreshWorkTable = false // refreshProTablefalse
this.$nextTick(() => {
// 使$nextTickDOM
this.refreshWorkTable = true // refreshProTabletrue
this.workLoading = false // false
checkChangePlan(row.id).then(response => {
if (response.code == 500){
}else {
//
this.reset()
this.selectBucketList = null
this.workOrderTime = null
this.workOrderList = []
this.selectProductList = null
this.newWorkOrderList = []
this.bmapId = null
//
this.form.planTime = new Date()
//
this.workLoading = true // true
// list
getPlanDetailList(row.id).then(response => {
if (response.data !== undefined) {
this.wetMaterialPlanList = response.data
this.refreshWorkTable = false // refreshProTablefalse
this.$nextTick(() => {
// 使$nextTickDOM
this.refreshWorkTable = true // refreshProTabletrue
this.workLoading = false // false
})
}
})
// list
getBucketList().then(response => {
this.selectBucketList = response.data
})
// list
getProductList().then(response => {
this.selectProductList = response.data
})
this.dialogVisible = true
}
})
// list
getBucketList().then(response => {
this.selectBucketList = response.data
})
// list
getProductList().then(response => {
this.selectProductList = response.data
})
this.dialogVisible = true
},
/** 修改-提交按钮 */
updateForm() {
@ -840,8 +844,6 @@ export default {
return
}
console.log('这里是工单list')
console.log(this.newWorkOrderList)
addWetPlan(this.newWorkOrderList).then(response => {
if (response.code === 200) {
this.$message({

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

Loading…
Cancel
Save