|
@@ -60,10 +60,16 @@
|
|
|
: ''
|
|
|
"
|
|
|
/>
|
|
|
- <el-table-column prop="productCode" label="物品编码" />
|
|
|
+ <el-table-column prop="productCustomCode" label="物品编码" />
|
|
|
<el-table-column prop="productName" label="物品名称" />
|
|
|
<el-table-column prop="productSpec" label="规格型号" />
|
|
|
- <el-table-column prop="productUnit" label="单位" />
|
|
|
+ <el-table-column
|
|
|
+ prop="productUnit"
|
|
|
+ label="单位"
|
|
|
+ :formatter="
|
|
|
+ (row) => dictValueLabel(row.productUnit, productUnit)
|
|
|
+ "
|
|
|
+ />
|
|
|
<el-table-column prop="quantity" label="到货数量" />
|
|
|
<el-table-column prop="qualityQuantity" label="已质检" />
|
|
|
<el-table-column
|
|
@@ -383,6 +389,17 @@ const getDtl = (row) => {
|
|
|
};
|
|
|
|
|
|
getList();
|
|
|
+const productUnit = ref([]);
|
|
|
+const getDict = () => {
|
|
|
+ proxy.getDictOne(["unit"]).then((res) => {
|
|
|
+ productUnit.value = res["unit"].map((x) => ({
|
|
|
+ label: x.dictValue,
|
|
|
+ value: x.dictKey,
|
|
|
+ }));
|
|
|
+ });
|
|
|
+};
|
|
|
+getDict();
|
|
|
+
|
|
|
const selectData = ref([]);
|
|
|
const selectDataOne = ref([]);
|
|
|
|