Commit 49d2ddc6 by cen

fix: 去掉退款

1 parent c2e78f2c
...@@ -213,6 +213,9 @@ ...@@ -213,6 +213,9 @@
.px-20 { .px-20 {
padding: 0 toRpx(20); padding: 0 toRpx(20);
} }
.px-24 {
padding: 0 toRpx(20);
}
.px-32 { .px-32 {
padding: 0 toRpx(32); padding: 0 toRpx(32);
} }
......
...@@ -15,16 +15,6 @@ ...@@ -15,16 +15,6 @@
<!-- 待上传合同协议且是已支付的订单 --> <!-- 待上传合同协议且是已支付的订单 -->
<view class="status text-center" :style="{ color: status[0].color, 'background-color': status[0].background }" v-if="orderCardDetail.zyPayStatus == 1 && (orderCardDetail.orderStatus == 3 || orderCardDetail.orderStatus == 4 || orderCardDetail.orderStatus == 7)">待上传</view> <view class="status text-center" :style="{ color: status[0].color, 'background-color': status[0].background }" v-if="orderCardDetail.zyPayStatus == 1 && (orderCardDetail.orderStatus == 3 || orderCardDetail.orderStatus == 4 || orderCardDetail.orderStatus == 7)">待上传</view>
<view v-else class="status text-center" :style="{ color: status[orderCardDetail.orderStatus].color, 'background-color': status[orderCardDetail.orderStatus].background }"> <view v-else class="status text-center" :style="{ color: status[orderCardDetail.orderStatus].color, 'background-color': status[orderCardDetail.orderStatus].background }">
<!-- <view v-if="orderCardDetail.orderStatus == 1 || orderCardDetail.orderStatus == 3">
<view v-if="status[orderCardDetail.orderStatus].background">
<view class="arc y-center">
<view class="outside box-center" :style="{ 'background-color': status[orderCardDetail.orderStatus].background }" />
<view class="inside box-center" :style="{ 'background-color': status[orderCardDetail.orderStatus].color }" />
</view>
</view>
</view> -->
<!-- 优先显示已撤销的 然后是已施工的 最后是其他的 -->
<!-- {{li.status==9?status[li.status].text: (li.constructionFlag == 'Y'?'已施工':status[li.status].text) }} -->
{{ status[orderCardDetail.orderStatus].text }} {{ status[orderCardDetail.orderStatus].text }}
</view> </view>
</view> </view>
...@@ -41,36 +31,46 @@ ...@@ -41,36 +31,46 @@
<view v-if="arr_index == 1"> <view v-if="arr_index == 1">
<text class="split">|</text> <text class="split">|</text>
</view> </view>
{{ orderCardDetail[k] }} <text class="value-text">{{ orderCardDetail[k] }}</text>
</view> </view>
</view> </view>
</view> </view>
<view v-else>{{ orderCardDetail[item.key] || '' }}</view> <view v-else class="order-value-single">
<text class="value-text">{{ orderCardDetail[item.key] || '' }}</text>
</view>
</view>
<view v-else class="order-value-single flex">
<text class="value-text" v-if="item.mapValue">{{ item.mapValue[orderCardDetail[item.key]] || '' }}</text>
<text v-else class="value-text">{{ orderCardDetail[item.key] || '' }}</text>
<view v-if="item.canCopy" class="copy-btn" @click.stop="copyText(orderCardDetail[item.key])">
<view class="sprite-icon icon-icon-copy copy"></view>
</view>
</view> </view>
<view v-else>{{ orderCardDetail[item.key] || '' }}</view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<!-- 支付方式 --> <view class="order flex align-center" v-if="orderCardDetail.orderStatus != '-1' && orderCardDetail.quotedPriceUpdate">
<view class="order-payType flex" v-if="orderCardDetail.selectPayType !== undefined && orderCardDetail.selectPayType !== null"> <view class="order-label">支付金额</view>
<view class="payType flex align-center"> <view class="price flex">
<view class="payType-label">支付方式</view> <text class="unit">¥</text>
<view class="payType-value flex align-center"> {{ orderCardDetail.quotedPriceUpdate || '' }}
{{ payType[orderCardDetail['selectPayType']] }}
<image v-if="orderCardDetail.selectPayType == 1" class="payType-image" :src="IMG_URL + 'miniProgram/wxPay.png'" mode="" />
<image v-if="orderCardDetail.selectPayType == 2" class="payType-image" :src="IMG_URL + 'miniProgram/store_pay.png'" mode="" />
<image v-if="orderCardDetail.selectPayType == 3" class="payType-image" :src="IMG_URL + 'miniProgram/posPay.png'" mode="" />
</view>
</view> </view>
<view class="refund-box" v-if="orderCardDetail.refundAmount">
<view v-if="orderCardDetail.status != 1 && orderCardDetail.selectPayType != 0 && orderCardDetail.total_price != 0" class="order-price flex align-center"> 部分退款
<view class="order-price-label">实付金额</view> <text class="unit">¥</text>
<view class="price"> {{ orderCardDetail.refundAmount }}
<text class="unit">¥</text>
{{ orderCardDetail.totalPrice }}
</view>
</view> </view>
<!-- 已录单未签名 -->
<!-- <view wx:if="{{(item.orderStatus == '3' && item.equityOrderStatus == '0') || (item.orderStatus == '5' && item.equityOrderStatus == '0')}}" class="orange-txt">
<image class="icon-info" src="/packageEquity/images/icon-info.png"></image>
订单已支付,未录入权益合同
</view>
<view wx:elif="{{item.orderStatus == '3' && item.equityOrderStatus == '2'}}" class="orange-txt">
<image class="icon-info" src="/packageEquity/images/icon-info.png"></image>
订单已支付,尚未签名确认
</view> -->
<!-- <view wx:else>创建时间:{{item.createdTime}}</view> -->
</view> </view>
</view> </view>
<!-- 施工技师 --> <!-- 施工技师 -->
...@@ -78,6 +78,52 @@ ...@@ -78,6 +78,52 @@
<view class="staff-label">施工技师</view> <view class="staff-label">施工技师</view>
<view class="staff-value">{{ orderCardDetail.technicianName }}</view> <view class="staff-value">{{ orderCardDetail.technicianName }}</view>
</view> </view>
<view class="px-48">
<view class="tips" v-if="waitInputCount">
<view class="sprite-icon icon-study-tips"></view>
{{ tipsProps.tipsText }}
<view @click.stop="waitinputorderClick" class="waitinputorder-btn">补录订单</view>
</view>
</view>
<view v-if="orderCardDetail.zyPayStatus != 1" class="px-24 tips">
<view class="flex" v-if="(orderCardDetail.orderStatus == '3' && orderCardDetail.equityOrderStatus == '0' && orderCardDetail.equityGoodsFlag == '1') || (orderCardDetail.orderStatus == '5' && orderCardDetail.equityOrderStatus == '0')">
<view class="sprite-icon icon-study-tips"></view>
订单已支付,未录入权益合同
</view>
<!-- 已录单未签名 -->
<view class="flex" v-else="orderCardDetail.orderStatus == '3' && orderCardDetail.equityOrderStatus == '2'">
<view class="sprite-icon icon-study-tips"></view>
订单已支付,尚未签名确认
</view>
</view>
<view class="item-footer">
<view class="btn_class">
<!-- 更多按钮 -->
<view v-if="buttonConfig.showMoreBtn">
<view class="order-btn default-btn padding_20" @click="handleMoreBtn">更多</view>
</view>
<!-- 接待记录按钮 -->
<!-- <view v-if="buttonConfig.showReceptionBtn">
<view class="order-btn default-btn padding_20" @click="jumpReception">接待记录</view>
</view> -->
<!-- 次要按钮 -->
<view v-for="(btn, index) in buttonConfig.secondaryButtons" :key="index">
<view :class="['order-btn', btn.type === 'default' ? 'default-btn' + (btn.type === 'default' ? ' padding_20' : '') : '']" @click="() => handleClickBtn(btn.dataType || '')">
{{ btn.text }}
</view>
</view>
<!-- 主要按钮 -->
<view v-if="buttonConfig.primaryButton">
<view :class="['order-btn', buttonConfig.primaryButton.type === 'default' ? 'default-btn' : '']" @click="() => handleClickBtn(buttonConfig.primaryButton.dataType || '')">
{{ buttonConfig.primaryButton.text }}
</view>
</view>
</view>
</view>
<PublishPopup ref="recordOrderPopup" popupClass="recordOrderPopup" type="center" :showClose="true" :isMaskClick="false" title="请选择录单入口"> <PublishPopup ref="recordOrderPopup" popupClass="recordOrderPopup" type="center" :showClose="true" :isMaskClick="false" title="请选择录单入口">
<template #content> <template #content>
<view class="modatcontent"> <view class="modatcontent">
...@@ -133,6 +179,105 @@ export default { ...@@ -133,6 +179,105 @@ export default {
}, },
status() { status() {
return order_mixins.data.orderStatusObj || {} return order_mixins.data.orderStatusObj || {}
},
buttonConfig() {
const config = {
showMoreBtn: false,
showReceptionBtn: false,
primaryButton: null,
secondaryButtons: []
}
const order = this.orderCardDetail
const localUser = this.localUserInfo
// 超管或商户类型1不可操作
if (localUser?.isSuper || localUser?.userType !== 2) {
config.showMoreBtn = order.showInvoiceEntrance || ((order.orderStatus == 3 || order.orderStatus == 5 || (order.orderStatus == 6 && order.refundAmount)) && this.isOrder)
return config
}
// 待上传合同协议且是已支付的订单 (zyPayStatus == 1 且 orderStatus 为 3/4/7)
if (order.zyPayStatus == 1 && (order.orderStatus == 3 || order.orderStatus == 4 || order.orderStatus == 7)) {
config.showMoreBtn = order.showInvoiceEntrance || order.invoicing == 2
config.showReceptionBtn = order.orderStatus != '0'
config.primaryButton = { text: '上传协议', type: 'upload', dataType: 'upload' }
if (order.equityOrderStatus == 0 && order.equityGoodsFlag == 1) {
config.secondaryButtons.push({ text: '去处理', type: 'handle', dataType: 'handle' })
}
return config
}
// 其他情况 - 订单状态不是4,11,9
if (order.orderStatus != '4' && order.orderStatus != 11 && order.orderStatus != 9) {
config.showMoreBtn = order.showInvoiceEntrance || ((order.orderStatus == 3 || order.orderStatus == 5 || order.orderStatus == 6) && this.isOrder)
config.showReceptionBtn = order.orderStatus != '0'
// 修改协议按钮
if (order.canUpdateZyPayUrl == 1 && order.zyPayStatus == 2) {
config.secondaryButtons.push({ text: '修改协议', type: 'upload', dataType: 'upload' })
}
if (this.isOrder) {
// 待跟进或待支付状态
if (order.orderStatus == '-1' || order.orderStatus == '0') {
config.primaryButton = {
text: this.btnTxt[order.orderStatus] || (order.orderStatus == '-1' ? '去报价' : '去报价'),
type: 'default'
}
}
// 非已完成状态
else if (order.orderStatus != 6) {
// 状态 2, 3, 5 的特殊处理
if (order.orderStatus == '2' || order.orderStatus == '3' || order.orderStatus == '5') {
if (order.orderStatus == '2') {
// 战败状态:两个按钮
config.secondaryButtons.push({ text: '战败', type: 'default' })
config.primaryButton = {
text: this.btnTxt[order.orderStatus] || '去支付',
type: 'pay',
dataType: 'pay'
}
} else if (order.orderStatus == '3') {
// 已支付状态
if (order.equityGoodsFlag == '1') {
// config.secondaryButtons.push({ text: '客户签名', type: 'default' })
}
// 已支付未录单
if (order.equityOrderStatus == '0' && order.equityGoodsFlag == '1') {
config.primaryButton = {
text: this.btnTxt[order.orderStatus] || '去处理',
type: 'handle',
dataType: 'handle'
}
}
} else if (order.orderStatus == '5') {
// 已完成状态未录单
if (order.equityOrderStatus == '0' && order.equityGoodsFlag == '1') {
config.primaryButton = {
text: this.btnTxt[order.orderStatus] || '去处理',
type: 'handle',
dataType: 'handle'
}
}
}
} else {
// 其他状态
config.primaryButton = {
text: this.btnTxt[order.orderStatus] || '处理',
type: 'default'
}
}
}
}
} else {
// 订单状态为4,11,9的情况
config.showMoreBtn = order.showInvoiceEntrance || ((order.orderStatus == 3 || order.orderStatus == 5 || order.orderStatus == 6) && this.isOrder)
}
return config
} }
}, },
data() { data() {
...@@ -250,7 +395,15 @@ export default { ...@@ -250,7 +395,15 @@ export default {
} }
], ],
localUserInfo: null, localUserInfo: null,
isOrder: null isOrder: null,
btnTxt: {
0: '去报价',
1: '确认方案',
2: '去支付',
3: '去处理',
'-1': '去报价',
5: '去处理'
}
} }
}, },
mounted() { mounted() {
...@@ -370,7 +523,20 @@ export default { ...@@ -370,7 +523,20 @@ export default {
}, },
cardClick: debounce(function () { cardClick: debounce(function () {
this.jumpClick(this.orderCardDetail.status == 3 ? 'ConfirmOrder' : this.orderCardDetail.status == 1 ? 'CreateOrder' : 'OrderDetail', this.orderCardDetail) this.jumpClick(this.orderCardDetail.status == 3 ? 'ConfirmOrder' : this.orderCardDetail.status == 1 ? 'CreateOrder' : 'OrderDetail', this.orderCardDetail)
}, 300) }, 300),
copyText(e) {
console.log(e)
uni.setClipboardData({
data: e,
success: () => {
uni.showToast({
title: '复制成功',
icon: 'success',
duration: 2000
})
}
})
}
} }
} }
</script> </script>
...@@ -493,71 +659,47 @@ export default { ...@@ -493,71 +659,47 @@ export default {
font-size: toRpx(24); font-size: toRpx(24);
color: #999ea8; color: #999ea8;
font-weight: 400; font-weight: 400;
flex-shrink: 0;
} }
.order-value { .order-value {
font-size: toRpx(24); font-size: toRpx(24);
color: #666666; color: #666666;
font-weight: 400; font-weight: 400;
.split { min-width: 0;
margin: 0 toRpx(6);
}
} }
}
/* 支付方式相关样式 */ .order-value-single,
.payType { .order-value-item {
width: 50%; overflow: hidden;
padding: toRpx(10) toRpx(20) toRpx(10) 0; text-overflow: ellipsis;
box-sizing: border-box; white-space: nowrap;
.payType-label { min-width: 0;
width: toRpx(120);
margin-right: toRpx(24);
font-size: toRpx(24);
color: #999ea8;
font-weight: 400;
} }
.payType-value { .value-text {
font-size: toRpx(24); overflow: hidden;
color: #666666; text-overflow: ellipsis;
font-weight: 400; white-space: nowrap;
} }
}
.order-price { .split {
padding: toRpx(10) toRpx(20) toRpx(10) 0; margin: 0 toRpx(6);
box-sizing: border-box; flex-shrink: 0;
padding-right: 0;
padding-left: toRpx(20);
.order-price-label {
width: toRpx(120);
margin-right: toRpx(24);
font-size: toRpx(24);
font-weight: 400;
color: #999ea8;
}
.price {
display: flex;
align-items: center;
color: #4673ff;
font-size: toRpx(36);
font-weight: 700;
} }
} }
.payType-image {
width: toRpx(32);
height: toRpx(32);
margin-left: toRpx(10);
}
.unit { .unit {
margin-right: toRpx(8); margin-right: toRpx(8);
color: #347bff;
font-size: toRpx(28); font-size: toRpx(28);
font-weight: 700; font-weight: 700;
} }
.price {
color: #347bff;
font-size: toRpx(36);
font-weight: 700;
}
.construction-staff { .construction-staff {
width: 50%; width: 50%;
...@@ -613,4 +755,153 @@ export default { ...@@ -613,4 +755,153 @@ export default {
margin-top: toRpx(12); margin-top: toRpx(12);
} }
} }
.item-footer {
display: flex;
justify-content: end;
align-items: center;
font-size: toRpx(24);
color: #9b9b9e;
border-top: 1 solid #ededed;
padding: toRpx(20) toRpx(32) 0;
}
.btn_class {
display: flex;
gap: toRpx(8);
margin-left: auto;
}
.order-btn {
box-sizing: border-box;
height: toRpx(56);
display: flex;
align-items: center;
justify-content: center;
font-size: toRpx(28);
color: #ffffff;
background: #347bff;
border-radius: toRpx(32);
padding: toRpx(8) toRpx(20);
flex-shrink: 0;
}
.order-btn.default-btn {
background: #ffffff;
border: toRpx(2) solid #347bff;
border-radius: toRpx(32);
color: #347bff;
}
.padding_20 {
padding: 0 toRpx(14);
}
.list .item .order {
font-size: toRpx(24);
color: #333333;
margin-bottom: toRpx(20);
display: flex;
align-items: center;
}
.list .item .order:last-of-type {
margin-bottom: 0;
}
.list .item .order .order-label {
width: toRpx(36);
color: #9b9b9e;
}
.list .item .order .order-value {
width: calc(100% - toRpx(136));
display: flex;
align-items: center;
}
.list .item .order .order-value .order-value-item:first-of-type {
max-width: 70%;
}
.list .item .order .order-value .order-value-item .split {
margin: 0 toRpx(6);
}
.list .item .order-price {
display: flex;
justify-content: flex-end;
/* align-items: center; */
align-items: flex-end;
font-size: toRpx(24);
color: #666666;
/* padding-top: var(--fontSize8); */
}
.list .item .order-price .price {
box-sizing: border-box;
color: #f24724;
font-size: toRpx(40);
margin-left: toRpx(20);
margin-bottom: calc(-1 * toRpx(8));
/* margin-top: var(--fontSize8); */
}
.list .item.gray .order-price .price {
color: #666 !important;
}
.list .item .order-price .price .unit {
font-size: toRpx(28);
}
.list .item .order-payType {
font-size: toRpx(24);
color: #333333;
/* margin-top: var(--fontSize50); */
display: flex;
justify-content: space-between;
align-items: flex-end;
}
.list .item .btn {
border: toRpx(2) solid #666666;
border-radius: toRpx(12);
box-sizing: border-box;
font-size: toRpx(28);
color: #666666;
position: absolute;
right: toRpx(40);
bottom: toRpx(30);
width: toRpx(192);
height: toRpx(64);
}
.tips {
display: flex;
align-items: center;
font-size: toRpx(24);
width: 100%;
height: toRpx(56);
border-radius: 12px;
opacity: 1;
background: #fef5ea;
margin: toRpx(16) 0;
color: #ff9d0a;
&-text {
margin-top: toRpx(4);
}
.icon-study-tips {
margin-right: toRpx(8);
}
}
.copy-btn {
display: flex;
align-items: center;
margin-left: auto;
color: #808291;
.copy {
margin-right: toRpx(8);
margin-left: toRpx(20);
}
}
</style> </style>
<template> <template>
<view class="order-management"> <view class="order-management">
<view class="search-box"> <view class="search-box">
<input class="search-input" placeholder-class="placeholder" v-model="customerName" confirm-type="search" @confirm="search" placeholder="输入客户姓名/商品名称/订单编号/手机号搜索" /> <input class="search-input" placeholder-class="placeholder" v-model="customerName" confirm-type="search" @confirm="search" placeholder="输入客户姓名搜索" />
<view class="clear flex" @click="clear"> <view class="clear flex" @click="clear">
<uni-icons type="closeempty" size="16" v-if="customerName"></uni-icons> <uni-icons type="closeempty" size="16" v-if="customerName"></uni-icons>
</view> </view>
...@@ -20,123 +20,10 @@ ...@@ -20,123 +20,10 @@
<view class="sprite-icon icon-filter"></view> <view class="sprite-icon icon-filter"></view>
</view> </view>
</view> </view>
<view class="px-48">
<view class="tips" v-if="waitInputCount">
<view class="sprite-icon icon-study-tips"></view>
{{ tipsProps.tipsText }}
<view @click.stop="waitinputorderClick" class="waitinputorder-btn">补录订单</view>
</view>
</view>
<z-paging ref="paging" :fixed="false" paging-class="paging-class px-48" :loading-full-fixed="false" :auto-show-system-loading="true" :show-scrollbar="false" v-model="dataList" @query="queryList" :default-page-size="10"> <z-paging ref="paging" :fixed="false" paging-class="paging-class px-48" :loading-full-fixed="false" :auto-show-system-loading="true" :show-scrollbar="false" v-model="dataList" @query="queryList" :default-page-size="10">
<OrderCard v-for="(item, index) in dataList" :key="index" :orderCardDetail="item" @toggle-goods-list="handleToggleGoodsList" @jump="jump" @refresh="search()"></OrderCard> <OrderCard v-for="(item, index) in dataList" :key="index" :orderCardDetail="item" @toggle-goods-list="handleToggleGoodsList" @jump="jump" @refresh="search()"></OrderCard>
</z-paging> </z-paging>
<PublishPopup ref="WaitinputorderPopup" popupClass="waitinputorderPopup" :showClose="true" title="选择交易参考号">
<template #content>
<view class="popup-content px-48">
<view class="waitinputorder-tab-container">
<view class="waitinputorder-tab-buttons">
<view v-for="(item, index) in waitinputorderTabList" :key="index" class="waitinputorder-tab-button" :class="{ active: activeIndex === index }" @click="tabChange(index)">
<text>{{ item.name }}</text>
<view v-if="item.showQuestion" class="question-icon" @click.self="showQuestionPopup()">
<uni-icons type="help" size="16" color="#999"></uni-icons>
</view>
</view>
</view>
</view>
<scroll-view class="order_no_box" scroll-y enable-back-to-top refresher-enabled="true" :refresher-triggered="triggered" @refresherrefresh="onRefresh" v-show="activeIndex === 0" @scrolltolower="pageonReachBottom">
<view v-if="normalOrderNoList.length > 0" class="order-gap">
<view v-for="(item, index) in normalOrderNoList" :key="index" class="order_no_item" :class="{ checkActive: checkListObj[item.tradeNo] }" @click="activeClick(item)">
<view class="message">
<view v-for="(subItem, idx) in itemFormObj" :key="idx" class="item flex align-center">
<view class="label">{{ subItem.label }}</view>
<view v-if="subItem.type === 'price'" class="value price_value">¥{{ priceFilter(item[subItem.prop]) }}</view>
<view v-else-if="subItem.type === 'select'" class="select_value" @click="selectTap(index)" :data-index="index">
<text class="text-hide">{{ filmOrderData[item.filmOrder] }}</text>
<image src="/components/images/arrow-x.png" mode="" />
</view>
<view v-else class="value flex align-center">
{{ subItem.type === 'time' ? formatDate(item[subItem.prop]) : item[subItem.prop] }}
<view v-if="subItem.type === 'copy'" class="copy-btn" @click.stop="copyText(item[subItem.prop])">
<view class="sprite-icon icon-icon-copy copy"></view>
复制
</view>
</view>
</view>
</view>
<view class="sprite-icon icon-tag-checked checked" v-if="checkListObj[item.tradeNo]"></view>
</view>
</view>
<view class="nothing flex" v-else>
<image class="icon" src="../../../../assets/images/home/nothing.webp" />
暂无数据
</view>
</scroll-view>
<scroll-view class="order_no_box" scroll-y enable-back-to-top refresher-enabled="true" :refresher-triggered="triggered1" @refresherrefresh="onRefresh1" v-show="activeIndex === 1" @scrolltolower="pageonReachBottom">
<view v-if="abnormalOrderNoList.length > 0" class="order-gap">
<view v-for="(item, index) in abnormalOrderNoList" :key="index" class="order_no_item" :class="{ checkActive: checkListObj[item.tradeNo] }" @click="activeClick(item)">
<view class="message">
<view v-for="(subItem, idx) in itemFormObj" :key="idx" class="item flex align-center">
<view class="label">{{ subItem.label }}</view>
<view v-if="subItem.type === 'price'" class="value price_value">¥{{ priceFilter(item[subItem.prop]) }}</view>
<view v-else-if="subItem.type === 'select'" class="select_value" @click="selectTap(index)" :data-index="index">
<text class="text-hide">{{ filmOrderData[item.filmOrder] }}</text>
<image src="/components/images/arrow-x.png" mode="" />
</view>
<view v-else class="value flex align-center">
{{ subItem.type === 'time' ? formatDate(item[subItem.prop]) : item[subItem.prop] }}
<view v-if="subItem.type === 'copy'" class="copy-btn" @click.stop="copyText(item[subItem.prop])">
<view class="sprite-icon icon-icon-copy copy"></view>
复制
</view>
</view>
</view>
</view>
<view class="sprite-icon icon-tag-checked checked" v-if="checkListObj[item.tradeNo]"></view>
</view>
</view>
<view class="nothing flex" v-else>
<image class="icon" src="../../../../assets/images/home/nothing.webp" />
暂无数据
</view>
</scroll-view>
</view>
</template>
<template #footer>
<view class="footer-box flex justify-center">
<view class="cancle-btn btn" @click="cancelSelection">取消</view>
<view class="sure-btn btn" @click="confirmSelection">确认</view>
</view>
</template>
</PublishPopup>
<PublishPopup ref="abnormalTipsPopup" popupClass="abnormalTipsPopup" :showClose="true" title="超分账期" @confirm="confirmTips">
<template #content>
<scroll-view scroll-y class="ul px-48">
<view class="title">字段定义</view>
<view class="li">○ 正常分账期:指客户付款后,未超过分账期 (一般指支付时间≤20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。</view>
<view class="li last">○ 超分账期:指客户付款后,超过分账期 (一般指支付时间>20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。</view>
<view class="title">操作指导</view>
<view class="li">① 补录订单:支持正常分账期或超分账期单笔或多笔流水补录1个订单</view>
<view class="li">情况一:单笔支付直接补录创建工单</view>
<view class="li last">情况二:客户多笔支付,补录工单时勾选多笔交易流水</view>
<view class="li">② 特殊情况:需通知运营在后台关联工单</view>
<view class="li">情况一:客户支付定金时间与尾款时间间隔20天以上</view>
<view class="li">情况二:客户购买车辆2台及以上的费用,一笔支付</view>
<view class="li last">情况三:支付费用时误操作(多付了)需部分退款</view>
<view class="li last">操作流程:驻店在小程序点击新建工单,收款方选择嘀加收款,收款方式选择其它收款,复制交易流水号(填写时流水号末尾加逗号,多笔交易流水号中间用逗号隔开),工单录完后通知线上运营在后台关联。</view>
</scroll-view>
</template>
</PublishPopup>
<OrderScreenContract ref="openFilter" @onConfirm="openFilterConfirm" /> <OrderScreenContract ref="openFilter" @onConfirm="openFilterConfirm" />
</view> </view>
</template> </template>
...@@ -212,7 +99,6 @@ export default { ...@@ -212,7 +99,6 @@ export default {
dataList: [], dataList: [],
triggered: false, triggered: false,
triggered1: false, triggered1: false,
waitInputCount: 0, // 添加待补录计数
waitOrderTimer: null, // 定时器引用 waitOrderTimer: null, // 定时器引用
tipsProps: { tipsProps: {
tipsText: '该门店产生异常订单,请点击补录!', tipsText: '该门店产生异常订单,请点击补录!',
...@@ -234,7 +120,6 @@ export default { ...@@ -234,7 +120,6 @@ export default {
uni.$track.add({ eventCode: 'app_order_management' }) uni.$track.add({ eventCode: 'app_order_management' })
this.localUserInfo = uni.$storage.get('userInfo') || {} this.localUserInfo = uni.$storage.get('userInfo') || {}
this.search() this.search()
this.startWaitOrderPolling()
}, },
beforeDestroy() { beforeDestroy() {
this.clearWaitOrderPolling() this.clearWaitOrderPolling()
...@@ -253,13 +138,6 @@ export default { ...@@ -253,13 +138,6 @@ export default {
this.$refs.paging.reload() this.$refs.paging.reload()
this.getStatByStatus() this.getStatByStatus()
}, },
async waitinputorderClick() {
if (await this.inspectionOfProhibitionBill()) return
if (!this.normalOrderNoList.length && !this.abnormalOrderNoList.length) {
this.getTransactionSerialNumber()
}
this.$refs.WaitinputorderPopup.open()
},
handleToggleGoodsList(data) { handleToggleGoodsList(data) {
this.$set(data.item, 'showAllGoodsListFlag', data.flag) this.$set(data.item, 'showAllGoodsListFlag', data.flag)
}, },
...@@ -396,32 +274,6 @@ export default { ...@@ -396,32 +274,6 @@ export default {
console.log(err) console.log(err)
}) })
}, },
// 10s轮询一次待补录
getWaitOrder() {
uni.$api.boutiqueApi
.waitinputorder()
.then(result => {
let { waitInputCount } = result
this.waitInputCount = waitInputCount
})
.catch(err => {})
},
// 启动轮询
startWaitOrderPolling() {
// 立即执行一次
this.getWaitOrder()
// 设置定时器,每10秒执行一次
this.waitOrderTimer = setInterval(() => {
this.getWaitOrder()
}, 10000)
},
// 清除轮询定时器
clearWaitOrderPolling() {
if (this.waitOrderTimer) {
clearInterval(this.waitOrderTimer)
this.waitOrderTimer = null
}
},
// 价格过滤器 // 价格过滤器
priceFilter(num) { priceFilter(num) {
var pow = Math.pow(10, 2) var pow = Math.pow(10, 2)
...@@ -441,12 +293,6 @@ export default { ...@@ -441,12 +293,6 @@ export default {
copyOutTradeNo(item) { copyOutTradeNo(item) {
this.$emit('copy-out-trade-no', item) this.$emit('copy-out-trade-no', item)
}, },
showQuestionPopup() {
this.$refs.abnormalTipsPopup.open()
},
confirmTips() {
this.$refs.abnormalTipsPopup.closePopup()
},
activeClick(item) { activeClick(item) {
if (this.checkListObj[item.tradeNo]) { if (this.checkListObj[item.tradeNo]) {
this.$delete(this.checkListObj, item.tradeNo) this.$delete(this.checkListObj, item.tradeNo)
...@@ -454,21 +300,6 @@ export default { ...@@ -454,21 +300,6 @@ export default {
this.$set(this.checkListObj, item.tradeNo, item) this.$set(this.checkListObj, item.tradeNo, item)
} }
}, },
confirmSelection() {
const selectedItems = Object.values(this.checkListObj)
if (selectedItems.length === 0) {
uni.showToast({
title: '请选择交易参考号',
icon: 'none'
})
return
}
this.$refs.WaitinputorderPopup.closePopup()
this.$emit('jump', 'CreateOrder', {
selectedItems: selectedItems,
type: 'supplementOrder'
})
},
cancelSelection() { cancelSelection() {
this.checkListObj = {} this.checkListObj = {}
this.$refs.WaitinputorderPopup.closePopup() this.$refs.WaitinputorderPopup.closePopup()
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!