gongchunyi
23 小时以前 c2ded572eff614cf2a259e263e60a5e8feb3e676
src/views/salesManagement/receiptPayment/index.vue
@@ -102,7 +102,6 @@
                  <el-button
                    link
                    type="primary"
                    size="small"
                    @click="changeEditType(scope.row)"
                    v-if="!scope.row.editType"
                    >编辑</el-button
@@ -110,7 +109,6 @@
                  <el-button
                    link
                    type="primary"
                    size="small"
                    @click="saveReceiptPayment(scope.row)"
                    v-if="scope.row.editType"
                    >保存</el-button
@@ -118,7 +116,6 @@
                  <el-button
                    link
                    type="primary"
                    size="small"
                    @click="delReceiptRecord(scope.row)"
                    >删除</el-button
                  >
@@ -207,6 +204,8 @@
        border
        style="width: 100%"
        size="small"
        show-summary
        :summary-method="summarizeFormTable"
      >
        <el-table-column type="index" label="序号" width="50" align="center"/>
        <el-table-column label="销售合同号" prop="salesContractNo" show-overflow-tooltip />
@@ -406,7 +405,7 @@
const summarizeMainTable = (param) => {
  return proxy.summarizeTable(
    param,
    ["receiptPaymentAmountTotal", "noReceiptAmount"],
    ["invoiceTotal", "pendingInvoiceTotal"],
    {
      ticketsNum: { noDecimal: true }, // 不保留小数
      futureTickets: { noDecimal: true }, // 不保留小数
@@ -417,6 +416,10 @@
const summarizeChildrenTable = (param) => {
  return proxy.summarizeTable(param, ["receiptPaymentAmount"]);
};
// 新增回款弹窗表合计方法
const summarizeFormTable = (param) => {
  return proxy.summarizeTable(param, ["pendingInvoiceTotal", "receiptPaymentAmount"]);
};
// 打开弹框
const openForm = () => {
  if (selectedRows.value.length === 0) {