Commit 69dab665 by 王志慧

Merge branch 'SAAS+V4.56.0-0908' into 'develop'

上线合并

See merge request !414
2 parents e7fb07a6 2c31be2c
......@@ -18,7 +18,7 @@ export const appId = 'wx570d9331f9ace0bd'
* 4预发布
* 5cdptest
*/
let index = 1;
let index = 2;
const accountInfo = wx.getAccountInfoSync();
const systemInfo = wx.getSystemInfoSync();
const envName = accountInfo.miniProgram.envVersion;
......
......@@ -64,7 +64,7 @@ Page({
const {
item
} = options
this.options=options
this.options = options
this.setData({
formData: {
bankUserName: item.bankUserName,
......@@ -86,9 +86,9 @@ Page({
//获取员工积分详情
getWithdrawalData() {
MineApi.getScoreDetailApi().then(res => {
if(res.code ==0){
if (res.code == 0) {
this.setData({
score:res.data
score: res.data
})
}
})
......@@ -155,12 +155,21 @@ Page({
success,
score
} = this.data;
// 跳转到新的积分兑换页面
if (success) wx.$router.redirectTo('integration.toCash', {
score
})
else this.setData({
if (success) {
// wx.$router.redirectTo('integration.toCash', {
// score
// })
wx.navigateToMiniProgram({
appId: 'wx7ce755e425603084',
path: 'pages/Login/Login',
envVersion: 'trial',
extraData:{
external:true
}
})
} else this.setData({
showModal: false
})
},
......@@ -189,7 +198,7 @@ Page({
this.setData({
showModal: true,
success: true,
dialogText: item&&item.id?'您的银行账户修改成功!':'您的银行账户添加成功'
dialogText: item && item.id ? '您的银行账户修改成功!' : '您的银行账户添加成功'
})
} else {
// this.setData({
......
......@@ -25,8 +25,16 @@ Page({
score
} = this.data
// 新的积分兑换页面
wx.$router.go('integration.toCash', {
score
// wx.$router.go('integration.toCash', {
// score
// })
wx.navigateToMiniProgram({
appId: 'wx7ce755e425603084',
path: 'pages/Login/Login',
envVersion: 'trial',
extraData:{
external:true
}
})
},
toWatchNote() {
......
......@@ -426,11 +426,11 @@ Page({
e.customerCoupon.createdDate
).format("yyyy-MM-dd hh:mm:ss");
}
if (e.customer) {
if (e.merchantCoupon) {
if (e.customerCoupon?.employeeName)
e.employeeName = e.customerCoupon.employeeName;
e.merchantName = e.customer.merchantName;
e.yqMerchantName = e.customer.yqMerchantName;
e.merchantName = e.merchantCoupon.merchantName;
e.yqMerchantName = e.merchantCoupon.yqMerchantName;
}
});
const userType =
......
......@@ -176,14 +176,6 @@ Component({
that.setData({
orderInfo
})
// const customerPhotos = orderInfo.subOrderList[
// index
// ].constructionImgList.map(item => {
// return {
// customerPhoto: item,
// subOrderCode: orderInfo.subOrderList[index].subOrderCode
// }
// })
const customerPhotos = orderInfo.subOrderList.reduce((pre, item) => {
if (item.constructionImgList) {
item.constructionImgList.map(el => {
......@@ -247,6 +239,11 @@ Component({
},
setOrderInfo(orderInfo) {
console.log(orderInfo, 'orderInfo')
orderInfo?.packageGoodsList.forEach(e => {
e.packageGoodsOrderList.forEach(child => {
orderInfo.subOrderList.push(child)
})
})
// constructionImgList
orderInfo.customerPhotos.forEach(item => {
orderInfo.subOrderList.forEach(el => {
......@@ -258,6 +255,7 @@ Component({
}
}
})
})
orderInfo.evaluation = orderInfo.evaluation.split(',')
console.log(orderInfo.subOrderList, 'orderInfo.evaluation')
......
......@@ -233,11 +233,13 @@ Page({
isErrorOrder: true,
});
}
// options.orderCode = '250908213534979'
this.getDetail(options.orderCode);
}
},
async getDetail(orderCode) {
// console.log(orderCode)
let _this = this;
let { isErrorOrder } = this.data;
const positionTypeList = (await getPositionList()) || [];
......@@ -340,7 +342,7 @@ Page({
});
}
// 是2:门店收款 5:嘀加收款 6:对公转账 7:其它收款并且不是错误订单 自动打开门店收款弹窗
if ( !isErrorOrder && [2, 5, 6, 7].includes(Number(data.selectPayType)) ) {
if (!isErrorOrder && [2, 5, 6, 7].includes(Number(data.selectPayType))) {
this.toshowDateModal();
}
// 获取园区店技师配置信息
......@@ -432,6 +434,7 @@ Page({
// 选择技师确认
changeArtificer(e) {
console.log(e);
let value = e?.detail || {};
let { orderInfo } = this.data;
orderInfo?.subOrderList?.forEach((val) => {
......@@ -441,6 +444,16 @@ Page({
val.technicianId = value.technicianId;
}
});
orderInfo?.packageGoodsList?.forEach((child) => {
console.log(child, 'child');
child?.goodsList.forEach((val) => {
if (val.subOrderCode == value?.subOrderCode) {
val.technicianName = value.technicianName;
val.technicianUuid = value.technicianUuid;
val.technicianId = value.technicianId;
}
})
});
let params = {
orderCode: orderInfo?.orderCode,
subOrderCode: value?.subOrderCode,
......@@ -456,6 +469,7 @@ Page({
artificerSelectObj: value,
orderInfo,
});
} else {
wx.$util.showToast(message);
}
......
......@@ -50,6 +50,10 @@
</view>
<view class="meal-bd-bottom">{{g.upgradeGoodsType===1?g.positionStr: g.upgradeGoodsTypeName}}
<view class="count">x{{g.number}}</view>
<view class="artificer" bindtap="selectArtificer" data-item="{{g}}">
<text class="{{!g.technicianName ? 'grey_text' : ''}} 'text-hide'">{{g.technicianName || '选择技师'}}</text>
<image src="/components/images/arrow-x.png" mode="" />
</view>
</view>
</view>
</view>
......@@ -68,8 +72,8 @@
<view class="position">{{item.positionStr || item.upgradeGoodsTypeName}}</view>
<view class="type">x{{item.number}}</view>
</view>
<!-- 太阳膜类且配置技师 -->
<view wx:if="{{orderInfo.isOpenArtificer && item.upgradeGoodsPosition}}" class="artificer" bindtap="selectArtificer" data-item="{{item}}">
<!-- 太阳膜类且配置技师 不需要限制是太阳膜 && item.upgradeGoodsPosition-->
<view wx:if="{{orderInfo.isOpenArtificer }}" class="artificer" bindtap="selectArtificer" data-item="{{item}}">
<text class="{{!item.technicianName ? 'grey_text' : ''}} 'text-hide'">{{item.technicianName || '选择技师'}}</text>
<image src="/components/images/arrow-x.png" mode="" />
</view>
......
......@@ -171,7 +171,7 @@ Page({
let { payFlag, payType } = e.detail
let paymentMethod = payFlag != 2 ? 1 : payType
if (payFlag == 1 || payType == 3 || payType == 4 || payType == 6) {
wx.$router.go('tabWorkOrder.createOrder', {paymentMethod, ...orderInfo})
wx.$router.go('tabWorkOrder.createOrder', { paymentMethod, ...orderInfo })
} else {
this.tipsEvent()
}
......@@ -372,6 +372,7 @@ Page({
onRoute(options) {
// wx.$router.go("pages.index");
console.log(options);
// options.orderCode = '250908213534979'
if (options.orderCode) {
this.setData({
orderCode: options.orderCode,
......@@ -386,6 +387,7 @@ Page({
onLoad: function (options) {
console.log(options);
// debugger
// options.orderCode = '250908213534979'
if (options.orderCode) {
this.getOrderDetail(options.orderCode);
}
......
......@@ -25,6 +25,10 @@ page {
font-size: var(--fontSize40);
font-weight: 600;
margin-bottom: var(--fontSize40);
.customerName {
flex: 1;
}
}
.status-box .orderContainer {
......@@ -218,7 +222,7 @@ page {
width: 100%;
}
.box .goods .item .subItem_box .artificer,
.film-roll {
height: var(--fontSize48);
background: #FFFFFF;
......@@ -232,7 +236,21 @@ page {
font-size: var(--fontSize24);
}
.box .goods .item .subItem_box .artificer.disabled,
.artificer {
height: var(--fontSize48);
background: #FFFFFF;
border: var(--fontSize1) solid #DEE0E3;
border-radius: var(--fontSize26);
display: flex;
align-items: center;
justify-content: center;
padding: 0 var(--fontSize24);
color: #292D33;
font-size: var(--fontSize24);
margin-left: auto;
}
.artificer.disabled,
.film-roll.disabled {
color: #BEC1C7;
}
......
......@@ -3,12 +3,13 @@
<wxs src="../../index.wxs" module="filter" />
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<block wx:if="{{ flag }}">
<view class="main {{ isFullSucreen?'isFullSucreen':'' }}">
<view class="main {{ isFullSucreen?'isFullSucreen':'' }}" style="{{ showRatingPopup ? 'overflow: hidden;height:100vh;' : '' }}">
<view class="status-box">
<view class="userInfo" hover-class="none" hover-stop-propagation="false">
<image class="" src="../../images/activeIcon.png" />
客户{{orderInfo.customerName}}
<block wx:if="{{ orderInfo.electronicSignature }}">
<view class="customerName">客户{{orderInfo.customerName}}</view>
<!-- wx:if="{{ orderInfo.constructionFlag !='Y' }}" -->
<block>
<view class="signBtn text-center" bindtap="RatingPopupSetting">查看签名/施工图</view>
</block>
</view>
......@@ -53,6 +54,10 @@
<view class="meal-bd-bottom">
{{g.positionStr || g.upgradeGoodsTypeName}}
<view class="count">x{{g.number}}</view>
<view wx:if="{{ g.technicianName }}" class="artificer disabled">
<text class="{{ !g.technicianName ? 'grey_text' : '' }} 'text-hide'">{{g.technicianName }}</text>
<image src="/components/images/arrow-x.png" mode="" />
</view>
</view>
</view>
</view>
......@@ -79,8 +84,8 @@
<image src="/components/images/arrow-x.png" mode="" />
</view>
<!-- 技师 -->
<view wx:if="{{ item.technicianName && item.upgradeGoodsPosition }}" class="artificer disabled" data-item="{{ item }}">
<text class="{{ !item.technicianName ? 'grey_text' : '' }} 'text-hide'">{{item.technicianName || '选择技师'}}</text>
<view wx:if="{{ item.technicianName }}" class="artificer disabled" data-item="{{ item }}">
<text class="{{ !item.technicianName ? 'grey_text' : '' }} 'text-hide'">{{item.technicianName }}</text>
<image src="/components/images/arrow-x.png" mode="" />
</view>
</view>
......
......@@ -436,6 +436,16 @@ Page({
val.technicianId = value.technicianId
}
})
orderInfo?.packageGoodsList?.forEach((child) => {
console.log(child, 'child');
child?.goodsList.forEach((val) => {
if (val.subOrderCode == value?.subOrderCode) {
val.technicianName = value.technicianName;
val.technicianUuid = value.technicianUuid;
val.technicianId = value.technicianId;
}
})
});
let params = {
orderCode: orderInfo?.orderCode,
subOrderCode: value?.subOrderCode,
......
......@@ -44,6 +44,10 @@
</view>
<view class="meal-bd-bottom">{{g.upgradeGoodsType===1?g.positionStr: g.upgradeGoodsTypeName}}
<view class="count">x{{g.number}}</view>
<view class="artificer" bindtap="selectArtificer" data-item="{{g}}">
<text class="{{!g.technicianName ? 'grey_text' : ''}} 'text-hide'">{{g.technicianName || '选择技师'}}</text>
<image src="/components/images/arrow-x.png" mode="" />
</view>
</view>
</view>
</view>
......@@ -67,8 +71,9 @@
<text class="{{!item.filmRollNo ? 'grey_text' : ''}} 'text-hide'">{{item.filmRollNo || '选择膜卷号'}}</text>
<image src="/components/images/arrow-x.png" mode="" />
</view>
<!-- 太阳膜类且配置技师 -->
<view wx:if="{{ item.upgradeGoodsPosition}}" class="artificer" bindtap="selectArtificer" data-item="{{item}}">
<!-- 太阳膜类且配置技师 25-8月版本全部放开 -->
<!-- wx:if="{{ item.upgradeGoodsPosition}}" -->
<view class="artificer" bindtap="selectArtificer" data-item="{{item}}">
<text class="{{!item.technicianName ? 'grey_text' : ''}} 'text-hide'">{{item.technicianName || '选择技师'}}</text>
<image src="/components/images/arrow-x.png" mode="" />
</view>
......@@ -94,13 +99,13 @@
</view>
<view class="box">
<view class="title invoice">
工单信息
工单信息
<view style="display: flex;gap: var(--fontSize32);">
<!-- 非门店收款 已支付/已退款展示 -->
<view wx:if="{{isStaff && orderInfo.selectPayType != 2 && showMoreBtn && (orderInfo.status == 4 || orderInfo.status == 6 || orderInfo.status == 12)}}">
<apply-refund-btn orderInfo="{{orderInfo}}"></apply-refund-btn>
</view>
<view wx:if="{{orderInfo.showInvoiceEntrance || orderInfo.invoiceStatus == 2}}" class="invoice-btn" bindtap="handleBtnInvoice">
<view wx:if="{{orderInfo.showInvoiceEntrance || orderInfo.invoiceStatus == 2}}" class="invoice-btn" bindtap="handleBtnInvoice">
<gl-image class="icon" src="/icon-invoice.png"></gl-image>
{{invoiceName}}
</view>
......@@ -146,9 +151,9 @@
<block wx:if="{{orderInfo.status == 5||orderInfo.status == 12}}">
<view class="cell">
<view class="label">退款明细</view>
<view class="value" >
{{ orderInfo.refundType == 1 ? "退全款":"退部分款"}}¥{{orderInfo.refundAmount}}
</view>
<view class="value">
{{ orderInfo.refundType == 1 ? "退全款":"退部分款"}}¥{{orderInfo.refundAmount}}
</view>
</view>
</block>
<view class="paid" wx:if="{{orderInfo.payOrder&&orderInfo.payOrder.payStatus == 2}}">
......
......@@ -122,7 +122,6 @@ page {
width: 100%;
}
.box .goods .item .subItem_box .artificer,
.film-roll {
height: var(--fontSize48);
background: #FFFFFF;
......@@ -136,6 +135,20 @@ page {
font-size: var(--fontSize24);
}
.artificer {
height: var(--fontSize48);
background: #FFFFFF;
border: var(--fontSize1) solid #DEE0E3;
border-radius: var(--fontSize26);
display: flex;
align-items: center;
justify-content: center;
padding: 0 var(--fontSize24);
color: #292D33;
font-size: var(--fontSize24);
margin-left: auto;
}
.artificer text {
max-width: var(--fontSize96);
}
......
......@@ -253,6 +253,11 @@ Page({
data.packageGoodsList.forEach(item => {
item.packageGoodsOrderList.forEach(g => {
g.price = g.totalPrice ? Number(g.totalPrice) / Number(g.number) : g.upgradePrice
// 处理套餐也能上传图片,packageGoodsList 商品做对应的过滤
data.subOrderList.push({
...g,
packageGoodsList: true
})
})
item.goodsList = item.packageGoodsOrderList
item.price = item.goodsList.reduce((prev, cur) => {
......@@ -389,6 +394,16 @@ Page({
val.technicianId = value.technicianId
}
})
orderInfo?.packageGoodsList?.forEach((child) => {
console.log(child, 'child');
child?.goodsList.forEach((val) => {
if (val.subOrderCode == value?.subOrderCode) {
val.technicianName = value.technicianName;
val.technicianUuid = value.technicianUuid;
val.technicianId = value.technicianId;
}
})
});
let params = {
orderCode: orderInfo?.orderCode,
subOrderCode: value?.subOrderCode,
......@@ -812,7 +827,7 @@ Page({
async onRoute(options) {
// console.log(options)
// 调试用
// options.orderCode = '230427135616113'
// options.orderCode = '250909203356982'
if (options.orderCode) {
// 获取配置服务数据
let baseConfigData = await setConfigInfo(app.globalData)
......@@ -828,6 +843,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: async function (options) {
// options.orderCode = '250909203356982'
if (options.orderCode) {
// 获取配置服务数据
let baseConfigData = await setConfigInfo(app.globalData)
......
......@@ -109,7 +109,20 @@ page {
margin-left: var(--fontSize12);
}
.box .goods .item .subItem_box .artificer,
.artificer {
height: var(--fontSize48);
background: #FFFFFF;
border: var(--fontSize1) solid #DEE0E3;
border-radius: var(--fontSize26);
display: flex;
align-items: center;
justify-content: center;
padding: 0 var(--fontSize24);
color: #292D33;
font-size: var(--fontSize24);
margin-left: auto;
}
.film-roll {
height: var(--fontSize48);
background: #FFFFFF;
......@@ -333,6 +346,13 @@ page {
z-index: 100;
}
.delete_icon_min {
position: absolute;
right: var(--fontSize24);
bottom: var(--fontSize24);
z-index: 100;
}
.icon {
width: var(--fontSize40);
height: var(--fontSize40);
......
......@@ -250,9 +250,12 @@ page{
font-weight: 400;
font-size: var(--fontSize24);
color: #5A5E66;
margin-top: var(--fontSize8);
margin-bottom: var(--fontSize24);
}
.first {
margin-top: var(--fontSize8);
margin-bottom: 0;
}
.content_box{
display: flex;
flex-wrap: wrap;
......
......@@ -126,7 +126,8 @@
</view>
<view class="upload_box" wx:if="{{infoData.afterStatus === '' || (infoData.afterStatus == 5 && !filter.filterRefundDisabled(infoData, userInfo)) || infoData.attachmentList.length}}">
<view class="label">上传图片</view>
<view class="label-tips">权益产品退款需上传自愿退款协议及告知客户退款后服务作废凭证截图</view>
<view class="label-tips first">原厂延保退款:退款须告知门店,请上传沟通确认凭证截图</view>
<view class="label-tips">嘀加权益退款:退款需上传自愿退款协议及告知客户退款后服务作废凭证截图</view>
<view class="content_box">
<view class="image_content" wx:for="{{infoData.attachmentList}}" wx:key="index">
<image bindtap="previewImage" class="image_box" data-url="{{infoData.attachmentList}}" data-index="{{index}}" src="{{item.fileUrl}}"/>
......
......@@ -611,6 +611,21 @@ Page({
}
return str;
}, '')
if (e?.packageGoodsList) {
e.technicianName = e?.packageGoodsList.reduce((str, el, index) => {
el.packageGoodsOrderList.forEach(item => {
if (item.technicianName) {
if (str == '') {
str = item.technicianName
} else if (!str.includes(item.technicianName)) {
str = str + '/' + '' + item.technicianName
}
}
})
return str;
}, e.technicianName)
}
e.packageGoodsList?.forEach((item) => {
item.packageGoodsOrderList.forEach((g) => {
g.price = g.totalPrice ?
......
......@@ -180,33 +180,4 @@
</view>
</block>
<car-brands show="{{carBrandBox}}" bindconfirm="chooseCar" carSeriesId="{{orderObj.customer.carSeriesId}}" merchantId="{{orderObj.merchantId || undefined}}" />
<remark-popup wx:if="{{showRemark}}" show="{{showRemark}}" bindconfirm="remarkConfirm" placeholder="请填写内容,最多30个字" maxlength="30" value="{{orderObj.remark}}" />
<!-- <merchant-seles
show="{{salesmanBox}}"
isDefault="{{isDefault}}"
title="选择园区店"
sub-title="选择转化人员"
userInfo="{{_userInfo}}"
type="2" /> -->
<!-- <coupon
show="{{couponBox}}"
bindconfirm="chooseCoupon"
merchantId="{{orderObj.merchantId}}"
customerPhone="{{orderObj.customer.customerPhone}}"
returnFun="{{returnFun}}" /> -->
<!-- <goods
show="{{goodsBox}}"
bindconfirm="chooseGoods"
goodsData="{{goodsData}}"
chooseGoodsList="{{goodsList}}" /> -->
<!-- <order-popup
orderType="{{remarkBox}}"
show="{{remarkBox}}"
qrCode="{{orderInfo.payOrder.outTradeNo}}"
price="{{orderInfo.total_price}}" /> -->
<!-- <artificer-select-popup
show="{{artificerSelectPopup}}"
title="选择技师"
copyArtificerList="{{artificerList}}"
orderInfo="{{orderObj}}"
bindconfirm="changeArtificer" /> -->
\ No newline at end of file
<remark-popup wx:if="{{showRemark}}" show="{{showRemark}}" bindconfirm="remarkConfirm" placeholder="请填写内容,最多30个字" maxlength="30" value="{{orderObj.remark}}" />
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!