Commit 7bb26d5b by 张立顺

fix bug

1 parent 9b16289d
...@@ -40,7 +40,6 @@ Component({ ...@@ -40,7 +40,6 @@ Component({
this.triggerEvent('cancel') this.triggerEvent('cancel')
}, },
confirm() { confirm() {
console.log(3333);
this.triggerEvent('confirm') this.triggerEvent('confirm')
} }
}, },
......
...@@ -27,7 +27,8 @@ Component({ ...@@ -27,7 +27,8 @@ Component({
itemFormObj: [ itemFormObj: [
{ {
label: '交易参考号', label: '交易参考号',
prop: 'outTradeNo', // prop: 'outTradeNo',
prop: 'tradeNo',
copy: true copy: true
}, },
{ {
......
...@@ -40,6 +40,7 @@ ...@@ -40,6 +40,7 @@
} }
.order_no_item { .order_no_item {
position: relative;
/* height: var(--fontSize160); */ /* height: var(--fontSize160); */
box-sizing: border-box; box-sizing: border-box;
background: #F7F8FA; background: #F7F8FA;
...@@ -67,6 +68,10 @@ ...@@ -67,6 +68,10 @@
} }
.checked { .checked {
position: absolute;
right: 20rpx;
top: 50%;
transform: translateY(-50%);
width: var(--fontSize32); width: var(--fontSize32);
height: var(--fontSize32); height: var(--fontSize32);
} }
...@@ -86,7 +91,7 @@ ...@@ -86,7 +91,7 @@
.item .label { .item .label {
color: #9B9B9E; color: #9B9B9E;
width: var(--fontSize150); width: var(--fontSize150);
margin-right: var(--fontSize40); // margin-right: var(--fontSize40);
} }
.item .price_value { .item .price_value {
......
...@@ -8,15 +8,7 @@ ...@@ -8,15 +8,7 @@
<image class="question" src="/components/images/question.png" bind:tap="showTips"></image> <image class="question" src="/components/images/question.png" bind:tap="showTips"></image>
</view> </view>
</view> </view>
<scroll-view <scroll-view class="order_no_box" scroll-y enable-back-to-top refresher-enabled="{{true}}" bindrefresherrefresh="restPageNum" bindscrolltolower="scrollonReachBottom" refresher-threshold="104" refresher-triggered="{{triggered}}">
class="order_no_box"
scroll-y
enable-back-to-top
refresher-enabled="{{true}}"
bindrefresherrefresh="restPageNum"
bindscrolltolower="scrollonReachBottom"
refresher-threshold="104"
refresher-triggered="{{triggered}}">
<block wx:for="{{orderNoList}}" wx:key="index"> <block wx:for="{{orderNoList}}" wx:key="index">
<view class="order_no_item {{item.active?'active':''}}" catch:tap="changeOrderNo" data-target="{{item}}"> <view class="order_no_item {{item.active?'active':''}}" catch:tap="changeOrderNo" data-target="{{item}}">
<view class="message"> <view class="message">
...@@ -31,35 +23,46 @@ ...@@ -31,35 +23,46 @@
</view> </view>
</block> </block>
</view> </view>
<view class="checked" wx:if="{{item.active}}"> <view class="checked" wx:if="{{item.active}}">
<image src="../../../components/images/choose.png" /> <image src="../../../components/images/choose.png" />
</view> </view>
</view> </view>
</block> </block>
</scroll-view> </scroll-view>
</popup> </popup>
<tipsPopup show="{{ tipsshow }}" bindconfirm="confirm" bindcancel="cancel" height="65%" title="超分账期"> <tipsPopup show="{{ tipsshow }}" bindconfirm="confirm" bindcancel="cancel" height="70%" title="超分账期">
<view class="ul"> <view class="ul">
<view class="title"> <view class="title">
字段定义 字段定义
</view> </view>
<view class="li"> <view class="li">
○ 正常分账期:指客户付款后,未超过分账期 (一般指支付时间≤20日),在系统未补录或关联订单的交易流水号。 ○ 正常分账期:指客户付款后,未超过分账期 (一般指支付时间≤20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。
</view> </view>
<view class="li last"> <view class="li last">
○ 超分账期:指客户付款后,超过分账期 (一般指支付时间>20日),在系统未补录或关联订单的交易流水号。 ○ 超分账期:指客户付款后,超过分账期 (一般指支付时间>20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。
</view> </view>
<view class="title"> <view class="title">
创建订单 操作指导
</view> </view>
<view class="li"> <view class="li">
支持正常分账期或超分账期单笔或多笔流水创建1个订单: ① 补录订单:支持正常分账期或超分账期单笔或多笔流水补录1个订单
</view> </view>
<view class="li last"> <view class="li last">
情况一:单笔支付直接新建订单 情况一:单笔支付直接补录创建工单
情况二:客户多笔支付,一个工单勾选多笔交易流水 情况二:客户多笔支付,补录工单时勾选多笔交易流水
</view> </view>
<view class="title"> <view class="li">
② 特殊情况:需通知运营在后台关联工单
</view>
<view class="li last">
情况一:客户支付定金时间与尾款时间间隔20天以上
情况二:客户购买车辆2台及以上的费用,一笔支付
情况三:支付费用时误操作(多付了)需部分退款
</view>
<view class="li last">
操作流程:驻店在小程序点击新建工单,收款方式选择嘀加收款,复制交易流水号(填写时流水号末尾加逗号,多笔交易流水号中间用逗号隔开),工单录完后通知线上运营在后台关联。
</view>
<!-- <view class="title">
特殊情况 特殊情况
</view> </view>
<view class="li"> <view class="li">
...@@ -69,7 +72,7 @@ ...@@ -69,7 +72,7 @@
情况一:客户支付定金时间与尾款时间间隔20天以上 情况一:客户支付定金时间与尾款时间间隔20天以上
情况二:客户购买车辆2台及以上的费用,一笔支付 情况二:客户购买车辆2台及以上的费用,一笔支付
情况三:支付费用时误操作 (多付了) 需部分退款 情况三:支付费用时误操作 (多付了) 需部分退款
</view> </view> -->
</view> </view>
<!-- <view>说明内容</view> --> <!-- <view>说明内容</view> -->
......
...@@ -22,7 +22,8 @@ ...@@ -22,7 +22,8 @@
height: var(--fontSize88); height: var(--fontSize88);
box-sizing: border-box; box-sizing: border-box;
} }
.text-center{
.text-center {
text-align: center; text-align: center;
} }
...@@ -38,21 +39,25 @@ ...@@ -38,21 +39,25 @@
color: #888888; color: #888888;
position: relative; position: relative;
} }
.item.disabled{
.item.disabled {
color: #ccc; color: #ccc;
} }
.text-hide { .text-hide {
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
.serveName{
.serveName {
width: 100%; width: 100%;
white-space: pre-wrap; white-space: pre-wrap;
word-wrap: break-word; word-wrap: break-word;
overflow-wrap: break-word; overflow-wrap: break-word;
} }
.item .icon{
.item .icon {
display: none; display: none;
width: var(--fontSize32); width: var(--fontSize32);
height: var(--fontSize32); height: var(--fontSize32);
...@@ -61,13 +66,16 @@ ...@@ -61,13 +66,16 @@
left: calc(-1 * var(--fontSize52)); left: calc(-1 * var(--fontSize52));
/* transform: translateY(-50%); */ /* transform: translateY(-50%); */
} }
.item.active{
.item.active {
color: #347BFF; color: #347BFF;
} }
.item.active .icon{
.item.active .icon {
display: block; display: block;
} }
.nothing{
.nothing {
padding: var(--fontSize100); padding: var(--fontSize100);
text-align: center; text-align: center;
color: #999; color: #999;
...@@ -98,9 +106,11 @@ ...@@ -98,9 +106,11 @@
.item .value .name { .item .value .name {
max-width: 85%; max-width: 85%;
max-width: 300px;
word-break: break-all;
} }
.item .value .name .warning_text{ .item .value .name .warning_text {
color: #F24724; color: #F24724;
margin-left: var(--fontSize10); margin-left: var(--fontSize10);
font-size: var(--fontSize22); font-size: var(--fontSize22);
...@@ -117,8 +127,8 @@ ...@@ -117,8 +127,8 @@
.item .value .price { .item .value .price {
/* color: #347BFF; */ /* color: #347BFF; */
font-weight: 500; font-weight: 500;
font-size: var(--fontSize28); font-size: var(--fontSize28);
color: #EB4E4E; color: #EB4E4E;
} }
.item .control { .item .control {
......
...@@ -106,6 +106,17 @@ ...@@ -106,6 +106,17 @@
.item .value .name { .item .value .name {
max-width: 85%; max-width: 85%;
white-space: pre-wrap;
word-wrap: break-word;
overflow-wrap: break-word;
font-size: 28rpx;
color: #222222;
.goodsname {
font-size: 28rpx;
color: #222222;
margin-bottom: 4rpx;
}
} }
.item .value .name .warning_text { .item .value .name .warning_text {
...@@ -232,6 +243,6 @@ ...@@ -232,6 +243,6 @@
} }
.isPad .item{ .isPad .item {
font-size: var(--fontSize22); font-size: var(--fontSize22);
} }
\ No newline at end of file \ No newline at end of file
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<view class="value " catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}"> <view class="value " catchtap="choose" data-index="{{index}}" data-ind="{{ind}}" data-item="{{i}}">
<block wx:if="{{i.goods}}"> <block wx:if="{{i.goods}}">
<view class="name text-hide "> <view class="name text-hide ">
<view class="text-hide">{{filter.replaceItemText(i.goods.goodsAlias) ||filter.replaceItemText(i.goods.upgradeGoodsName + (i.goods.specificationData? '/'+i.goods.specificationData:'')) || filter.replaceItemText(i.goods.goodsInfo.goodsName + (i.goods.specificationData? ('/'+i.goods.specificationData):'') )}}</view> <view class="goodsname serveName ">{{filter.replaceItemText(i.goods.goodsAlias) ||filter.replaceItemText(i.goods.upgradeGoodsName + (i.goods.specificationData? '/'+i.goods.specificationData:'')) || filter.replaceItemText(i.goods.goodsInfo.goodsName + (i.goods.specificationData? ('/'+i.goods.specificationData):'') )}}</view>
<!-- <text wx:if="{{i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">{{'「' + i.positionStr+'」'}}</text> --> <!-- <text wx:if="{{i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">{{'「' + i.positionStr+'」'}}</text> -->
<view class="serveName" wx:if="{{i.goods.serveName}}">(包含{{i.goods.serveName}})</view> <view class="serveName" wx:if="{{i.goods.serveName}}">(包含{{i.goods.serveName}})</view>
<!-- <text class="warning_text" wx:if="{{!i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">无部位</text> --> <!-- <text class="warning_text" wx:if="{{!i.merchantGoodsPosition && i.goodsInfo.goodsType == 1}}">无部位</text> -->
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
<block wx:if="{{i.packageGoods}}"> <block wx:if="{{i.packageGoods}}">
<view class="childbox"> <view class="childbox">
<view class="item"> <view class="item">
<view class="name text-hide "> <view class="name ">
<view>{{i.packageGoods.packageAlias || i.packageGoods.packageName}}</view> <view>{{i.packageGoods.packageAlias || i.packageGoods.packageName}}</view>
</view> </view>
<view class="last"> <view class="last">
......
...@@ -54,6 +54,7 @@ Component({ ...@@ -54,6 +54,7 @@ Component({
thisPage.setData({ thisPage.setData({
showPopup: false, showPopup: false,
['orderInfo.transactionNo']: '', ['orderInfo.transactionNo']: '',
['orderInfo.tradeNo']: '',
['orderInfo.paymentDocList']: [] ['orderInfo.paymentDocList']: []
}) })
}, },
...@@ -127,6 +128,7 @@ Component({ ...@@ -127,6 +128,7 @@ Component({
if (payVoucherList.length && outTradeNo) { if (payVoucherList.length && outTradeNo) {
thisPage.setData({ thisPage.setData({
['orderInfo.transactionNo']: outTradeNo, ['orderInfo.transactionNo']: outTradeNo,
['orderInfo.tradeNo']: outTradeNo,
['orderInfo.paymentDocList']: payVoucherList.map(item => item.url) ['orderInfo.paymentDocList']: payVoucherList.map(item => item.url)
}) })
console.log(thisPage.handleSecondConfirm); console.log(thisPage.handleSecondConfirm);
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
<view class="input-item"> <view class="input-item">
<view class="title-text">交易流水号</view> <view class="title-text">交易流水号</view>
<view class="input-box" wx:if="{{resetOrder}}">{{resetTransNo}}</view> <view class="input-box" wx:if="{{resetOrder}}">{{resetTransNo}}</view>
<view class="input-box" wx:elif="{{orderInfo.outTradeNo}}">{{orderInfo.outTradeNo}}</view> <view class="input-box" wx:elif="{{orderInfo.outTradeNo}}">{{orderInfo.tradeNo}}</view>
<view wx:else class="input-box"> <view wx:else class="input-box">
<input type="text" class="input" bindinput="input" value="{{outTradeNo}}" placeholder="输入交易流水号" placeholder-class="outTradeNo_placeholder" maxlength="150" /> <input type="text" class="input" bindinput="input" value="{{outTradeNo}}" placeholder="输入交易流水号" placeholder-class="outTradeNo_placeholder" maxlength="150" />
</view> </view>
......
...@@ -519,10 +519,10 @@ Page({ ...@@ -519,10 +519,10 @@ Page({
let zyPayFlag = res?.code == 0 && res?.data let zyPayFlag = res?.code == 0 && res?.data
status.code == 0 status.code == 0
? this.navigatorNext({ ? this.navigatorNext({
id, id,
orderId: status.data.orderId, orderId: status.data.orderId,
zyVoucherStatus: zyPayFlag ? 1 : 0 // "中邮凭证上传状态:0-无需上传,1-待上传,2-已上传") zyVoucherStatus: zyPayFlag ? 1 : 0 // "中邮凭证上传状态:0-无需上传,1-待上传,2-已上传")
}) })
: wx.$util.showToast(status.message || '报价失败') : wx.$util.showToast(status.message || '报价失败')
} else { } else {
console.log(message) console.log(message)
...@@ -533,6 +533,7 @@ Page({ ...@@ -533,6 +533,7 @@ Page({
showZyPopup: false, showZyPopup: false,
['orderInfo.zyPayUrl']: '', ['orderInfo.zyPayUrl']: '',
['orderInfo.transactionNo']: '', ['orderInfo.transactionNo']: '',
['orderInfo.tradeNo']: '',
['orderInfo.paymentDocList']: [] ['orderInfo.paymentDocList']: []
}) })
wx.$util.showToast(message || '报价失败') wx.$util.showToast(message || '报价失败')
...@@ -822,7 +823,7 @@ Page({ ...@@ -822,7 +823,7 @@ Page({
orderInfo.vdQuotationGoodsList.length && this.totalFee() orderInfo.vdQuotationGoodsList.length && this.totalFee()
} }
}) })
.catch(err => {}) .catch(err => { })
}, },
totalFee() { totalFee() {
let { orderInfo } = this.data let { orderInfo } = this.data
...@@ -1010,7 +1011,7 @@ Page({ ...@@ -1010,7 +1011,7 @@ Page({
if (ele.packageGoods) { if (ele.packageGoods) {
let item = ele.packageGoods let item = ele.packageGoods
ele.packageGoods.goodsList = item.goodsList.map(item => { ele.packageGoods.goodsList = item.goodsList.map(item => {
;(item.specificationNameSequence = ; (item.specificationNameSequence =
item.specificationTypeSequence && item.specificationNameSequence item.specificationTypeSequence && item.specificationNameSequence
? item.specificationNameSequence.replace(/;~;/g, '/') ? item.specificationNameSequence.replace(/;~;/g, '/')
: ''), : ''),
...@@ -1119,7 +1120,7 @@ Page({ ...@@ -1119,7 +1120,7 @@ Page({
navBarHeight navBarHeight
}) })
}, },
init() {}, init() { },
onRoute(options) { onRoute(options) {
console.log(options, 'options') console.log(options, 'options')
// options.id = 9047 // options.id = 9047
...@@ -1141,10 +1142,12 @@ Page({ ...@@ -1141,10 +1142,12 @@ Page({
console.log(switchVlaue, outTradeArr) console.log(switchVlaue, outTradeArr)
// 老逻辑的流水补录 一单并且是正常的 // 老逻辑的流水补录 一单并且是正常的
if (switchVlaue == 1 && outTradeArr.length == 1) { if (switchVlaue == 1 && outTradeArr.length == 1) {
let { outTradeNo, accountDate } = outTradeArr[0] let { outTradeNo, accountDate, tradeNo } = outTradeArr[0]
this.setData({ this.setData({
outTradeNo, outTradeNo,
tradeNo,
['orderInfo.outTradeNo']: outTradeNo, ['orderInfo.outTradeNo']: outTradeNo,
['orderInfo.tradeNo']: tradeNo,
accountDate accountDate
}) })
} else { } else {
...@@ -1154,15 +1157,19 @@ Page({ ...@@ -1154,15 +1157,19 @@ Page({
str += index ? `,${item.outTradeNo}` : item.outTradeNo str += index ? `,${item.outTradeNo}` : item.outTradeNo
return str return str
}, '') }, '')
const tradeNo = outTradeArr.reduce((str, item, index) => {
str += index ? `,${item.tradeNo}` : item.tradeNo
return str
}, '')
console.log(outTradeNo) console.log(outTradeNo)
this.setData({ this.setData({
outTradeArr, outTradeArr,
['orderInfo.payType']: 5, ['orderInfo.payType']: 5,
['orderInfo.outTradeNo']: outTradeNo, ['orderInfo.outTradeNo']: outTradeNo,
['orderInfo.tradeNo']: tradeNo,
['orderInfo.outTradeArr']: outTradeArr, ['orderInfo.outTradeArr']: outTradeArr,
['orderInfo.successDateTime']: accountDate ['orderInfo.successDateTime']: accountDate
// ["orderInfo.transactionNo"]: outTradeNo
}) })
} }
} }
...@@ -1277,8 +1284,8 @@ Page({ ...@@ -1277,8 +1284,8 @@ Page({
validator: (rule, value) => { validator: (rule, value) => {
return value.length != 17 return value.length != 17
? { ? {
message: '请输入正确的17位车架号' message: '请输入正确的17位车架号'
} }
: null : null
} }
} }
...@@ -1304,8 +1311,8 @@ Page({ ...@@ -1304,8 +1311,8 @@ Page({
if (value) { if (value) {
return value.length != 18 return value.length != 18
? { ? {
message: '请输入正确的18位证件号' message: '请输入正确的18位证件号'
} }
: null : null
} }
} }
...@@ -1319,7 +1326,7 @@ Page({ ...@@ -1319,7 +1326,7 @@ Page({
}) })
} }
}) })
.catch(err => {}) .catch(err => { })
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
...@@ -1340,29 +1347,29 @@ Page({ ...@@ -1340,29 +1347,29 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady() {}, onReady() { },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() {}, onShow() { },
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide() {}, onHide() { },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload() {}, onUnload() { },
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh() {}, onPullDownRefresh() { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom() {}, onReachBottom() { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() {} onShareAppMessage() { }
}) })
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<view class="tips"> <view class="tips">
<image class=" tipsIcon" src="../../../images/tips.png" /> <image class=" tipsIcon" src="../../../images/tips.png" />
<view class="contentText"> <view class="contentText">
<view>交易参考号:{{outTradeNo}}</view> <view>交易参考号:{{tradeNo}}</view>
<view>支付时间:{{accountDate}}</view> <view>支付时间:{{accountDate}}</view>
</view> </view>
<image class="closeIcon" bindtap="closeTips" src="../../../images/closeIcon.png" /> <image class="closeIcon" bindtap="closeTips" src="../../../images/closeIcon.png" />
......
...@@ -42,7 +42,7 @@ Component({ ...@@ -42,7 +42,7 @@ Component({
IMG_URL, IMG_URL,
IMG_URL2, IMG_URL2,
showIcon1: true, // 初始显示图标 showIcon1: true, // 初始显示图标
pointsMultiObj:[ pointsMultiObj: [
{ {
label: "销售顾问 /录单员", label: "销售顾问 /录单员",
arr: ["merchantName", "referrerName"], arr: ["merchantName", "referrerName"],
...@@ -71,7 +71,7 @@ Component({ ...@@ -71,7 +71,7 @@ Component({
}, },
{ {
label: "交易流水号", label: "交易流水号",
key: "transactionNo", key: "tradeNo",
canCopy: true, canCopy: true,
}, },
{ {
...@@ -121,7 +121,8 @@ Component({ ...@@ -121,7 +121,8 @@ Component({
}, },
{ {
label: "交易流水号", label: "交易流水号",
key: "transactionNo", key: "tradeNo",
// key: "transactionNo",
canCopy: true, canCopy: true,
}, },
{ {
...@@ -390,7 +391,7 @@ Component({ ...@@ -390,7 +391,7 @@ Component({
} }
wx.$util.showLoading(); wx.$util.showLoading();
let eventParams = wx.$util.deepClone({...params, ...screenForm}) let eventParams = wx.$util.deepClone({ ...params, ...screenForm })
// 当合同协议状态为待上传时,传订单状态为待上传7 // 当合同协议状态为待上传时,传订单状态为待上传7
if (eventParams?.zyPayStatus == '1') eventParams.orderStatus = 7 if (eventParams?.zyPayStatus == '1') eventParams.orderStatus = 7
quotationPage(eventParams) quotationPage(eventParams)
...@@ -653,7 +654,7 @@ Component({ ...@@ -653,7 +654,7 @@ Component({
// 合同协议上传确定 // 合同协议上传确定
zyPayConfirm(e) { zyPayConfirm(e) {
let { showZyTarget, zyConfirmFlag, updateZyFlag } = this.data let { showZyTarget, zyConfirmFlag, updateZyFlag } = this.data
wx.showLoading({title: '加载中', mask: true}) wx.showLoading({ title: '加载中', mask: true })
if (zyConfirmFlag) return false if (zyConfirmFlag) return false
this.setData({ this.setData({
zyConfirmFlag: true zyConfirmFlag: true
...@@ -770,7 +771,7 @@ Component({ ...@@ -770,7 +771,7 @@ Component({
// ...obj, // ...obj,
// ...searchTemp // ...searchTemp
// }, '2222'); // }, '2222');
let eventParams = wx.$util.deepClone({...obj, ...searchTemp, customerName}) let eventParams = wx.$util.deepClone({ ...obj, ...searchTemp, customerName })
// 当合同协议状态为待上传时,传订单状态为待上传7 // 当合同协议状态为待上传时,传订单状态为待上传7
if (eventParams?.zyPayStatus == '1') eventParams.orderStatus = 7 if (eventParams?.zyPayStatus == '1') eventParams.orderStatus = 7
orderStatistics(eventParams) orderStatistics(eventParams)
......
...@@ -10,12 +10,18 @@ Component({ ...@@ -10,12 +10,18 @@ Component({
type: Boolean, type: Boolean,
observer: function (n) { observer: function (n) {
if (n) { if (n) {
console.log(this.data);
let { switchVlauerec } = this.data
this.setData({
switchVlaue: switchVlauerec || 1
})
this.getWaitinputorder() this.getWaitinputorder()
} }
} }
}, },
outTradeNo: Array, outTradeNo: Array,
title: String title: String,
switchVlauerec: Number
}, },
/** /**
...@@ -94,7 +100,7 @@ Component({ ...@@ -94,7 +100,7 @@ Component({
} }
return i return i
}) })
this.setData({ orderNoList, outTradeNo: [] }) this.setData({ orderNoList, })
}, },
// 产品类型切换 // 产品类型切换
selectTap(e) { selectTap(e) {
...@@ -182,12 +188,7 @@ Component({ ...@@ -182,12 +188,7 @@ Component({
thisPage.setData({ thisPage.setData({
showOrderpop: false showOrderpop: false
}) })
// if (arr.length && arr.length == 1) {
// let { accountDate, outTradeNo, totalFee, filmOrder, tradeNo } = arr[0]
// arr?.length && this.triggerEvent('success', { accountDate, outTradeNo, totalFee, tradeNo, filmOrder })
// }
if (arr.length) { if (arr.length) {
// let { accountDate, outTradeNo, totalFee, filmOrder, tradeNo } = arr[0]
this.triggerEvent('success', { arr, switchVlaue }) this.triggerEvent('success', { arr, switchVlaue })
} }
......
...@@ -43,28 +43,39 @@ ...@@ -43,28 +43,39 @@
</block> </block>
</scroll-view> </scroll-view>
</popup> </popup>
<tipsPopup show="{{ tipsshow }}" bindconfirm="confirm" bindcancel="cancel" height="65%" title="超分账期"> <tipsPopup show="{{ tipsshow }}" bindconfirm="confirm" bindcancel="cancel" height="70%" title="超分账期">
<view class="ul"> <view class="ul">
<view class="title"> <view class="title">
字段定义 字段定义
</view> </view>
<view class="li"> <view class="li">
○ 正常分账期:指客户付款后,未超过分账期 (一般指支付时间≤20日),在系统未补录或关联订单的交易流水号。 ○ 正常分账期:指客户付款后,未超过分账期 (一般指支付时间≤20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。
</view> </view>
<view class="li last"> <view class="li last">
○ 超分账期:指客户付款后,超过分账期 (一般指支付时间>20日),在系统未补录或关联订单的交易流水号。 ○ 超分账期:指客户付款后,超过分账期 (一般指支付时间>20日),驻店未在系统补录或特殊情况下需运营在后台关联订单的交易流水号。
</view> </view>
<view class="title"> <view class="title">
创建订单 操作指导
</view> </view>
<view class="li"> <view class="li">
支持正常分账期或超分账期单笔或多笔流水创建1个订单: ① 补录订单:支持正常分账期或超分账期单笔或多笔流水补录1个订单
</view> </view>
<view class="li last"> <view class="li last">
情况一:单笔支付直接新建订单 情况一:单笔支付直接补录创建工单
情况二:客户多笔支付,一个工单勾选多笔交易流水 情况二:客户多笔支付,补录工单时勾选多笔交易流水
</view> </view>
<view class="title"> <view class="li">
② 特殊情况:需通知运营在后台关联工单
</view>
<view class="li last">
情况一:客户支付定金时间与尾款时间间隔20天以上
情况二:客户购买车辆2台及以上的费用,一笔支付
情况三:支付费用时误操作(多付了)需部分退款
</view>
<view class="li last">
操作流程:驻店在小程序点击新建工单,收款方式选择嘀加收款,复制交易流水号(填写时流水号末尾加逗号,多笔交易流水号中间用逗号隔开),工单录完后通知线上运营在后台关联。
</view>
<!-- <view class="title">
特殊情况 特殊情况
</view> </view>
<view class="li"> <view class="li">
...@@ -74,7 +85,7 @@ ...@@ -74,7 +85,7 @@
情况一:客户支付定金时间与尾款时间间隔20天以上 情况一:客户支付定金时间与尾款时间间隔20天以上
情况二:客户购买车辆2台及以上的费用,一笔支付 情况二:客户购买车辆2台及以上的费用,一笔支付
情况三:支付费用时误操作 (多付了) 需部分退款 情况三:支付费用时误操作 (多付了) 需部分退款
</view> </view> -->
</view> </view>
<!-- <view>说明内容</view> --> <!-- <view>说明内容</view> -->
......
...@@ -7,7 +7,7 @@ let time = null; ...@@ -7,7 +7,7 @@ let time = null;
let toastList = { let toastList = {
userId: "销售顾问不能为空", userId: "销售顾问不能为空",
subShopMerchantId: "二级流量方不能为空", subShopMerchantId: "二级流量方不能为空",
deliveryUserId:"交付专员不能为空", deliveryUserId: "交付专员不能为空",
customerName: "车主姓名不能为空", customerName: "车主姓名不能为空",
customerPhone: "手机号不能为空", customerPhone: "手机号不能为空",
sellerUserId: "转化人员不能为空", sellerUserId: "转化人员不能为空",
...@@ -39,6 +39,7 @@ Page({ ...@@ -39,6 +39,7 @@ Page({
totalFee: "", totalFee: "",
accountDate: "", accountDate: "",
waitInputCount: 0, waitInputCount: 0,
switchVlaue: 1,
orderCreateType: "createdOrder", // additionRecordOrder(补录订单) createdOrder(新增) errorOrder(错误订单) alreadyExistOrder(扫码/预约订单) orderCreateType: "createdOrder", // additionRecordOrder(补录订单) createdOrder(新增) errorOrder(错误订单) alreadyExistOrder(扫码/预约订单)
showOrderpop: false, showOrderpop: false,
phoneShow: false, phoneShow: false,
...@@ -73,8 +74,8 @@ Page({ ...@@ -73,8 +74,8 @@ Page({
experienceFlag: "Y", experienceFlag: "Y",
salesType: 0, salesType: 0,
}, },
deliveryUserId:'', deliveryUserId: '',
deliveryEmployeeName:'', deliveryEmployeeName: '',
// selectPayType: 0, // selectPayType: 0,
selectPayType: 2, selectPayType: 2,
remark: "", remark: "",
...@@ -127,11 +128,11 @@ Page({ ...@@ -127,11 +128,11 @@ Page({
// 校验是否填写昨日日报 // 校验是否填写昨日日报
// let staffCheck = await checkDailyReport(); // let staffCheck = await checkDailyReport();
// if (staffCheck) return false;; // if (staffCheck) return false;;
let { outTradeNo } = e.detail; let { arr } = e.detail;
this.closeSwitchPopup(); this.closeSwitchPopup();
wx.$storage.set("outTradeNo", outTradeNo); // wx.$storage.set("outTradeNo", outTradeNo);
outTradeNo && arr &&
this.onRoute({ this.onRoute({
...e.detail, ...e.detail,
orderCreateType: "additionRecordOrder", orderCreateType: "additionRecordOrder",
...@@ -943,7 +944,7 @@ Page({ ...@@ -943,7 +944,7 @@ Page({
*/ */
onLoad: function (options) { onLoad: function (options) {
// console.log(app.globalData.YQorderSetting, 'app.globalData.YQorderSetting?.yqPhoneConfig') // console.log(app.globalData.YQorderSetting, 'app.globalData.YQorderSetting?.yqPhoneConfig')
console.log(options,'options'); console.log(options, 'options');
if (options.scene) { if (options.scene) {
this.setData(options); this.setData(options);
} }
...@@ -1249,16 +1250,16 @@ Page({ ...@@ -1249,16 +1250,16 @@ Page({
// console.log(list) // console.log(list)
}); });
}, },
getShopMerchantPointConfig(){ getShopMerchantPointConfig() {
let { userInfo } = this.data; let { userInfo } = this.data;
let oParams = {}; let oParams = {};
oParams.merchantId = userInfo.shopMerchantId; oParams.merchantId = userInfo.shopMerchantId;
api.getShopMerchantPointConfig(oParams).then(res=>{ api.getShopMerchantPointConfig(oParams).then(res => {
if(res.data.pointsMultiRole=='Y'){ if (res.data.pointsMultiRole == 'Y') {
toastList.userId='销售顾问/录单员不能为空' toastList.userId = '销售顾问/录单员不能为空'
} }
this.setData({ this.setData({
pointsMultiRole:res.data.pointsMultiRole pointsMultiRole: res.data.pointsMultiRole
}) })
}) })
}, },
...@@ -1309,34 +1310,38 @@ Page({ ...@@ -1309,34 +1310,38 @@ Page({
// console.log() // console.log()
// 是订单补录跳转进来的 // 是订单补录跳转进来的
if (res?.orderCreateType == "additionRecordOrder") { if (res?.orderCreateType == "additionRecordOrder") {
let { supplementId, switchVlaue, arr: outTradeArr } = res; let { supplementId, switchVlaue, arr: outTradeArr } = res;
// 如果是扫码进来的 // 如果是扫码进来的
if (supplementId) { if (supplementId) {
return this.checkShowOrderInfo(res); return this.checkShowOrderInfo(res);
} }
let filteroutTradeArr = outTradeArr.map(item => item.outTradeNo)
// 判断是多订单还是一个 // 判断是多订单还是一个
if (switchVlaue == 1 && outTradeArr.length == 1) { if (switchVlaue == 1 && outTradeArr.length == 1) {
let { outTradeNo, totalFee, accountDate, tradeNo } = outTradeArr[0] let { outTradeNo, totalFee, accountDate, tradeNo } = outTradeArr[0]
this.setData({ this.setData({
switchVlaue,
outTradeArr: filteroutTradeArr,
outTradeNo, outTradeNo,
tradeNo, // tradeNo,
["orderObj.outTradeNo"]: outTradeNo, ["orderObj.outTradeNo"]: outTradeNo,
totalFee: totalFee, totalFee: totalFee,
accountDate, // accountDate,
showTips: true showTips: true
}); });
} else { } else {
const accountDate = this.getLatestAccountDate(outTradeArr) // const accountDate = this.getLatestAccountDate(outTradeArr)
const outTradeNo = outTradeArr.reduce((str, item, index) => { const outTradeNo = outTradeArr.reduce((str, item, index) => {
str += index ? `,${item.outTradeNo}` : item.outTradeNo str += index ? `,${item.outTradeNo}` : item.outTradeNo
return str; return str;
}, '') }, '')
this.setData({ this.setData({
outTradeArr, switchVlaue,
outTradeArr: filteroutTradeArr,
outTradeNo, outTradeNo,
["orderObj.outTradeNo"]: outTradeNo, ["orderObj.outTradeNo"]: outTradeNo,
// ["orderObj.outTradeArr"]: outTradeArr, showTips: true
// ["orderObj.successDateTime"]: accountDate,
}); });
} }
......
...@@ -479,6 +479,7 @@ page { ...@@ -479,6 +479,7 @@ page {
} }
.waitOrderCon .btn { .waitOrderCon .btn {
color: #F24724; color: #F24724;
padding: var(--fontSize6) var(--fontSize20); padding: var(--fontSize6) var(--fontSize20);
margin-left: auto; margin-left: auto;
...@@ -487,6 +488,7 @@ page { ...@@ -487,6 +488,7 @@ page {
} }
.tipsadd { .tipsadd {
position: relative;
box-sizing: border-box; box-sizing: border-box;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
...@@ -513,11 +515,14 @@ page { ...@@ -513,11 +515,14 @@ page {
justify-content: space-between; justify-content: space-between;
} }
.btn { .tipsbtn {
color: #F24724; position: absolute;
right: 120rpx;
bottom: 20rpx;
color: #347BFF;
padding: var(--fontSize6) var(--fontSize20); padding: var(--fontSize6) var(--fontSize20);
margin-left: auto; margin-left: auto;
border: 1px solid #F24724; border: 1px solid #347BFF;
border-radius: var(--fontSize28); border-radius: var(--fontSize28);
margin-top: -26rpx; margin-top: -26rpx;
margin-right: -90rpx; margin-right: -90rpx;
......
...@@ -407,15 +407,15 @@ ...@@ -407,15 +407,15 @@
</view> </view>
<view class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}"> <view class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}">
<view class="tipsadd" wx:if="{{ showTips }}"> <view class="tipsadd" wx:if="{{ showTips }}">
<image wx:if="{{ !tradeNo }}" class="tipsIcon" src="../../../images/tips.png" /> <image class="tipsIcon" src="../../../images/tips.png" />
<view class="contentText"> <view class="contentText">
<view>交易参考号:{{tradeNo}}</view> <view>交易参考号:{{tradeNo}}</view>
<view>支付时间:{{accountDate}}</view> <view>支付时间:{{accountDate}}</view>
<view class="tipsbox"> <view class="tipsbox">
<view>支付金额:{{totalFee/100}}</view> <view>支付金额:{{totalFee/100}}</view>
<view class="btn" wx:if="{{ tradeNo }}" bindtap="tipsEvent">补录订单</view> <view class="tipsbtn" bindtap="tipsEvent">补录订单</view>
</view> </view>
</view> </view>
<!-- <image class="closeIcon" bindtap="closeTips" src="../../images/closeIcon.png" /> --> <!-- <image class="closeIcon" bindtap="closeTips" src="../../images/closeIcon.png" /> -->
</view> </view>
<view class="btns-con"> <view class="btns-con">
...@@ -428,7 +428,7 @@ ...@@ -428,7 +428,7 @@
<view class="waitOrderCon {{ showTips? 'showTips':'' }}" wx:if="{{ waitInputCount && !associateOrderType && !isErrorOrder&&!outTradeNo }}"> <view class="waitOrderCon {{ showTips? 'showTips':'' }}" wx:if="{{ waitInputCount && !associateOrderType && !isErrorOrder&&!outTradeNo }}">
<tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" /> <tips-bottom style="width: 100%;box-sizing: border-box;" tipsProps="{{ tipsProps }}" />
</view> </view>
<recording-order-popup wx:if="{{ showOrderpop && !(isErrorOrder) }}" outTradeNo="{{ outTradeNo }}" show="{{ showOrderpop }}" bind:success="navigator" title="请选择交易参考号" /> <recording-order-popup wx:if="{{ showOrderpop && !(isErrorOrder) }}" outTradeNo="{{ outTradeArr }}" switchVlauerec="{{switchVlaue}}" show="{{ showOrderpop }}" bind:success="navigator" title="请选择交易参考号" />
<merchant-seles show="{{ salesmanBox }}" isDefault="{{ isDefault }}" title="选择园区店" sub-title="选择转化人员" userInfo="{{ userInfo }}" type="2" scene="1" /> <merchant-seles show="{{ salesmanBox }}" isDefault="{{ isDefault }}" title="选择园区店" sub-title="选择转化人员" userInfo="{{ userInfo }}" type="2" scene="1" />
<merchant-seles show="{{ selesBox }}" title="选择合作门店" orderObj="{{ orderObj }}" sub-title="{{pointsMultiRole=='N'?'选择销售顾问':'选择销售顾问/录单员'}}" userInfo="{{ userInfo }}" singleSeller="{{ true }}" type="1" scene="1" /> <merchant-seles show="{{ selesBox }}" title="选择合作门店" orderObj="{{ orderObj }}" sub-title="{{pointsMultiRole=='N'?'选择销售顾问':'选择销售顾问/录单员'}}" userInfo="{{ userInfo }}" singleSeller="{{ true }}" type="1" scene="1" />
<merchant-seles show="{{ selesDeliveryBox }}" title="选择合作门店" orderObj="{{ orderObj }}" sub-title="选择交付专员" userInfo="{{ userInfo }}" singleSeller="{{ true }}" type="3" scene="1" /> <merchant-seles show="{{ selesDeliveryBox }}" title="选择合作门店" orderObj="{{ orderObj }}" sub-title="选择交付专员" userInfo="{{ userInfo }}" singleSeller="{{ true }}" type="3" scene="1" />
......
...@@ -52,9 +52,13 @@ page { ...@@ -52,9 +52,13 @@ page {
opacity: 1; opacity: 1;
} }
.main { .layout {
padding: 0 var(--fontSize20) var(--fontSize136); .main {
padding: 0 var(--fontSize20) var(--fontSize236) !important;
}
}
.main {
.mainheader { .mainheader {
margin: var(--fontSize20) var(--fontSize10) 0; margin: var(--fontSize20) var(--fontSize10) 0;
display: flex; display: flex;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!