Commit 8453a27c by zhangxw

bug修改

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