diff --git a/src/components/XdTextareaInput/index.vue b/src/components/XdTextareaInput/index.vue index dd01d1cf..37b38e4a 100644 --- a/src/components/XdTextareaInput/index.vue +++ b/src/components/XdTextareaInput/index.vue @@ -44,6 +44,11 @@ export default { svalue:this.value, } }, + watch: { + value(newVal) { + this.svalue = newVal; + } + }, methods: { onClear(){ this.svalue=null; diff --git a/src/views/emis/emisWaybill/sendWaybillList.vue b/src/views/emis/emisWaybill/sendWaybillList.vue index 441e9256..cbc0ddc5 100644 --- a/src/views/emis/emisWaybill/sendWaybillList.vue +++ b/src/views/emis/emisWaybill/sendWaybillList.vue @@ -924,7 +924,8 @@ export default { } }, watch: { - $route () { + $route (to,from) { + const billCode = to.query.billCode; if(this.$route.query.action=='queryByCredit'){ if(this.$route.query.custNo!=null){ this.queryParams.custNo=this.$route.query.custNo; @@ -951,7 +952,10 @@ export default { this.getList(); } - + if(billCode){ + this.queryParams.billCode = billCode; + this.getList(); + } } }, created() {