695593266@qq.com 5 månader sedan
förälder
incheckning
02dbcbba87

+ 12 - 2
src/views/produce/components/workPlan/components/addSample.vue

@@ -320,7 +320,7 @@
         type="primary"
         @click="save('submit')"
         v-loading="loading"
-        v-if="type != 'view'"
+        v-if="type != 'view' && isProcess"
         >提交</el-button
       >
 
@@ -342,6 +342,7 @@
 <script>
   import processSubmitDialog from '@/components/processSubmitDialog/processSubmitDialog.vue';
   import { recordingMethodList } from '@/utils/util.js';
+  import { parameterGetByCode } from '@/api/system/dictionary-data';
 
   const defForm = {
     code: '', //编码
@@ -629,7 +630,8 @@
         tableList: [],
         type: 'add',
         title: '',
-        qualityMode: []
+        qualityMode: [],
+        isProcess: true
       };
     },
 
@@ -643,6 +645,7 @@
         this.activeComp = 'main';
         this.visible = true;
         await this.getQualityMethodCode();
+        await this.getProcess();
         this.type = type;
         this.title =
           type == 'add' ? '请样' : type == 'edit' ? '修改请样' : '详情';
@@ -654,6 +657,13 @@
           this.getById(row.id);
         }
       },
+
+      async getProcess() {
+        await parameterGetByCode({ code: 'sampling_approval' }).then((res) => {
+          this.isProcess = res.value == '1' ? true : false;
+        });
+      },
+
       async init(row) {
         let data = await samplingRecordsPage({
           qualityWorkOrderId: row.id

+ 1 - 1
src/views/taskList/index.vue

@@ -134,7 +134,7 @@
             :underline="false"
             type="primary"
             @click="details('report', row)"
-            v-if="tabValue == '4' && !row.status"
+            v-if="tabValue == '4' && row.status != 5"
             >报工
           </el-link>
           <!-- <el-link