Commit 8453a27c by zhangxw

bug修改

1 parent c057b604
......@@ -18,7 +18,7 @@ Component({
return i
})
this.setData({
artificerList: copyArtificerList,
artificerList: wx.$util.deepClone(copyArtificerList),
selectedTechnicianId: artificerSelectObj?.technicianId,
searchValue: ''
})
......@@ -74,24 +74,19 @@ Component({
},
changeItem(e) {
let { target } = e.currentTarget.dataset
let { artificerList, copyArtificerList } = this.data
artificerList.map(i => {
i.active = false
if (i.id == target?.id) {
i.active = true
}
return i
let { artificerList } = this.data
let { copyArtificerList } = wx.$util.deepClone(this.data)
artificerList.forEach(i => {
if (i.id != target?.id) i.active = false
if (i.id == target?.id) i.active = !i.active
})
copyArtificerList.map(i => {
i.active = false
if (i.id == target?.id) {
i.active = true
}
return i
copyArtificerList.forEach(i => {
if (i.id != target?.id) i.active = false
if (i.id == target?.id) i.active = !i.active
})
this.setData({
artificerList: artificerList,
copyArtificerList: copyArtificerList,
artificerList,
copyArtificerList,
selectedTechnicianId: target.id
})
},
......@@ -108,10 +103,14 @@ Component({
})
},
async confirm() {
let { copyArtificerList, orderInfo, artificerSelectObj } = this.data
let { copyArtificerList, orderInfo, artificerSelectObj, selectedTechnicianId } = this.data
let arr = copyArtificerList?.filter(v => v.active) || []
if (!arr.length) {
return wx.$util.showToast('请选择技师')
// return wx.$util.showToast('请选择技师')
// 未选技师 将selectedTechnicianId清除
this.setData({
selectedTechnicianId: ''
})
}
let obj = {
...artificerSelectObj,
......
......@@ -73,9 +73,9 @@ Component({
carSeriesName: data.carSeriesName,
customerName: data.customerName,
customerPhone: data.customerPhone,
customerSex: data.customerSex,
customerSex: data.customerSex || orderObj?.customer.customerSex,
plateNumber: data.plateNumber,
experienceFlag: orderObj?.experienceFlag || 'Y' // 默认是体验
experienceFlag: orderObj?.customer.experienceFlag || 'Y' // 默认是体验
},
couponName: data.couponName,
customerCouponCode: data.customerCouponCode,
......
<!--packageCrowdFunding/pages/activityList/activityList.wxml-->
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showBack="{{true}}" bindback="back">
<view class="navigation-title" bindtap="showActivityPicker">
<view class="navigation-title-text text-hide">{{activityName}}</view>
......
......@@ -455,7 +455,7 @@
.list .item .order {
font-size: 24rpx;
color: #333333;
color: #292D33;
margin-bottom: 20rpx;
display: flex;
align-items: center;
......@@ -471,7 +471,7 @@
.list .item .order .order-label {
width: 138rpx;
color: #9B9B9E;
color: #999EA8;
}
.list .item .order .order-value {
......
......@@ -67,10 +67,10 @@
</view>
<view class="activity-list">
<view class="activity-pay">
<view class="havePaid">已支付·
<view class="havePaid">已支付 ·
<view class="havePaidSum">{{item.payedCount}}</view>
</view>
<view class="unpaid">待支付·
<view class="unpaid">待支付 ·
<view class="unpaidNum">{{item.notPayedCount}}</view>
</view>
</view>
......
......@@ -285,6 +285,7 @@
.activity-box .activity-list .activity-pay .havePaid .havePaidSum {
color: #FF9D0A;
padding-left: 8rpx;
}
.activity-box .activity-list .activity-pay .unpaid {
......@@ -294,6 +295,7 @@
.activity-box .activity-list .activity-pay .unpaid .unpaidNum {
color: #EB4E4E;
padding-left: 8rpx;
}
.no-data {
......
......@@ -125,9 +125,9 @@ page {
} */
.list .item .name image {
width: 24rpx;
height: 24rpx;
margin-left: 12rpx;
width: 32rpx;
height: 32rpx;
margin-left: 8rpx;
}
.list .item.gray .name image {
......
......@@ -139,9 +139,9 @@ page {
}
.list .item .name .name-sex-icon{
width: 24rpx;
height: 24rpx;
margin-left: 12rpx;
width: 32rpx;
height: 32rpx;
margin-left: 8rpx;
}
......
<!-- pages/equity/index.wxml -->
<glsx-privacy appletName="生意助手员工版" bind:agreeClick="agreeClick" bind:disagreeClick="disagreeClick"></glsx-privacy>
<navigation-bar class="navigation-header" bindnavbarReady="navbarReady" showMenu="{{ true }}" navStyle="{{tabIndex != 3 ? '' : 'background-color: rgba(0,0,0,0);box-shadow:none;'}}" bindshowMenuPopup="showMenuPopup">
<view class="navigation-title" wx:if="{{tabIndex != 3}}">
<view class="navigation-title-text text-hide">{{userInfo && userInfo.default4SStoreInfo_newCarConversion && userInfo.default4SStoreInfo_newCarConversion.merchantName}}</view>
......
......@@ -79,7 +79,9 @@ Page({
orderInfo.associateOrderCode = orderInfo.orderCode
delete orderInfo.orderCode
orderInfo.selectPayType = 2
wx.$router.redirectTo('createOrder', orderInfo)
// filmOrder 1精品升级
let urlName = orderInfo?.filmOrder == 1 ? 'premiumUpgrade' : 'createOrder'
wx.$router.redirectTo(urlName, orderInfo)
// wx.showToast({
// icon: 'success',
// title: '确定按钮点击'
......@@ -128,6 +130,7 @@ Page({
// 选择技师
selectArtificer(e) {
// 已施工完成不可操作
return
let { item } = e.currentTarget.dataset
this.setData({
......@@ -411,7 +414,8 @@ Page({
// delete orderInfo.orderCode
// 去除掉错误订单对应的关联码
// delete orderInfo.associateOrderCode
let deleteList = ['orderCode', 'associateOrderCode', 'merchantDistributionList', 'expenseCategoryList', 'profitAllocatinList','clientSignatureDTOList','customerPhotos','rating','sellerName','sellerUserId','sellerMerchantName','sellerMerchantId']
// 1031车膜下单版本 再次下单去掉商品信息 需重新选择
let deleteList = ['orderCode', 'associateOrderCode', 'merchantDistributionList', 'expenseCategoryList', 'profitAllocatinList','clientSignatureDTOList','customerPhotos','rating','sellerName','sellerUserId','sellerMerchantName','sellerMerchantId', 'subOrderList']
for (var i = 0; i < deleteList.length; i++) {
// console.log(arr[i])
delete orderInfo[deleteList[i]]
......
......@@ -844,6 +844,12 @@ Page({
if ([5, 6, 7].includes(subVal.merchantGoodsPosition)) {
skylightArr.push(subVal)
}
if (subOrderList?.length) {
subOrderList.forEach(subV => {
// 历史子订单商品部位被更改 再次下单将部位更新
if (subVal.merchantGoodsPosition && subV.upgradeGoodsPosition && subVal.merchantGoodsPosition != subV.upgradeGoodsPosition && subVal.upgradeGoodsId == subV.upgradeGoodsId) subV.upgradeGoodsPosition = subVal.merchantGoodsPosition
})
}
})
})
......
......@@ -381,7 +381,7 @@
</view>
</view>
</block>
<view class="addBtn" bindtap="addUserItem" id="addBtn" wx:if="{{notUpgradeOrderList.length <= 10}}">
<view class="addBtn" bindtap="addUserItem" id="addBtn" wx:if="{{notUpgradeOrderList.length < 10}}">
<image class="addIcon" src="../../images/addIcon.png" mode="scaleToFill|aspectFit|aspectFill|widthFix" />
<text class="text">新增客户</text>
</view>
......
......@@ -701,10 +701,10 @@ Page({
subOrderList
} = orderObj
const selectPayType = orderObj.selectPayType == 0
const positionTypeList = await getPositionList() || []
this.setData({
positionTypeList
})
// const positionTypeList = await getPositionList() || []
// this.setData({
// positionTypeList
// })
api
.getOrderBaseGoodsList({
merchantId,
......@@ -724,9 +724,9 @@ Page({
})
let goodsData = data
const filterList = goodsData.reduce((list, item) => {
item.upgradeGoodsList.forEach(val => {
val.positionStr = positionTypeList.filter(v => v.positionValue == val.merchantGoodsPosition)[0]?.positionName
})
// item.upgradeGoodsList.forEach(val => {
// val.positionStr = positionTypeList.filter(v => v.positionValue == val.merchantGoodsPosition)[0]?.positionName
// })
item.upgradeGoodsList && list.push(...item.upgradeGoodsList)
return list
}, [])
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!