Commit effcff6f by 张立顺

feat 功能开发

1 parent 6a6353a7
...@@ -213,7 +213,7 @@ Component({ ...@@ -213,7 +213,7 @@ Component({
}, 1000) }, 1000)
console.log(thisPage, 'thisPage'); console.log(thisPage, 'thisPage');
let thisPage = wx.$router.getPageInstance() let thisPage = wx.$router.getPageInstance()
if (orderType == 2) { if (orderType == 2 || orderType == 5) {
if (payVoucherList.length && outTradeNo) { if (payVoucherList.length && outTradeNo) {
thisPage.setData({ thisPage.setData({
outTradeNo, outTradeNo,
......
...@@ -2,12 +2,12 @@ ...@@ -2,12 +2,12 @@
<view class="order-popup" wx:if="{{show}}" catchtouchmove="noScroll"> <view class="order-popup" wx:if="{{show}}" catchtouchmove="noScroll">
<view class="order-popup-bg" bindtap="close" /> <view class="order-popup-bg" bindtap="close" />
<view class="order-popup-content"> <view class="order-popup-content">
<view class="title" wx:if="{{orderType == 2}}">上传付款凭证</view> <view class="title" wx:if="{{orderType == 2 }}">上传付款凭证</view>
<view class="order-popup-close" bindtap="close"> <view class="order-popup-close" bindtap="close">
<image src="../images/order-close.png" /> <image src="../images/order-close.png" />
</view> </view>
<!-- 4s店 开始 --> <!-- 4s店 开始 -->
<block wx:if="{{orderType == 2}}"> <block wx:if="{{orderType == 2 }}">
<view class="input-item"> <view class="input-item">
<view class="input-box"> <view 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" />
......
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy> <glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<view class="order-popup" wx:if="{{show}}" catchtouchmove="noScroll"> <view class="order-popup" wx:if="{{show}}" catchtouchmove="noScroll">
<view class="order-popup-bg" bindtap="close" /> <view class="order-popup-bg" bindtap="close" />
<view class="order-popup-content"> <view class="order-popup-content">
<view class="title" wx:if="{{orderType == 2}}">上传付款凭证</view> <view class="title" wx:if="{{orderType == 2 ||orderType == 5}}">上传付款凭证</view>
<view class="order-popup-close" bindtap="close"> <view class="order-popup-close" bindtap="close">
<image src="./images/order-close.png" /> <image src="./images/order-close.png" />
</view> </view>
<!-- 门店 开始 --> <!-- 门店 开始 -->
<block wx:if="{{orderType == 2}}"> <block wx:if="{{orderType == 2 ||orderType == 5}}">
<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 wx:else class="input-box"> <view wx:else class="input-box">
<input <input type="text" class="input" bindinput="input" value="{{outTradeNo}}" placeholder="输入交易流水号" placeholder-class="outTradeNo_placeholder" maxlength="150" />
type="text" </view>
class="input" </view>
bindinput="input"
value="{{outTradeNo}}"
placeholder="输入交易流水号"
placeholder-class="outTradeNo_placeholder"
maxlength="150" />
</view>
</view>
<view class="upload-content"> <view class="upload-content">
<view class="title-text">上传图片</view> <view class="title-text">上传图片</view>
<view class="upload-box"> <view class="upload-box">
<van-uploader <van-uploader file-list="{{ payVoucherList }}" max-count="9" deletable preview-size="var(--fontSize160)" bind:after-read="upLoad" bind:delete="deletePayVoucher">
file-list="{{ payVoucherList }}"
max-count="9"
deletable
preview-size="var(--fontSize160)"
bind:after-read="upLoad"
bind:delete="deletePayVoucher"
>
</van-uploader> </van-uploader>
</view> </view>
</view> </view>
<view class="btn" bindtap="confirm">确定</view>
</block>
<!-- 4s店 end -->
</view>
</view>
<view class="btn" bindtap="confirm">确定</view>
</block>
<!-- 4s店 end -->
</view>
</view>
\ No newline at end of file \ No newline at end of file
...@@ -281,7 +281,7 @@ ...@@ -281,7 +281,7 @@
background: #fff; background: #fff;
} }
.goods.total-box{ .goods.total-box {
background: #fff; background: #fff;
} }
...@@ -310,7 +310,7 @@ ...@@ -310,7 +310,7 @@
margin-left: auto; margin-left: auto;
} }
.goods-box .goods .price-box text{ .goods-box .goods .price-box text {
position: absolute; position: absolute;
left: var(--fontSize16); left: var(--fontSize16);
top: 50%; top: 50%;
...@@ -468,4 +468,69 @@ ...@@ -468,4 +468,69 @@
.itemSty:nth-child(n+2) { .itemSty:nth-child(n+2) {
border-top: var(--fontSize1) solid #EFF0F2; border-top: var(--fontSize1) solid #EFF0F2;
} }
}
.payType-box {
display: flex;
align-items: center;
// flex-wrap: wrap;
padding-top: var(--fontSize20);
/* justify-content: space-between; */
}
.payType-box .item {
white-space: nowrap;
margin-right: 4px;
margin-bottom: var(--fontSize20);
/* margin: var(--fontSize20) var(--fontSize8) 0 0; */
}
.payType-box .wxPayIcon {
width: var(--fontSize48);
height: var(--fontSize48);
margin-right: var(--fontSize5);
}
.payType-box .item:last-child {
margin-right: 0;
}
.box .item-disabled {
opacity: .4;
}
.payType-box .item {
box-sizing: border-box;
background: #F7F8FA;
border-radius: 4rpx;
font-size: var(--fontSize28);
color: #999999;
height: var(--fontSize56);
padding: 0 var(--fontSize24);
position: relative;
}
.payType-box .item.disabled {
opacity: .4;
}
.payType-box .item.active {
color: #347BFF;
border: var(--fontSize2) solid #347BFF;
border-color: #347BFF;
background: #347bff1a;
}
.payType-box .item .active-icon {
display: none;
width: var(--fontSize20);
height: var(--fontSize20);
position: absolute;
right: 0;
bottom: 0;
}
.payType-box .item.active .active-icon {
display: block;
} }
\ No newline at end of file \ No newline at end of file
...@@ -318,7 +318,7 @@ Page({ ...@@ -318,7 +318,7 @@ Page({
if (!orderInfo.vdQuotationGoodsList.length) if (!orderInfo.vdQuotationGoodsList.length)
return wx.$util.showToast("请选择增值车损险商品"); return wx.$util.showToast("请选择增值车损险商品");
// 非标记错误,门店收款 // 非标记错误,门店收款
if (!orderInfo.pay2Time && orderInfo.payType == 2 && !orderInfo.resetOrder) if (!orderInfo.pay2Time && (orderInfo.payType == 2 || orderInfo.payType == 5) && !orderInfo.resetOrder)
return wx.$util.showToast("请选择门店收款时间"); return wx.$util.showToast("请选择门店收款时间");
// 修改权益报价逻辑 // 修改权益报价逻辑
if (confirmStatus) return false; if (confirmStatus) return false;
...@@ -335,7 +335,7 @@ Page({ ...@@ -335,7 +335,7 @@ Page({
// 如果是门店收款 并且付款凭证没有填 // 如果是门店收款 并且付款凭证没有填
orderInfo.paymentDocList = orderInfo.paymentDocList || []; orderInfo.paymentDocList = orderInfo.paymentDocList || [];
if ( if (
orderInfo.payType == 2 && (orderInfo.payType == 2 || orderInfo.payType == 5) &&
!(orderInfo.transactionNo && orderInfo.paymentDocList.length) !(orderInfo.transactionNo && orderInfo.paymentDocList.length)
) )
return this.setData({ return this.setData({
...@@ -371,7 +371,7 @@ Page({ ...@@ -371,7 +371,7 @@ Page({
// 校验生成告知书是否成功 // 校验生成告知书是否成功
if (id) { if (id) {
// 门店付款就直接返回列表 // 门店付款就直接返回列表
if (orderInfo.payType == 2) if (orderInfo.payType == 2 || orderInfo.payType == 5)
return wx.$router.reLaunch("packageEquity.equityPage", { return wx.$router.reLaunch("packageEquity.equityPage", {
tabIndex: 1, tabIndex: 1,
}); });
......
...@@ -83,6 +83,7 @@ Component({ ...@@ -83,6 +83,7 @@ Component({
mapValue: { mapValue: {
1: "线上支付", 1: "线上支付",
2: "门店收款", 2: "门店收款",
5: "嘀加收款"
}, },
}, },
], ],
......
...@@ -68,6 +68,7 @@ Page({ ...@@ -68,6 +68,7 @@ Page({
mapValue: { mapValue: {
1: "线上支付", 1: "线上支付",
2: "门店收款", 2: "门店收款",
5: "嘀加收款"
}, },
}, },
], ],
...@@ -104,15 +105,15 @@ Page({ ...@@ -104,15 +105,15 @@ Page({
// 获取订单列表 // 获取订单列表
getList(isReset = false) { getList(isReset = false) {
let { let {
pageSize, pageSize,
currentPage, currentPage,
searchdate, searchdate,
customerName, customerName,
merchantId, merchantId,
nothing, nothing,
staffUuid, staffUuid,
customerPhones customerPhones
} = this.data } = this.data
if (nothing) { if (nothing) {
return return
} }
...@@ -125,10 +126,10 @@ Page({ ...@@ -125,10 +126,10 @@ Page({
merchantId, merchantId,
customerPhones customerPhones
} }
if(staffUuid){ if (staffUuid) {
params.transferIds = [staffUuid] params.transferIds = [staffUuid]
} }
wx.$util.showLoading() wx.$util.showLoading()
quotationPage(params) quotationPage(params)
.then((res) => { .then((res) => {
...@@ -136,7 +137,7 @@ Page({ ...@@ -136,7 +137,7 @@ Page({
if (res.code == "0") { if (res.code == "0") {
let { list, pages } = res.data let { list, pages } = res.data
// 处理返回数据 // 处理返回数据
let tempList = this.dealListData(list || []) let tempList = this.dealListData(list || [])
tempList = tempList.map((item) => { tempList = tempList.map((item) => {
item.createdTime = wx.$util.tsFormatTime( item.createdTime = wx.$util.tsFormatTime(
item.createdTime, item.createdTime,
......
...@@ -132,7 +132,7 @@ Page({ ...@@ -132,7 +132,7 @@ Page({
orderCode, orderCode,
payType: selectPayType, payType: selectPayType,
}; };
if (selectPayType == 2 && !isErrorOrder) { if ((selectPayType == 2 || selectPayType == 5) && !isErrorOrder) {
obj.successDate = new Date(successDate).format("yyyy-MM-dd hh:mm:ss"); obj.successDate = new Date(successDate).format("yyyy-MM-dd hh:mm:ss");
} }
if (payVoucherList?.length && outTradeNo) { if (payVoucherList?.length && outTradeNo) {
...@@ -312,9 +312,8 @@ Page({ ...@@ -312,9 +312,8 @@ Page({
data.customerCoupon.customerCouponCode.split("-")[0]; data.customerCoupon.customerCouponCode.split("-")[0];
} }
if (data.customer.carSeriesName) { if (data.customer.carSeriesName) {
data.carType = `${data.customer.carBrand || ""}-${ data.carType = `${data.customer.carBrand || ""}-${data.customer.carChildsBrandName || ""
data.customer.carChildsBrandName || "" }-${data.customer.carSeriesName || ""}`;
}-${data.customer.carSeriesName || ""}`;
} }
this.setData({ this.setData({
orderInfo: data, orderInfo: data,
...@@ -343,7 +342,7 @@ Page({ ...@@ -343,7 +342,7 @@ Page({
// this.isArtificer(data) // this.isArtificer(data)
// } // }
// 是门店收款并且不是错误订单 自动打开门店收款弹窗 // 是门店收款并且不是错误订单 自动打开门店收款弹窗
if (!isErrorOrder && data.selectPayType == 2) { if (!isErrorOrder && (data.selectPayType == 2 || data.selectPayType == 5)) {
this.toshowDateModal(); this.toshowDateModal();
} }
// 获取园区店技师配置信息 // 获取园区店技师配置信息
...@@ -412,7 +411,7 @@ Page({ ...@@ -412,7 +411,7 @@ Page({
}); });
} }
}); });
} catch (err) {} } catch (err) { }
}, },
isArtificer(data) { isArtificer(data) {
let { customerObj, orderInfo } = this.data; let { customerObj, orderInfo } = this.data;
...@@ -496,17 +495,17 @@ Page({ ...@@ -496,17 +495,17 @@ Page({
/** /**
* 生命周期函数--监听页面初次渲染完成 * 生命周期函数--监听页面初次渲染完成
*/ */
onReady: function () {}, onReady: function () { },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow: function () {}, onShow: function () { },
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide: function () {}, onHide: function () { },
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
...@@ -519,17 +518,17 @@ Page({ ...@@ -519,17 +518,17 @@ Page({
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh: function () {}, onPullDownRefresh: function () { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom: function () {}, onReachBottom: function () { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage: function () {}, onShareAppMessage: function () { },
// 返回 // 返回
goBack: function () { goBack: function () {
......
...@@ -49,15 +49,15 @@ Page({ ...@@ -49,15 +49,15 @@ Page({
name: "POS机", name: "POS机",
value: 3, value: 3,
}, },
// {
// name: '战败',
// value: 0
// },
{ {
name: "微信支付", name: '嘀加收款',
value: 1, value: 5
imgurl: "../../images/wxPayIcon.png",
}, },
// {
// name: "微信支付",
// value: 1,
// imgurl: "../../images/wxPayIcon.png",
// },
], ],
showPayList: [], showPayList: [],
orderObj: { orderObj: {
...@@ -1203,7 +1203,7 @@ Page({ ...@@ -1203,7 +1203,7 @@ Page({
return idx >= 0; return idx >= 0;
}); });
this.setData({ this.setData({
showPayList: list, showPayList: this.data.payTypeList,
}); });
// console.log(list) // console.log(list)
}); });
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!