From 344551aecaab6762c7dc7b4b4f85bbff18898ab9 Mon Sep 17 00:00:00 2001
From: 曹睿 <360930172@qq.com>
Date: 星期六, 28 六月 2025 10:55:40 +0800
Subject: [PATCH] feat: 6/28内容调整

---
 src/views/procurementManagement/procurementLedger/index.vue |   31 +++++++++++++++++++++++++++----
 1 files changed, 27 insertions(+), 4 deletions(-)

diff --git a/src/views/procurementManagement/procurementLedger/index.vue b/src/views/procurementManagement/procurementLedger/index.vue
index d360763..be2cac7 100644
--- a/src/views/procurementManagement/procurementLedger/index.vue
+++ b/src/views/procurementManagement/procurementLedger/index.vue
@@ -9,7 +9,7 @@
           placeholder="璇疯緭鍏�"
           @change="handleQuery"
           clearable
-          prefix-icon="Search"
+          :prefix-icon="Search"
         />
         <el-button type="primary" @click="handleQuery" style="margin-left: 10px"
           >鎼滅储</el-button
@@ -91,6 +91,11 @@
         <el-table-column
           label="椤圭洰鍚嶇О"
           prop="projectName"
+          show-overflow-tooltip
+        />
+        <el-table-column
+          label="浠樻鏂瑰紡"
+          prop="paymentMethod"
           show-overflow-tooltip
         />
         <el-table-column
@@ -231,6 +236,17 @@
                 format="YYYY-MM-DD"
                 type="date"
                 placeholder="璇烽�夋嫨"
+                clearable
+              />
+            </el-form-item>
+          </el-col>
+        </el-row>
+        <el-row :gutter="30">
+          <el-col :span="12">
+            <el-form-item label="浠樻鏂瑰紡">
+              <el-input
+                v-model="form.paymentMethod"
+                placeholder="璇疯緭鍏�"
                 clearable
               />
             </el-form-item>
@@ -513,6 +529,7 @@
   productList,
   getPurchaseById,
   getOptions,
+  createPurchaseNo,
 } from "@/api/procurementManagement/procurementLedger.js";
 const { proxy } = getCurrentInstance();
 const tableData = ref([]);
@@ -552,6 +569,7 @@
     productData: [],
     supplierName: "",
     supplierId: "",
+    paymentMethod: "",
   },
   rules: {
     purchaseContractNumber: [
@@ -645,11 +663,11 @@
   purchaseListPage({ ...searchForm.value, ...page })
     .then((res) => {
       tableLoading.value = false;
-      tableData.value = res.records;
+      tableData.value = res.data.records;
       tableData.value.map((item) => {
         item.children = [];
       });
-      total.value = res.total;
+      total.value = res.data.total;
       expandedRowKeys.value = [];
     })
     .catch(() => {
@@ -672,7 +690,7 @@
       productList({ salesLedgerId: row.id, type: 2 }).then((res) => {
         const index = tableData.value.findIndex((item) => item.id === row.id);
         if (index > -1) {
-          tableData.value[index].children = res;
+          tableData.value[index].children = res.data;
         }
         expandedRowKeys.value.push(row.id);
       });
@@ -701,6 +719,11 @@
   form.value = {};
   productData.value = [];
   fileList.value = [];
+  if (operationType.value == "add") {
+    createPurchaseNo().then((res) => {
+      form.value.purchaseContractNumber = res.data;
+    });
+  }
   userListNoPage().then((res) => {
     userList.value = res.data;
   });

--
Gitblit v1.9.3