lucw vor 6 Monaten
Ursprung
Commit
a9a017a05e

+ 2 - 2
src/views/material/BOMmanage/qualityTesting/term.vue

@@ -13,9 +13,9 @@
       @fullscreen-change="fullscreenChange"
       @fullscreen-change="fullscreenChange"
     >
     >
       <template v-slot:toolbar>
       <template v-slot:toolbar>
-        <el-button @click="handAdd" size="mini" type="primary" v-if="!isView&&isQualityInspection" 
+        <!-- <el-button @click="handAdd" size="mini" type="primary" v-if="!isView&&isQualityInspection"
           >新增质检项</el-button
           >新增质检项</el-button
-        >
+        > -->
         <el-button @click="handSelect" size="mini" type="primary" v-if="!isView"
         <el-button @click="handSelect" size="mini" type="primary" v-if="!isView"
           >选择质检方案</el-button
           >选择质检方案</el-button
         >
         >

+ 16 - 2
src/views/rulesManagement/recordPlan/components/programRulesDialog.vue

@@ -884,8 +884,22 @@
           this.addForm.executeIdList = this.addForm.executeUser.map(
           this.addForm.executeIdList = this.addForm.executeUser.map(
             (item) => item.userId
             (item) => item.userId
           );
           );
-          this.addForm.groupId = this.addForm.executeUser[0]?.groupId || '';
-          this.searchDeptNodeClick(this.addForm.groupId);
+
+          let groupIds = this.addForm.executeUser
+            .map((i) => i.groupId)
+            .filter((i) => i);
+          groupIds = Array.from(new Set(groupIds));
+
+          if (groupIds.includes('1')) {
+            // 包含全部部门,置空
+            this.addForm.groupId = '1';
+          } else {
+            this.addForm.groupId = this.addForm.executeUser[0]?.groupId || '1';
+          }
+
+          groupIds.map((item) => {
+            this.searchDeptNodeClick(item);
+          });
         } else {
         } else {
           // 班组
           // 班组
           this.addForm.teamId = this.addForm.executeUser[0]?.teamId || '';
           this.addForm.teamId = this.addForm.executeUser[0]?.teamId || '';

+ 13 - 1
src/views/rulesManagement/releaseRules/components/permitAdd.vue

@@ -138,8 +138,12 @@
               type="date"
               type="date"
               placeholder="请选择启用日期"
               placeholder="请选择启用日期"
               style="width: 100%"
               style="width: 100%"
+              :picker-options="{
+                disabledDate: (time) =>
+                  time.getTime() < new Date(new Date().toDateString()).getTime()
+              }"
               :disabled="type == 'processEdit'"
               :disabled="type == 'processEdit'"
-            ></el-date-picker>
+            />
           </el-form-item>
           </el-form-item>
         </el-col>
         </el-col>
 
 
@@ -1198,6 +1202,7 @@
           });
           });
 
 
           this.formData.startDate = new Date(data.startDate);
           this.formData.startDate = new Date(data.startDate);
+
           this.formData.stopDate = new Date(data.stopDate);
           this.formData.stopDate = new Date(data.stopDate);
           this.formData.classify = this.formData.classify + '';
           this.formData.classify = this.formData.classify + '';
           this.formData.industryType = this.formData.industryType + '';
           this.formData.industryType = this.formData.industryType + '';
@@ -1219,6 +1224,13 @@
             this.formData.executeMethodId = null;
             this.formData.executeMethodId = null;
             this.formData.executeMethodName = '';
             this.formData.executeMethodName = '';
             this.executeMethodList = [];
             this.executeMethodList = [];
+
+            // startDate 小于当前日期则取当前日期
+            const now = new Date();
+            if (this.formData.startDate < now) {
+              this.formData.startDate = now;
+            }
+
           } else {
           } else {
             this.getExecuteMethodList();
             this.getExecuteMethodList();
           }
           }

+ 2 - 2
vue.config.js

@@ -40,10 +40,10 @@ module.exports = {
         // target: 'http://192.168.1.125:18086',
         // target: 'http://192.168.1.125:18086',
         // target: 'http://192.168.1.251:18186',
         // target: 'http://192.168.1.251:18186',
         // target: 'http://192.168.1.125:18086',
         // target: 'http://192.168.1.125:18086',
-        // target: 'http://192.168.1.251:18186', // 测试环境
+        target: 'http://192.168.1.251:18186', // 测试环境
         // target: 'http://192.168.1.251:18087',
         // target: 'http://192.168.1.251:18087',
         // target: 'http://192.168.1.116:18086',
         // target: 'http://192.168.1.116:18086',
-        target: 'http://192.168.1.251:18086',
+        // target: 'http://192.168.1.251:18086',
         // target: 'http://192.168.1.11:18086', // 开发
         // target: 'http://192.168.1.11:18086', // 开发
         // target: 'http://192.168.1.116:18086', // 赵沙金
         // target: 'http://192.168.1.116:18086', // 赵沙金