gongchunyi
16 小时以前 9e92140743336f47d6dd3e032707a4c576a5a645
src/views/procurementManagement/paymentEntry/index.vue
@@ -89,8 +89,12 @@
                           placeholder="请选择"
                           clearable
                        >
                           <el-option label="电汇" value="电汇" />
                           <el-option label="承兑" value="承兑" />
                           <el-option
                              v-for="item in checkout_payment"
                              :key="item.value"
                              :label="item.label"
                              :value="item.value"
                           />
                        </el-select>
                     </template>
                  </el-table-column>
@@ -101,7 +105,6 @@
                        <el-button
                           link
                           type="primary"
                           size="small"
                           @click="changeEditType(scope.row)"
                           v-if="!scope.row.editType"
                        >编辑</el-button
@@ -109,7 +112,6 @@
                        <el-button
                           link
                           type="primary"
                           size="small"
                           @click="saveReceiptPayment(scope.row)"
                           v-if="scope.row.editType"
                        >保存</el-button
@@ -117,7 +119,6 @@
                        <el-button
                           link
                           type="primary"
                           size="small"
                           @click="handleDelete(scope.row)"
                        >删除</el-button
                        >
@@ -186,8 +187,12 @@
        <el-table-column label="付款方式" width="160">
          <template #default="{ row }">
            <el-select v-model="row.paymentMethod" placeholder="请选择" clearable>
              <el-option label="电汇" value="电汇" />
              <el-option label="承兑" value="承兑" />
              <el-option
                v-for="item in checkout_payment"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              />
            </el-select>
          </template>
        </el-table-column>
@@ -242,6 +247,7 @@
import { getCurrentDate } from "@/utils/index.js";
const { proxy } = getCurrentInstance();
const { checkout_payment } = proxy.useDict("checkout_payment");
const tableColumn = ref([
   {
      type: "expand",
@@ -261,7 +267,6 @@
  {
    label: "供应商名称",
    prop: "supplierName",
    width:240
  },
   {
      label: "付款状态",
@@ -282,7 +287,6 @@
      label: "产品大类",
      prop: "productCategory",
      showOverflowTooltip: true,
      width: 100
   },
   {
      label: "规格型号",
@@ -293,7 +297,6 @@
  {
    label: "已付款金额(元)",
    prop: "ticketsTotal",
    width: 120,
    formatData: (params) => {
      return params ? parseFloat(params).toFixed(2) : 0;
    },
@@ -301,7 +304,6 @@
  {
    label: "待付款金额(元)",
    prop: "pendingTicketsTotal",
    width: 120,
    formatData: (params) => {
      return params ? parseFloat(params).toFixed(2) : 0;
    },
@@ -327,6 +329,8 @@
  searchForm: {
    supplierNameOrContractNo: "",
    status: false,
    // 只查询审批状态为 3 的记录
    approvalStatus: 3,
  },
  form: {
    purchaseContractNumber: "",
@@ -517,7 +521,15 @@
      return;
    }
  }
  paymentRegistrationAdd(forms.value).then(() => {
  const normalizePaymentMethodValue = (method) => {
    const hit = checkout_payment.value.find((item) => item.value == method || item.label == method);
    return hit ? hit.value : method;
  };
  const submitRows = forms.value.map((item) => ({
    ...item,
    paymentMethod: normalizePaymentMethodValue(item.paymentMethod),
  }));
  paymentRegistrationAdd(submitRows).then(() => {
    proxy.$modal.msgSuccess("提交成功");
    closeDia();
    getList();
@@ -537,7 +549,7 @@
  })
    .then(() => {
      tableLoading.value = true;
         delPaymentRegistration(row.id)
         delPaymentRegistration([row.id])
        .then((res) => {
          proxy.$modal.msgSuccess("删除成功");
          getList();
@@ -574,7 +586,7 @@
.table_list {
  margin-top: unset;
}
::v-deep(.el-checkbox__label) {
:deep(.el-checkbox__label) {
  font-weight: bold;
}
.empty-tip {