ysy 1 год назад
Родитель
Сommit
4c35849bcb
2 измененных файлов с 5 добавлено и 2 удалено
  1. 1 1
      src/api/classifyManage/index.js
  2. 4 1
      src/views/inspectionWork/components/edit.vue

+ 1 - 1
src/api/classifyManage/index.js

@@ -19,7 +19,7 @@ export async function saveOrUpdate(data) {
 
 
 // 根据父级id查分类树
 // 根据父级id查分类树
 export async function getTreeByPid(parentId) {
 export async function getTreeByPid(parentId) {
-  const res = await request.get(`/main/categoryLevel/getTreeByPid/${parentId}`);
+  const res = await request.get(`/main/getTreeByPid/${parentId}`);
   if (res.data.code == 0) {
   if (res.data.code == 0) {
     return res.data;
     return res.data;
   }
   }

+ 4 - 1
src/views/inspectionWork/components/edit.vue

@@ -372,9 +372,12 @@
         this.visible = true;
         this.visible = true;
       },
       },
       inputValue() {
       inputValue() {
-        this.form.total =
+        if(!this.form.qualityPlanId) {
+          this.form.total =
           Number(this.form.qualifiedNumber) +
           Number(this.form.qualifiedNumber) +
           Number(this.form.noQualifiedNumber);
           Number(this.form.noQualifiedNumber);
+        }
+  
       },
       },
       addProduct() {
       addProduct() {
         this.$refs.equipmentRefs.open();
         this.$refs.equipmentRefs.open();