Lijy 2 月之前
父節點
當前提交
54a2b98af8

+ 5 - 3
fhKeeper/formulahousekeeper/customerBuler-crm/src/pages/contract/component/addEditorTwo.vue

@@ -41,7 +41,9 @@ function calculateTaxAmount(index: number) {
     return
   }
 
-  paymentPlan.value[index].taxAmount = +((amount * taxRate / 100).toFixed(2))
+  const shui = taxRate / 100
+  const zhi = amount / (1 + shui) * shui
+  paymentPlan.value[index].taxAmount = +(zhi.toFixed(2))
 }
 
 // 上传附件
@@ -99,9 +101,9 @@ defineExpose({
             placeholder="回款日期" style="width: 150px;" />
         </template>
       </el-table-column>
-      <el-table-column label="回款金额" width="180">
+      <el-table-column label="金额(含税)" width="180">
         <template #default="scope">
-          <el-input v-model="scope.row.amount" v-enter-number placeholder="回款金额" style="width: 150px;">
+          <el-input v-model="scope.row.amount" v-enter-number placeholder="金额(含税)" style="width: 150px;">
             <template #prefix>
               <el-text class="mx-1" type="info">¥</el-text>
             </template>