diff --git a/src/views/emis/EmisBaseTools/MasterBillCodePicker.vue b/src/views/emis/EmisBaseTools/MasterBillCodePicker.vue
index 51492727..e869cf3c 100644
--- a/src/views/emis/EmisBaseTools/MasterBillCodePicker.vue
+++ b/src/views/emis/EmisBaseTools/MasterBillCodePicker.vue
@@ -37,10 +37,10 @@ export default {
type: [String],
required: false,
},
- transLineType: {
- type: [String],
- required: false,
- },
+ searchParams:{
+ type:Object,
+ required:false,
+ }
},
data() {
return {
@@ -50,8 +50,8 @@ export default {
filterMap: new Map(),
loading: false,
queryParams: {
- transLineType: null,
billCode: null,
+ ...this.searchParams
},
};
},
@@ -61,6 +61,13 @@ export default {
this.svalue=this.value;
this.queryData(null,this.svalue);
},
+ //监听参数变化 重新获取
+ searchParams:{
+ handler(newVal,oldVal){
+ this.queryData();
+ },
+ deep:true
+ }
},
created() {
this.queryData();
@@ -78,14 +85,13 @@ export default {
},
queryData(val) {
- this.queryParams.transLineType = this.transLineType;
+ this.queryParams = {...this.searchParams};
this.queryParams.billCode = val;
getMasterEmisWaybills(this.queryParams).then((response) => {
this.filterData = response.rows.map((item) => {
return {
label: item.billCode,
value: item.billCode,
- // transLineType: item.transLineType,
productType: item.productType
};
});
diff --git a/src/views/emis/emisWaybill/waybillModify.vue b/src/views/emis/emisWaybill/waybillModify.vue
index 238409e4..56db2c88 100644
--- a/src/views/emis/emisWaybill/waybillModify.vue
+++ b/src/views/emis/emisWaybill/waybillModify.vue
@@ -534,7 +534,7 @@
-
+
@@ -1128,6 +1128,13 @@ data() {
};
},
computed: {
+ masterBillSearchParams() {
+ return {
+ transLineType: this.form.transLine,
+ productType: this.form.productType,
+ sendSiteCode: this.form.sendSiteCode
+ }
+ }
},
watch: {
diff --git a/src/views/emis/emisWaybill/waybillRecord.vue b/src/views/emis/emisWaybill/waybillRecord.vue
index bb76795a..cd177a57 100644
--- a/src/views/emis/emisWaybill/waybillRecord.vue
+++ b/src/views/emis/emisWaybill/waybillRecord.vue
@@ -536,7 +536,7 @@
-
+
@@ -1133,6 +1133,13 @@ data() {
};
},
computed: {
+ masterBillSearchParams() {
+ return {
+ transLineType: this.form.transLine,
+ productType: this.form.productType,
+ sendSiteCode: this.form.sendSiteCode
+ }
+ }
},
watch: {