Browse Source

添加质检模板验证接口及优化质检模式禁用逻辑

yusheng 6 months ago
parent
commit
d43e95618b

+ 10 - 1
src/api/inspectionPlan/index.js

@@ -211,4 +211,13 @@ export async function planDetails(id) {
     return res.data;
   }
   return Promise.reject(new Error(res.data.message));
-}
+}
+
+// 验证
+export async function checkTemplateById(id) {
+  const res = await request.get(`/qms/quality_plan/checkTemplateById/${id}`);
+  if (res.data.code == 0) {
+    return res.data;
+  }
+
+}

+ 1 - 1
src/views/inspectionPlan/components/new-baseInfo.vue

@@ -44,7 +44,7 @@
             v-model="form.qualityMode"
             clearable
             @change="changeQualityMode"
-            :disabled="btnType == 'detail' || btnType == 'issued'"
+            :disabled="btnType == 'detail'"
           ></DictSelection>
         </el-form-item>
       </el-col>

File diff suppressed because it is too large
+ 913 - 803
src/views/inspectionPlan/components/new-edit.vue


Some files were not shown because too many files changed in this diff