新增营销系统、分销系统、会员功能、门店、提现功能

This commit is contained in:
Shaw
2024-02-08 21:01:37 +08:00
parent 68b3f2dcc3
commit 17c043348a
1398 changed files with 81279 additions and 56269 deletions

View File

@ -42,53 +42,56 @@
:class="data.state === 3 && 'color-y'"
>{{ data.state === 3 ? '成功退款' : '待平台处理' }}
</text>
<text class="text">{{ data.state === 3 ? '成功' : '' }}退款¥{{data.refundAmount.toFixed(2)}}</text>
<text class="text">{{ data.state === 3 ? '成功' : '' }}退款¥{{ data.refundAmount.toFixed(2) }}</text>
</view>
<view class="order-actions">
<!-- 已完成 -->
<view class="order-actions-left">
<view class="order-actions">
<!-- 已完成 -->
<view class="order-actions-left">
</view>
<view class="order-actions-btns">
<view
class="order-actions-default"
@tap="showModal(0)"
v-if="[3,4].includes(data.state)"
>
删除记录
</view>
<view class="order-actions-btns">
<view
class="order-actions-default"
@tap="showModal(0)"
v-if="[3,4].includes(data.state)"
>
删除记录
</view>
<view
class="order-actions-default"
@tap="showModal(1)"
v-if="[0,1].includes(data.state)"
>
撤销申请
</view>
<view
class="order-actions-default"
@tap="toRefund"
v-if="data.state === 5"
>
再次申请
</view>
<view
class="order-actions-default"
@tap="toAddLogistics"
v-if="data.state === 1"
>
填写物流
</view>
<view
class="order-actions-primary"
@tap="toOrderInfo"
>
查看详情
</view>
<view
class="order-actions-default"
@tap="showModal(1)"
v-if="[0,1].includes(data.state)"
>
撤销申请
</view>
<view
class="order-actions-default"
@tap="toRefund"
v-if="data.state === 5"
>
再次申请
</view>
<view
class="order-actions-default"
@tap="toAddLogistics"
v-if="data.state === 1"
>
填写物流
</view>
<view
class="order-actions-primary"
@tap="toOrderInfo"
>
查看详情
</view>
</view>
</view>
</view>
<Modal ref="modalRef" :content="modalTitle" @confirm="confirmModal" />
<Modal
ref="modalRef"
:content="modalTitle"
@confirm="confirmModal" />
</view>
</template>
@ -120,8 +123,8 @@ const totalPrice = ref(props.data.totalPrice)
const modalRef = ref()
const modalType = ref(0) // 0删除记录 1撤销申请
const modalTitle = computed(()=>{
const tipsArr = ['确认删除记录吗?','确认撤销申请吗?']
const modalTitle = computed(() => {
const tipsArr = ['确认删除记录吗?', '确认撤销申请吗?']
return tipsArr[modalType.value]
})
@ -129,7 +132,7 @@ const modalTitle = computed(()=>{
* 打开弹窗
* @param {number} type 0删除记录 1撤销申请
*/
function showModal(type){
function showModal(type) {
modalType.value = type
unref(modalRef).show()
}
@ -137,8 +140,8 @@ function showModal(type){
/**
* 确认弹窗
*/
function confirmModal(){
const funcArr = [doDeleteRequest,doRevoke]
function confirmModal() {
const funcArr = [doDeleteRequest, doRevoke]
funcArr[modalType.value]()
}
@ -146,7 +149,8 @@ function confirmModal(){
* 确认删除
* @returns {Promise<void>}
*/
async function doDeleteRequest(){
async function doDeleteRequest() {
console.log(data.value)
await afterSalesOrderDelete({
id: data.value.id,
orderCode: data.value.orderCode
@ -159,7 +163,7 @@ async function doDeleteRequest(){
* 确认撤销
* @returns {Promise<void>}
*/
async function doRevoke(){
async function doRevoke() {
await afterSalesOrderRevoke({
id: data.value.id,
key: data.value.orderCode
@ -194,7 +198,7 @@ const toRefund = () => {
push({url: '/pages/refund/refund'}, {
data: {
refundType: data.value.serviceType,
goods: data.value.cartInfo.map(v=>{
goods: data.value.cartInfo.map(v => {
return v.productAttrUnique
}).toString(),
id: data.value.orderId