cgp 1 неделя назад
Родитель
Сommit
d84f920ebe
1 измененных файлов с 6 добавлено и 4 удалено
  1. 6 4
      src/views/hisStore/components/erpProductSelect.vue

+ 6 - 4
src/views/hisStore/components/erpProductSelect.vue

@@ -83,10 +83,12 @@ export default {
       this.queryParams.pageNum = 1;
       this.getList();
     },
-    getDetails(erpType,isGift){
-      this.queryParams.erpType=erpType;
-      if(isGift){
-        this.queryParams.isGift=isGift;
+    getDetails(erpType, isGift) {
+      this.queryParams.erpType = erpType;
+      if (isGift !== undefined && isGift !== null) {
+        this.queryParams.isGift = isGift;
+      } else {
+        delete this.queryParams.isGift;
       }
       this.getList();
     },