Lijy 2 months ago
parent
commit
8cbda89236

+ 4 - 2
fhKeeper/formulahousekeeper/customerBuler-crm-h5/src/pages/pageComponents/contract/addEditor.vue

@@ -31,7 +31,7 @@
                     readonly />
                 </template>
               </van-cell>
-              <van-cell title="回款金额">
+              <van-cell title="金额(含税)">
                 <template #default>
                   <van-field v-model="item.amount" type="digit" input-align="right" placeholder="请输入金额"
                     class="resetStyles" />
@@ -199,7 +199,9 @@ function inputNumberChange(index) {
     return
   }
 
-  paymentPlanList.value[index].taxAmount = +((amount * taxRate / 100).toFixed(2))
+  const shui = taxRate / 100
+  const zhi = amount / (1 + shui) * shui
+  paymentPlanList.value[index].taxAmount = +(zhi.toFixed(2))
 }
 
 function onConfirm(val) {