From 1c4e88c1cb0639663f77a33dbab26c3cac71ad93 Mon Sep 17 00:00:00 2001
From: zhang_12370 <z2864490065@outlook.com>
Date: 星期四, 26 六月 2025 13:28:05 +0800
Subject: [PATCH] 开发通用 删除 优化文档管理模块

---
 src/views/procureMent/components/ProductionDialog.vue |   19 +++++++++++--------
 1 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/src/views/procureMent/components/ProductionDialog.vue b/src/views/procureMent/components/ProductionDialog.vue
index 677eba9..014bf2a 100644
--- a/src/views/procureMent/components/ProductionDialog.vue
+++ b/src/views/procureMent/components/ProductionDialog.vue
@@ -66,7 +66,7 @@
           <el-input
               v-model.number="form.priceIncludingTax"
               placeholder="鑷姩璁$畻"
-              :disabled="isViewMode"
+              disabled
           >
             <template v-slot:suffix>
               <i style="font-style: normal">鍏�</i>
@@ -77,7 +77,7 @@
           <el-input
               v-model.number="form.totalPriceExcludingTax"
               placeholder="鑷姩璁$畻"
-              :disabled="isViewMode"
+              disabled
           >
             <template v-slot:suffix>
               <i style="font-style: normal">鍏�</i>
@@ -88,7 +88,7 @@
           <el-input
               v-model.number="form.totalPriceIncludingTax"
               placeholder="鑷姩璁$畻"
-              :disabled="isViewMode"
+              disabled
           >
             <template v-slot:suffix>
               <i style="font-style: normal">鍏�</i>
@@ -96,7 +96,7 @@
           </el-input>
         </el-form-item>
         <el-form-item label="鐧昏浜�" prop="registrantId">
-          <el-input v-model="form.registrantId" disabled placeholder="璇疯緭鍏�"/>
+          <el-input :value="match(form.registrantId)" v-model.number="form.registrantId" disabled placeholder="璇疯緭鍏�"/>
         </el-form-item>
         <el-form-item label="鐧昏鏃ユ湡" prop="registrationDate">
           <el-date-picker
@@ -112,7 +112,7 @@
       <template #footer>
         <div class="dialog-footer">
           <!-- 閲嶇疆鍜屽彇娑� -->
-          <el-button @click="handleClose" v-if="title.includes('鏂板')"
+          <el-button @click="handleClose" v-if="title.includes('鏂板') || title.includes('鏌ョ湅')"
           >鍙栨秷
           </el-button
           >
@@ -120,7 +120,7 @@
           >閲嶇疆
           </el-button
           >
-          <el-button type="primary" @click="handleSubmit">纭</el-button>
+          <el-button type="primary" v-if="!isViewMode" @click="handleSubmit">纭</el-button>
         </div>
       </template>
     </el-dialog>
@@ -243,7 +243,9 @@
 
 const userStore = useUserStore();
 const userInfo = ref({});
-
+const match = () => {
+  return userInfo.value.nickName || "鏈煡鐢ㄦ埛";
+};
 // 澶勭悊绋庣巼杈撳叆妗嗗け鐒︼紝纭繚绮惧害
 const handleTaxRateBlur = () => {
   if (
@@ -285,8 +287,9 @@
 
 onMounted(async () => {
   let res = await userStore.getInfo();
-  userInfo.value = res;
+  userInfo.value = res.user;
   getDropdownData()
+  
 });
 const rules = {
   supplierName: [

--
Gitblit v1.9.3