From 2771237a6ea07eb1b7be389034b4dc2981b0cffd Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期五, 11 七月 2025 21:10:14 +0800
Subject: [PATCH] 1、设备台账新增和编辑增加技术状态字段 2、二保编辑功能 3、二保以及点检自动带入保养周期默认值而不是从设备处带出

---
 src/views/mdc/base/modules/deviceRepair/DeviceRepairModelAdd.vue |   24 ++++++++++++++++++++----
 1 files changed, 20 insertions(+), 4 deletions(-)

diff --git a/src/views/mdc/base/modules/deviceRepair/DeviceRepairModelAdd.vue b/src/views/mdc/base/modules/deviceRepair/DeviceRepairModelAdd.vue
index 04db0bc..e1ac1e5 100644
--- a/src/views/mdc/base/modules/deviceRepair/DeviceRepairModelAdd.vue
+++ b/src/views/mdc/base/modules/deviceRepair/DeviceRepairModelAdd.vue
@@ -275,11 +275,19 @@
             let stertDate = moment(data).format("YYYY-MM-DD HH:mm:ss");
             let dataStart = stertDate.replace(/:/g,'');
             if(startOne < dataStart) {
-              that.$message.warning("寮�濮嬫椂闂翠笉鑳藉皬浜庡綋鍓嶆椂闂�")
+              // that.$message.warning("寮�濮嬫椂闂翠笉鑳藉皬浜庡綋鍓嶆椂闂�")
+              that.$notification.warning({
+                message:'娑堟伅',
+                description:"寮�濮嬫椂闂翠笉鑳藉皬浜庡綋鍓嶆椂闂�"
+              });
               that.confirmLoading = false
             }else{
               if(startOne>=endOne){
-                that.$message.warning("缁撴潫鏃堕棿涓嶈兘灏忎簬寮�濮嬫椂闂�");
+                // that.$message.warning("缁撴潫鏃堕棿涓嶈兘灏忎簬寮�濮嬫椂闂�");
+                that.$notification.warning({
+                  message:'娑堟伅',
+                  description:"缁撴潫鏃堕棿涓嶈兘灏忎簬寮�濮嬫椂闂�"
+                });
                 // console.log(this.model)
                 // this.endTime = ''
                 that.confirmLoading = false
@@ -294,11 +302,19 @@
                 }
                 obj.then((res) => {
                   if (res.success) {
-                    that.$message.success("娣诲姞鎴愬姛")
+                    // that.$message.success("娣诲姞鎴愬姛")
+                    that.$notification.success({
+                      message:'娑堟伅',
+                      description:"娣诲姞鎴愬姛"
+                    });
                     // that.$message.success(res.message)
                     that.$emit('ok', res.result)
                   } else {
-                    that.$message.warning(res.message)
+                    // that.$message.warning(res.message)
+                    that.$notification.warning({
+                      message:'娑堟伅',
+                      description:res.message
+                    });
                   }
                 }).finally(() => {
                   that.confirmLoading = false

--
Gitblit v1.9.3