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