瀏覽代碼

费用调整

xy 3 天之前
父節點
當前提交
b1d40a2359

+ 3 - 3
yudao-ui-admin-vue3/src/views/pressure2/NonTaxBilling/detail.vue

@@ -88,7 +88,7 @@
             label-class-name="w-135px"
             class-name="w-380px"
             label="收费总额"
-            >{{ isEmpty(item.serviceAmount) ? '-' : item.serviceAmount }}</el-descriptions-item
+            >{{ isEmpty(item.shouldAmount) ? '-' : item.shouldAmount }}</el-descriptions-item
           >
         </el-descriptions>
       </template>
@@ -211,8 +211,8 @@ const init = () => {
         formData.value.contactPhone = firstItem.recipientPhone
         formData.value.email = firstItem.recipientEmail
         const total = res.list
-          .filter((item) => !isEmpty(item.serviceAmount))
-          .reduce((pre, cur) => new Decimal(pre).add(new Decimal(cur.serviceAmount)), new Decimal(0)).toString()
+          .filter((item) => !isEmpty(item.shouldAmount))
+          .reduce((pre, cur) => new Decimal(pre).add(new Decimal(cur.shouldAmount)), new Decimal(0)).toString()
           console.log('total:', total)
         formData.value.totalAmount = total
         formData.value.actualAmount = total

+ 3 - 4
yudao-ui-admin-vue3/src/views/pressure2/NonTaxBilling/index.vue

@@ -142,9 +142,9 @@
           {{ row.creatorUser ? row.creatorUser?.nickname : '-' }}
         </template>
       </el-table-column>
-       <el-table-column label="收费金额 (元)" align="center" prop="serviceAmount" min-width="150px">
+       <el-table-column label="收费金额 (元)" align="center" prop="shouldAmount" min-width="150px">
         <template #default="{ row }">
-          {{ row.serviceAmount ? row.serviceAmount : '-' }}
+          {{ row.shouldAmount ? row.shouldAmount : '-' }}
         </template>
       </el-table-column>
       <el-table-column label="已拆单金额 (元)" align="center" prop="splitAmount" min-width="150px">
@@ -181,7 +181,6 @@
         prop="paymentInstructionNo"
         min-width="150px"
       />
-      <!-- <el-table-column label="收费金额(元)" align="center" prop="serviceAmount" min-width="150px" /> -->
       <el-table-column label="设备数量" align="center" prop="equipNum" min-width="150px" />
       <el-table-column label="备注" align="center" prop="remark" min-width="150px" />
       <el-table-column label="退回原因" align="center" prop="returnReason" min-width="150px" />
@@ -298,7 +297,7 @@ const handleQuery = () => {
   getList()
 }
 const babybjornFn = (row: any) => {
-  if(Number(row.splitAmount) >= Number(row.serviceAmount)) {
+  if(Number(row.splitAmount) >= Number(row.shouldAmount)) {
     return false
   }else {
     return true