|
|
|
@ -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){
|
|
|
|
|