ysy пре 1 година
родитељ
комит
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查分类树
 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) {
     return res.data;
   }

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

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