From 3d3addba8618bd44db53f7089732e3fae16bdfef Mon Sep 17 00:00:00 2001
From: zhang_12370 <z2864490065@outlook.com>
Date: 星期二, 15 七月 2025 18:01:28 +0800
Subject: [PATCH] 1、修改配置删除文件 2、优化设备领用 使用户归还完以后 无法重新选择使用中

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

diff --git a/src/views/procureMent/components/ProductionDialog.vue b/src/views/procureMent/components/ProductionDialog.vue
index 3fc0c99..4378006 100644
--- a/src/views/procureMent/components/ProductionDialog.vue
+++ b/src/views/procureMent/components/ProductionDialog.vue
@@ -203,7 +203,7 @@
   // 1. 鏍规嵁鍚◣鍗曚环鍜岀◣鐜囪绠椾笉鍚◣鍗曚环
   // 涓嶅惈绋庡崟浠� = 鍚◣鍗曚环 / (1 + 绋庣巼/100)
   const priceExcludingTax = priceIncludingTax && taxRate 
-    ? toFixed(priceIncludingTax / (1 + taxRate / 100), 2)
+    ? parseFloat((priceIncludingTax / (1 + taxRate / 100)).toFixed(2))
     : 0;
 
   // 2. 璁$畻涓嶅惈绋庢�讳环 = 涓嶅惈绋庡崟浠� 脳 鏁伴噺
@@ -216,8 +216,8 @@
     ? toFixed(priceIncludingTax * quantity, 2)
     : 0;
 
-  // 鏇存柊琛ㄥ崟鏁版嵁
-  form.value.priceExcludingTax = priceExcludingTax;
+  // 淇濊瘉鏄剧ず涓轰袱浣嶅皬鏁帮紙濡�88.5鏄剧ず涓�88.50锛�
+  form.value.priceExcludingTax = priceExcludingTax.toFixed(2);
   form.value.totalPriceExcludingTax = totalPriceExcludingTax;
   form.value.totalPriceIncludingTax = totalPriceIncludingTax;
 };
@@ -282,20 +282,13 @@
   priceExcludingTax: [
     {required: true, message: "璇疯緭鍏ュ崟浠�", trigger: "blur"},
   ],
-  totalPriceExcludingTax: [
-    {required: true, message: "璇疯緭鍏ユ�讳环", trigger: "blur"},
-  ],
   priceIncludingTax: [
     {required: true, message: "璇疯緭鍏ュ惈绋庡崟浠�", trigger: "blur"},
   ],
-  totalPriceIncludingTax: [
-    {required: true, message: "璇疯緭鍏ュ惈绋庢�讳环", trigger: "blur"},
-  ],
-  taxRate: [{required: true, message: "璇疯緭鍏ョ◣鐜�", trigger: "blur"}],
-  registrantId: [{required: true, message: "璇疯緭鍏ョ櫥璁颁汉", trigger: "blur"}],
-  registrationDate: [
-    {required: true, message: "璇烽�夋嫨鐧昏鏃ユ湡", trigger: "change"},
-  ],
+  taxRate:[
+    {required: true, message: "璇疯緭鍏ョ◣鐜�", trigger: "blur"},
+    {type: "number", message: "绋庣巼蹇呴』涓烘暟瀛�", trigger: "blur"},
+  ]
 };
 // 鍏抽棴寮圭獥
 const handleClose = () => {
@@ -344,4 +337,4 @@
 };
 </script>
 
-<style lang="sass" scoped></style>
+<style lang="scss" scoped></style>

--
Gitblit v1.9.3