Commit e9a04c15 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 767ff2b9 8fad7f88
......@@ -177,16 +177,16 @@ module.exports = {
params.sceneType = 1;
return api.post("dj.api.smartcarlife.order.search", params);
},
/**搜索订单(含套餐) */
getWorkPackageGoodsList(data){
let params = data || {}
params.sceneType = 1
return api.post('dj.api.smartcarlife.order.search.containPackageGoods', {
pageSize: 10,
...params
})
},
/**搜索订单(含套餐) */
getWorkPackageGoodsList(data) {
let params = data || {}
params.sceneType = 1
return api.post('dj.api.smartcarlife.order.search.containPackageGoods', {
pageSize: 10,
...params
})
},
// 获取园区店开通的场景入口
getYqMerchantSceneConfigAPI(data) {
return api.post("dj.api.smartcarlife.select.openScene.info", data);
......@@ -319,6 +319,12 @@ module.exports = {
return api.post("dj.api.smartcarlife.staff.daily.report.popup.need", data);
},
/** 校验手机号是否配置打卡和是否打卡 */
clockInConfigPhone(data) {
// return api.post('dj.api.smartcarlife.staff.daily.report.merchant.valid', data)
return api.post("dj.api.smartcarlife.clock.in.config.phone", data);
},
// 获取积分审批列表数据
getPointsReviewListAPI(data) {
return api.post('dj.api.smartcarlife.staff.motivation.page', data)
......
......@@ -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" />
......
......@@ -4,7 +4,7 @@
*/
// 配置预发布的小程序aapId
export const preReleaseAppId = "wxdb25dd43c3e1fc03";
export const preReleaseAppId = "wx96c8f2a3e76907cb";
// 小程序id
export const appId = "wx570d9331f9ace0bd";
......@@ -30,7 +30,7 @@ const release = false;
// develop:开发版 trial:体验版 release:正式版
if (systemInfo.platform != "devtools") {
if (accountInfo.miniProgram.appId == preReleaseAppId) {
index = 5;
index = 4;
} else {
switch (envName) {
case "develop":
......
<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,
......
......@@ -6,6 +6,8 @@ const checkDailyReport = async (sceneType) => {
// 判读是否要填写日报
if (!(userInfo?.isSuper || userInfo?.loginRole == 3)) {
// 判断员工是否已打卡上班
eventRequest.push(clockedIntoWork());
eventRequest.push(
sceneType ? equityStaffDailyReport(userInfo) : staffDailyReport(userInfo)
);
......@@ -14,9 +16,11 @@ const checkDailyReport = async (sceneType) => {
return new Promise((resolve) => {
Promise.all(eventRequest).then((results) => {
const [reportStatus] = results;
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);
showNextModal();
resolve(results[results.length - 1]);
console.log(resultFlag, "resultFlag");
resolve(resultFlag);
});
});
};
......@@ -137,7 +141,40 @@ const equityStaffDailyReport = (userInfo) => {
} else {
resolve(false);
}
})
.catch((err) => {
resolve(false);
});
});
};
const clockedIntoWork = (userInfo) => {
return new Promise((resolve, reject) => {
api
.clockInConfigPhone({})
.then((res) => {
let { need, clockIn } = res.data;
// console.log(res, need == 0 && clockIn == 0, "clockInConfigPhone");
// 已配置未打卡
if (need == 1 && clockIn == 0) {
// 有配置并且没有打卡就提示
addModalToQueue(
"打卡提醒",
"您当前企微未打卡,无法录单,请前往企微打卡后再试,如有异议请联系管理员。",
"知道了",
false,
4,
(res) => {
if (res.confirm) {
// wx.$router.go("tabWorkOrder.staffDaily", {
// // reportDate: formattedDate,
// });
}
}
);
resolve(true);
} else {
resolve(false);
}
})
.catch((err) => {
resolve(false);
......
......@@ -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,10 +49,10 @@ Page({
name: "POS机",
value: 3,
},
// {
// name: '战败',
// value: 0
// },
{
name: '嘀加收款',
value: 5
},
{
name: "微信支付",
value: 1,
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!