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