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/spare/modules/sparePartPurchaseStorage/SparePartPurchaseStorageModal.vue |   59 +++++++++++++++++++++++++++++++++++------------------------
 1 files changed, 35 insertions(+), 24 deletions(-)

diff --git a/src/views/spare/modules/sparePartPurchaseStorage/SparePartPurchaseStorageModal.vue b/src/views/spare/modules/sparePartPurchaseStorage/SparePartPurchaseStorageModal.vue
index 8bbd37e..0a8c917 100644
--- a/src/views/spare/modules/sparePartPurchaseStorage/SparePartPurchaseStorageModal.vue
+++ b/src/views/spare/modules/sparePartPurchaseStorage/SparePartPurchaseStorageModal.vue
@@ -20,7 +20,7 @@
             >
               <a-input
                 placeholder='璇疯緭鍏ュ簱鍗曠紪鍙�'
-                :disabled="disableSubmit"
+                :disabled="true"
                 v-decorator="['num', validatorRules.num]"
               />
             </a-form-item>
@@ -31,19 +31,13 @@
               :labelCol='labelCol'
               :wrapperCol='wrapperCol'
             >
-<!--              <j-dict-select-tag
-                allow-clear
-                :disabled='disableSubmit'
-                :placeholder="disableSubmit?'':'璇烽�夋嫨閲囪喘閮ㄩ棬'"
-                :triggerChange='true'
-                dictCode="sys_depart,depart_name,id,del_flag!='1'"
-                v-decorator="['departId', validatorRules.departId]"
-              />-->
-              <a-select
-                :placeholder="'璇烽�夋嫨閲囪喘閮ㄩ棬'"
-                :options="this.departs"
+
+              <a-tree-select
                 style="width: 100%"
-                :disabled="disableSubmit"
+                :dropdown-style="{ maxHeight: '400px', overflow: 'auto' }"
+                :tree-data="treeData"
+                placeholder="璇烽�夋嫨閲囪喘閮ㄩ棬"
+                tree-default-expand-all
                 v-decorator="['departId', validatorRules.departId]"
               />
             </a-form-item>
@@ -214,6 +208,7 @@
   },
   data() {
     return {
+      treeData:[],
       departs: [],
       columns: [
         {
@@ -282,17 +277,17 @@
           scopedSlots: { customRender: 'manufactureDate' }
         },
         {
-          title: '涓诲崟浣�',
+          title: '鍗曚綅',
           align: 'center',
           dataIndex: 'mainUnitName'
         },
         {
-          title: '涓绘暟閲�',
+          title: '鏁伴噺',
           align: 'center',
           dataIndex: 'mainQuantity',
           scopedSlots: { customRender: 'mainQuantity' }
         },
-        {
+        /* {
           title: '杈呭崟浣�',
           align: 'center',
           dataIndex: 'auxiliaryUnitName'
@@ -301,7 +296,7 @@
           title: '杈呮暟閲�',
           align: 'center',
           dataIndex: 'auxiliaryQuantity'
-        },
+        }, */
         {
           title: '鎿嶄綔',
           align: 'center',
@@ -354,10 +349,12 @@
         getSysDeparts: "/eam/equipment/getSysDeparts",
         add: '/spare/sparePartPurchaseStorage/add',
         edit: '/spare/sparePartPurchaseStorage/edit',
+        loadOptions: '/sys/sysDepart/loadDepartTreeOptions',
         getSuppliers: '/spare/sparePartPurchaseStorageDeatil/getSuppliers',
         getWarehouseAreas: '/spare/sparePartPurchaseStorageDeatil/getWarehouseAreas',
         getWarehouseLocations: '/spare/sparePartPurchaseStorageDeatil/getWarehouseLocations',
-        getWarehouses: '/base/warehouse/queryById'
+        getWarehouses: '/base/warehouse/queryById',
+        getNum: '/eam/sysIdentity/getNumNew',
       },
 
       dataSource: []
@@ -377,9 +374,9 @@
           model: data[i].model,
           mainUnitId: data[i].mainUnitId,
           mainUnitName: data[i].mainUnitId_dictText,
-          auxiliaryUnitId: data[i].auxiliaryUnitId,
+       /*    auxiliaryUnitId: data[i].auxiliaryUnitId,
           auxiliaryUnitName: data[i].auxiliaryUnitId_dictText,
-          conversionRatio: data[i].conversionRatio,
+          conversionRatio: data[i].conversionRatio, */
           constructorId: data[i].constructorId,
           constructorName: data[i].constructorId_dictText,
           suppliers: this.suppliers,
@@ -390,9 +387,7 @@
     })
   },
 
-  created() {
-    this.getSysDeparts();
-  },
+  created() {},
   methods: {
     getSysDeparts() {
       getAction(this.url.getSysDeparts).then((res) => {
@@ -424,6 +419,7 @@
       that.form.resetFields()
       that.model = Object.assign({}, record)
       that.visible = true
+      that.initOptions();
       if (record.sparePartPurchaseStorageDeatilList != undefined) {
         const temp = [...record.sparePartPurchaseStorageDeatilList]
         that.dataSource = temp
@@ -435,9 +431,24 @@
         this.codeDisable = true
       } else {
         this.codeDisable = false
+        this.$nextTick(() => {
+          getAction(this.url.getNum, { type: 'SparePartPurchaseStorage', length: '4' }).then((res) => {
+            if (res.success) {
+              this.form.setFieldsValue({ num: res.message });
+            }
+          })
+        });
       }
     },
-
+    initOptions() {
+      getAction(this.url.loadOptions).then(res => {
+        if (res.success) {
+          this.treeData = res.result
+        } else {
+          this.$message.warning(res.message)
+        }
+      })
+    },
     close() {
       this.$emit('close')
       this.visible = false

--
Gitblit v1.9.3