chenrui hai 5 meses
pai
achega
000324dc72

+ 10 - 7
src/views/financialManagement/financialCollection/list.vue

@@ -81,7 +81,7 @@
           ,已退金额
           <strong>{{ totalData&&(totalData.refundedAmount || totalData.refundedAmount==0) ? toThousands(totalData.refundedAmount) : '--' }}</strong>
           <a-tooltip placement="bottom" title="实收金额=已收金额-退款中金额-已退金额">,<span style="color:#ED1c24;">实收金额</span><a-icon type="question-circle" style="margin:0 10px 0 5px;color:#ED1c24;"/></a-tooltip>
-          <strong style="color:#ED1c24;" v-if="receivedPriceFlag">{{ '¥'+receivedPrice }}</strong>
+          <strong style="color:#ED1c24;" v-if="receivedPriceFlag">{{ receivedPrice?toThousands(receivedPrice):'--' }}</strong>
           <span style="color:#ED1c24;" v-else>--</span>
         </div>
       </a-alert>
@@ -266,7 +266,8 @@ export default {
         })
       },
       tabPaneData: [], // tab列表
-      rowSelectionInfo: null// 已选数据
+      rowSelectionInfo: null, // 已选数据
+      receivedPrice: null// 实收金额
     }
   },
   computed: {
@@ -284,14 +285,14 @@ export default {
     receivedPriceFlag () {
       const isShow = this.totalData && (this.totalData.settledAmount || this.totalData.settledAmount == 0) && (this.totalData.refundingAmount || this.totalData.refundingAmount == 0) && (this.totalData.refundedAmount || this.totalData.refundedAmount == 0)
       return isShow
-    },
-    // 实收金额
-    receivedPrice () {
-      const numInfo = (this.totalData.settledAmount * 100 - this.totalData.refundingAmount * 100 - this.totalData.refundedAmount * 100) / 100
-      return numInfo.toFixed(2)
     }
   },
   methods: {
+    // 计算实收金额
+    setReceivedPrice () {
+      const numInfo = (this.totalData.settledAmount * 100 - this.totalData.refundingAmount * 100 - this.totalData.refundedAmount * 100) / 100
+      this.receivedPrice = numInfo
+    },
     ...mapActions(['GetSettleAccountState']),
     // 关联单详情弹框关闭
     handleDetailClose () {
@@ -336,6 +337,7 @@ export default {
           this.totalData = Object.assign(this.totalData, res.data)
           const tab = this.tabPaneData.find(item => item.bizType == this.queryParam.bizType)
           tab.countNum = this.totalData.count || 0
+          this.setReceivedPrice()
         }
       })
     },
@@ -490,6 +492,7 @@ export default {
     '$store.state.app.winHeight' (newValue, oldValue) { //  窗口变更时,需同时更改表格高度
       this.setTableH()
     }
+
   },
   mounted () {
     if (!this.$store.state.app.isNewTab) { // 页签刷新时调用

+ 1 - 1
src/views/numsGoodsShelves/onlinePayInvoice/detail.vue

@@ -174,7 +174,7 @@ export default {
         })
       },
       detailData: null, //  详情数据
-      isShowBisiceInfo: true, // 显示基础内容
+      isShowBisiceInfo: false, // 显示基础内容
       countData: null, // 统计信息
       columns: [
         { title: '序号', dataIndex: 'no', width: '4%', align: 'center' },