zhangwencui
5 小时以前 a4203d1c0e24a69b3de3a4cf9f3cb1d727602224
src/views/procurementManagement/paymentEntry/index.vue
@@ -75,6 +75,7 @@
                                 v-model="scope.row.currentPaymentAmount"
                                 :disabled="!scope.row.editType"
                                 :precision="2"
                                 :max="scope.row.maxAmountTTotal + maxAmount"
                                 placeholder="请输入"
                                 clearable />
              </template>
@@ -447,6 +448,8 @@
      }
    });
  };
  const maxAmount = ref(0);
  const maxAmountTTotal = ref(0);
  // 展开行
  const expandChange = (row, expandedRows) => {
    if (expandedRows.length > 0) {
@@ -454,12 +457,17 @@
        expandedRowKeys.value = [];
        try {
          childrenLoading.value = true;
          maxAmount.value = row.unPaymentAmountTotal;
          registrationListPageGetById({ id: row.id }).then(res => {
            childrenLoading.value = false;
            const index = tableData.value.findIndex(item => item.id === row.id);
            if (index > -1) {
              expandData.value = res;
            }
            expandData.value = res.map(item => ({
              ...item,
              maxAmountTTotal: item.currentPaymentAmount,
            }));
            expandedRowKeys.value.push(row.id);
          });
        } catch (error) {