Commit c5dbdc71 by 李伟康

Merge branch 'SAAS+V4.47.0' of http://192.168.3.233:8090/saas_plus/dj-car-boutiq…

…ue-work-wechat into SAAS+V4.47.0
2 parents 4a6b1841 ae591ed9
...@@ -9,6 +9,9 @@ Component({ ...@@ -9,6 +9,9 @@ Component({
} }
} }
}, },
selectPay:{
type:Number
}
}, },
......
<!-- components/DatePicker/DatePicker.wxml --> <!-- components/DatePicker/DatePicker.wxml -->
<block wx:if="{{show}}"> <block wx:if="{{show}}">
<view class="fixed-box fixed-date-box" catchtouchmove="noScroll"> <view class="fixed-box fixed-date-box" catchtouchmove="noScroll">
<view class="fixed-bg" data-name="showDateSelect"></view> <view class="fixed-bg" data-name="showDateSelect"></view>
<view class="fixed-content"> <view class="fixed-content">
<view class="fixed-title text-center">门店收款时间</view> <view class="fixed-title text-center">{{selectPay==2?'门店收款时间':'嘀加收款时间'}}</view>
<view class="fixed-body"> <view class="fixed-body">
<picker-view class="picker picker_max" value="{{dateValues}}" indicator-class="indicator" bindchange="changeDate"> <picker-view class="picker picker_max" value="{{dateValues}}" indicator-class="indicator" bindchange="changeDate">
<picker-view-column> <picker-view-column>
<block wx:for="{{days}}" wx:key="index"> <block wx:for="{{days}}" wx:key="index">
<view class="view">{{item}}</view> <view class="view">{{item}}</view>
</block> </block>
</picker-view-column> </picker-view-column>
</picker-view> </picker-view>
<picker-view class="picker" value="{{hourValues}}" indicator-class="indicator" bindchange="changeHour"> <picker-view class="picker" value="{{hourValues}}" indicator-class="indicator" bindchange="changeHour">
<picker-view-column> <picker-view-column>
<block wx:for="{{hours}}" wx:key="index"> <block wx:for="{{hours}}" wx:key="index">
<view class="view">{{item}}</view> <view class="view">{{item}}</view>
</block> </block>
</picker-view-column> </picker-view-column>
</picker-view> </picker-view>
<picker-view wx:if="{{!loading}}" class="picker" value="{{minuteValues}}" indicator-class="indicator" bindchange="changeMinutes"> <picker-view wx:if="{{!loading}}" class="picker" value="{{minuteValues}}" indicator-class="indicator" bindchange="changeMinutes">
<picker-view-column> <picker-view-column>
<block wx:for="{{minutes}}" wx:key="index"> <block wx:for="{{minutes}}" wx:key="index">
<view class="view">{{item}}</view> <view class="view">{{item}}</view>
</block> </block>
</picker-view-column> </picker-view-column>
</picker-view> </picker-view>
</view> </view>
<view class="fixed-footer"> <view class="fixed-footer">
<view class="fixed-cancel text-center" bindtap="hide" data-name="showDateSelect"> <view class="fixed-cancel text-center" bindtap="hide" data-name="showDateSelect">
取消 取消
</view>
<view class="fixed-confirm text-center" bindtap="confirm">确定</view>
</view>
</view> </view>
<view class="fixed-confirm text-center" bindtap="confirm">确定</view>
</view>
</view> </view>
</view>
</block> </block>
\ No newline at end of file \ No newline at end of file
...@@ -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 || 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>
<!-- 4s店 开始 --> <!-- 4s店 开始 -->
<block wx:if="{{orderType == 2 }}"> <block wx:if="{{orderType == 2 || orderType == 5}}">
<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" />
......
...@@ -170,7 +170,7 @@ Page({ ...@@ -170,7 +170,7 @@ Page({
let { index } = e.currentTarget.dataset let { index } = e.currentTarget.dataset
let { customPayVoucher } = _this.data let { customPayVoucher } = _this.data
customPayVoucher.splice(index, 1) customPayVoucher.splice(index, 1)
this.setData({customPayVoucher}) this.setData({ customPayVoucher })
}, },
// 门店收款确认 // 门店收款确认
confirm() { confirm() {
...@@ -182,7 +182,7 @@ Page({ ...@@ -182,7 +182,7 @@ Page({
if (customOutTradeNoArr?.length > 5) return wx.$util.showToast('最多5笔交易流水号') if (customOutTradeNoArr?.length > 5) return wx.$util.showToast('最多5笔交易流水号')
try { try {
customOutTradeNoArr?.forEach(v => { customOutTradeNoArr?.forEach(v => {
if (v?.length > 32) throw v if (v?.length > 32) throw v
}) })
} catch (error) { } catch (error) {
return wx.$util.showToast('每个交易流水号最大支持32位字符') return wx.$util.showToast('每个交易流水号最大支持32位字符')
...@@ -435,15 +435,15 @@ Page({ ...@@ -435,15 +435,15 @@ Page({
selectPayType == 3 ? this.posPay(outTradeNo) : this.createWxQrcode() selectPayType == 3 ? this.posPay(outTradeNo) : this.createWxQrcode()
}, },
onPageScroll({scrollTop}){ onPageScroll({ scrollTop }) {
this.setData({ this.setData({
navStyle:scrollTop > 20 ? '' : navStyle navStyle: scrollTop > 20 ? '' : navStyle
}) })
}, },
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) {}, onLoad(options) { },
/** /**
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
...@@ -474,15 +474,15 @@ Page({ ...@@ -474,15 +474,15 @@ Page({
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
*/ */
onPullDownRefresh() {}, onPullDownRefresh() { },
/** /**
* 页面上拉触底事件的处理函数 * 页面上拉触底事件的处理函数
*/ */
onReachBottom() {}, onReachBottom() { },
/** /**
* 用户点击右上角分享 * 用户点击右上角分享
*/ */
onShareAppMessage() {} onShareAppMessage() { }
}) })
...@@ -116,8 +116,7 @@ Page({ ...@@ -116,8 +116,7 @@ Page({
const { id, entry, sector, sparringType } = this.data; const { id, entry, sector, sparringType } = this.data;
if (id) { if (id) {
// 都为延保 sparringType 1.话术演练 2.攻防演练 ,暂时只有延保、安心包,再多需修改代码 // 都为延保 sparringType 1.话术演练 2.攻防演练 ,暂时只有延保、安心包,再多需修改代码
sector == '延保' ? sparringType == 1 ? sparringType == 2 ? sector == '延保' ? wx.navigateTo({url: `/packageEquity/pages/aiCheck/defense/defense?id=2`}) : wx.navigateTo({url: `/packageEquity/pages/aiCheck/defense/defense?id=3`}) : wx.navigateTo({url: `/packageEquity/pages/aiCheck/scene/scene`})
wx.navigateTo({url: `/packageEquity/pages/aiCheck/scene/scene`}) : wx.navigateTo({url: `/packageEquity/pages/aiCheck/defense/defense?id=2`}) : wx.navigateTo({url: `/packageEquity/pages/aiCheck/defense/defense?id=3`})
} else if (entry == "other") { } else if (entry == "other") {
wx.navigateTo({ wx.navigateTo({
url: `/packageEquity/pages/aiCheck/scene/scene`, url: `/packageEquity/pages/aiCheck/scene/scene`,
......
...@@ -134,6 +134,10 @@ Component({ ...@@ -134,6 +134,10 @@ Component({
name: '微信支付', name: '微信支付',
value: 1 value: 1
}, },
{
name: '嘀加收款',
value: 5
}
], ],
storeType: 1, // 门店数据类型 默认园区店 storeType: 1, // 门店数据类型 默认园区店
showStoreSelectPopup: false showStoreSelectPopup: false
......
...@@ -145,6 +145,10 @@ Component({ ...@@ -145,6 +145,10 @@ Component({
{ {
name: '支付宝支付', name: '支付宝支付',
value: 4 value: 4
},
{
name: '嘀加收款',
value: 5
} }
], ],
storeType: 1, // 门店数据类型 默认园区店 storeType: 1, // 门店数据类型 默认园区店
......
...@@ -42,7 +42,8 @@ Page({ ...@@ -42,7 +42,8 @@ Page({
tabListTemplate: ["全部", "待跟进", "已升级", "战败"], tabListTemplate: ["全部", "待跟进", "已升级", "战败"],
isMake: true, isMake: true,
selectType: 1, selectType: 1,
isSettingExpiredTraffic: false // 是否启用流量失效 isSettingExpiredTraffic: false, // 是否启用流量失效
isScan: false // 是否扫码核销
}, },
// 创建一个动画实例 // 创建一个动画实例
// createAnimation: function () { // createAnimation: function () {
...@@ -68,10 +69,11 @@ Page({ ...@@ -68,10 +69,11 @@ Page({
}); });
}, },
// 确定是否要显示 // 确定是否要显示
showSelectType({ scene = "", item = {} }) { showSelectType({ scene = "", item = {}}, scan = false) {
let {isSettingExpiredTraffic} = this.data let {isSettingExpiredTraffic} = this.data
this.setData({isScan: scan})
// 当切换门店后,不支持录入失效客户工单,将selectType置为1录入工单 // 当切换门店后,不支持录入失效客户工单,将selectType置为1录入工单
if (!isSettingExpiredTraffic && this.data.selectType == 3) { if ((!isSettingExpiredTraffic || scan) && this.data.selectType == 3) {
this.setData({ this.setData({
selectType: 1 selectType: 1
}) })
...@@ -218,7 +220,7 @@ Page({ ...@@ -218,7 +220,7 @@ Page({
wx.scanCode({ wx.scanCode({
success(res) { success(res) {
let { result } = res; let { result } = res;
that.showSelectType({ scene: result }); that.showSelectType({ scene: result }, true);
// console.log(result) // console.log(result)
// wx.$router.go("tabWorkOrder.createOrder", { // wx.$router.go("tabWorkOrder.createOrder", {
// scene: result, // scene: result,
......
...@@ -229,7 +229,7 @@ ...@@ -229,7 +229,7 @@
<gl-image class="icon" src="/miniProgram/order3.png"></gl-image> <gl-image class="icon" src="/miniProgram/order3.png"></gl-image>
战败下单 战败下单
</view> </view>
<view wx:if="{{isSettingExpiredTraffic}}" class="modalbox cancle {{ selectType == 3?'act': '' }}" bindtap="selectType" data-type="3"> <view wx:if="{{isSettingExpiredTraffic && !isScan}}" class="modalbox cancle {{ selectType == 3?'act': '' }}" bindtap="selectType" data-type="3">
<gl-image class="icon" src="/miniProgram/order4.png"></gl-image> <gl-image class="icon" src="/miniProgram/order4.png"></gl-image>
失效客户 失效客户
</view> </view>
......
...@@ -15,7 +15,8 @@ const checkDailyReport = async (sceneType) => { ...@@ -15,7 +15,8 @@ const checkDailyReport = async (sceneType) => {
return new Promise((resolve) => { return new Promise((resolve) => {
Promise.all(eventRequest).then((results) => { Promise.all(eventRequest).then((results) => {
const [reportStatus] = results; // const [reportStatus] = results;
results = results.slice(-2)
// console.log(reportStatus, results, results.length, results[results.length - 1], 'reportStatus'); // console.log(reportStatus, results, results.length, results[results.length - 1], 'reportStatus');
let resultFlag = results.some((item) => item); let resultFlag = results.some((item) => item);
showNextModal(); showNextModal();
......
...@@ -3,6 +3,5 @@ ...@@ -3,6 +3,5 @@
"usingComponents": { "usingComponents": {
"artificer-select-popup" : "/components/ArtificerSelectPopup/artificerSelectPopup", "artificer-select-popup" : "/components/ArtificerSelectPopup/artificerSelectPopup",
"date-select":"/components/DateSelect/dateSelect" "date-select":"/components/DateSelect/dateSelect"
} }
} }
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<view class="content">等待客户付款</view> <view class="content">等待客户付款</view>
<view class="tips">点击下一步,锁定并生成工单码。</view> <view class="tips">点击下一步,锁定并生成工单码。</view>
</block> </block>
<block wx:if="{{orderInfo.selectPayType == 2 }}"> <block wx:if="{{orderInfo.selectPayType == 2 ||orderInfo.selectPayType == 5}}">
<view class="content">请上传付款凭证结束工单</view> <view class="content">请上传付款凭证结束工单</view>
<view class="tips">点击确认工单,提交付款凭证。</view> <view class="tips">点击确认工单,提交付款凭证。</view>
</block> </block>
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
<view class="tips">点击确认工单,根据操作结束工单。</view> <view class="tips">点击确认工单,根据操作结束工单。</view>
</block> </block>
</view> </view>
<view wx:if="{{!isErrorOrder&&orderInfo.selectPayType==2}}" class="box date-box"> <view wx:if="{{!isErrorOrder&&(orderInfo.selectPayType == 2 ||orderInfo.selectPayType==5)}}" class="box date-box">
<view class="date-box-label">收款时间<text class='required'>*</text></view> <view class="date-box-label">收款时间<text class='required'>*</text></view>
<view class="date-box-value">{{successDate || '请选择门店收款时间'}}</view> <view class="date-box-value">{{successDate || (orderInfo.selectPayType == 2?'请选择门店收款时间':'请选择嘀加收款时间')}}</view>
<view class="handlerBtn" bind:tap="toshowDateModal">编辑</view> <view class="handlerBtn" bind:tap="toshowDateModal">编辑</view>
</view> </view>
<view class="box"> <view class="box">
...@@ -216,4 +216,4 @@ ...@@ -216,4 +216,4 @@
<!-- orderInfo.selectPayType showPopup --> <!-- orderInfo.selectPayType showPopup -->
<order-popup orderType="{{orderInfo.selectPayType }}" wx:if="{{showPopup}}" show="{{showPopup}}" qrCode="{{orderInfo.payOrder.outTradeNo || ''}}" price="{{orderInfo.total_price}}" orderCode="{{orderInfo.orderCode}}" /> <order-popup orderType="{{orderInfo.selectPayType }}" wx:if="{{showPopup}}" show="{{showPopup}}" qrCode="{{orderInfo.payOrder.outTradeNo || ''}}" price="{{orderInfo.total_price}}" orderCode="{{orderInfo.orderCode}}" />
<artificer-select-popup show="{{artificerSelectPopup}}" title="选择技师" copyArtificerList="{{artificerList}}" orderInfo="{{orderInfo}}" artificerSelectObj="{{artificerSelectObj}}" bindconfirm="changeArtificer" /> <artificer-select-popup show="{{artificerSelectPopup}}" title="选择技师" copyArtificerList="{{artificerList}}" orderInfo="{{orderInfo}}" artificerSelectObj="{{artificerSelectObj}}" bindconfirm="changeArtificer" />
<date-select show="{{showDateSelect}}" bind:confirm="getSelectDate"></date-select>
\ No newline at end of file \ No newline at end of file
<date-select selectPay="{{orderInfo.selectPayType}}" show="{{showDateSelect}}" bind:confirm="getSelectDate"></date-select>
\ No newline at end of file \ No newline at end of file
...@@ -763,7 +763,7 @@ Page({ ...@@ -763,7 +763,7 @@ Page({
.then((result) => { .then((result) => {
let { code, data: url, message } = result; let { code, data: url, message } = result;
console.log(url); console.log(url);
if (code == 0) { if (code == 0 && url) {
this.setData({ this.setData({
customerService: url, customerService: url,
}); });
......
...@@ -174,9 +174,14 @@ Page({ ...@@ -174,9 +174,14 @@ Page({
}, },
chooseCustomerInfo(e) { chooseCustomerInfo(e) {
let { detail } = e; let { detail } = e;
let { outTradeNo } = this.data let { outTradeNo, orderObj: { associateOrderType, associateOrderCode } } = this.data
detail.outTradeNo = outTradeNo detail.outTradeNo = outTradeNo
console.log(detail, 'detail'); console.log(detail, 'detail');
// 解决补录订单 这两个参数丢失问题
if (associateOrderType || associateOrderCode) {
detail.associateOrderType = associateOrderType
detail.associateOrderCode = associateOrderCode
}
this.onRoute(detail); this.onRoute(detail);
}, },
closeTips() { closeTips() {
...@@ -525,6 +530,11 @@ Page({ ...@@ -525,6 +530,11 @@ Page({
"packageGoodsList", "packageGoodsList",
"expenseCategoryList", "expenseCategoryList",
"merchantDistributionList", "merchantDistributionList",
"orderTime",
"createdBy",
"createdDate",
"updatedBy",
"updatedDate"
]; ];
for (const prop of propertiesToDelete) { for (const prop of propertiesToDelete) {
......
...@@ -155,7 +155,7 @@ page { ...@@ -155,7 +155,7 @@ page {
.payType-box { .payType-box {
display: flex; display: flex;
align-items: center; align-items: center;
flex-wrap: wrap; // flex-wrap: wrap;
padding-top: var(--fontSize20); padding-top: var(--fontSize20);
/* justify-content: space-between; */ /* justify-content: space-between; */
} }
......
...@@ -23,7 +23,7 @@ page { ...@@ -23,7 +23,7 @@ page {
} }
.main { .main {
padding-bottom: var(--fontSize160); padding-bottom: var(--fontSize160) !important;
} }
.status-box { .status-box {
...@@ -616,11 +616,12 @@ page { ...@@ -616,11 +616,12 @@ page {
transform: rotate(360deg); transform: rotate(360deg);
} }
} }
.meal-box { .meal-box {
background: #F7F8FA; background: #F7F8FA;
border: var(--fontSize1) solid #EFF0F2; border: var(--fontSize1) solid #EFF0F2;
border-radius: var(--fontSize12); border-radius: var(--fontSize12);
margin: 0 calc(-1 * var(--fontSize20)) var(--fontSize16); margin: 0 calc(-1 * var(--fontSize20)) var(--fontSize16);
} }
.meal-hd { .meal-hd {
...@@ -679,7 +680,7 @@ page { ...@@ -679,7 +680,7 @@ page {
.meal-bd-head .price { .meal-bd-head .price {
font-family: "numberNor"; font-family: "numberNor";
margin-left:auto; margin-left: auto;
} }
.meal-bd-bottom { .meal-bd-bottom {
...@@ -688,7 +689,7 @@ page { ...@@ -688,7 +689,7 @@ page {
font-weight: 400; font-weight: 400;
font-size: var(--fontSize24); font-size: var(--fontSize24);
color: #757980; color: #757980;
margin-left:var(--fontSize24); margin-left: var(--fontSize24);
} }
.meal-bd-bottom .count { .meal-bd-bottom .count {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!