task#6524 有订单才访问

This commit is contained in:
2025-06-19 18:00:36 +08:00
parent a73434fd4d
commit 16d4425e07

View File

@ -263,11 +263,16 @@
this.scrollToBottom(); this.scrollToBottom();
}, },
async getDetail(){ // 订单详情 async getDetail(){ // 订单详情
let result = await getOrderInfo({ if(this.userOrderId) {
userOrderId: this.userOrderId, let result = await getOrderInfo({
userOrderCode: this.userOrderCode userOrderId: this.userOrderId,
}) userOrderCode: this.userOrderCode
this.orderInfo = result.data })
this.orderInfo = result.data
} else {
this.orderInfo = {}
}
}, },
async getReportList() { // 报备大类 async getReportList() { // 报备大类
let res = await getReportListByOrder({ let res = await getReportListByOrder({