|
|
|
@ -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 // 先将refreshProTable设置为false,隐藏表格
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
// 使用$nextTick来等待DOM更新完成
|
|
|
|
|
this.refreshWorkTable = true // 立即将refreshProTable设置为true,显示表格
|
|
|
|
|
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 // 先将refreshProTable设置为false,隐藏表格
|
|
|
|
|
this.$nextTick(() => {
|
|
|
|
|
// 使用$nextTick来等待DOM更新完成
|
|
|
|
|
this.refreshWorkTable = true // 立即将refreshProTable设置为true,显示表格
|
|
|
|
|
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({
|
|
|
|
|