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