订单管理模块(工艺单选框添加)

master
wws 1 year ago
parent 6bdf3c0937
commit 23549160d2

@ -284,6 +284,15 @@
</el-select>
</el-form-item>
</el-col>
<el-col :offset="2" :span="6">
<!-- 选择工艺 -->
<el-form-item size="small" label="选择工艺:" class="my-select my-first">
<el-select v-model="splitForm.routeCode" placeholder="请选择工艺">
<el-option v-for="item in routes" :key="item.routeCode" :label="item.routeName"
:value="item.routeCode"></el-option>
</el-select>
</el-form-item>
</el-col>
</el-row>
<!-- 第三行 -->
<el-row v-for="(item, index) in formFields" :key="index">
@ -357,6 +366,8 @@
},
data() {
return {
// list
routes: [],
//
form: {},
//
@ -432,6 +443,7 @@
splitNum: null,
productDate: null,
shiftId: null,
routeCode: null,
formFields: [],
},
//
@ -531,7 +543,14 @@
/** 拆分提交按钮 */
batchBtn() {
//
if (this.splitForm.splitNum == null || this.splitForm.shiftId == null || this.splitForm.prodLineCode == null){
if (this.splitForm.splitNum == null || this.splitForm.shiftId == null || this.splitForm.prodLineCode == null || this.splitForm.routeCode == null){
this.$message({
message:'数据不能为空!',
type:'warning'
})
return;
}
if (this.splitForm.routeCode == null){
this.$message({
message:'数据不能为空!',
type:'warning'
@ -569,6 +588,7 @@
shiftId : this.splitForm.shiftId,
splitNum : this.splitForm.splitNum,
product : this.productData[0],
routeCode : this.splitForm.routeCode
}
let check = 1;
@ -808,6 +828,7 @@
getprodLineShift(row.orderType).then(response => {
this.proline = response.data.lines;
this.workShift = response.data.shifts;
this.routes = response.data.routes;
});
//
if (row.children !== undefined){

Loading…
Cancel
Save