|
@@ -48,6 +48,24 @@ const sourceList = ref({
|
|
|
id: "",
|
|
|
},
|
|
|
});
|
|
|
+const productType = ref([
|
|
|
+ {
|
|
|
+ label: "产品",
|
|
|
+ value: "1",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "物料",
|
|
|
+ value: "2",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "产品",
|
|
|
+ value: "10",
|
|
|
+ },
|
|
|
+ {
|
|
|
+ label: "物料",
|
|
|
+ value: "20",
|
|
|
+ },
|
|
|
+]);
|
|
|
const loading = ref(false);
|
|
|
const selectConfig = computed(() => {
|
|
|
if (props.warehouseId) {
|
|
@@ -75,14 +93,24 @@ const config = computed(() => {
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
- label: "物品编码",
|
|
|
- prop: "productCode",
|
|
|
- width: 160,
|
|
|
+ label: "物品类型",
|
|
|
+ prop: "productType",
|
|
|
+ width: 140,
|
|
|
+ },
|
|
|
+ render(type) {
|
|
|
+ return proxy.dictValueLabel(type, productType.value);
|
|
|
},
|
|
|
},
|
|
|
{
|
|
|
attrs: {
|
|
|
label: "所属分类",
|
|
|
+ prop: "productClassifyName",
|
|
|
+ width: 140,
|
|
|
+ },
|
|
|
+ },
|
|
|
+ {
|
|
|
+ attrs: {
|
|
|
+ label: "物品编码",
|
|
|
prop: "productCode",
|
|
|
width: 160,
|
|
|
},
|
|
@@ -91,7 +119,7 @@ const config = computed(() => {
|
|
|
attrs: {
|
|
|
label: "物品名称",
|
|
|
prop: "productName",
|
|
|
- "min-width": 220,
|
|
|
+ "min-width": 180,
|
|
|
},
|
|
|
},
|
|
|
{
|