695593266@qq.com hai 7 meses
pai
achega
b6f4154187

+ 6 - 4
src/components/selectPlanRules/selectPlanRules.vue

@@ -62,9 +62,11 @@
         })
         })
       },
       },
       // 1巡点检 2保养
       // 1巡点检 2保养
-      ruleType: {
-        type: Number,
-        default: 1
+      ruleTypes: {
+        type: Array,
+        default: () => {
+          return [1, 2];
+        }
       }
       }
     },
     },
     computed: {
     computed: {
@@ -241,7 +243,7 @@
           size: limit,
           size: limit,
           ...where,
           ...where,
           ...this.where,
           ...this.where,
-          ruleType: this.ruleType
+          ruleTypes: this.ruleTypes
         });
         });
       },
       },
       /* 刷新表格 */
       /* 刷新表格 */

+ 17 - 1
src/views/material/BOMmanage/components/workingProcedure.vue

@@ -236,6 +236,7 @@
           <term
           <term
             :qualityParam="qualityParam"
             :qualityParam="qualityParam"
             :isView="isView"
             :isView="isView"
+            :isQualityInspection="false"
             ref="qualityParamRef"
             ref="qualityParamRef"
           ></term>
           ></term>
         </el-tab-pane>
         </el-tab-pane>
@@ -797,6 +798,13 @@
             ref="userSettingMatterProcessRef"
             ref="userSettingMatterProcessRef"
           ></userSettingMatterProcess>
           ></userSettingMatterProcess>
         </el-tab-pane>
         </el-tab-pane>
+        <el-tab-pane label="首件两检" name="首件两检">
+          <term
+            :qualityParam="firstArticleDualInspectionParam"
+            :isView="isView"
+            ref="firstArticleDualInspectionParamRef"
+          ></term>
+        </el-tab-pane>
       </el-tabs>
       </el-tabs>
     </el-card>
     </el-card>
     <!-- 选择工艺参数 -->
     <!-- 选择工艺参数 -->
@@ -1239,6 +1247,7 @@
         },
         },
 
 
         qualityParam: [],
         qualityParam: [],
+        firstArticleDualInspectionParam:[],
         qualityPointParam: [],
         qualityPointParam: [],
 
 
         fileShow: false,
         fileShow: false,
@@ -1602,7 +1611,10 @@
         } else if (this.activeName === '质检项参数') {
         } else if (this.activeName === '质检项参数') {
           this.qualityParam =
           this.qualityParam =
             this.tableData.taskParam[this.currentIndex].qualityParam || [];
             this.tableData.taskParam[this.currentIndex].qualityParam || [];
-        } else if (this.activeName === '生产节拍') {
+        }else if (this.activeName === '首件两检') {
+          this.firstArticleDualInspectionParam =
+            this.tableData.taskParam[this.currentIndex].firstArticleDualInspectionParam || [];
+        }  else if (this.activeName === '生产节拍') {
           this.beatParam =
           this.beatParam =
             this.tableData.taskParam[this.currentIndex].beatParam ||
             this.tableData.taskParam[this.currentIndex].beatParam ||
             this.beatParam;
             this.beatParam;
@@ -1876,6 +1888,10 @@
                 this.tableData.taskParam[this.currentIndex].qualityParam =
                 this.tableData.taskParam[this.currentIndex].qualityParam =
                   this.$refs.qualityParamRef.getDate() || [];
                   this.$refs.qualityParamRef.getDate() || [];
               }
               }
+              if (this.$refs.firstArticleDualInspectionParamRef) {
+                this.tableData.taskParam[this.currentIndex].firstArticleDualInspectionParam =
+                  this.$refs.firstArticleDualInspectionParamRef.getDate() || [];
+              }
               //工艺文件只传id
               //工艺文件只传id
               let fileParamArr = JSON.parse(
               let fileParamArr = JSON.parse(
                 JSON.stringify(this.tableData.taskParam)
                 JSON.stringify(this.tableData.taskParam)

+ 5 - 1
src/views/material/BOMmanage/qualityTesting/term.vue

@@ -13,7 +13,7 @@
       @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"
+        <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"
@@ -152,6 +152,10 @@
       isView: {
       isView: {
         type: Boolean,
         type: Boolean,
         default: false
         default: false
+      },
+      isQualityInspection: {
+        type: Boolean,
+        default: true
       }
       }
     },
     },
 
 

+ 0 - 1
src/views/rulesManagement/recordrulesexecutemethod/components/edit.vue

@@ -87,7 +87,6 @@
     recordrulesexecutemethodUpdate,
     recordrulesexecutemethodUpdate,
     recordrulesexecutemethodGetById
     recordrulesexecutemethodGetById
   } from '@/api/recordrulesexecutemethod/index';
   } from '@/api/recordrulesexecutemethod/index';
-  import { load } from '@amap/amap-jsapi-loader';
 
 
   export default {
   export default {
     mixins: [dictMixins],
     mixins: [dictMixins],

+ 2 - 0
src/views/technology/production/index.vue

@@ -59,6 +59,7 @@
             批量修改工作中心
             批量修改工作中心
           </el-button>
           </el-button>
           <el-button
           <el-button
+            v-if="$hasPermission('main:producetask:pre_after_config_item')"
             size="small"
             size="small"
             type="primary"
             type="primary"
             class="ele-btn-icon"
             class="ele-btn-icon"
@@ -141,6 +142,7 @@
             :underline="false"
             :underline="false"
             icon="el-icon-setting"
             icon="el-icon-setting"
             @click="openSettingMatterProcess(row)"
             @click="openSettingMatterProcess(row)"
+            v-if="$hasPermission('main:produce_task:config_item')"
           >
           >
             配置
             配置
           </el-link>
           </el-link>

+ 3 - 0
vue.config.js

@@ -37,6 +37,9 @@ module.exports = {
         // target: 'http://192.168.1.176:18086',
         // target: 'http://192.168.1.176:18086',
         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.251:18186',
+        // 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',