湿料计划管理(新增init)

yangwl
wws 1 year ago
parent 077588bdec
commit d68ed48456

@ -1,5 +1,14 @@
import request from '@/utils/request' import request from '@/utils/request'
// 新增-提交按钮-提交湿料计划
export function addWetPlan(data) {
return request({
url: '/mes/plan/addWetPlan',
method: 'post',
data: data
})
}
// 通过计划日期获取已分配的料罐、物料、班次信息list // 通过计划日期获取已分配的料罐、物料、班次信息list
export function getBMSList(planTime) { export function getBMSList(planTime) {
return request({ return request({

@ -159,7 +159,7 @@
<!-- 选择料罐 --> <!-- 选择料罐 -->
<el-col :span="8"> <el-col :span="8">
<el-form-item size="small" label="选择料罐:"> <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" <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>
@ -217,7 +217,7 @@
</template> </template>
<script> <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 { export default {
name: "Plan", name: "Plan",
@ -287,6 +287,10 @@ export default {
this.getList(); this.getList();
}, },
methods: { methods: {
/** 新增-料罐选择校验 */
bucketSelectChange(e) {
//
},
/** 新增-提交按钮 */ /** 新增-提交按钮 */
batchBtn() { batchBtn() {
// //
@ -543,7 +547,10 @@ export default {
this.refreshWorkTable = true; // refreshProTabletrue this.refreshWorkTable = true; // refreshProTabletrue
this.workLoading = false; // false this.workLoading = false; // false
}); });
console.log("这里是order")
console.log(this.workOrderList)
}) })
// list
getBMSList(productDate).then(response => { getBMSList(productDate).then(response => {
this.bmsList = response.data; this.bmsList = response.data;
}) })
@ -580,7 +587,12 @@ export default {
return; return;
} }
console.log("这里是工单list")
console.log(this.newWorkOrderList)
addWetPlan(this.newWorkOrderList).then(response => {
console.log("这里是返回的数据")
console.log(response)
})
this.$modal.msgSuccess("新增成功"); this.$modal.msgSuccess("新增成功");
this.open = false; this.open = false;
this.getList(); this.getList();

Loading…
Cancel
Save