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/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue |   58 +++++++++++++++++++++++++++++++---------------------------
 1 files changed, 31 insertions(+), 27 deletions(-)

diff --git a/src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue b/src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue
index 1e015a7..cca34ff 100644
--- a/src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue
+++ b/src/views/eam/modules/dailyInspectionStandard/DailylnspectionStandardModal.vue
@@ -131,17 +131,15 @@
         <a-row :gutter="24">
           <a-col :span="12">
             <a-form-item
-              label="娲惧伐鏂瑰紡"
+              label="绠$悊鍒跺害"
               :labelCol="labelCol"
               :wrapperCol="wrapperCol"
             >
-              <j-dict-select-tag
+              <a-input
                 allow-clear
-                :disabled="disableSubmit"
-                :placeholder="disableSubmit?'':'璇烽�夋嫨娲惧伐鏂瑰紡'"
-                :triggerChange="true"
-                dictCode="assign_mode"
-                v-decorator="['assignMode', validatorRules.assignMode]"
+                :disabled="false"
+                :placeholder="disableSubmit?'':'璇疯緭鍏ョ鐞嗗埗搴�'"
+                v-decorator="['disUda1', validatorRules.disUda1 ]"
               />
             </a-form-item>
           </a-col>
@@ -226,7 +224,7 @@
             style="width: 100%"
             :disabled="false"
           />
-          <j-image-upload
+          <!-- <j-image-upload
             :value="text"
             v-if="col.dataIndex == 'photo'"
             :isMultiple="false"
@@ -234,7 +232,7 @@
             placeholder="璇蜂笂浼犲浘鐗�"
             @change="(e)=>handleChange(e, record.key, col, index)"
           >
-          </j-image-upload>
+          </j-image-upload> -->
           <a-input
             :value="text"
             v-if="col.dataIndex == 'location'"
@@ -326,7 +324,7 @@
           dataIndex: 'name'
         },
         {
-          title: '妫�娴嬫爣鍑�',
+          title: '瀹屾垚鏁版嵁/瑕佹眰',
           align: 'center',
           dataIndex: 'detectionStandard'
         },
@@ -350,22 +348,21 @@
           align: 'center',
           dataIndex: 'inspectionCycleId',
           scopedSlots: { customRender: 'inspectionCycleId' },
-          width: 170,
         },
-        {
-          title: '绀烘剰鍥�',
-          align: 'center',
-          dataIndex: 'photo',
-          scopedSlots: { customRender: 'photo' },
-          width: 170,
-        },
-        {
-          title: '閮ㄤ綅',
-          align: 'center',
-          dataIndex: 'location',
-          scopedSlots: { customRender: 'location' },
-          width: 170,
-        },
+        // {
+        //   title: '绀烘剰鍥�',
+        //   align: 'center',
+        //   dataIndex: 'photo',
+        //   scopedSlots: { customRender: 'photo' },
+        //   width: 170,
+        // },
+        // {
+        //   title: '閮ㄤ綅',
+        //   align: 'center',
+        //   dataIndex: 'location',
+        //   scopedSlots: { customRender: 'location' },
+        //   width: 170,
+        // },
         {
           title: '鎿嶄綔',
           align: 'center',
@@ -418,6 +415,11 @@
         historyVersion: {
           rules: [
             { required: true, message: '璇疯緭鍏ュ巻鍙茬増鏈�!' },
+          ]
+        },
+        disUda1: {
+          rules: [
+            { required: true, message: '璇疯緭鍏ョ鐞嗗埗搴�!' },
           ]
         },
       },
@@ -475,7 +477,7 @@
     edit(record) {
       let that = this;
       that.getInspectionCycle()
-      that.initOptions();
+      // that.initOptions();
       that.dataSource = [];
       that.form.resetFields();
       that.model = Object.assign({}, record);
@@ -485,7 +487,7 @@
         that.dataSource = temp;
       }
       that.$nextTick(() => {
-        that.form.setFieldsValue(pick(that.model, 'num', 'equipmentId', 'equipmentName', 'useDepartName', 'useId', 'teamName', 'assignMode', 'version', 'remark'));
+        that.form.setFieldsValue(pick(that.model, 'num', 'equipmentId', 'equipmentName', 'useDepartName', 'disUda1', 'useId', 'teamName', 'assignMode', 'version', 'remark'));
       });
       if (record.id) {
         that.codeDisable = true;
@@ -563,10 +565,12 @@
           let obj;
           if (!this.model.id) {
             formData.versionStatus = '1'
+            formData.approvalStatus = '1'
             obj = postAction(this.url.add, formData);
           } else {
             if (this.isRevise) {
               formData.versionStatus = '1'
+              formData.approvalStatus = '1'
               obj = postAction(this.url.revise, formData);
             } else {
               obj = requestPut(this.url.edit, formData, { id: this.model.id });

--
Gitblit v1.9.3