yusheng 10 месяцев назад
Родитель
Сommit
f54adc0585

+ 21 - 8
src/views/bpm/outgoingManagement/details.vue

@@ -231,7 +231,10 @@
               :show-overflow-tooltip="true"
             >
             </el-table-column>
-            <el-table-column label="单价" prop="price" align="center">
+            <el-table-column label="单价" prop="price" align="center"
+            v-if="isPrice == 1"
+            
+            >
               <template slot-scope="{ row }">
                 <template>
                   {{ row.price ? row.price : ' ' + '元' }}/{{ row.measureUnit }}
@@ -239,13 +242,14 @@
               </template>
             </el-table-column>
             <el-table-column
-                label="库存"
-                prop="stockNum"
-                align="center"
-                :show-overflow-tooltip="true"
-              >
-              </el-table-column>
+              label="库存"
+              prop="stockNum"
+              align="center"
+              :show-overflow-tooltip="true"
+            >
+            </el-table-column>
             <el-table-column
+            v-if="isPrice == 1"
               label="金额"
               align="center"
               prop="contentImage"
@@ -487,6 +491,8 @@
     qualityStatus
   } from '@/utils/dict/index';
   import { mapGetters, mapActions } from 'vuex';
+  import { parameterGetByCode } from '@/api/main/index.js';
+
   export default {
     directives: {
       'el-table-infinite-scroll': elTableInfiniteScroll
@@ -524,7 +530,8 @@
         infoData: {},
         stepsTitle: '已完成',
         stepsStatus: 'success',
-        active: 0
+        active: 0,
+        isPrice:1
       };
     },
     watch: {
@@ -582,6 +589,12 @@
     },
     created() {
       this.getFieldModel();
+      //仓库出入库是否显示金额(0:不显示 1:显示)
+      parameterGetByCode({
+        code: 'wms_price'
+      }).then((res) => {
+        this.isPrice = res.value;
+      });
       this.requestDict('类型用途');
       this.getAllCategoryType();
       this._getInfo(this.businessId);

+ 17 - 4
src/views/bpm/outgoingManagement/outbound.vue

@@ -135,7 +135,10 @@
                 :show-overflow-tooltip="true"
               >
               </el-table-column>
-              <el-table-column label="单价" prop="price" align="center">
+              <el-table-column label="单价" prop="price" align="center"
+            v-if="isPrice == 1"
+              
+              >
                 <template slot-scope="{ row }">
                   <template>
                     {{ row.price ? row.price : ' ' + '元' }}/{{
@@ -145,7 +148,10 @@
                 </template>
               </el-table-column>
 
-              <el-table-column label="金额" align="center" prop="totalMoney" :show-overflow-tooltip="true">
+              <el-table-column label="金额" align="center" prop="totalMoney" :show-overflow-tooltip="true"
+            v-if="isPrice == 1"
+              
+              >
                 <template slot-scope="{ row, $index }">
                   {{ row.totalMoney ? row.totalMoney : 0 }}
                 </template>
@@ -270,6 +276,7 @@ import selectTree from '@/components/selectTree';
 import AssetsDialog from './components/AssetsDialog.vue';
 import { deepClone } from '@/components/FormGenerator/utils/index';
 import { mapGetters } from 'vuex';
+import { parameterGetByCode } from '@/api/main/index.js';
 
 
 export default {
@@ -350,7 +357,8 @@ export default {
           trigger: 'change'
         }
       },
-      llrLsit: []
+      llrLsit: [],
+      isPrice:1
     };
   },
   computed: {
@@ -360,7 +368,12 @@ export default {
     }
   },
   async created() {
-
+     //仓库出入库是否显示金额(0:不显示 1:显示)
+     parameterGetByCode({
+        code: 'wms_price'
+      }).then((res) => {
+        this.isPrice = res.value;
+      });
     this.getFieldModel();
     this.getListItems();
     this.initDeptData().then(() => {

+ 17 - 2
src/views/bpm/stockManagement/details.vue

@@ -245,7 +245,10 @@
               :show-overflow-tooltip="true"
             >
             </el-table-column>
-            <el-table-column label="单价" prop="unitPrice" align="center">
+            <el-table-column label="单价" prop="unitPrice" align="center"
+            v-if="isPrice == 1"
+            
+            >
               <template slot-scope="{ row }">
                 <template>
                   {{ row.unitPrice ? row.unitPrice + '/元' : '' }}
@@ -257,6 +260,7 @@
               label="金额"
               align="center"
               prop="totalMoney"
+              v-if="isPrice == 1"
               :show-overflow-tooltip="true"
             >
               <template slot-scope="{ row, $index }">
@@ -612,6 +616,8 @@
     qualityResults
   } from '@/utils/dict/index';
   import { mapGetters, mapActions } from 'vuex';
+  import { parameterGetByCode } from '@/api/main/index.js';
+
   export default {
     directives: {
       'el-table-infinite-scroll': elTableInfiniteScroll
@@ -659,7 +665,8 @@
         infoData: {},
         stepsTitle: '已完成',
         stepsStatus: 'success',
-        active: 0
+        active: 0,
+        isPrice:1
       };
     },
     watch: {
@@ -705,6 +712,14 @@
       this.getAllCategoryType();
       this._getInfo(this.businessId);
     },
+    created(){
+      //仓库出入库是否显示金额(0:不显示 1:显示)
+      parameterGetByCode({
+        code: 'wms_price'
+      }).then((res) => {
+        this.isPrice = res.value;
+      });
+    },
     methods: {
       // 获取动态表头
       getFieldModel() {