Browse Source

no message

WIN-B904R0U0NNS\Administrator 2 years ago
parent
commit
eb0a039e41
1 changed files with 12 additions and 1 deletions
  1. 12 1
      src/views/markets/modules/agreementUnit/account/goodsConsumeForm.vue

+ 12 - 1
src/views/markets/modules/agreementUnit/account/goodsConsumeForm.vue

@@ -320,13 +320,24 @@
                 });
             },
             handleSearch(){
-
+                var typeId = "";
+                var search = "";
+                if (this.model.childStockType){
+                    typeId = this.model.childStockType;
+                }
+                if (this.model.goodsName){
+                    search = this.model.goodsName;
+                }
+                this.url.list = "/rooms/cesGoods/queryList?typeId="+typeId+"&search="+search;
+                this.loadData(1);
             },
             handleChangeType(){
                 if (this.type == 1){
                     this.type = 2;
+                    this.dataSource=[]
                 } else{
                     this.type = 1;
+                    this.loadData(1);
                 }
             },
             submitForm () {