湿料计划管理(计划新增完成)

master
wws 1 year ago
parent b731bc8fe9
commit ec75a7a7a9

@ -118,7 +118,7 @@
@pagination="getList"
/>
<!-- 添加或修改湿料计划管理对话框 -->
<!-- 新增湿料计划模块 -->
<el-dialog :title="title" :visible.sync="open" width="1000px" append-to-body>
<el-form :model="form" ref="dynamicForm" label-width="80px">
<!-- 选择工单生产日期 -->
@ -143,6 +143,7 @@
:data="workOrderList"
tooltip-effect="dark"
style="width: 100%"
max-height="240"
@selection-change="handleSelectionChange">
<el-table-column type="selection" width="55"></el-table-column>
<el-table-column width="60" align="center" label="序号" type="index" :index="indexMethod"></el-table-column>
@ -159,7 +160,7 @@
<!-- 选择料罐 -->
<el-col :span="8">
<el-form-item size="small" label="选择料罐:">
<el-select @change="bucketSelectChange" v-model="form.bucketId" placeholder="请选择料罐">
<el-select 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>
@ -196,6 +197,7 @@
:data="newWorkOrderList"
tooltip-effect="dark"
style="width: 100%"
max-height="240"
@selection-change="handleSelectionChange">
<el-table-column type="selection" width="55"></el-table-column>
<el-table-column width="60" align="center" label="序号" type="index" :index="indexMethod"></el-table-column>
@ -287,16 +289,8 @@ export default {
this.getList();
},
methods: {
/** 新增-料罐选择校验 */
bucketSelectChange(e) {
//
console.log("这里是改变日期")
console.log(e)
},
/** 新增-确定按钮 */
batchBtn() {
console.log("这里是bms")
console.log(this.bmsList)
//
if (this.selectList == null || this.selectList === undefined){
this.$message({
@ -371,8 +365,6 @@ export default {
const selectedCodes = this.selectList.map(item => item.workorderCode);
this.workOrderList = this.workOrderList.filter(item => !selectedCodes.includes(item.workorderCode));
this.$message('点击了提交按钮!');
//
this.form.bucketId = null;
this.form.productId = null;
@ -547,6 +539,7 @@ export default {
const month = String(this.workOrderTime.getMonth() + 1).padStart(2, '0'); //
const day = String(this.workOrderTime.getDate()).padStart(2, '0'); //
const productDate = `${year}-${month}-${day}`;
getWorkOrderList(productDate).then(response => {
this.workOrderList = response.data;
//
@ -603,10 +596,13 @@ export default {
console.log("这里是工单list")
console.log(this.newWorkOrderList)
addWetPlan(this.newWorkOrderList).then(response => {
console.log("这里是返回的数据")
console.log(response)
if (response.code === 200){
this.$message({
message:'提交成功',
type:'success'
})
}
})
this.$modal.msgSuccess("新增成功");
this.open = false;
this.getList();
},

Loading…
Cancel
Save