Forráskód Böngészése

fix(出库管理): 单价列字段改为 unitPrice 并修正显示格式

lihaiting 1 hete
szülő
commit
532d7a891e

+ 16 - 16
src/views/bpm/outgoingManagement/details.vue

@@ -471,7 +471,7 @@
             fixed: 'left'
           }
         ];
-        
+
         // 出库单号 - 条件显示
         if (this.isIds) {
           columns.push({
@@ -482,7 +482,7 @@
             showOverflowTooltip: true
           });
         }
-        
+
         // 基础列
         columns.push(
           {
@@ -506,7 +506,7 @@
             showOverflowTooltip: true
           }
         );
-        
+
         // 级别 - 仅 clientEnvironmentId == 4 时显示
         if (this.clientEnvironmentId == 4) {
           columns.push({
@@ -515,7 +515,7 @@
             align: 'center'
           });
         }
-        
+
         // 型号、规格、牌号
         columns.push(
           {
@@ -538,7 +538,7 @@
             showOverflowTooltip: true
           }
         );
-        
+
         // 动态列
         this.newColumns.forEach(item => {
           columns.push({
@@ -549,7 +549,7 @@
             showOverflowTooltip: item.showOverflowTooltip
           });
         });
-        
+
         // 批次号
         columns.push({
           label: '批次号',
@@ -558,7 +558,7 @@
           align: 'center',
           showOverflowTooltip: true
         });
-        
+
         // 包装数量 - 根据 clientEnvironmentId 显示不同内容
         if (this.clientEnvironmentId == 3) {
           columns.push({
@@ -574,7 +574,7 @@
             width: 80
           });
         }
-        
+
         // 最小包装单元/单位 - 根据 clientEnvironmentId 显示
         if (this.clientEnvironmentId == 3) {
           columns.push({
@@ -590,7 +590,7 @@
             prop: 'packingUnit'
           });
         }
-        
+
         // 计量数量、计量单位
         columns.push(
           {
@@ -603,7 +603,7 @@
             prop: 'measureUnit'
           }
         );
-        
+
         // 重量、重量单位
         columns.push(
           {
@@ -619,7 +619,7 @@
             showOverflowTooltip: true
           }
         );
-        
+
         // 机型、颜色
         columns.push(
           {
@@ -633,7 +633,7 @@
             width: 150
           }
         );
-        
+
         // 单价 - 条件显示
         if (this.isPrice == 1) {
           columns.push({
@@ -643,7 +643,7 @@
             slot: 'singlePrice'
           });
         }
-        
+
         // 锁定数量、库存
         columns.push(
           {
@@ -658,7 +658,7 @@
             showOverflowTooltip: true
           }
         );
-        
+
         // 金额 - 条件显示
         if (this.isPrice == 1) {
           columns.push({
@@ -669,7 +669,7 @@
             slot: 'totalMoney'
           });
         }
-        
+
         // 采购原因 - 仅 clientEnvironmentId == 4 时显示
         if (this.clientEnvironmentId == 4) {
           columns.push({
@@ -679,7 +679,7 @@
             showOverflowTooltip: true
           });
         }
-        
+
         return columns;
       }
     },

+ 5 - 5
src/views/bpm/outgoingManagement/outbound.vue

@@ -199,8 +199,8 @@
               :needPage="false"
             >
               <!-- 单价列 -->
-              <template v-if="isPrice == 1" v-slot:price="{ row }">
-                {{ row.price ? row.price : ' ' + '元' }}/{{ row.measureUnit }}
+              <template v-if="isPrice == 1" v-slot:unitPrice="{ row }">
+                {{ row.unitPrice ? row.unitPrice + '元' : ' '}}/{{ row.measureUnit }}
               </template>
               <!-- 金额列 -->
               <template v-if="isPrice == 1" v-slot:totalMoney="{ row }">
@@ -663,9 +663,9 @@
         if (this.isPrice == 1) {
           columns.push({
             label: '单价',
-            prop: 'price',
+            prop: 'unitPrice',
             align: 'center',
-            slot: 'price'
+            slot: 'unitPrice'
           });
         }
 
@@ -736,7 +736,7 @@
       this.getFieldModel();
       this.getListItems();
       this.initDeptData().then(() => {
-        
+
         if(this.bizType != 10) {
           console.log('created~~~~~~~~~~11111111111111111111111111111111')
           this.initFormData();