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" />
......
...@@ -2,37 +2,23 @@ ...@@ -2,37 +2,23 @@
<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"
class="input"
bindinput="input"
value="{{outTradeNo}}"
placeholder="输入交易流水号"
placeholder-class="outTradeNo_placeholder"
maxlength="150" />
</view> </view>
</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>
...@@ -42,4 +28,3 @@ ...@@ -42,4 +28,3 @@
<!-- 4s店 end --> <!-- 4s店 end -->
</view> </view>
</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%;
...@@ -469,3 +469,68 @@ ...@@ -469,3 +469,68 @@
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
...@@ -12,7 +12,19 @@ ...@@ -12,7 +12,19 @@
</view> </view>
</view> </view>
<view> <view>
<gl-cell border valueAlign="right" class="goodsCom" label="购买商品" labelWidth="var(--fontSize140)" haveArrow requiredAfter required placeholder="点击选择" bindclick="showPopup" data-show-name="goodsBox" /> <gl-cell
border
valueAlign="right"
class="goodsCom"
label="购买商品"
labelWidth="var(--fontSize140)"
haveArrow
requiredAfter
required
placeholder="点击选择"
bindclick="showPopup"
data-show-name="goodsBox"
/>
</view> </view>
<block wx:if="{{ orderInfo.vdQuotationGoodsList.length > 0 }}"> <block wx:if="{{ orderInfo.vdQuotationGoodsList.length > 0 }}">
<view class="goods-box"> <view class="goods-box">
...@@ -28,7 +40,17 @@ ...@@ -28,7 +40,17 @@
<view class="price-box"> <view class="price-box">
<text>¥</text> <text>¥</text>
<view class="price"> <view class="price">
<input type="digit" value="{{ item.goods.price }}" bindinput="changePrice" disabled="{{ orderObj.selectPayType ==0 }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ item.goods.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed /> <input
type="digit"
value="{{ item.goods.price }}"
bindinput="changePrice"
disabled="{{ orderObj.selectPayType ==0 }}"
data-item="{{ item }}"
bindblur="priceBlur"
data-index="{{ index }}"
class="{{ item.goods.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}"
always-embed
/>
</view> </view>
</view> </view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view> <view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{item.count||1}}</view>
...@@ -49,7 +71,18 @@ ...@@ -49,7 +71,18 @@
<view class="price-box"> <view class="price-box">
<text>¥</text> <text>¥</text>
<view class="price"> <view class="price">
<input type="digit" value="{{ child.price }}" bindinput="changePricePackage" disabled="{{ orderObj.selectPayType ==0 }}" data-childind="{{ childind }}" data-item="{{ item }}" bindblur="priceBlur" data-index="{{ index }}" class="{{ child.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}" always-embed /> <input
type="digit"
value="{{ child.price }}"
bindinput="changePricePackage"
disabled="{{ orderObj.selectPayType ==0 }}"
data-childind="{{ childind }}"
data-item="{{ item }}"
bindblur="priceBlur"
data-index="{{ index }}"
class="{{ child.checkError ? 'error':''}} {{orderObj.selectPayType ==0?'disabled':'' }}"
always-embed
/>
</view> </view>
</view> </view>
<view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{child.count||1}}</view> <view class="count" catchtap="showPopup" data-show-name="goodsBox">x{{child.count||1}}</view>
...@@ -73,25 +106,78 @@ ...@@ -73,25 +106,78 @@
<view class="label">其他信息</view> <view class="label">其他信息</view>
</view> </view>
</view> </view>
<gl-cell wx:if="{{ !orderInfo.outTradeNo || orderInfo.resetOrder }}" border class="pay-type" label="支付方式" valueAlign="right" labelWidth="var(--fontSize140)"> <!-- <gl-cell
wx:if="{{ !orderInfo.outTradeNo || orderInfo.resetOrder }}"
border
class="pay-type"
label="支付方式"
valueAlign="right"
labelWidth="var(--fontSize140)"
>
<view class="only-select-text" wx:if="{{ orderInfo.resetOrder }}">门店收款</view> <view class="only-select-text" wx:if="{{ orderInfo.resetOrder }}">门店收款</view>
<view wx:else class="switch-box"> <view wx:else class="switch-box">
<view class="block text-center {{ orderInfo.payType==1?'':'right' }}" /> <view class="block text-center {{ orderInfo.payType==1?'':'right' }}" />
<view class="left text-center {{ orderInfo.payType == 1?'active':'' }}" bindtap="changePayType" data-payType="1">线上支付</view> <view class="left text-center {{ orderInfo.payType == 1?'active':'' }}" bindtap="changePayType" data-payType="1">线上支付</view>
<view class="right text-center {{ orderInfo.payType == 2?'active':'' }}" bindtap="changePayType" data-payType="2">门店收款</view> <view class="right text-center {{ orderInfo.payType == 2?'active':'' }}" bindtap="changePayType" data-payType="2">门店收款</view>
</view> </view>
</gl-cell> -->
<gl-cell
border
class="pay-type"
label="支付方式"
valueAlign="right"
wx:if="{{ !orderInfo.outTradeNo || orderInfo.resetOrder }}"
labelWidth="var(--fontSize140)"
>
<view class="payType-box">
<block wx:for="{{ payTypeList }}" wx:key="index">
<view
class="item text-center {{ orderInfo.payType == item.value?'active':'' }}"
bindtap="changePayType"
data-payType="{{ item.value }}"
>{{item.name}}</view>
</block>
</view>
</gl-cell> </gl-cell>
<gl-cell wx:if="{{ (orderInfo.payType == 2&&!orderInfo.resetOrder) }}" value="{{successDateTime}}" bind:click="toSelectDate" haveArrow="{{true}}" placeholder="请选择时间" required="{{true}}" requiredAfter="{{true}}" border class="pay-type" label="门店收款时间" valueAlign="right" labelWidth="var(--fontSize200)"> <gl-cell
wx:if="{{ (orderInfo.payType == 2 ||orderInfo.payType ==5 )&&!orderInfo.resetOrder }}"
</gl-cell> value="{{ successDateTime }}"
bind:click="toSelectDate"
haveArrow="{{ true }}"
placeholder="请选择时间"
required="{{ true }}"
requiredAfter="{{ true }}"
border
class="pay-type"
label="门店收款时间"
valueAlign="right"
labelWidth="var(--fontSize200)"
></gl-cell>
<view class="box"> <view class="box">
<view class="title remarkTitle">备注</view> <view class="title remarkTitle">备注</view>
<van-field type="textarea" maxlength="30" autosize class="inputBox" border="{{ false }}" data-hold-keyboard value="{{ orderInfo.notes }}" data-attrName="notes" placeholder="请输入(30字以内)" data-attrType="" bindinput="handleInput"></van-field> <van-field
type="textarea"
maxlength="30"
autosize
class="inputBox"
border="{{ false }}"
data-hold-keyboard
value="{{ orderInfo.notes }}"
data-attrName="notes"
placeholder="请输入(30字以内)"
data-attrType=""
bindinput="handleInput"
></van-field>
</view> </view>
</van-collapse-item> </van-collapse-item>
</view> </view>
</van-collapse> </van-collapse>
<Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{ textNameObj }}" /> <Gl-Button-Group bindbtnTap="btnTap" textNameObj="{{ textNameObj }}" />
</view> </view>
<goods show="{{ goodsBox }}" bindconfirm="chooseGoods" goodsData="{{ quotationGoodsList }}" chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}" />
<date-select show="{{showDateSelect}}" bind:close="closeDateModal" bind:confirm="onChanteSuccessDate"></date-select>
\ No newline at end of file \ No newline at end of file
<goods
show="{{ goodsBox }}"
bindconfirm="chooseGoods"
goodsData="{{ quotationGoodsList }}"
chooseGoodsList="{{ orderInfo.vdQuotationGoodsList }}"
/>
<date-select show="{{ showDateSelect }}" bind:close="closeDateModal" bind:confirm="onChanteSuccessDate"></date-select>
\ 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: "嘀加收款"
}, },
}, },
], ],
...@@ -125,7 +126,7 @@ Page({ ...@@ -125,7 +126,7 @@ Page({
merchantId, merchantId,
customerPhones customerPhones
} }
if(staffUuid){ if (staffUuid) {
params.transferIds = [staffUuid] params.transferIds = [staffUuid]
} }
......
...@@ -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,8 +312,7 @@ Page({ ...@@ -312,8 +312,7 @@ 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({
...@@ -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!