Commit 3defd179 by 张立顺

fix bug

1 parent 1d16bbf3
......@@ -25,6 +25,10 @@ page {
font-size: var(--fontSize40);
font-weight: 600;
margin-bottom: var(--fontSize40);
.customerName {
flex: 1;
}
}
.status-box .orderContainer {
......@@ -246,7 +250,7 @@ page {
margin-left: auto;
}
.box .goods .item .subItem_box .artificer.disabled,
.artificer.disabled,
.film-roll.disabled {
color: #BEC1C7;
}
......
......@@ -3,11 +3,11 @@
<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}}
<view class="customerName">客户{{orderInfo.customerName}}</view>
<!-- wx:if="{{ orderInfo.constructionFlag !='Y' }}" -->
<block>
<view class="signBtn text-center" bindtap="RatingPopupSetting">查看签名/施工图</view>
......@@ -54,7 +54,7 @@
<view class="meal-bd-bottom">
{{g.positionStr || g.upgradeGoodsTypeName}}
<view class="count">x{{g.number}}</view>
<view wx:if="{{ g.technicianName }}" class="artificer disabled" >
<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>
......
......@@ -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) => {
......@@ -822,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)
......@@ -838,6 +843,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad: async function (options) {
// options.orderCode = '250909203356982'
if (options.orderCode) {
// 获取配置服务数据
let baseConfigData = await setConfigInfo(app.globalData)
......
......@@ -346,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);
......
......@@ -41,16 +41,16 @@
{{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>
<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 class="goods">
<block wx:for="{{ orderInfo.subOrderList }}" wx:key="index">
<view class="item">
<view class="item" wx:if="{{!item.packageGoodsList}}">
<view class="subItem_box goods_name">
<view class="name text-hide">{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || ''}}</view>
<view class="price">¥{{item.price}}</view>
......@@ -107,7 +107,7 @@
<view wx:else class="canvas_wrap">
<image class="full_icon icon" src="/images/fullScreen.png" bind:tap="toFullPage" />
<image class="coverImage" src="{{ signImage }}" />
<image class="delete_icon icon deleteIcon" src="/images/sign_del.png" bind:tap="clearCanvas"></image>
<image class="delete_icon icon deleteIcon" src="{{ IMG_URL }}delete_icon.png" bind:tap="clearCanvas"></image>
</view>
</view>
<block wx:for="{{ orderInfo.subOrderList }}" wx:key="index" wx:for-item="imgItem" wx:for-index="imgIndex">
......
......@@ -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 ?
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!