This commit is contained in:
aihe 2024-06-21 13:12:04 +08:00
parent 87eeb99a25
commit 6829645900

View File

@ -83,7 +83,7 @@
}, },
data() { data() {
return { return {
orderNo: '', billCode: '',
pageLoading: true, pageLoading: true,
queryOption: { queryOption: {
billCode: '', // 运单id billCode: '', // 运单id
@ -112,8 +112,8 @@
}, },
methods: { methods: {
initData() { initData() {
this.orderNo = this.queryOption.billCode || this.queryOption.orderSn this.billCode = this.queryOption.billCode || this.queryOption.orderSn
this.orderNo && (this.queryOrderDetail(this.queryOption)) this.billCode && (this.queryOrderDetail(this.queryOption))
}, },
async queryOrderDetail(params) { async queryOrderDetail(params) {
let res = await apiService.getOrderDetail({...params, _loading: true}) let res = await apiService.getOrderDetail({...params, _loading: true})
@ -140,7 +140,7 @@
}, },
resetForm() { resetForm() {
this.submitParam = {} this.submitParam = {}
this.orderNo = '' this.billCode = ''
} }
} }
} }