|
@@ -27,12 +27,19 @@
|
|
|
</template>
|
|
|
<template #size="{ item }">
|
|
|
<div v-if="item.productLength && item.productWidth && item.productHeight">
|
|
|
- <span>{{ item.productLength }}cm</span>*
|
|
|
- <span>{{ item.productWidth }}cm</span>*
|
|
|
- <span>{{ item.productHeight }}cm</span>
|
|
|
+ <span>{{ item.productLength }}</span>*
|
|
|
+ <span>{{ item.productWidth }}</span>*
|
|
|
+ <span>{{ item.productHeight }}</span>
|
|
|
</div>
|
|
|
<div v-else></div>
|
|
|
</template>
|
|
|
+ <template #prodTag="{ item }">
|
|
|
+ <div style="width: 100%">
|
|
|
+ <el-tag style="margin-right: 8px" type="success" v-for="(tag, index) in item.prodTags" :key="index">
|
|
|
+ {{ dictKeyValue(tag, contractTag) }}
|
|
|
+ </el-tag>
|
|
|
+ </div>
|
|
|
+ </template>
|
|
|
</byTable>
|
|
|
</div>
|
|
|
<el-dialog :title="modalType == 'add' ? '添加供应商' : '编辑供应商'" v-model="dialogVisible" width="800" v-loading="loading">
|
|
@@ -118,6 +125,9 @@ const { proxy } = getCurrentInstance();
|
|
|
const materialUnit = computed(
|
|
|
() => proxy.useUserStore().allDict["material_unit"]
|
|
|
);
|
|
|
+const contractTag = computed(
|
|
|
+ () => proxy.useUserStore().allDict["contract_prod_tag"]
|
|
|
+);
|
|
|
// const treeData = ref([]);
|
|
|
const companyData = ref([]);
|
|
|
const uploadFileUrl = ref(import.meta.env.VITE_APP_BASE_API + "/common/upload"); // 上传文件服务器地址
|
|
@@ -153,6 +163,10 @@ const selectConfig = computed(() => [
|
|
|
label: "部分采购",
|
|
|
value: "30",
|
|
|
},
|
|
|
+ {
|
|
|
+ label: "作废",
|
|
|
+ value: "88",
|
|
|
+ },
|
|
|
],
|
|
|
},
|
|
|
{
|
|
@@ -203,14 +217,14 @@ const config = computed(() => {
|
|
|
attrs: {
|
|
|
label: "物料名称",
|
|
|
prop: "productName",
|
|
|
- "min-width": 130,
|
|
|
+ "min-width": 150,
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
- label: "尺寸",
|
|
|
+ label: "尺寸 (cm)",
|
|
|
slot: "size",
|
|
|
- width: 180,
|
|
|
+ width: 140,
|
|
|
},
|
|
|
},
|
|
|
{
|
|
@@ -249,6 +263,13 @@ const config = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
+ label: "生产指示",
|
|
|
+ slot: "prodTag",
|
|
|
+ "min-width": 180,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
label: "申购人",
|
|
|
prop: "subcribeName",
|
|
|
width: 100,
|
|
@@ -356,6 +377,7 @@ const getList = async (req) => {
|
|
|
sourceList.value.data = res.rows.map((x) => ({
|
|
|
...x,
|
|
|
isCheck: true,
|
|
|
+ prodTags: x.prodTag ? x.prodTag.split(",") : [],
|
|
|
}));
|
|
|
sourceList.value.pagination.total = res.total;
|
|
|
console.log(res.total, "ss");
|