From 067a7119d3175c9ea9b7c0d46b59df6e8ccb994c Mon Sep 17 00:00:00 2001
From: maven <2163098428@qq.com>
Date: 星期三, 03 十二月 2025 17:58:25 +0800
Subject: [PATCH] yys 1.修改文件上传大小限制

---
 src/views/procurementManagement/paymentEntry/index.vue |   46 ++++++++++++++++++++++++++++++++++++++++------
 1 files changed, 40 insertions(+), 6 deletions(-)

diff --git a/src/views/procurementManagement/paymentEntry/index.vue b/src/views/procurementManagement/paymentEntry/index.vue
index 0749292..44190af 100644
--- a/src/views/procurementManagement/paymentEntry/index.vue
+++ b/src/views/procurementManagement/paymentEntry/index.vue
@@ -27,6 +27,7 @@
           </el-col>
           <el-col :span="4">
             <el-form-item style="float: right; margin-right: unset">
+              <el-button @click="handleExport" style="margin-right: 10px">瀵煎嚭</el-button>
               <el-button type="primary" @click="openForm('add')">
                 鏂板浠樻
               </el-button>
@@ -103,7 +104,6 @@
 									size="small"
 									@click="changeEditType(scope.row)"
 									v-if="!scope.row.editType"
-									:disabled="scope.row.registrant !== userStore.nickName"
 								>缂栬緫</el-button
 								>
 								<el-button
@@ -242,7 +242,6 @@
 								v-model="form.registrant"
 								placeholder="璇疯緭鍏�"
 								clearable
-								disabled
 							/>
 						</el-form-item>
 					</el-col>
@@ -252,7 +251,6 @@
                 v-model="form.registrationtDate"
                 placeholder="璇疯緭鍏�"
                 clearable
-                disabled
               />
             </el-form-item>
           </el-col>
@@ -269,7 +267,7 @@
 </template>
 
 <script setup>
-import { ref } from "vue";
+import { ref, reactive, toRefs, getCurrentInstance, nextTick, onMounted } from "vue";
 import { Search } from "@element-plus/icons-vue";
 import { ElMessageBox } from "element-plus";
 import useUserStore from "@/store/modules/user.js";
@@ -308,6 +306,20 @@
     prop: "supplierName",
     width:240
   },
+	{
+		label: "浠樻鐘舵��",
+		prop: "statusName",
+		dataType: "tag",
+		formatType: (params) => {
+			if (params == '鏈畬鎴愪粯娆�') {
+				return "danger";
+			} else if (params == '宸插畬鎴愪粯娆�') {
+				return "success";
+			} else {
+				return null;
+			}
+		},
+	},
   {
     label: "鍙戠エ鍙�",
     prop: "invoiceNumber",
@@ -392,7 +404,11 @@
 const isShowSummarySon = ref(true);
 const expandedRowKeys = ref([]);
 
-
+const getStatusTagType = (statusName = '') => {
+	const normalized = statusName.trim();
+	if (!normalized) return 'info';
+	return normalized === '鏈畬鎴愪粯娆�' ? 'danger' : 'success';
+};
 // 瀛愯〃鍚堣鏂规硶
 const summarizeMainTable1 = (param) => {
   return proxy.summarizeTable(
@@ -567,7 +583,25 @@
   const day = String(today.getDate()).padStart(2, "0");
   return `${year}-${month}-${day}`;
 }
-getList();
+
+// 瀵煎嚭
+const handleExport = () => {
+  ElMessageBox.confirm("閫変腑鐨勫唴瀹瑰皢琚鍑猴紝鏄惁纭瀵煎嚭锛�", "瀵煎嚭", {
+    confirmButtonText: "纭",
+    cancelButtonText: "鍙栨秷",
+    type: "warning",
+  })
+    .then(() => {
+      proxy.download("/purchase/registration/exportOne", { ...searchForm, ...page }, "浠樻鐧昏.xlsx");
+    })
+    .catch(() => {
+      proxy.$modal.msg("宸插彇娑�");
+    });
+};
+
+onMounted(() => {
+  getList();
+});
 </script>
 
 <style scoped lang="scss">

--
Gitblit v1.9.3