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 eedcb61a
authored
Dec 16, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat 功能开发
1 parent
43c0f1de
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
70 additions
and
140 deletions
components/orderPromptPop/orderPromptPop.js
tabRepairOrder/components/timeSelect/index.js
tabRepairOrder/components/timeSelect/index.sass
tabRepairOrder/components/timeSelect/index.wxml
tabRepairOrder/pages/repairOrderDetail/repairOrderDetail.js
tabRepairOrder/pages/repairOrderDetail/repairOrderDetail.wxml
tabWorkOrder/pages/staffDaily/staffDaily.js
components/orderPromptPop/orderPromptPop.js
View file @
eedcb61
...
@@ -21,7 +21,7 @@ Component({
...
@@ -21,7 +21,7 @@ Component({
value
:
'var(--fontSize980)'
value
:
'var(--fontSize980)'
},
},
sceneObj
:
{
sceneObj
:
{
observer
:
function
(
v
)
{
observer
:
function
(
v
)
{
// 是否是扫码核销或再次下单,是的话不显示补录入口
// 是否是扫码核销或再次下单,是的话不显示补录入口
if
(
Object
.
keys
(
v
)?.
length
)
{
if
(
Object
.
keys
(
v
)?.
length
)
{
let
{
payTypeList
}
=
this
.
data
let
{
payTypeList
}
=
this
.
data
...
@@ -57,9 +57,9 @@ Component({
...
@@ -57,9 +57,9 @@ Component({
value
:
'5'
,
value
:
'5'
,
tips
:
'适用于已有交易收款流水需补录订单时'
tips
:
'适用于已有交易收款流水需补录订单时'
},
{
},
{
label
:
'
收款方为嘀加二维码
收款'
,
label
:
'
特殊
收款'
,
value
:
'6'
,
value
:
'6'
,
tips
:
'
适用于多笔订单一笔流水付款
'
tips
:
'
仅用于无法关联流水或混合支付场景,请谨慎选择。
'
}]
}]
},
},
...
...
tabRepairOrder/components/timeSelect/index.js
View file @
eedcb61
This diff is collapsed.
Click to expand it.
tabRepairOrder/components/timeSelect/index.sass
View file @
eedcb61
/* tabRepairOrder/components/timeSelect/index.wxss */
/* tabRepairOrder/components/timeSelect/index.wxss */
.fixed-content
{
.fixed-content
{
height
:
100%
;
height
:
100%
;
.fixed-body
{
.fixed-body
{
display
:
flex
;
display
:
flex
;
height
:
100%
;
height
:
100%
;
.picker
{
.picker
{
width
:
2
0
%
;
width
:
2
7
.5
%
;
height
:
100%
;
height
:
100%
;
.view
{
.view
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -16,8 +19,9 @@
...
@@ -16,8 +19,9 @@
color
:
#222222
;
color
:
#222222
;
}
}
}
}
.picker_max
{
width
:
40%
!
important
;
.picker_max
{
width
:
45%
!
important
;
}
}
}
}
}
}
\ No newline at end of file
\ No newline at end of file
tabRepairOrder/components/timeSelect/index.wxml
View file @
eedcb61
<!--tabRepairOrder/components/timeSelect/index.wxml-->
<!--tabRepairOrder/components/timeSelect/index.wxml-->
<popup show="{{
show}}" title="{{title
}}" bindconfirm="confirm" height="50%" bindcancel="cancel">
<popup show="{{
show }}" title="{{ title
}}" bindconfirm="confirm" height="50%" bindcancel="cancel">
<view class="fixed-content">
<view class="fixed-content">
<view class="fixed-body">
<view class="fixed-body">
<picker-view class="picker picker_max" value="{{dateValues
}}" indicator-class="indicator" bindchange="changeDate">
<picker-view class="picker picker_max" value="{{ dateValues
}}" indicator-class="indicator" bindchange="changeDate">
<picker-view-column>
<picker-view-column>
<block wx:for="{{days
}}" wx:key="index">
<block wx:for="{{ days
}}" wx:key="index">
<view class="view">{{item}}</view>
<view class="view">{{item}}</view>
</block>
</block>
</picker-view-column>
</picker-view-column>
</picker-view>
</picker-view>
<picker-view class="picker" value="{{hourValues
}}" indicator-class="indicator" bindchange="changeHour">
<picker-view class="picker" value="{{ hourValues
}}" indicator-class="indicator" bindchange="changeHour">
<picker-view-column>
<picker-view-column>
<block wx:for="{{hours
}}" wx:key="index">
<block wx:for="{{ hours
}}" wx:key="index">
<view class="view">{{item}}时</view>
<view class="view">{{item}}时</view>
</block>
</block>
</picker-view-column>
</picker-view-column>
</picker-view>
</picker-view>
<picker-view wx:if="{{!loading}}" class="picker" value="{{minuteValues
}}" indicator-class="indicator" bindchange="changeMinutes">
<picker-view wx:if="{{ !loading }}" class="picker" value="{{ minuteValues
}}" indicator-class="indicator" bindchange="changeMinutes">
<picker-view-column>
<picker-view-column>
<block wx:for="{{minutes
}}" wx:key="index">
<block wx:for="{{ minutes
}}" wx:key="index">
<view class="view">{{item}}分</view>
<view class="view">{{item}}分</view>
</block>
</block>
</picker-view-column>
</picker-view-column>
</picker-view>
</picker-view>
<picker-view wx:if="{{!loading}}" class="picker" value="{{secondValues}}" indicator-class="indicator" bindchange="changeSeconds">
<picker-view-column>
<block wx:for="{{seconds}}" wx:key="index">
<view class="view">{{item}}秒</view>
</block>
</picker-view-column>
</picker-view>
</view>
</view>
</view>
</view>
</popup>
</popup>
\ No newline at end of file
\ No newline at end of file
tabRepairOrder/pages/repairOrderDetail/repairOrderDetail.js
View file @
eedcb61
...
@@ -304,12 +304,7 @@ Page({
...
@@ -304,12 +304,7 @@ Page({
id
:
it
.
id
,
id
:
it
.
id
,
uuid
:
it
.
technicianUuid
,
uuid
:
it
.
technicianUuid
,
staffPhone
:
it
.
staffPhone
,
staffPhone
:
it
.
staffPhone
,
shareRatio
:
shareRatio
:
Math
.
round
((
it
.
shareRatio
||
0
)
*
100
)
it
.
shareRatio
===
null
||
it
.
shareRatio
===
undefined
||
isNaN
(
Number
(
it
.
shareRatio
))
?
''
:
Math
.
round
(
Number
(
it
.
shareRatio
)
*
100
)
}
}
})
})
const
deputySelected
=
data
?.
mainTechnicianList
const
deputySelected
=
data
?.
mainTechnicianList
...
@@ -320,12 +315,7 @@ Page({
...
@@ -320,12 +315,7 @@ Page({
id
:
it
.
id
,
id
:
it
.
id
,
uuid
:
it
.
technicianUuid
,
uuid
:
it
.
technicianUuid
,
staffPhone
:
it
.
staffPhone
,
staffPhone
:
it
.
staffPhone
,
shareRatio
:
shareRatio
:
Math
.
round
((
it
.
shareRatio
||
0
)
*
100
)
it
.
shareRatio
===
null
||
it
.
shareRatio
===
undefined
||
isNaN
(
Number
(
it
.
shareRatio
))
?
''
:
Math
.
round
(
Number
(
it
.
shareRatio
)
*
100
)
}
}
})
})
const
mainTechnicianName
=
data
?.
mainTechnicianList
?.
find
(
const
mainTechnicianName
=
data
?.
mainTechnicianList
?.
find
(
...
@@ -349,19 +339,33 @@ Page({
...
@@ -349,19 +339,33 @@ Page({
if
(
data
.
customer
?.
customerName
)
{
if
(
data
.
customer
?.
customerName
)
{
this
.
limitTwoLines
(
data
.
customer
?.
customerName
)
this
.
limitTwoLines
(
data
.
customer
?.
customerName
)
}
}
const
existingMainSelected
=
this
.
data
.
mainSelected
||
[]
const
existingDeputySelected
=
this
.
data
.
deputySelected
||
[]
const
existingDetailInfo
=
this
.
data
.
detailInfo
||
{}
this
.
setData
(
this
.
setData
(
{
{
detailInfo
:
data
||
{},
detailInfo
:
data
||
{},
mainSelected
,
mainSelected
:
existingMainSelected
.
length
deputySelected
,
?
existingMainSelected
'detailInfo.mainTechnicianName'
:
mainTechnicianName
,
:
mainSelected
,
'detailInfo.subTechnicianName'
:
subTechnicianName
,
deputySelected
:
existingDeputySelected
.
length
'detailInfo.pictureList'
:
data
?.
pictureList
?.
map
(
val
=>
{
?
existingDeputySelected
:
deputySelected
,
'detailInfo.mainTechnicianName'
:
existingDetailInfo
?.
mainTechnicianName
||
mainTechnicianName
,
'detailInfo.subTechnicianName'
:
existingDetailInfo
?.
subTechnicianName
||
subTechnicianName
,
'detailInfo.pictureList'
:
existingDetailInfo
?.
pictureList
?.
length
?
existingDetailInfo
.
pictureList
:
data
?.
pictureList
?.
map
(
val
=>
{
return
val
.
pictureUrl
return
val
.
pictureUrl
}),
}),
'detailInfo.startTime'
:
detailInfo
.
startTime
'detailInfo.startTime'
:
existingDetailInfo
?.
startTime
?
detailInfo
.
startTime
?
existingDetailInfo
.
startTime
:
data
.
startTime
// 页面操作选了开始施工时间不做更新,未选择取更新后的时间(出库时间)
:
data
.
startTime
,
'detailInfo.endTime'
:
existingDetailInfo
?.
endTime
?
existingDetailInfo
.
endTime
:
data
.
endTime
},
},
()
=>
{
()
=>
{
if
(
data
?.
startTime
&&
data
?.
endTime
)
{
if
(
data
?.
startTime
&&
data
?.
endTime
)
{
...
@@ -868,13 +872,7 @@ Page({
...
@@ -868,13 +872,7 @@ Page({
technicianType
:
0
,
technicianType
:
0
,
technicianUuid
:
it
.
uuid
,
technicianUuid
:
it
.
uuid
,
staffPhone
:
it
.
staffPhone
,
staffPhone
:
it
.
staffPhone
,
shareRatio
:
shareRatio
:
((
it
.
shareRatio
??
100
)
*
1
)
/
100
it
.
shareRatio
===
''
||
it
.
shareRatio
===
undefined
||
it
.
shareRatio
===
null
||
isNaN
(
Number
(
it
.
shareRatio
))
?
1
:
Number
(
it
.
shareRatio
)
/
100
}))
}))
:
[]),
:
[]),
...(
Array
.
isArray
(
deputySelected
)
...(
Array
.
isArray
(
deputySelected
)
...
@@ -884,13 +882,7 @@ Page({
...
@@ -884,13 +882,7 @@ Page({
technicianType
:
1
,
technicianType
:
1
,
technicianUuid
:
it
.
uuid
,
technicianUuid
:
it
.
uuid
,
staffPhone
:
it
.
staffPhone
,
staffPhone
:
it
.
staffPhone
,
shareRatio
:
shareRatio
:
((
it
.
shareRatio
??
0
)
*
1
)
/
100
it
.
shareRatio
===
''
||
it
.
shareRatio
===
undefined
||
it
.
shareRatio
===
null
||
isNaN
(
Number
(
it
.
shareRatio
))
?
0
:
Number
(
it
.
shareRatio
)
/
100
}))
}))
:
[])
:
[])
]
]
...
...
tabRepairOrder/pages/repairOrderDetail/repairOrderDetail.wxml
View file @
eedcb61
...
@@ -25,11 +25,7 @@
...
@@ -25,11 +25,7 @@
<view>完成施工,如客户返工请点击</view>
<view>完成施工,如客户返工请点击</view>
<view wx:if="{{ detailInfo.approvalStatus }}">{{detailInfo.approvalName}}已审核{{detailInfo.approvalStatus == 1 ? '通过' : '不通过'}}</view>
<view wx:if="{{ detailInfo.approvalStatus }}">{{detailInfo.approvalName}}已审核{{detailInfo.approvalStatus == 1 ? '通过' : '不通过'}}</view>
</view>
</view>
<view
<view class="btn text-center" bindtap="handleRedo" wx:if="{{ filter.btnPermissions(userPermissions, 'WULIAOCHUKU')&&detailInfo.effectiveFlag == 0 }}">客户返工</view>
class="btn text-center"
bindtap="handleRedo"
wx:if="{{ filter.btnPermissions(userPermissions, 'WULIAOCHUKU')&&detailInfo.effectiveFlag == 0 }}"
>客户返工</view>
</view>
</view>
</block>
</block>
</view>
</view>
...
@@ -114,9 +110,7 @@
...
@@ -114,9 +110,7 @@
<block wx:for="{{ timeObj }}" wx:key="index">
<block wx:for="{{ timeObj }}" wx:key="index">
<view class="cell">
<view class="cell">
<view class="label">{{item.label}}</view>
<view class="label">{{item.label}}</view>
<block
<block wx:if="{{ item.key == 'constructionDuration' && (detailInfo[item.key] === null || detailInfo[item.key] === undefined) }}">
wx:if="{{ item.key == 'constructionDuration' && (detailInfo[item.key] === null || detailInfo[item.key] === undefined) }}"
>
<view class="value placeholder">{{item.placeholder}}</view>
<view class="value placeholder">{{item.placeholder}}</view>
</block>
</block>
<block wx:else>
<block wx:else>
...
@@ -136,20 +130,14 @@
...
@@ -136,20 +130,14 @@
<view class="title infoTitle">
<view class="title infoTitle">
<view class="flex">
<view class="flex">
上传施工图
上传施工图
<view wx:if="{{ detailInfo.constructionStatus == 0 }}"
bindtap="handleShowExample" class="example">示例</view>
<view
bindtap="handleShowExample" class="example">示例</view>
</view>
</view>
</view>
</view>
<view class="image-box">
<view class="image-box">
<block wx:if="{{ detailInfo.pictureList.length }}">
<block wx:if="{{ detailInfo.pictureList.length }}">
<view class="tire-block" wx:for="{{ detailInfo.pictureList }}" wx:key="index">
<view class="tire-block" wx:for="{{ detailInfo.pictureList }}" wx:key="index">
<view class="tire-img-box" catchtap="handlePreviewImg" data-url="{{ detailInfo.pictureList }}" data-index="{{ index }}">
<view class="tire-img-box" catchtap="handlePreviewImg" data-url="{{ detailInfo.pictureList }}" data-index="{{ index }}">
<image
<image class="icon-delete" catchtap="handleDelete" wx:if="{{ detailInfo.constructionStatus == 0 }}" data-index="{{ index }}" src="{{ IMG_URL }}zy_paf_del_icon.png" />
class="icon-delete"
catchtap="handleDelete"
wx:if="{{ detailInfo.constructionStatus == 0 }}"
data-index="{{ index }}"
src="{{ IMG_URL }}zy_paf_del_icon.png"
/>
<image class="tire-img" src="{{ item }}" />
<image class="tire-img" src="{{ item }}" />
</view>
</view>
</view>
</view>
...
@@ -160,11 +148,7 @@
...
@@ -160,11 +148,7 @@
暂无数据
暂无数据
</view>
</view>
</block>
</block>
<view
<view class="tire-block" bindtap="handleUpload" wx:if="{{ (!detailInfo.pictureList || detailInfo.pictureList.length < 9) && detailInfo.constructionStatus == 0 }}">
class="tire-block"
bindtap="handleUpload"
wx:if="{{ (!detailInfo.pictureList || detailInfo.pictureList.length < 9) && detailInfo.constructionStatus == 0 }}"
>
<view>
<view>
<image class="icon-plus" src="{{ IMG_URL }}miniProgram/camera_icon.png" />
<image class="icon-plus" src="{{ IMG_URL }}miniProgram/camera_icon.png" />
<view class="plus-text">({{detailInfo.pictureList.length}}/9)</view>
<view class="plus-text">({{detailInfo.pictureList.length}}/9)</view>
...
@@ -233,10 +217,7 @@
...
@@ -233,10 +217,7 @@
</view>
</view>
<view class="count">x{{item.number}}</view>
<view class="count">x{{item.number}}</view>
</view>
</view>
<view
<view class="bott text-hide" wx:if="{{ item.rollNumber || (item.materialsUsed !== null && item.materialsUsed !== undefined) }}">
class="bott text-hide"
wx:if="{{ item.rollNumber || (item.materialsUsed !== null && item.materialsUsed !== undefined) }}"
>
<text class="material">用料{{item.materialsUsed}}米/件</text>
<text class="material">用料{{item.materialsUsed}}米/件</text>
<block wx:if="{{ item.rollNumber }}">
<block wx:if="{{ item.rollNumber }}">
<text class="split">|</text>
<text class="split">|</text>
...
@@ -246,10 +227,7 @@
...
@@ -246,10 +227,7 @@
</view>
</view>
</view>
</view>
</view>
</view>
<view
<view class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}" wx:if="{{ (detailInfo.constructionStatus == 0 && filter.btnPermissions(userPermissions, 'WANCHENGSHIGONG')) || (detailInfo.constructionStatus != 0 && detailInfo.approvalStatus == 0 && filter.btnPermissions(userPermissions, 'SHENHESHIGONGDAN')) }}">
class="btns {{ isFullSucreen?'isFullSucreen-btn':'' }}"
wx:if="{{ (detailInfo.constructionStatus == 0 && filter.btnPermissions(userPermissions, 'WANCHENGSHIGONG')) || (detailInfo.constructionStatus != 0 && detailInfo.approvalStatus == 0 && filter.btnPermissions(userPermissions, 'SHENHESHIGONGDAN')) }}"
>
<!-- 未施工 技师可操作 -->
<!-- 未施工 技师可操作 -->
<block wx:if="{{ detailInfo.constructionStatus == 0 && filter.btnPermissions(userPermissions, 'WANCHENGSHIGONG') }}">
<block wx:if="{{ detailInfo.constructionStatus == 0 && filter.btnPermissions(userPermissions, 'WANCHENGSHIGONG') }}">
<view class="tips_box" wx:if="{{ !hideOutTips && detailInfo.outboundStatus == 0 }}">
<view class="tips_box" wx:if="{{ !hideOutTips && detailInfo.outboundStatus == 0 }}">
...
@@ -267,9 +245,7 @@
...
@@ -267,9 +245,7 @@
</view>
</view>
</block>
</block>
<!-- 已施工/未审核 区域运营/驻店销售可操作 -->
<!-- 已施工/未审核 区域运营/驻店销售可操作 -->
<block
<block wx:if="{{ detailInfo.constructionStatus != 0 && detailInfo.approvalStatus == 0 && filter.btnPermissions(userPermissions, 'SHENHESHIGONGDAN') }}">
wx:if="{{ detailInfo.constructionStatus != 0 && detailInfo.approvalStatus == 0 && filter.btnPermissions(userPermissions, 'SHENHESHIGONGDAN') }}"
>
<view class="btns-con">
<view class="btns-con">
<view class="confirm text-center" bindtap="checkOrder">审核施工单</view>
<view class="confirm text-center" bindtap="checkOrder">审核施工单</view>
</view>
</view>
...
@@ -277,48 +253,9 @@
...
@@ -277,48 +253,9 @@
</view>
</view>
</view>
</view>
</block>
</block>
<time-select
<time-select show="{{ startTimeVisible }}" title="开始施工时间" defaultTime="{{ detailInfo.startTime }}" isStartTime="{{ true }}" endTime="{{ detailInfo.endTime }}" bind:confirm="onStartTimeConfirm" bindcancel="onClosePicker" />
show="{{ startTimeVisible }}"
<time-select show="{{ endTimeVisible }}" title="结束施工时间" defaultTime="{{ detailInfo.endTime }}" isStartTime="{{ false }}" startTime="{{ detailInfo.startTime }}" bind:confirm="onEndTimeConfirm" bindcancel="onClosePicker" />
title="开始施工时间"
<outbound-popup show="{{ outboundVisible }}" title="物料出库" detailInfo="{{ detailInfo }}" bindcancel="handleOutboundCancel" bindconfirm="handleOutboundConfirm" userPermissions="{{ userPermissions }}"></outbound-popup>
defaultTime="{{ detailInfo.startTime }}"
<rework-popup show="{{ reworkVisible }}" title="返工确认" detailInfo="{{ detailInfo }}" bindcancel="handleReworkCancel" bindconfirm="handleReworkConfirm"></rework-popup>
isStartTime="{{ true }}"
endTime="{{ detailInfo.endTime }}"
bind:confirm="onStartTimeConfirm"
bindcancel="onClosePicker"
/>
<time-select
show="{{ endTimeVisible }}"
title="结束施工时间"
defaultTime="{{ detailInfo.endTime }}"
isStartTime="{{ false }}"
startTime="{{ detailInfo.startTime }}"
bind:confirm="onEndTimeConfirm"
bindcancel="onClosePicker"
/>
<outbound-popup
show="{{ outboundVisible }}"
title="物料出库"
detailInfo="{{ detailInfo }}"
bindcancel="handleOutboundCancel"
bindconfirm="handleOutboundConfirm"
userPermissions="{{ userPermissions }}"
></outbound-popup>
<rework-popup
show="{{ reworkVisible }}"
title="返工确认"
detailInfo="{{ detailInfo }}"
bindcancel="handleReworkCancel"
bindconfirm="handleReworkConfirm"
></rework-popup>
<review-popup show="{{ reviewVisible }}" bindcancel="reviewCancel" bindconfirm="reviewConfirm" bindclose="reviewClose"></review-popup>
<review-popup show="{{ reviewVisible }}" bindcancel="reviewCancel" bindconfirm="reviewConfirm" bindclose="reviewClose"></review-popup>
<technician-select-popup
show="{{ artificerSelectPopup }}"
title="选择技师"
copyArtificerList="{{ artificerList }}"
multiple="{{ technicianMultiple }}"
artificerSelectObj="{{ technicianMultiple ? deputySelected : mainSelected }}"
disabledSelectObj="{{ technicianMultiple ? mainSelected : deputySelected }}"
bindconfirm="changeArtificer"
bindcancel="cancelTechnician"
deputyFlag="{{ technicianMultiple }}"
/>
\ No newline at end of file
\ No newline at end of file
<technician-select-popup show="{{ artificerSelectPopup }}" title="选择技师" copyArtificerList="{{ artificerList }}" multiple="{{ technicianMultiple }}" artificerSelectObj="{{ technicianMultiple ? deputySelected : mainSelected }}" disabledSelectObj="{{ technicianMultiple ? mainSelected : deputySelected }}" bindconfirm="changeArtificer" bindcancel="cancelTechnician" deputyFlag="{{ technicianMultiple }}" />
\ No newline at end of file
\ No newline at end of file
tabWorkOrder/pages/staffDaily/staffDaily.js
View file @
eedcb61
...
@@ -438,7 +438,7 @@ Page({
...
@@ -438,7 +438,7 @@ Page({
},
},
showStorePicker
()
{
showStorePicker
()
{
let
{
userInfo
}
=
this
.
data
let
{
userInfo
}
=
this
.
data
;
(
userInfo
?.
isSuper
||
;
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?.
loginRole
==
3
||
userInfo
?.
loginRole
==
5
)
&&
userInfo
?.
loginRole
==
5
)
&&
this
.
setData
({
this
.
setData
({
...
@@ -448,7 +448,7 @@ Page({
...
@@ -448,7 +448,7 @@ Page({
},
},
showStaffPicker
()
{
showStaffPicker
()
{
let
{
userInfo
}
=
this
.
data
let
{
userInfo
}
=
this
.
data
;
(
userInfo
?.
isSuper
||
;
(
userInfo
?.
isSuper
||
userInfo
?.
loginRole
==
3
||
userInfo
?.
loginRole
==
3
||
userInfo
?.
loginRole
==
5
)
&&
userInfo
?.
loginRole
==
5
)
&&
this
.
setData
({
this
.
setData
({
...
@@ -579,7 +579,7 @@ Page({
...
@@ -579,7 +579,7 @@ Page({
showCancel
:
false
,
showCancel
:
false
,
confirmText
:
'确定'
,
confirmText
:
'确定'
,
confirmColor
:
'#347BFF'
,
confirmColor
:
'#347BFF'
,
success
(
res
)
{
}
success
(
res
)
{}
})
})
}
else
{
}
else
{
wx
.
$util
.
showToast
(
message
)
wx
.
$util
.
showToast
(
message
)
...
@@ -718,7 +718,7 @@ Page({
...
@@ -718,7 +718,7 @@ Page({
showCancel
:
false
,
showCancel
:
false
,
confirmText
:
'确定'
,
confirmText
:
'确定'
,
confirmColor
:
'#347BFF'
,
confirmColor
:
'#347BFF'
,
success
(
res
)
{
}
success
(
res
)
{}
})
})
}
else
{
}
else
{
wx
.
$util
.
showToast
(
message
)
wx
.
$util
.
showToast
(
message
)
...
@@ -1121,14 +1121,18 @@ Page({
...
@@ -1121,14 +1121,18 @@ Page({
let
{
code
,
data
}
=
result
let
{
code
,
data
}
=
result
// let reportType = 0
// let reportType = 0
let
carBandList
=
[]
let
carBandList
=
[]
let
isHmStore
=
false
let
hmPresent
=
false
let
containsShangJie
=
false
if
(
code
&&
data
.
length
)
{
if
(
code
&&
data
.
length
)
{
// reportType = 1
// reportType = 1
// 判断车型是否包含鸿蒙智享,包含不给切换模板列表
// 判断车型是否包含鸿蒙智享,包含不给切换模板列表
carBandList
=
data
.
map
(
item
=>
{
carBandList
=
data
.
map
(
item
=>
{
let
el
=
{
...
item
}
let
el
=
{
...
item
}
if
(
item
.
firstBrandId
==
carBandId
)
{
if
(
item
.
firstBrandId
==
carBandId
)
{
isHmStore
=
true
hmPresent
=
true
}
if
(
item
.
brandId
==
3574
||
item
.
brandName
==
'尚界'
)
{
containsShangJie
=
true
}
}
if
(
item
.
brandType
==
0
)
{
if
(
item
.
brandType
==
0
)
{
hwObjArray
.
forEach
(
e
=>
{
hwObjArray
.
forEach
(
e
=>
{
...
@@ -1148,7 +1152,7 @@ Page({
...
@@ -1148,7 +1152,7 @@ Page({
this
.
setData
({
this
.
setData
({
// reportType,
// reportType,
isHmStore
,
isHmStore
:
hmPresent
&&
!
containsShangJie
,
carBandList
carBandList
})
})
this
.
getStaffReport
()
this
.
getStaffReport
()
...
@@ -1437,7 +1441,7 @@ Page({
...
@@ -1437,7 +1441,7 @@ Page({
wx
.
$util
.
message
(
message
)
wx
.
$util
.
message
(
message
)
}
}
})
})
.
catch
(
err
=>
{
})
.
catch
(
err
=>
{})
},
},
inputSearch
(
e
)
{
inputSearch
(
e
)
{
let
{
pickerType
}
=
this
.
data
let
{
pickerType
}
=
this
.
data
...
@@ -1646,7 +1650,7 @@ Page({
...
@@ -1646,7 +1650,7 @@ Page({
}
}
// }
// }
})
})
.
catch
(
err
=>
{
})
.
catch
(
err
=>
{})
},
},
/**
/**
* 生命周期函数--监听页面加载
* 生命周期函数--监听页面加载
...
@@ -1768,5 +1772,5 @@ Page({
...
@@ -1768,5 +1772,5 @@ Page({
/**
/**
* 生命周期函数--监听页面初次渲染完成
* 生命周期函数--监听页面初次渲染完成
*/
*/
onReady
:
function
()
{
}
onReady
:
function
()
{}
})
})
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