gaoluyang
17 小时以前 15375a133f255a93a9734d9c66fb0b90dfd12341
src/views/salesManagement/receiptPayment/index.vue
@@ -49,7 +49,7 @@
      <div class="actions">
        <div></div>
        <div>
          <el-button type="primary" icon="Plus" @click="openForm('add')">
          <el-button type="primary" @click="openForm('add')">
            新增回款
          </el-button>
          <el-button icon="Download" @click="handleOut"> 导出 </el-button>
@@ -438,13 +438,20 @@
  getList();
};
const getList = () => {
  expandedRowKeys.value = [];
  tableLoading.value = true;
  bindInvoiceNoRegPage({ ...searchForm, ...page })
    .then((res) => {
      tableLoading.value = false;
      tableData.value = res.data.records;
      total.value = res.data.total;
         if (expandedRowKeys.value.length > 0) {
            const arr = []
            const index = tableData.value.findIndex(item => item.id === expandedRowKeys.value[0]);
            if (index > -1) {
               arr.push(tableData.value[index]);
               expandChange(tableData.value[index], arr)
            }
         }
    })
    .catch(() => {
      tableLoading.value = false;
@@ -506,10 +513,8 @@
    proxy.$modal.msgError("请选择一条数据");
    return;
  }
  //
  console.log("(selectedRows.value", selectedRows.value);
  if (selectedRows.value[0].noReceiptAmount === 0) {
    proxy.$modal.msgError("待回款金额为0元");
  if (selectedRows.value[0].noReceiptAmount == 0) {
    proxy.$modal.warning("无需再回款");
    return;
  }
  invoiceInfo({ id: selectedRows.value[0].id }).then((res) => {
@@ -577,6 +582,8 @@
  };
  receiptPaymentSaveOrUpdate(updateData).then((res) => {
    row.editType = !row.editType;
      getList();
      proxy.$modal.msgSuccess("提交成功");
  });
};