|
@@ -102,13 +102,13 @@
|
|
|
<!-- 添加或修改流程配置头对话框 -->
|
|
|
<el-dialog :title="title" :visible.sync="open" width="700px" append-to-body>
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
|
- <el-form-item label="物料" prop="skuType" v-if="form.skuTypeFlag !== 'Hidden'">
|
|
|
- <el-select style="width: 100%" v-model="form.skuType" placeholder="请选择物料" clearable size="small">
|
|
|
+ <el-form-item label="物料" prop="sku" v-if="form.skuTypeFlag !== 'Hidden'">
|
|
|
+ <el-select style="width: 100%" v-model="form.sku" placeholder="请选择物料" clearable size="small">
|
|
|
<el-option
|
|
|
v-for="dict in skuTypeCombo"
|
|
|
- :key="dict.itemCode"
|
|
|
- :label="dict.itemName"
|
|
|
- :value="dict.itemCode"
|
|
|
+ :key="dict.sku"
|
|
|
+ :label="dict.desc1"
|
|
|
+ :value="dict.sku"
|
|
|
/>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
@@ -196,7 +196,7 @@
|
|
|
flowConfigLotatt
|
|
|
} from "@/api/ams/flowConfig";
|
|
|
import {choseFlow, exec} from "@/api/ams/lineCall";
|
|
|
- import {querySkuTypeDict} from "@/api/base/skuType";
|
|
|
+ import {querySkuDict} from "@/api/base/baseSku";
|
|
|
import {querySupplierDict} from "@/api/base/supplier";
|
|
|
import {treeselect} from "@/api/base/locationInfo";
|
|
|
import {inputTag} from "@/utils/combo/dict";
|
|
@@ -279,7 +279,7 @@
|
|
|
this.form = {
|
|
|
id: null,
|
|
|
flowName: null,
|
|
|
- skuType: '',
|
|
|
+ sku: '',
|
|
|
skuTypeFlag: 'Choice',
|
|
|
qty: null,
|
|
|
qtyFlag: 'Choice',
|
|
@@ -336,6 +336,7 @@
|
|
|
this.form.qtyFlag = response.qtyFlag
|
|
|
this.form.weightFlag = response.weightFlag
|
|
|
this.form.supplierFlag = response.supplierFlag
|
|
|
+ this.skuTypeCombo = response.skuList;
|
|
|
this.open = true;
|
|
|
this.title = "线边呼叫";
|
|
|
});
|
|
@@ -379,6 +380,7 @@
|
|
|
lineCallDetailsFormList.push(obj)
|
|
|
}
|
|
|
this.form.lineCallDetailsFormList = lineCallDetailsFormList
|
|
|
+ console.log(this.form)
|
|
|
exec(this.form).then(response => {
|
|
|
if (response.code === 200) {
|
|
|
this.$modal.msgSuccess("执行成功");
|
|
@@ -424,11 +426,6 @@
|
|
|
return data.label.indexOf(value) !== -1;
|
|
|
},
|
|
|
init() {
|
|
|
- // 初始化物料分类
|
|
|
- querySkuTypeDict().then(response => {
|
|
|
- this.skuTypeCombo = response.data;
|
|
|
- });
|
|
|
-
|
|
|
// 初始化供应商
|
|
|
querySupplierDict().then(response => {
|
|
|
this.supplierCombo = response.data;
|