Commit 6ffa38a4 by wangzhihui

Merge branch 'SAAS+V4.56.0-0908' of http://192.168.3.233:8090/saas_plus/dj-car-b…

…outique-work-wechat into SAAS+V4.56.0-0908
2 parents 726bd7ac 1d16bbf3
...@@ -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;
......
...@@ -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);
} }
......
...@@ -218,7 +218,7 @@ page { ...@@ -218,7 +218,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,6 +232,20 @@ page { ...@@ -232,6 +232,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;
}
.box .goods .item .subItem_box .artificer.disabled, .box .goods .item .subItem_box .artificer.disabled,
.film-roll.disabled { .film-roll.disabled {
color: #BEC1C7; color: #BEC1C7;
......
...@@ -8,7 +8,8 @@ ...@@ -8,7 +8,8 @@
<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}} 客户{{orderInfo.customerName}}
<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);
} }
......
...@@ -389,6 +389,16 @@ Page({ ...@@ -389,6 +389,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,
......
...@@ -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;
......
...@@ -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!