Commit effcff6f by 张立顺

feat 功能开发

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