源码结构重构

This commit is contained in:
dzl 2025-05-16 11:13:03 +08:00
parent 8889e9b5cb
commit 804c0a7e48
12 changed files with 59 additions and 21 deletions

View File

@ -271,7 +271,7 @@ const columns = ref([
}
]);
const queryform = ref({
state: "",
state: activeKey.value,
cyclingOrder: '',
phoneNumber: '',
pageNum: config.pageParam.pageNum,
@ -299,6 +299,7 @@ const search = () => {
const reset = () => {
queryform.value = {
state: activeKey.value,
cyclingOrder: '',
phoneNumber: '',
pageNum: config.pageParam.pageNum,
@ -308,7 +309,7 @@ const reset = () => {
}
const getData = async () => {
callUser("/staff/pageQueryStaffs", queryform.value).then((res) => {
callUser("/wxPayment/queryRefundList", queryform.value).then((res) => {
if (res.code != 200) {
message.error(res.message)
dataSource.value = []
@ -762,7 +763,6 @@ const handleCancelModalRevie = () => {
});
}
const handleCompleteRefund = () => {
openConfirm.value = true;
nextTick(() => {
@ -791,5 +791,12 @@ const handleCancelModalConfirm = () => {
});
}
const viewUserInfo = (record) => {
}
const viewOrderInfo = (record) => {
}
</script>

View File

@ -8,20 +8,20 @@
<a-row>
<a-col :span="12">
<a-form-item
label="支付方式"
label="订单编号"
:label-col="{ span: 6 }"
:wrapper-col="{ span: 21 }"
>
<span>微信</span>
<span>{{costInfo.orderNumber}}</span>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item
label="用户"
label="用户手机"
:label-col="{ span: 6 }"
:wrapper-col="{ span: 21 }"
>
<span>18507702086(王婷)</span>
<span>{{costInfo.phone}}</span>
</a-form-item>
</a-col>
</a-row>
@ -29,20 +29,20 @@
<a-row>
<a-col :span="12">
<a-form-item
label="支付方式"
label="退款金额"
:label-col="{ span: 6 }"
:wrapper-col="{ span: 21 }"
>
<span>微信</span>
<span>{{costInfo.applyRefundAmount}}</span>
</a-form-item>
</a-col>
<a-col :span="12">
<a-form-item
label="用户"
label="退款方式"
:label-col="{ span: 6 }"
:wrapper-col="{ span: 21 }"
>
<span>18507702086(王婷)</span>
<span>{{costInfo.refundMethod}}</span>
</a-form-item>
</a-col>
</a-row>

View File

@ -12,7 +12,12 @@
:label-col="{ span: 3 }"
:wrapper-col="{ span: 21 }"
>
<span>{{costInfo.orderAmount}} <span class="spanCss">= 起步费用1.1 + 时长费用2.25 + 调度费0 </span></span>
<span>{{costInfo.totalAmount}}
<span class="spanCss">
= 起步费用{{costInfo.startupCost}} + 时长费用{{costInfo.durationCost}}
+ 调度费{{costInfo.dispatchFee}}
</span>
</span>
</a-form-item>
</a-col>
</a-row>
@ -23,8 +28,13 @@
:label-col="{ span: 3 }"
:wrapper-col="{ span: 21 }"
>
<span>0 <span class="spanCss">= 运营区外调度费用0 + 禁停区调度费0 + 停车区外调度费0 + 头盔管理费0 + 不规范停车费0
</span></span>
<span>{{costInfo.dispatchFee}}
<span class="spanCss">
= 运营区外调度费用{{costInfo.dispatchFeeOutOperateArea}} + 禁停区调度费{{costInfo.dispatchFeeBanArea}}
+ 停车区外调度费{{costInfo.parkingAreaOutDispatchFee}} + 头盔管理费{{costInfo.helmetManagementFee}}
+ 不规范停车费{{costInfo.improperParkFee}}
</span>
</span>
</a-form-item>
</a-col>
</a-row>
@ -35,7 +45,12 @@
:label-col="{ span: 3 }"
:wrapper-col="{ span: 21 }"
>
<span>3.35 <span class="spanCss">= 订单金额3.35 - 优惠金额0 - 优惠券抵扣金额0 - 骑行卡抵扣金额0 </span></span>
<span>{{costInfo.actualAmount}}
<span class="spanCss">
= 订单金额{{costInfo.totalAmount}} - 优惠金额{{costInfo.discountAmount}}
- 优惠券抵扣金额{{costInfo.couponAmount}} - 骑行卡抵扣金额{{costInfo.cyclingCardAmount}}
</span>
</span>
</a-form-item>
</a-col>
</a-row>
@ -46,7 +61,7 @@
:label-col="{ span: 6 }"
:wrapper-col="{ span: 21 }"
>
<span>微信</span>
<span>{{costInfo.payMethod}}</span>
</a-form-item>
</a-col>
<a-col :span="12">
@ -55,7 +70,7 @@
:label-col="{ span: 6 }"
:wrapper-col="{ span: 21 }"
>
<span>18507702086(王婷)</span>
<span>{{costInfo.phoneAndUser}}</span>
</a-form-item>
</a-col>
</a-row>
@ -66,7 +81,7 @@
:label-col="{ span: 3 }"
:wrapper-col="{ span: 21 }"
>
<span>忘记还车</span>
<span>{{costInfo.applyReason}}</span>
</a-form-item>
</a-col>
</a-row>
@ -86,7 +101,7 @@
:label-col="{ span: 3 }"
:wrapper-col="{ span: 21 }"
>
<span>3.35 <span class="spanCss">= 订单金额3.35 - 优惠金额0 - 优惠券抵扣金额0 - 骑行卡抵扣金额0 </span></span>
<span>{{costInfo.applyRefundAmount}} </span>
</a-form-item>
</a-col>
</a-row>
@ -162,8 +177,24 @@ const formData = () => ({
refundMethod: ""
});
const costInfo = ref({
orderAmount: 0,
totalAmount: 0,
startupCost: 0,
durationCost: 0,
dispatchFee: 0,
dispatchFeeOutOperateArea: 0,
dispatchFeeBanArea: 0,
dispatchFeeOutOperateArea: 0,
parkingAreaOutDispatchFee: 0,
helmetManagementFee: 0,
improperParkFee: 0,
actualAmount: 0,
discountAmount: 0,
couponAmount: 0,
cyclingCardAmount: 0,
payMethod: "",
applyReason: "",
applyRefundAmount: 0,
phoneAndUser: ""
})
const form = ref(formData());