Browse Source

冲抵金额计算

duy 2 years ago
parent
commit
866afa034e

+ 1 - 1
src/views/expense/finReimburse/record.vue

@@ -285,7 +285,7 @@ const changeDeductLoan = (val)=>{
  if (val) {
  if (val) {
     loanListData.value.forEach((ele)=>{
     loanListData.value.forEach((ele)=>{
         if (ele.id === val) {
         if (ele.id === val) {
-            detailsData.value.frMoneyActual = totalFrMoney.value - Number(ele.loanOutstandingBalance) > 0 ? totalFrMoney.value - Number(ele.loanOutstandingBalance) : null
+            detailsData.value.frMoneyActual = totalFrMoney.value - Number(ele.loanMoney) > 0 ? totalFrMoney.value - Number(ele.loanMoney) : null
         }
         }
     })
     })
  } else {
  } else {

+ 1 - 1
src/views/home/task/task-details.vue

@@ -84,7 +84,7 @@
                     </el-select> -->
                     </el-select> -->
                 <HcListItem v-if="otherInfo?.isDeductLoan === 1" title="借款项" :content="otherInfo?.deductLoanInfo" />
                 <HcListItem v-if="otherInfo?.isDeductLoan === 1" title="借款项" :content="otherInfo?.deductLoanInfo" />
            
            
-                <HcListItem v-if="otherInfo?.isDeductLoan === 1" title="归属冲抵后的实际报销金额:" :content="otherInfo?.frMoneyActual" />
+                <HcListItem v-if="otherInfo?.isDeductLoan === 1" title="归属冲抵后的实际报销金额:" :content="otherInfo?.loanOutstandingBalance" />
                 <!-- <HcListItem title="备注信息:" content="备注数据"/> -->
                 <!-- <HcListItem title="备注信息:" content="备注数据"/> -->
             </div>
             </div>
             <!-- 出差审批 -->
             <!-- 出差审批 -->