Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-boutique-work-wechat
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
1
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 8453a27c
authored
Oct 25, 2023
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修改
1 parent
c057b604
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
53 additions
and
40 deletions
components/ArtificerSelectPopup/artificerSelectPopup.js
components/Coupon/Coupon.js
packageCrowdFunding/pages/activityPage/activityList/activityList.wxml
packageCrowdFunding/pages/activityPage/components/activityDetail/activityDetail.wxss
packageCrowdFunding/pages/activityPage/paidOrder/orderList.wxml
packageCrowdFunding/pages/activityPage/paidOrder/orderList.wxss
pages/tabDateIndex/pages/tabDateIndex.sass
pages/tabWorkOrder/pages/index/index.wxss
subvehicleConversion/pages/TabBar/conversionPage.wxml
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.js
tabWorkOrder/pages/createOrder/createOrder.js
tabWorkOrder/pages/defeatOrder/defeatOrder.wxml
tabWorkOrder/pages/premiumUpgrade/premiumUpgrade.js
components/ArtificerSelectPopup/artificerSelectPopup.js
View file @
8453a27
...
...
@@ -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
,
...
...
components/Coupon/Coupon.js
View file @
8453a27
...
...
@@ -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/activityPage/activityList/activityList.wxml
View file @
8453a27
<!--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>
...
...
packageCrowdFunding/pages/activityPage/components/activityDetail/activityDetail.wxss
View file @
8453a27
...
...
@@ -455,7 +455,7 @@
.list .item .order {
font-size: 24rpx;
color: #
3333
33;
color: #
292D
33;
margin-bottom: 20rpx;
display: flex;
align-items: center;
...
...
@@ -471,7 +471,7 @@
.list .item .order .order-label {
width: 138rpx;
color: #9
B9B9E
;
color: #9
99EA8
;
}
.list .item .order .order-value {
...
...
packageCrowdFunding/pages/activityPage/paidOrder/orderList.wxml
View file @
8453a27
...
...
@@ -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>
...
...
packageCrowdFunding/pages/activityPage/paidOrder/orderList.wxss
View file @
8453a27
...
...
@@ -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 {
...
...
pages/tabDateIndex/pages/tabDateIndex.sass
View file @
8453a27
...
...
@@ -125,9 +125,9 @@ page {
}
*/
.list
.item
.name
image
{
width
:
24
rpx
;
height
:
24
rpx
;
margin-left
:
12
rpx
;
width
:
32
rpx
;
height
:
32
rpx
;
margin-left
:
8
rpx
;
}
.list
.item.gray
.name
image
{
...
...
pages/tabWorkOrder/pages/index/index.wxss
View file @
8453a27
...
...
@@ -139,9 +139,9 @@ page {
}
.list .item .name .name-sex-icon{
width:
24
rpx;
height:
24
rpx;
margin-left:
12
rpx;
width:
32
rpx;
height:
32
rpx;
margin-left:
8
rpx;
}
...
...
subvehicleConversion/pages/TabBar/conversionPage.wxml
View file @
8453a27
<!-- 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>
...
...
tabWorkOrder/pages/constructionOrderDetail/constructionOrderDetail.js
View file @
8453a27
...
...
@@ -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
]]
...
...
tabWorkOrder/pages/createOrder/createOrder.js
View file @
8453a27
...
...
@@ -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
})
}
})
})
...
...
tabWorkOrder/pages/defeatOrder/defeatOrder.wxml
View file @
8453a27
...
...
@@ -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>
...
...
tabWorkOrder/pages/premiumUpgrade/premiumUpgrade.js
View file @
8453a27
...
...
@@ -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
},
[])
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment