From 301df333c4dc0c28cee67a8579784bd1c3b85abe Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期四, 22 二月 2024 15:07:51 +0800
Subject: [PATCH] 1、标准加工时间页面取消按照时间查询 2、设备利用率、设备开动率以及班次利用率页面查询区域日期被删除后因查询不到数据时表格中不会出现任何数据且无提示,故增加提示及禁止删除日期 3、设备综合效率分析页面和设备加工工件报表页面时间被手动清空与点击重置按钮清空后的查询条件不同,调整为时间为空时则查询除时间限定内所有数据 4、利用率走势分析、利用率分段分析以及报警分析页面简化页面查询功能,禁止删除日期 5、优化假期管理、加工数量管理以及合格率管理页面手动清空日期后无法正常查询数据 6、统计分析与统计图表页面调整重置按钮功能为重置名称为第一级车间以及日期为当日前一天,且无法手动清空日期 7、对比分析页面调整重置按钮功能为重置日期为当日前一周,且无法手动清空日期

---
 src/views/system/WorkshopSignageManagement.vue |   70 ++++++++++++++++++++++++++---------
 1 files changed, 52 insertions(+), 18 deletions(-)

diff --git a/src/views/system/WorkshopSignageManagement.vue b/src/views/system/WorkshopSignageManagement.vue
index 740cf37..380e6d3 100644
--- a/src/views/system/WorkshopSignageManagement.vue
+++ b/src/views/system/WorkshopSignageManagement.vue
@@ -7,15 +7,17 @@
           <!-- 鎼滅储鍖哄煙 -->
           <a-form layout="inline" @keyup.enter.native="searchQuery">
             <a-row :gutter="24">
-              <a-col :md="12" :sm="8">
-                <a-form-item label="杞﹂棿鍚嶇О" :labelCol="{ span: 5 }" :wrapperCol="{ span: 18, offset: 1 }">
+              <a-col :md="8" :sm="8">
+                <a-form-item label="杞﹂棿鍚嶇О" :labelCol="{ span: 5 }" :wrapperCol="{ span: 19}">
                   <a-input placeholder="" v-model="queryParam.workshopName"></a-input>
                 </a-form-item>
               </a-col>
               <span style="float: left; overflow: hidden" class="table-page-search-submitButtons">
-                <a-col :md="12" :sm="24">
-                  <a-button type="primary" @click="searchQuery" icon="search" style="margin-left: 21px">鏌ヨ</a-button>
-                  <a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">閲嶇疆</a-button>
+                <a-col>
+                  <a-space>
+                    <a-button type="primary" @click="searchQuery" icon="search">鏌ヨ</a-button>
+                    <a-button type="primary" @click="searchReset" icon="reload">閲嶇疆</a-button>
+                  </a-space>
                 </a-col>
               </span>
             </a-row>
@@ -74,8 +76,8 @@
     </a-col>
     <a-col :md="rightColMd" :sm="24" v-if="this.rightcolval == 1">
       <a-card :bordered="false">
-        <div style="text-align: right">
-          <a-icon type="close-circle" @click="hideUserList" />
+        <div @click="hideUserList" class="close-circle">
+          <a-icon type="close-circle"/>
         </div>
         <!-- 鏌ヨ鍖哄煙 -->
         <div class="table-page-search-wrapper">
@@ -97,7 +99,7 @@
         </div>
         <!-- 鎿嶄綔鎸夐挳鍖哄煙 -->
         <div class="table-operator" :md="24" :sm="24">
-          <a-button @click="handleAddDeviceInWorkshop" type="primary" icon="plus" style="margin-top: 16px"
+          <a-button @click="handleAddDeviceInWorkshop" type="primary" icon="plus"  style="margin: 5px 0 10px 2px"
             >宸叉湁璁惧
           </a-button>
 
@@ -114,6 +116,7 @@
             </a-button>
           </a-dropdown>
         </div>
+
         <!-- table鍖哄煙-begin -->
         <div>
           <div class="ant-alert ant-alert-info" style="margin-bottom: 16px">
@@ -147,7 +150,7 @@
     <!-- 琛ㄥ崟鍖哄煙 -->
     <workshop-modal ref="modalForm" @ok="modalFormOk"></workshop-modal>
     <!--鏂板杞﹂棿-->
-    <select-device-modal ref="selectUserModal" @selectFinished="selectOK"></select-device-modal>
+    <select-device-modal ref="selectDeviceModal" @selectFinished="selectOK" :title="'娣诲姞宸叉湁璁惧'"></select-device-modal>
     <!--宸叉湁璁惧-->
   </a-row>
 </template>
@@ -228,6 +231,11 @@
           dataIndex: 'backgroundImage',
           align: 'center',
           scopedSlots: { customRender: 'backgroundImage' },
+        },
+        {
+          title: '璁惧缂栧彿棰滆壊',
+          dataIndex: 'equipmentIdColor',
+          align: 'center',
         },
         {
           title: '鎿嶄綔',
@@ -349,6 +357,8 @@
         if (res.success) {
           this.dataSource2 = res.result.records
           this.ipagination2.total = res.result.total
+        }else{
+          this.dataSource2=[]
         }
         this.loading2 = false
       })
@@ -365,16 +375,25 @@
      */
     handleDelete2: function (equipmentId) {
       if (!this.url.delete2) {
-        this.$message.error('璇疯缃畊rl.delete2灞炴��!')
+        this.$notification.error({
+          message:'娑堟伅',
+          description:'璇疯缃畊rl.delete2灞炴��!'
+        });
         return
       }
       var that = this
       deleteAction(that.url.delete2, { workshopId: this.currentWorkshopId, equipmentId }).then((res) => {
         if (res.success) {
-          that.$message.success(res.message)
+          that.$notification.success({
+            message:'娑堟伅',
+            description:res.message
+          });
           that.loadData2()
         } else {
-          that.$message.warning(res.message)
+          that.$notification.warning({
+            message:'娑堟伅',
+            description:res.message
+          });
         }
       })
     },
@@ -411,7 +430,7 @@
               if (res.success) {
                 that.$message.success(res.message)
                 that.loadData2()
-                that.onClearSelected()
+                that.onClearSelected2()
               } else {
                 that.$message.warning(res.message)
               }
@@ -436,9 +455,15 @@
       postAction(this.url.addDeviceInWorkshop, params).then((res) => {
         if (res.success) {
           this.loadData2()
-          this.$message.success(res.message)
+          this.$notification.success({
+            message:'娑堟伅',
+            description:res.message
+          });
         } else {
-          this.$message.warning(res.message)
+          this.$notification.warning({
+            message:'娑堟伅',
+            description:res.message
+          });
         }
       })
     },
@@ -450,9 +475,11 @@
       if (this.currentWorkshopId == '') {
         this.$message.error('璇烽�夋嫨涓�涓溅闂�!')
       } else {
-        this.$refs.selectUserModal.visible = true
-        this.$refs.selectUserModal.selectedRowKeys = []
-        this.$refs.selectUserModal.selectedRows = []
+        this.$refs.selectDeviceModal.visible = true
+        this.$refs.selectDeviceModal.selectedRowKeys = []
+        this.$refs.selectDeviceModal.selectedRows = []
+        this.$refs.selectDeviceModal.checkedKeys = []
+        this.$refs.selectDeviceModal.expandAll()
       }
     },
 
@@ -498,4 +525,11 @@
 .ant-btn {
   margin-left: 8px;
 }
+  .close-circle{
+    position: absolute;
+    z-index: 1;
+    right: 15px;
+    top: 15px;
+    cursor: pointer;
+  }
 </style>
\ No newline at end of file

--
Gitblit v1.9.3