|
|
@@ -747,18 +747,12 @@
|
|
|
formatter: (row, column) => {
|
|
|
return row.produceType && row.produceType.length
|
|
|
? row.produceType
|
|
|
- .map((item) => this.getDictV('productionType', item + ''))
|
|
|
+ .map((item) => this.getDictValue('生产类型', item + ''))
|
|
|
.join(',')
|
|
|
: '';
|
|
|
}
|
|
|
},
|
|
|
- // {
|
|
|
- // width: 120,
|
|
|
- // prop: 'approvalNumber',
|
|
|
- // align: 'center',
|
|
|
- // label: '批准文号',
|
|
|
- // showOverflowTooltip: true
|
|
|
- // },
|
|
|
+
|
|
|
{
|
|
|
width: 120,
|
|
|
prop: 'packingSpecification',
|
|
|
@@ -907,7 +901,7 @@
|
|
|
};
|
|
|
},
|
|
|
created() {
|
|
|
- this.getDictList('productionType');
|
|
|
+ this.requestDict('生产类型');
|
|
|
},
|
|
|
methods: {
|
|
|
handleGetBillDetail(row, type) {
|
|
|
@@ -916,20 +910,8 @@
|
|
|
this.$refs.billDetailDialogRef.open(row, type);
|
|
|
});
|
|
|
},
|
|
|
- getDictV(code, val) {
|
|
|
- if (!this.dictList[code]) return '';
|
|
|
- return this.dictList[code].find((item) => item.value == val)?.label;
|
|
|
- },
|
|
|
- async getDictList(code) {
|
|
|
- let { data: res } = await getByCode(code);
|
|
|
- this.dictList[code] = res.map((item) => {
|
|
|
- let values = Object.keys(item);
|
|
|
- return {
|
|
|
- value: values[0],
|
|
|
- label: item[values[0]]
|
|
|
- };
|
|
|
- });
|
|
|
- },
|
|
|
+
|
|
|
+
|
|
|
downloadFile(file) {
|
|
|
getFile({ objectName: file.storePath }, file.name);
|
|
|
},
|
|
|
@@ -1113,6 +1095,7 @@
|
|
|
// }
|
|
|
});
|
|
|
this.form.datasource = data;
|
|
|
+ this.allPrice= this.$store.state.order.allcountAmount;
|
|
|
let codeList = this.form.datasource
|
|
|
.filter((item) => item.productCode)
|
|
|
.map((item) => item.productCode);
|
|
|
@@ -1133,7 +1116,6 @@
|
|
|
);
|
|
|
});
|
|
|
|
|
|
- console.log(this.form.datasource, 'datadsds');
|
|
|
}
|
|
|
},
|
|
|
//选择产品
|