From 4752c457102833c0f379f20def46d4da5ff1adeb Mon Sep 17 00:00:00 2001
From: huminmin <mac@MacBook-Pro.local>
Date: 星期三, 29 四月 2026 14:41:21 +0800
Subject: [PATCH] 修改路径

---
 src/views/procurementManagement/paymentEntry/index.vue |   38 +++++++++++++++++++++++++-------------
 1 files changed, 25 insertions(+), 13 deletions(-)

diff --git a/src/views/procurementManagement/paymentEntry/index.vue b/src/views/procurementManagement/paymentEntry/index.vue
index 5ee8d17..9ce59ad 100644
--- a/src/views/procurementManagement/paymentEntry/index.vue
+++ b/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();
@@ -574,7 +586,7 @@
 .table_list {
   margin-top: unset;
 }
-::v-deep(.el-checkbox__label) {
+:deep(.el-checkbox__label) {
   font-weight: bold;
 }
 .empty-tip {

--
Gitblit v1.9.3