|
@@ -18,10 +18,15 @@
|
|
|
<el-table-column
|
|
|
label="供应商类型"
|
|
|
align="left"
|
|
|
- prop="type"
|
|
|
+ prop="supplierType"
|
|
|
width="140"
|
|
|
- :formatter="(row) => dictDataEcho(row.type, supplyTypeList)"
|
|
|
- />
|
|
|
+ >
|
|
|
+ <template slot-scope="scope">
|
|
|
+ <span v-for="i in supplyTypeList" :key="i.dictKey">
|
|
|
+ <span v-if="scope.row.supplierType == i.dictKey">{{ i.dictValue }}</span>
|
|
|
+ </span>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
<el-table-column label="供应商名称" align="left" prop="supplierName" />
|
|
|
<el-table-column
|
|
|
label="产品类型"
|
|
@@ -214,6 +219,7 @@ export default {
|
|
|
materialCode: "",
|
|
|
materialType: "",
|
|
|
},
|
|
|
+
|
|
|
btnForm: {
|
|
|
otherButton: {
|
|
|
list: [
|
|
@@ -245,14 +251,14 @@ export default {
|
|
|
},
|
|
|
{
|
|
|
label: "供应商类型",
|
|
|
- prop: "type",
|
|
|
+ prop: "supplierType",
|
|
|
data: [],
|
|
|
},
|
|
|
],
|
|
|
queryDialog: false,
|
|
|
tableList: [],
|
|
|
loading: false,
|
|
|
- total: null,
|
|
|
+ total: 0,
|
|
|
open: false,
|
|
|
titleText: "add",
|
|
|
form: {
|
|
@@ -278,7 +284,7 @@ export default {
|
|
|
this.supplyTypeList = businessDictData.find(
|
|
|
(item) => item.code === "supplyType"
|
|
|
).children;
|
|
|
-
|
|
|
+ console.log(this.supplyTypeList)
|
|
|
this.selectConfig[1].data = this.supplyTypeList.map((item) => ({
|
|
|
label: item.dictValue,
|
|
|
value: item.dictKey,
|