From 19520d076777a22f76477c4b29e1a6e7a3891196 Mon Sep 17 00:00:00 2001
From: 张诺 <zhang_12370@163.com>
Date: 星期二, 10 六月 2025 11:48:32 +0800
Subject: [PATCH] 修改方案字段以及接口上传

---
 src/views/procureMent/index.vue |   22 +++++++++++++++++++---
 1 files changed, 19 insertions(+), 3 deletions(-)

diff --git a/src/views/procureMent/index.vue b/src/views/procureMent/index.vue
index 038b727..5b96d12 100644
--- a/src/views/procureMent/index.vue
+++ b/src/views/procureMent/index.vue
@@ -23,7 +23,7 @@
       <el-row :gutter="24" class="table-toolbar">
         <el-button type="primary" :icon="Plus" @click="handleAdd">鏂板缓</el-button>
         <el-button type="danger" :icon="Delete" @click="handleDelete">鍒犻櫎</el-button>
-        <el-button type="info" :icon="Download" @click="handleExport">瀵煎嚭</el-button>
+        <!-- <el-button type="info" :icon="Download" @click="handleExport">瀵煎嚭</el-button> -->
       </el-row>
       <!-- 琛ㄦ牸缁勪欢 -->
       <data-table :loading="loading" :table-data="tableData" :columns="columns" @selection-change="handleSelectionChange"
@@ -44,6 +44,20 @@
 import ProductionDialog from './components/ProductionDialog.vue';
 import { purchaseRegistration } from "@/api/procureMent";
 import useUserStore from '@/store/modules/user'
+import useDictStore from "@/store/modules/dict";
+// 寮曞叆瀛楀吀鏁版嵁
+const useDictStores = useDictStore();
+useDictStores.setDict({
+  id: 1,
+  name: "鐓ょ绫诲瀷",
+  type: "coalType",
+  items: [
+    { label: "鏃犵儫鐓�", value: "anthracite" },
+    { label: "鐑熺叅", value: "bituminous" },
+    { label: "瑜愮叅", value: "lignite" }
+  ]
+})
+console.log(useDictStores.dict);
 
 const { proxy } = getCurrentInstance()
 const dialogFormVisible = ref(false);
@@ -76,9 +90,11 @@
   getList();
 };
 const userStore = useUserStore();
+// 鑾峰彇鐢ㄦ埛淇℃伅
+const userInfo = ref({});
 onMounted(async() => {
   let res = await userStore.getInfo()
-  form.value.registrantId = res.user.userName; // 璁剧疆鐧昏浜篒D
+  userInfo.value = res.user;
 });
 // 鍒嗛〉澶勭悊
 const handlePagination = (val) => {
@@ -141,7 +157,7 @@
     priceIncludingTax: "",
     totalPriceIncludingTax: "",
     taxRate: "",
-    registrantId: "",
+    registrantId: userInfo.value.userName,
     registrationDate: new Date().toISOString().split('T')[0]
   };
   // 鏂板缓鏃朵篃闇�瑕佽缃� copyForm 鐢ㄤ簬閲嶇疆鍔熻兘

--
Gitblit v1.9.3