|
|
|
@ -159,7 +159,7 @@
|
|
|
|
|
<!-- 选择料罐 -->
|
|
|
|
|
<el-col :span="8">
|
|
|
|
|
<el-form-item size="small" label="选择料罐:">
|
|
|
|
|
<el-select v-model="form.bucketId" placeholder="请选择料罐">
|
|
|
|
|
<el-select @change="bucketSelectChange" v-model="form.bucketId" placeholder="请选择料罐">
|
|
|
|
|
<el-option v-for="item in selectBucketList" :key="item.bucketId" :label="item.bucketName"
|
|
|
|
|
:value="item.bucketId"></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
@ -217,7 +217,7 @@
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import { getBMSList,getProductList,getBucketList,getWorkOrderList,listPlan, getPlan, delPlan, addPlan, updatePlan } from "@/api/mes/plan";
|
|
|
|
|
import { addWetPlan,getBMSList,getProductList,getBucketList,getWorkOrderList,listPlan, getPlan, delPlan, addPlan, updatePlan } from "@/api/mes/plan";
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
name: "Plan",
|
|
|
|
@ -287,6 +287,10 @@ export default {
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
methods: {
|
|
|
|
|
/** 新增-料罐选择校验 */
|
|
|
|
|
bucketSelectChange(e) {
|
|
|
|
|
// 如果当天
|
|
|
|
|
},
|
|
|
|
|
/** 新增-提交按钮 */
|
|
|
|
|
batchBtn() {
|
|
|
|
|
// 数据判空
|
|
|
|
@ -543,7 +547,10 @@ export default {
|
|
|
|
|
this.refreshWorkTable = true; // 立即将refreshProTable设置为true,显示表格
|
|
|
|
|
this.workLoading = false; // 设置加载状态为false,表示加载完成
|
|
|
|
|
});
|
|
|
|
|
console.log("这里是order")
|
|
|
|
|
console.log(this.workOrderList)
|
|
|
|
|
})
|
|
|
|
|
// 获取今天已分配的班次、料罐、物料信息list
|
|
|
|
|
getBMSList(productDate).then(response => {
|
|
|
|
|
this.bmsList = response.data;
|
|
|
|
|
})
|
|
|
|
@ -580,7 +587,12 @@ export default {
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log("这里是工单list")
|
|
|
|
|
console.log(this.newWorkOrderList)
|
|
|
|
|
addWetPlan(this.newWorkOrderList).then(response => {
|
|
|
|
|
console.log("这里是返回的数据")
|
|
|
|
|
console.log(response)
|
|
|
|
|
})
|
|
|
|
|
this.$modal.msgSuccess("新增成功");
|
|
|
|
|
this.open = false;
|
|
|
|
|
this.getList();
|
|
|
|
|