yusheng пре 10 месеци
родитељ
комит
21958e3a4b
1 измењених фајлова са 18 додато и 8 уклоњено
  1. 18 8
      src/views/warehouseManagement/stockLedger/components/item-list.vue

+ 18 - 8
src/views/warehouseManagement/stockLedger/components/item-list.vue

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