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

yangwl
wws 1 year ago
parent 6bdf3c0937
commit 23549160d2

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

Loading…
Cancel
Save