快递查询

This commit is contained in:
Paidax
2025-01-20 16:15:51 +08:00
parent 834cf8ba6e
commit 7dec9973c3
4 changed files with 81 additions and 75 deletions
@@ -610,6 +610,9 @@ public class WelfareCommonController {
public Object courierNumberInfo(String welfareId, String userId) {
//查询的时候去触发福利最新信息
List<WelfareCourierNumber> welfareCourierNumberList = dao.query(WelfareCourierNumber.class, Cnd.where("welfareId", "=", welfareId).and("selectUserId", "=", userId));
if (Lang.isEmpty(welfareCourierNumberList)) {
return Result.error("未获取到您的快递单号,请耐心等待管理员录入");
}
for (WelfareCourierNumber courierNumber : welfareCourierNumberList) {
//如果有上次查询的时间
@@ -14,7 +14,7 @@
<template v-for="item in v" :key="item.courierNumber">
<div class="alert alert-info">
<strong>快递单号</strong>
{{ item.courierNumber || '暂无' }}
{{ item.courierNumber || "暂无" }}
</div>
<div>
@@ -53,20 +53,20 @@ module.exports = {
},
methods: {
async openView(welfareId, userId) {
this.dialogVisible = true
this.loading = true
const {
code,
data,
msg
} = await $.get('/platform/welfare/common/courierNumberInfo', {welfareId, userId})
} = await $.get("/platform/welfare/common/courierNumberInfo", { welfareId, userId })
this.loading = false
if (code === 0) {
if (data == null || data.length === 0) {
this.dialogVisible = false
this.$message.warning('您还没有选择福利套餐')
this.$message.warning("您还没有选择福利套餐")
return
}
this.dialogVisible = true
this.courierNumberInfoData = data
const keys = Object.keys(this.courierNumberInfoData)
this.activeName = keys && keys[0]
@@ -508,7 +508,7 @@ layout("/mobile/platform.html"){
})
this.logisticsTrace = resp.data
} else {
this.$message.error(resp.msg);
this.$toast.msgError(resp.msg);
}
},
@@ -532,7 +532,10 @@ layout("/mobile/platform.html"){
this.activeName = this.optionCourierNumberInfo[keys[0]][0].courierNumber
this.courierNumberShow = true
} else {
this.$modal.msgError(msg)
vant.Dialog.alert({
title: '提示',
message: msg
});
}
},
@@ -126,11 +126,11 @@ layout("/layouts/platform.html"){
<el-button @click="openView(row)" size="mini" type="primary">
查看
</el-button>
<el-button :disabled="!row.courierNumber" @click="openExpress(row)"
<!--<el-button :disabled="!row.courierNumber" @click="openExpress(row)"
size="mini"
type="primary">
查看物流
</el-button>
</el-button>-->
<el-button :disabled="!row.courierNumber" @click="openEvaluate(row)"
size="mini"
type="primary">