Browse Source

销售合同列表:已到账金额字段更改

lxf 1 year ago
parent
commit
81ccac7313
1 changed files with 7 additions and 7 deletions
  1. 7 7
      src/views/salesMange/saleContract/contract/index.vue

+ 7 - 7
src/views/salesMange/saleContract/contract/index.vue

@@ -21,10 +21,10 @@
             <span>{{ moneyFormat(item.amount, 2) }}</span>
           </div>
         </template>
-        <template #refundMoney="{ item }">
+        <template #sumClaimMoney="{ item }">
           <div>
             <span style="padding-right: 4px">{{ item.currency }}</span>
-            <span>{{ moneyFormat(item.refundMoney, 2) }}</span>
+            <span>{{ moneyFormat(item.sumClaimMoney, 2) }}</span>
           </div>
         </template>
         <template #scale="{ item }">
@@ -371,7 +371,7 @@ const config = computed(() => {
     {
       attrs: {
         label: "已到账金额",
-        slot: "refundMoney",
+        slot: "sumClaimMoney",
         width: 120,
       },
     },
@@ -560,8 +560,8 @@ const getList = async (req) => {
   });
 };
 getDict();
-if(route.query.code){
-    sourceList.value.pagination.keyword=route.query.code
+if (route.query.code) {
+  sourceList.value.pagination.keyword = route.query.code;
 }
 getList();
 const newContract = () => {
@@ -610,8 +610,8 @@ const statisticsTwo = (label, index) => {
 };
 const computeScale = (item) => {
   let text = 0;
-  if (item.refundMoney && Number(item.refundMoney) > 0 && item.amount && Number(item.amount) > 0) {
-    text = parseFloat(Number(item.refundMoney) / Number(item.amount)).toFixed(2);
+  if (item.sumClaimMoney && Number(item.sumClaimMoney) > 0 && item.amount && Number(item.amount) > 0) {
+    text = parseFloat((Number(item.sumClaimMoney) / Number(item.amount)) * 100).toFixed(2);
   }
   return text + "%";
 };