소스 검색

借款申请回显更改

duy 2 년 전
부모
커밋
21384bc488
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 1
      src/views/expense/finReimburse/record.vue
  2. 3 2
      src/views/home/task/task-details.vue

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

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

+ 3 - 2
src/views/home/task/task-details.vue

@@ -79,9 +79,10 @@
                 <HcListItem title="归属人:" :content="otherInfo?.userNameVesting" />
                 <HcListItem v-if="otherInfo?.isDeductLoan === 1" title="是否抵消借款金额" :content="otherInfo?.isDeductLoan === 0 ? '否' : '是'" />
                 <HcListItem v-if="otherInfo?.isDeductLoan === 1" title="选择借款项" :content="otherInfo?.userNameVesting">
-                    <el-select v-model="otherInfo.deductLoanId" disabled>
+                    <!-- <el-select v-model="otherInfo.deductLoanId" disabled>
                         <el-option v-for="item in loanListData" :label="item.loanName" :value="item.id" />
-                    </el-select>
+                    </el-select> -->
+                    <HcListItem v-if="otherInfo?.isDeductLoan === 1" title="借款项" :content="otherInfo?.deductLoanInfo" />
                 </HcListItem>
                 <HcListItem v-if="otherInfo?.isDeductLoan === 1" title="归属冲抵后的实际报销金额:" :content="otherInfo?.frMoneyActual" />
                 <!-- <HcListItem title="备注信息:" content="备注数据"/> -->