From 1e1e70da5288f47d8770ba2e7f22f3362e5b577c Mon Sep 17 00:00:00 2001
From: zhuzhuanzhuan
Date: 星期五, 08 十二月 2023 17:16:35 +0800
Subject: [PATCH] 1、全局修改密码弹窗中的新密码校验长度与数据字典password_length设置保持一致 2、报警分析页面优化过快点击多次表格行时图表内容出现数据残留以及加载图表应设置加载中动画,若不设置用户在查询时短时间内不清楚有无数据 3、车间看板以及设备监控页面设备详情弹窗右上角增加关闭按钮、设备详情弹窗透明度加深、设备详情弹窗图表表盘指针对比色加强、调整设备详情弹窗中描述列表子项标题对齐方式由左对齐改为右对齐,锁定运行数据描述列表子项数值宽度,超出部分隐藏出现省略号,悬浮出现气泡卡片 4、设备利用率、设备开动率、班次利用率页面表格前三列增加表头,依次为公司、车间、工段以及表格有关时间值调整为若小时或分钟为0则不显示 5、设备综合效率分析页面表格数据默认每页最多显示10条改为20条 6、设备加工工件报表页面完成布局及功能实现

---
 src/views/eam/modules/operationCertificateApply/OperationCertificateApplyForm.vue |  104 ++++++++++++++++++++++++++++++++++++++++------------
 1 files changed, 80 insertions(+), 24 deletions(-)

diff --git a/src/views/eam/modules/operationCertificateApply/OperationCertificateApplyForm.vue b/src/views/eam/modules/operationCertificateApply/OperationCertificateApplyForm.vue
index 16a4a2b..fa9fee4 100644
--- a/src/views/eam/modules/operationCertificateApply/OperationCertificateApplyForm.vue
+++ b/src/views/eam/modules/operationCertificateApply/OperationCertificateApplyForm.vue
@@ -6,7 +6,7 @@
         <a-row>
           <a-col :span='12'>
             <a-form-model-item label='鐢宠鍗曠紪鍙�' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='num'>
-              <a-input v-model='model.num' placeholder='璇疯緭鍏ョ敵璇峰崟缂栧彿'></a-input>
+              <a-input v-model='model.num' placeholder="灏嗙敱绯荤粺鐢熸垚" disabled></a-input>
             </a-form-model-item>
           </a-col>
           <a-col :span='12'>
@@ -28,6 +28,12 @@
             <a-form-model-item label='鐢宠浜�' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='applicant'>
               <j-dict-select-tag type='list' v-model='model.applicant' dictCode='sys_user,realname,id'
                                  placeholder='璇烽�夋嫨鐢宠浜�' disabled />
+            </a-form-model-item>
+          </a-col>
+          <a-col :span='12'>
+            <a-form-model-item label='鍔炵悊浜�' :labelCol='labelCol' :wrapperCol='wrapperCol' prop='handlePerson'>
+              <j-dict-select-tag type='list' v-model='model.handlePerson' dictCode='sys_user,realname,id'
+                                 placeholder='璇烽�夋嫨鍔炵悊浜�'  />
             </a-form-model-item>
           </a-col>
           <a-col :span='12'>
@@ -66,7 +72,7 @@
 
 <script>
 
-import { getAction } from '@/api/manage'
+import { getAction,httpAction } from '@/api/manage'
 import { JVxeTableModelMixin } from '@/mixins/JVxeTableModelMixin.js'
 import { JVXETypes } from '@/components/jeecg/JVxeTable'
 import { getRefPromise, VALIDATE_FAILED } from '@/components/jeecg/JVxeTable/utils/vxeUtils.js'
@@ -98,9 +104,9 @@
       // 鏂板鏃跺瓙琛ㄩ粯璁ゆ坊鍔犲嚑琛岀┖鏁版嵁
       addDefaultRowNum: 1,
       validatorRules: {
-        num: [
-          { required: true, message: '璇疯緭鍏ョ敵璇峰崟缂栧彿!' }
-        ],
+        // num: [
+        //   { required: true, message: '璇疯緭鍏ョ敵璇峰崟缂栧彿!' }
+        // ],
         auditStatus: [
           { required: true, message: '璇疯緭鍏ュ鏍哥姸鎬�!' }
         ]
@@ -116,7 +122,8 @@
           {
             title: '鐢ㄦ埛',
             key: 'userId',
-            type: JVXETypes.userSelect,
+            type: JVXETypes.selectSearch,
+            dictCode: 'sys_user,realname,id ',
             width: '200px',
             placeholder: '璇疯緭鍏�${title}',
             defaultValue: '',
@@ -135,7 +142,7 @@
           {
             title: '璁惧缁熶竴缂栫爜',
             key: 'equipmentIds',
-            type: JVXETypes.selectSearch,
+            type: JVXETypes.selectMultiple,
             dictCode: 'mom_eam_equipment,num,id ',
             width: '200px',
             placeholder: '璇疯緭鍏�${title}',
@@ -152,7 +159,7 @@
             validateRules: [{ required: true, message: '${title}涓嶈兘涓虹┖' }]
           },
           {
-            title: '琛ュ姙鍘熷洜',
+            title: '鐢宠/琛ュ姙鍘熷洜',
             key: 'replaceReason',
             type: JVXETypes.input,
             width: '200px',
@@ -173,7 +180,8 @@
             type: JVXETypes.input,
             width: '200px',
             placeholder: '璇疯緭鍏�${title}',
-            defaultValue: ''
+            defaultValue: '',
+            disabled:'achievementDisabled'
           },
           {
             title: '瀹炴搷鎴愮哗',
@@ -181,34 +189,38 @@
             type: JVXETypes.input,
             width: '200px',
             placeholder: '璇疯緭鍏�${title}',
-            defaultValue: ''
+            defaultValue: '',
+            disabled:'achievementDisabled'
           },
           {
             title: '鑰冭瘯缁撹',
             key: 'examinationConclusion',
-            type: JVXETypes.checkbox,
-            customValue: ['Y', 'N'],
+            type: JVXETypes.select,
+            dictCode:'examination_conclusion',
             width: '200px',
             placeholder: '璇疯緭鍏�${title}',
-            defaultValue: ''
+            defaultValue: '',
+            disabled:'achievementDisabled'
           },
-          {
-            title: '鐘舵��',
-            key: 'status',
-            type: JVXETypes.input,
-            width: '200px',
-            placeholder: '璇疯緭鍏�${title}',
-            defaultValue: ''
-          }
+          // {
+          //   title: '鐘舵��',
+          //   key: 'status',
+          //   type: JVXETypes.input,
+          //   width: '200px',
+          //   placeholder: '璇疯緭鍏�${title}',
+          //   defaultValue: ''
+          // } 
         ]
       },
       url: {
         add: '/eam/operationCertificateApply/add',
         edit: '/eam/operationCertificateApply/edit',
+        addOperationCertificate:'/eam/operationCertificate/addOperationCertificate',
         queryById: '/eam/operationCertificateApply/queryById',
         operationCertificateApplyDetail: {
           list: '/eam/operationCertificateApply/queryOperationCertificateApplyDetailByMainId'
-        }
+        },
+        getNum: '/eam/sysIdentity/getNumNew',
       }
     }
   },
@@ -218,16 +230,25 @@
       type: Boolean,
       default: false,
       required: false
-    }
+    },
+    achievement: {
+      type: Boolean,
+      default: false,
+      required: false
+    },
   },
   computed: {
     formDisabled() {
       return this.disabled
+    },
+    achievementDisabled() {
+      return this.achievement
     }
   },
   created() {
   },
   methods: {
+
     addBefore() {
       this.operationCertificateApplyDetailTable.dataSource = []
     },
@@ -243,6 +264,12 @@
       if (this.model.id) {
         let params = { id: this.model.id }
         this.requestSubTableData(this.url.operationCertificateApplyDetail.list, params, this.operationCertificateApplyDetailTable)
+      }else{
+        getAction(this.url.getNum, { type: 'OperationCertificateApply', length: '4' }).then((res) => {
+            if (res.success) {
+              this.model.num = res.message
+            }
+          })
       }
     },
     //鏍¢獙鎵�鏈変竴瀵逛竴瀛愯〃琛ㄥ崟
@@ -270,7 +297,36 @@
     },
     validateError(msg) {
       this.$message.error(msg)
-    }
+    },
+    request(formData) {
+      let url = this.url.add, method = 'post'
+      if (this.model.id) {
+        url = this.url.edit
+        method = 'put'
+      }
+      this.confirmLoading = true
+      console.log("formData===>",formData);
+      httpAction(url, formData, method).then((res) => {
+        if (res.success) {
+          if(this.achievementDisabled){
+            httpAction(this.url.addOperationCertificate, formData.operationCertificateApplyDetailList, 'post').then((res) => {
+              if (res.success) {
+                this.$message.success(res.message)
+              }else {
+                this.$message.warning(res.message)
+              }
+            })
+          }
+          this.$message.success(res.message)
+          this.$emit('ok')
+          this.close()
+        } else {
+          this.$message.warning(res.message)
+        }
+      }).finally(() => {
+        this.confirmLoading = false
+      })
+    },
 
   }
 }

--
Gitblit v1.9.3