Commit 3defd179 by 张立顺

fix bug

1 parent 1d16bbf3
...@@ -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 {
...@@ -246,7 +250,7 @@ page { ...@@ -246,7 +250,7 @@ page {
margin-left: auto; margin-left: auto;
} }
.box .goods .item .subItem_box .artificer.disabled, .artificer.disabled,
.film-roll.disabled { .film-roll.disabled {
color: #BEC1C7; color: #BEC1C7;
} }
......
...@@ -3,11 +3,11 @@ ...@@ -3,11 +3,11 @@
<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>
<!-- wx:if="{{ orderInfo.constructionFlag !='Y' }}" --> <!-- wx:if="{{ orderInfo.constructionFlag !='Y' }}" -->
<block> <block>
<view class="signBtn text-center" bindtap="RatingPopupSetting">查看签名/施工图</view> <view class="signBtn text-center" bindtap="RatingPopupSetting">查看签名/施工图</view>
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
<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" > <view wx:if="{{ g.technicianName }}" class="artificer disabled">
<text class="{{ !g.technicianName ? 'grey_text' : '' }} 'text-hide'">{{g.technicianName }}</text> <text class="{{ !g.technicianName ? 'grey_text' : '' }} 'text-hide'">{{g.technicianName }}</text>
<image src="/components/images/arrow-x.png" mode="" /> <image src="/components/images/arrow-x.png" mode="" />
</view> </view>
......
...@@ -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) => {
...@@ -822,7 +827,7 @@ Page({ ...@@ -822,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)
...@@ -838,6 +843,7 @@ Page({ ...@@ -838,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)
......
...@@ -346,6 +346,13 @@ page { ...@@ -346,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);
......
...@@ -41,16 +41,16 @@ ...@@ -41,16 +41,16 @@
{{g.upgradeGoodsType===1?g.positionStr: g.upgradeGoodsTypeName}} {{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}}"> <view class="artificer" bindtap="selectArtificer" data-item="{{g}}">
<text class="{{!g.technicianName ? 'grey_text' : ''}} 'text-hide'">{{g.technicianName || '选择技师'}}</text> <text class="{{!g.technicianName ? 'grey_text' : ''}} 'text-hide'">{{g.technicianName || '选择技师'}}</text>
<image src="/components/images/arrow-x.png" mode="" /> <image src="/components/images/arrow-x.png" mode="" />
</view> </view>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view class="goods"> <view class="goods">
<block wx:for="{{ orderInfo.subOrderList }}" wx:key="index"> <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="subItem_box goods_name">
<view class="name text-hide">{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || ''}}</view> <view class="name text-hide">{{filter.replaceItemText(item.upgradeGoodsAlias) ||filter.replaceItemText(item.upgradeGoodsName) || ''}}</view>
<view class="price">¥{{item.price}}</view> <view class="price">¥{{item.price}}</view>
...@@ -107,7 +107,7 @@ ...@@ -107,7 +107,7 @@
<view wx:else class="canvas_wrap"> <view wx:else class="canvas_wrap">
<image class="full_icon icon" src="/images/fullScreen.png" bind:tap="toFullPage" /> <image class="full_icon icon" src="/images/fullScreen.png" bind:tap="toFullPage" />
<image class="coverImage" src="{{ signImage }}" /> <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>
</view> </view>
<block wx:for="{{ orderInfo.subOrderList }}" wx:key="index" wx:for-item="imgItem" wx:for-index="imgIndex"> <block wx:for="{{ orderInfo.subOrderList }}" wx:key="index" wx:for-item="imgItem" wx:for-index="imgIndex">
......
...@@ -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 ?
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!