Przeglądaj źródła

记录规则添加成品统计分类

lucw 7 miesięcy temu
rodzic
commit
e25c6af689

+ 19 - 0
src/views/rulesManagement/releaseRules/components/permitAdd.vue

@@ -116,6 +116,7 @@
               placeholder="请选择模块"
               :clearable="false"
               :isProhibit="type == 'processEdit'"
+              @change="reportWorkTypeChange"
             ></dict-selection>
           </el-form-item>
         </el-col>
@@ -1490,10 +1491,28 @@
       classifyChagne() {
         // 生产统计
         if (this.formData.classify == 10) {
+          // 模块分类- 生产统计
+          this.formData.reportWorkType = '4';
           // 清空规则明细
           this.formData.details = [];
           // 重置统计类型
           this.statisticsType = '1';
+        } else {
+          if (this.formData.reportWorkType == '4') {
+            this.formData.reportWorkType = '1';
+          }
+        }
+      },
+      reportWorkTypeChange() {
+        if (this.formData.reportWorkType == '4') {
+          // 模块分类- 生产统计
+          this.formData.classify = '10';
+          // 重置统计类型
+          this.statisticsType = '1';
+        } else {
+          if (this.formData.classify == 10) {
+            this.formData.classify = null;
+          }
         }
       },
       // 基于详情返回selectOptions