yusheng 6 bulan lalu
induk
melakukan
f443e813d1

+ 5 - 10
src/views/inspectionWork/components/newQualityContentTabs.vue

@@ -329,7 +329,6 @@
                 style="width: 100%"
                 remote
                 filterable
-                :remote-method="getBadTypeList"
                 clearable
                 @change="badTypeChange(row)"
               >
@@ -359,7 +358,6 @@
                 style="width: 100%"
                 remote
                 filterable
-                :remote-method="(name) => getBadNameList(name, row.badTypeId)"
                 clearable
                 @change="badNameChange(row)"
               >
@@ -1220,7 +1218,7 @@
         if (badType) {
           row.badTypeName = badType.name;
         }
-        this.getBadNameList('', row.badTypeId);
+        this.getBadNameList(row.badTypeId);
       },
       // 不良名称改变
       badNameChange(row) {
@@ -1233,23 +1231,20 @@
         }
       },
       // 查询不良类型
-      async getBadTypeList(name = '') {
+      async getBadTypeList() {
         const res = await getBadTypeList({
           pageNum: 1,
-          size: 50,
-          name: name
+          size: 999
         });
         this.badTypeList = res.list;
       },
       // 查询不良名称
-      async getBadNameList(name = '', badTypeId = 0) {
+      async getBadNameList(badTypeId = 0) {
         const res = await getBadNameList({
           pageNum: 1,
-          size: 50,
-          name: name,
+          size: 999,
           badTypeId: badTypeId
         });
-        console.log('this.badNameList', this.badNameList);
         this.badNameList = res.list;
       },
       //合格数量变化设置样品清单 全减并且不拆包才执行

+ 7 - 13
src/views/unqualifiedProduct/unqualifiedList/components/create.vue

@@ -161,7 +161,6 @@
                 style="width: 100%"
                 remote
                 filterable
-                :remote-method="getBadTypeList"
                 clearable
                 @change="badTypeChange(row)"
               >
@@ -200,7 +199,6 @@
                 style="width: 100%"
                 remote
                 filterable
-                :remote-method="(name) => getBadNameList(name, row.badTypeId)"
                 clearable
                 @change="badNameChange(row)"
               >
@@ -239,7 +237,6 @@
                 style="width: 100%"
                 remote
                 filterable
-                :remote-method="getReasonTypeList"
                 clearable
                 @change="reasonTypeChange(row)"
               >
@@ -693,32 +690,29 @@
         });
       },
       // 查询不良类型
-      async getBadTypeList(name = '') {
+      async getBadTypeList() {
         const res = await getBadTypeList({
           pageNum: 1,
-          size: 50,
-          name: name
+          size: 999,
         });
         console.log('this.badTypeList', this.badTypeList);
         this.badTypeList = res.list;
       },
       // 查询不良名称
-      async getBadNameList(name = '', badTypeId = 0) {
+      async getBadNameList( badTypeId = 0) {
         const res = await getBadNameList({
           pageNum: 1,
-          size: 50,
-          name: name,
+          size: 999,
           badTypeId: badTypeId
         });
         console.log('this.badNameList', this.badNameList);
         this.badNameList = res.list;
       },
       // 查询原因类型
-      async getReasonTypeList(name = '') {
+      async getReasonTypeList() {
         const res = await getReasonTypeList({
           pageNum: 1,
-          size: 50,
-          name: name
+          size: 999,
         });
         console.log('this.reasonTypeList', this.reasonTypeList);
         this.reasonTypeList = res.list;
@@ -733,7 +727,7 @@
         if (badType) {
           row.badTypeName = badType.name;
         }
-        this.getBadNameList('', row.badTypeId);
+        this.getBadNameList( row.badTypeId);
       },
       // 不良名称改变
       badNameChange(row) {