|
@@ -236,6 +236,7 @@
|
|
|
import tabMixins from '@/mixins/tableColumnsMixin';
|
|
import tabMixins from '@/mixins/tableColumnsMixin';
|
|
|
|
|
|
|
|
import { qualityStatus, qualityResults } from '@/utils/dict/index';
|
|
import { qualityStatus, qualityResults } from '@/utils/dict/index';
|
|
|
|
|
+ import { parameterGetByCode } from '@/api/sys/index.js';
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
mixins: [tabMixins],
|
|
mixins: [tabMixins],
|
|
@@ -274,11 +275,18 @@
|
|
|
columnsVersion: 1,
|
|
columnsVersion: 1,
|
|
|
isLoading: false,
|
|
isLoading: false,
|
|
|
exportErrorDioalogVisible: false,
|
|
exportErrorDioalogVisible: false,
|
|
|
- errorData: []
|
|
|
|
|
|
|
+ errorData: [],
|
|
|
|
|
+ isPrice: 1
|
|
|
};
|
|
};
|
|
|
},
|
|
},
|
|
|
created() {
|
|
created() {
|
|
|
this.getFieldModel();
|
|
this.getFieldModel();
|
|
|
|
|
+ //仓库出入库是否显示金额(0:不显示 1:显示)
|
|
|
|
|
+ parameterGetByCode({
|
|
|
|
|
+ code: 'wms_price'
|
|
|
|
|
+ }).then((res) => {
|
|
|
|
|
+ this.isPrice = res.value;
|
|
|
|
|
+ });
|
|
|
},
|
|
},
|
|
|
computed: {
|
|
computed: {
|
|
|
// 表格列配置
|
|
// 表格列配置
|
|
@@ -545,11 +553,13 @@
|
|
|
showOverflowTooltip: true
|
|
showOverflowTooltip: true
|
|
|
}
|
|
}
|
|
|
: '',
|
|
: '',
|
|
|
- {
|
|
|
|
|
- prop: 'unitPrice',
|
|
|
|
|
- label: '单价',
|
|
|
|
|
- showOverflowTooltip: true
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ this.isPrice == 1
|
|
|
|
|
+ ? {
|
|
|
|
|
+ prop: 'unitPrice',
|
|
|
|
|
+ label: '单价',
|
|
|
|
|
+ showOverflowTooltip: true
|
|
|
|
|
+ }
|
|
|
|
|
+ : ''
|
|
|
];
|
|
];
|
|
|
if (this.selectedDime == 1) {
|
|
if (this.selectedDime == 1) {
|
|
|
return arr.filter((item) => item != '').concat(this.newColumns);
|
|
return arr.filter((item) => item != '').concat(this.newColumns);
|
|
@@ -801,9 +811,9 @@
|
|
|
errorUpload(response) {
|
|
errorUpload(response) {
|
|
|
this.isLoading = false;
|
|
this.isLoading = false;
|
|
|
},
|
|
},
|
|
|
- uploadFile() {
|
|
|
|
|
|
|
+ uploadFile() {
|
|
|
this.$refs.importDialogRef.open();
|
|
this.$refs.importDialogRef.open();
|
|
|
- },
|
|
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
watch: {
|
|
watch: {
|