Browse Source

no message

WIN-B904R0U0NNS\Administrator 2 years ago
parent
commit
eb0a039e41

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

@@ -320,13 +320,24 @@
                 });
                 });
             },
             },
             handleSearch(){
             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(){
             handleChangeType(){
                 if (this.type == 1){
                 if (this.type == 1){
                     this.type = 2;
                     this.type = 2;
+                    this.dataSource=[]
                 } else{
                 } else{
                     this.type = 1;
                     this.type = 1;
+                    this.loadData(1);
                 }
                 }
             },
             },
             submitForm () {
             submitForm () {