From 9ea5ff67655241271bdf04bb50ca3a8d60c4e22a Mon Sep 17 00:00:00 2001
From: yuan <123@>
Date: 星期二, 11 八月 2026 15:07:02 +0800
Subject: [PATCH] fix: 用河南鹤壁代码覆盖山西长治

---
 src/views/financialManagement/receivable/invoiceApply.vue |   53 ++---------------------------------------------------
 1 files changed, 2 insertions(+), 51 deletions(-)

diff --git a/src/views/financialManagement/receivable/invoiceApply.vue b/src/views/financialManagement/receivable/invoiceApply.vue
index 21b5f0e..14fdd67 100644
--- a/src/views/financialManagement/receivable/invoiceApply.vue
+++ b/src/views/financialManagement/receivable/invoiceApply.vue
@@ -48,8 +48,6 @@
         v-loading="tableLoading"
         :column="columns"
         :tableData="dataList"
-        isShowSummary
-        :summaryMethod="getSummaries"
         :page="{
           current: pagination.currentPage,
           size: pagination.pageSize,
@@ -100,7 +98,7 @@
         <el-row :gutter="20">
           <el-col :span="24">
             <el-form-item label="鐢宠鍗曞彿" prop="applyCode">
-              <el-input v-model="form.applyCode" placeholder="淇濆瓨鍚庤嚜鍔ㄧ敓鎴�" disabled />
+              <el-input v-model="form.applyCode" placeholder="绯荤粺鑷姩鐢熸垚" disabled />
             </el-form-item>
           </el-col>
         </el-row>
@@ -191,20 +189,6 @@
             </el-form-item>
           </el-col>
         </el-row>
-        <el-row :gutter="20">
-          <el-col :span="12">
-            <el-form-item label="鍒涘缓鏃堕棿" prop="createTime">
-              <el-date-picker
-                v-model="formCreateTimeDate"
-                type="date"
-                placeholder="閫夋嫨鏃ユ湡"
-                value-format="YYYY-MM-DD"
-                style="width: 100%;"
-                :disabled="isView"
-              />
-            </el-form-item>
-          </el-col>
-        </el-row>
         <el-form-item label="鍙戠エ鍐呭" prop="content">
           <el-input v-model="form.content" type="textarea" :rows="3" placeholder="璇疯緭鍏ュ彂绁ㄥ唴瀹�" :disabled="isView" />
         </el-form-item>
@@ -269,7 +253,6 @@
 
 <script setup>
 import { ref, reactive, computed, onMounted, nextTick, getCurrentInstance, defineAsyncComponent } from "vue";
-import dayjs from "dayjs";
 import { ElMessage, ElMessageBox } from "element-plus";
 import FormDialog from "@/components/Dialog/FormDialog.vue";
 import { listCustomer } from "@/api/basicData/customer.js";
@@ -541,13 +524,6 @@
   applyDate: "",
   content: "",
   remark: "",
-  createTime: "",
-});
-const formCreateTimeDate = computed({
-  get: () => (form.createTime ? String(form.createTime).split(" ")[0] : ""),
-  set: (value) => {
-    form.createTime = value ? `${value} ${dayjs().format("HH:mm:ss")}` : "";
-  },
 });
 
 const rules = {
@@ -650,27 +626,6 @@
   proxy.download("/accountInvoiceApplication/exportAccountInvoiceApplication", params, filename);
 };
 
-const getSummaries = ({ columns, data }) => {
-  const sums = [];
-  columns.forEach((col, index) => {
-    if (index === 0) {
-      sums[index] = "鍚堣";
-    } else if (col.property === "amount") {
-      const total = data.reduce((prev, cur) => {
-        const v = Number(cur.amount);
-        return prev + (isNaN(v) ? 0 : v);
-      }, 0);
-      sums[index] = total.toLocaleString("zh-CN", {
-        minimumFractionDigits: 2,
-        maximumFractionDigits: 2,
-      });
-    } else {
-      sums[index] = "";
-    }
-  });
-  return sums;
-};
-
 const formatMoney = (value) => {
   if (value === undefined || value === null) return "0.00";
   return Number(value).toFixed(2).replace(/\B(?=(\d{3})+(?!\d))/g, ",");
@@ -751,7 +706,6 @@
     status: normalizeStatus(row.status ?? row.auditStatus),
     outboundBatchNos,
     outboundBatches: formatOutboundBatches(row.outboundBatches),
-    createTime: row.createTime ?? "",
   });
 };
 
@@ -760,7 +714,7 @@
   isView.value = false;
   dialogTitle.value = "鏂板寮�绁ㄧ敵璇�";
   Object.assign(form, {
-    applyCode: "",
+    applyCode: "KP" + Date.now().toString().slice(-8),
     customerId: "",
     outboundBatchNos: [],
     outboundBatches: "",
@@ -770,7 +724,6 @@
     applyDate: new Date().toISOString().split("T")[0],
     content: "",
     remark: "",
-    createTime: dayjs().format("YYYY-MM-DD HH:mm:ss"),
   });
   outboundBatchList.value = [];
   outboundBatchOptions.value = [];
@@ -799,7 +752,6 @@
     invoiceAmount: form.amount,
     taxRate: form.taxRate,
     status: 0,
-    createTime: form.createTime,
   };
   if (forUpdate) {
     payload.id = currentId.value;
@@ -814,7 +766,6 @@
   dialogTitle.value = "缂栬緫寮�绁ㄧ敵璇�";
   fillFormFromRow(row);
   dialogVisible.value = true;
-  loadOutboundBatches(form.customerId, true);
 };
 
 const view = (row) => {

--
Gitblit v1.9.3