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 43c0f1de
authored
Dec 16, 2025
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.5.0' into 'SAAS+V5.5.1'
Saas+v5.5.0 See merge request
!457
2 parents
bbc10509
edc1fb39
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
191 additions
and
103 deletions
components/TechnicianSelectPopup/TechnicianSelectPopup.js
packageStudyCenter/pages/myTask/components/RecommendCourse/RecommendCourse.sass
packageStudyCenter/pages/staffRank/staffRank.sass
packageStudyCenter/pages/studyCenter/studyCenter.sass
packageStudyCenter/pages/studyCenter/studyCenter.wxml
packageStudyCenter/pages/taskDetail/longCourse/longCourse.sass
tabRepairOrder/pages/confirmWorkOrder/confirmWorkOrder.js
tabRepairOrder/pages/confirmWorkOrder/confirmWorkOrder.wxml
tabRepairOrder/pages/repairOrderDetail/repairOrderDetail.js
tabRepairOrder/pages/repairOrderDetail/repairOrderDetail.wxml
tabWorkOrder/pages/createAConstructionOrder/createAConstructionOrder.js
tabWorkOrder/pages/createAConstructionOrder/createAConstructionOrder.wxml
components/TechnicianSelectPopup/TechnicianSelectPopup.js
View file @
43c0f1d
...
@@ -32,7 +32,8 @@ Component({
...
@@ -32,7 +32,8 @@ Component({
return
m
return
m
},
{})
},
{})
copyArtificerList
=
copyArtificerList
.
map
(
i
=>
{
copyArtificerList
=
copyArtificerList
.
map
(
i
=>
{
const
id
=
artificerSelectObj
.
find
(
v
=>
v
.
uuid
==
i
.
uuid
)?.
id
||
undefined
// 技师列表id没实际用途,将id替换成已选技师的主键id
const
id
=
artificerSelectObj
.
find
(
v
=>
v
.
uuid
==
i
.
uuid
)?.
id
||
undefined
// 技师列表id没实际用途,将id替换成已选技师的主键id
const
active
=
selectArr
?.
includes
(
i
.
uuid
)
const
active
=
selectArr
?.
includes
(
i
.
uuid
)
const
disabled
=
const
disabled
=
disabledSelectObj
?.
findIndex
(
val
=>
val
.
uuid
==
i
.
uuid
)
>
-
1
disabledSelectObj
?.
findIndex
(
val
=>
val
.
uuid
==
i
.
uuid
)
>
-
1
...
@@ -229,6 +230,16 @@ Component({
...
@@ -229,6 +230,16 @@ Component({
this
.
setData
({
this
.
setData
({
selectedTechnicianId
:
[]
selectedTechnicianId
:
[]
})
})
if
(
deputyFlag
)
{
const
obj
=
{
...
artificerSelectObj
,
technicianUuid
:
''
,
technicianName
:
''
,
selectedTechnicians
:
[]
}
this
.
triggerEvent
(
'confirm'
,
obj
)
return
}
return
wx
.
$util
.
showToast
(
'请选择技师'
)
return
wx
.
$util
.
showToast
(
'请选择技师'
)
}
}
if
(
deputyFlag
)
{
if
(
deputyFlag
)
{
...
...
packageStudyCenter/pages/myTask/components/RecommendCourse/RecommendCourse.sass
View file @
43c0f1d
/* packageStudyCenter/pages/myTask/components/RecommendCourse/RecommendCourse.wxss */
/* packageStudyCenter/pages/myTask/components/RecommendCourse/RecommendCourse.wxss */
.recommend-course
{
.recommend-course
{
height
:
calc
(
100%
-
100rpx
)
;
height
:
calc
(
100%
-
100rpx
)
;
background
:
#FFFFFF
;
}
}
.recommend-course-list
{
.recommend-course-list
{
...
...
packageStudyCenter/pages/staffRank/staffRank.sass
View file @
43c0f1d
...
@@ -4,6 +4,7 @@ page {
...
@@ -4,6 +4,7 @@ page {
}
}
.rank-container
{
.rank-container
{
margin
:
var
(
--
fontSize24
)
var
(
--
fontSize28
)
;
margin
:
var
(
--
fontSize24
)
var
(
--
fontSize28
)
;
background
:
#FFFFFF
;
.bg
{
.bg
{
width
:
100%
;
width
:
100%
;
height
:
var
(
--
fontSize128
)
;
height
:
var
(
--
fontSize128
)
;
...
@@ -80,7 +81,8 @@ page {
...
@@ -80,7 +81,8 @@ page {
width
:
var
(
--
fontSize80
)
;
width
:
var
(
--
fontSize80
)
;
height
:
var
(
--
fontSize80
)
;
height
:
var
(
--
fontSize80
)
;
border-radius
:
var
(
--
fontSize40
)
;
border-radius
:
var
(
--
fontSize40
)
;
color
:
#2D66F7
;
background
:
#F7F7F7
;
color
:
#999EA8
;
font-size
:
var
(
--
fontSize34
)
;
font-size
:
var
(
--
fontSize34
)
;
font-weight
:
500
;
font-weight
:
500
;
text-align
:
center
;
text-align
:
center
;
...
...
packageStudyCenter/pages/studyCenter/studyCenter.sass
View file @
43c0f1d
...
@@ -187,7 +187,8 @@ page {
...
@@ -187,7 +187,8 @@ page {
position
:
absolute
;
position
:
absolute
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
padding-left
:
var
(
--
fontSize24
)
;
box-sizing
:
border-box
;
width
:
calc
(
100%
-
var
(
--
fontSize72
))
;
width
:
calc
(
100%
-
var
(
--
fontSize72
))
;
height
:
100%
;
height
:
100%
;
pointer-events
:
none
;
pointer-events
:
none
;
...
@@ -204,8 +205,9 @@ page {
...
@@ -204,8 +205,9 @@ page {
}
}
}
}
.input
{
.input
{
text-align
:
center
;
padding-left
:
var
(
--
fontSize24
)
;
width
:
calc
(
100%
-
var
(
--
fontSize72
))
;
width
:
calc
(
100%
-
var
(
--
fontSize72
))
;
box-sizing
:
border-box
;
font-size
:
var
(
--
fontSize28
)
;
font-size
:
var
(
--
fontSize28
)
;
}
}
.input-placeholder
{
.input-placeholder
{
...
@@ -280,6 +282,7 @@ page {
...
@@ -280,6 +282,7 @@ page {
display
:
flex
;
display
:
flex
;
flex-flow
:
column
;
flex-flow
:
column
;
align-items
:
center
;
align-items
:
center
;
margin-top
:
var
(
--
fontSize40
)
;
font-size
:
var
(
--
fontSize24
)
;
font-size
:
var
(
--
fontSize24
)
;
color
:
#999999
;
color
:
#999999
;
.icon
{
.icon
{
...
...
packageStudyCenter/pages/studyCenter/studyCenter.wxml
View file @
43c0f1d
...
@@ -82,11 +82,11 @@
...
@@ -82,11 +82,11 @@
<view class="search-box">
<view class="search-box">
<view class="search-input">
<view class="search-input">
<view class="placeholder-area" wx:if="{{!searchTitle}}">
<view class="placeholder-area" wx:if="{{!searchTitle}}">
<text class="placeholder-text">搜索课程</text>
<image
<image
src="{{IMG_URL}}studyCenter/search-icon.png"
src="{{IMG_URL}}studyCenter/search-icon.png"
class="search-icon"
class="search-icon"
/>
/>
<text class="placeholder-text">搜索课程</text>
</view>
</view>
<input
<input
type="text"
type="text"
...
...
packageStudyCenter/pages/taskDetail/longCourse/longCourse.sass
View file @
43c0f1d
...
@@ -135,7 +135,7 @@
...
@@ -135,7 +135,7 @@
font-size
:
var
(
--
fontSize34
)
;
font-size
:
var
(
--
fontSize34
)
;
color
:
#292D33
;
color
:
#292D33
;
font-weight
:
500
;
font-weight
:
500
;
padding
:
var
(
--
fontSize24
)
var
(
--
fontSize28
)
;
padding
:
var
(
--
fontSize24
)
var
(
--
fontSize28
)
var
(
--
fontSize24
)
0
;
}
}
.course-list-box
{
.course-list-box
{
padding-bottom
:
var
(
--
fontSize32
)
;
padding-bottom
:
var
(
--
fontSize32
)
;
...
...
tabRepairOrder/pages/confirmWorkOrder/confirmWorkOrder.js
View file @
43c0f1d
...
@@ -108,7 +108,12 @@ Page({
...
@@ -108,7 +108,12 @@ Page({
id
:
it
.
id
,
id
:
it
.
id
,
uuid
:
it
.
technicianUuid
,
uuid
:
it
.
technicianUuid
,
staffPhone
:
it
.
staffPhone
,
staffPhone
:
it
.
staffPhone
,
shareRatio
:
Math
.
round
((
it
.
shareRatio
||
0
)
*
100
)
shareRatio
:
it
.
shareRatio
===
null
||
it
.
shareRatio
===
undefined
||
isNaN
(
Number
(
it
.
shareRatio
))
?
''
:
Math
.
round
(
Number
(
it
.
shareRatio
)
*
100
)
}
}
})
})
const
deputySelected
=
data
?.
mainTechnicianList
const
deputySelected
=
data
?.
mainTechnicianList
...
@@ -119,7 +124,12 @@ Page({
...
@@ -119,7 +124,12 @@ Page({
id
:
it
.
id
,
id
:
it
.
id
,
uuid
:
it
.
technicianUuid
,
uuid
:
it
.
technicianUuid
,
staffPhone
:
it
.
staffPhone
,
staffPhone
:
it
.
staffPhone
,
shareRatio
:
Math
.
round
((
it
.
shareRatio
||
0
)
*
100
)
shareRatio
:
it
.
shareRatio
===
null
||
it
.
shareRatio
===
undefined
||
isNaN
(
Number
(
it
.
shareRatio
))
?
''
:
Math
.
round
(
Number
(
it
.
shareRatio
)
*
100
)
}
}
})
})
data
.
customer
.
customerCarName
=
data
.
customer
.
carSeriesName
data
.
customer
.
customerCarName
=
data
.
customer
.
carSeriesName
...
@@ -400,57 +410,82 @@ Page({
...
@@ -400,57 +410,82 @@ Page({
return
return
if
(
if
(
validateWithImmediateFeedback
(
validateWithImmediateFeedback
(
(
deputySelected
?.
length
||
0
)
>
0
&&
deputySelected
.
some
(
it
=>
it
.
shareRatio
===
''
||
it
.
shareRatio
==
null
),
'副手技师分成比例不能为空'
)
)
{
return
}
// return
if
(
validateWithImmediateFeedback
(
!
confirmInfo
?.
serviceItemsList
?.
length
,
!
confirmInfo
?.
serviceItemsList
?.
length
,
'请选择服务项目'
'请选择服务项目'
)
)
)
)
// return
return
wx
.
showModal
({
title
:
'是否确认生成电子施工单'
,
// return
content
:
wx
.
showModal
({
'请确认客户商品有无增减,服务项目是否完整。提交后不可修改客户商品、技师、服务项目'
,
title
:
'是否确认生成电子施工单'
,
confirmText
:
'确认提交'
,
content
:
confirmColor
:
'#347BFF'
,
'请确认客户商品有无增减,服务项目是否完整。提交后不可修改客户商品、技师、服务项目'
,
cancelText
:
'返回'
,
confirmText
:
'确认提交'
,
complete
:
res
=>
{
confirmColor
:
'#347BFF'
,
if
(
res
.
confirm
)
{
cancelText
:
'返回'
,
const
subOrderList
=
confirmInfo
?.
subOrderList
?.
map
(
val
=>
{
complete
:
res
=>
{
return
{
if
(
res
.
confirm
)
{
subOrderCode
:
val
.
subOrderCode
const
subOrderList
=
confirmInfo
?.
subOrderList
?.
map
(
val
=>
{
}
return
{
})
subOrderCode
:
val
.
subOrderCode
const
allRelationList
=
goodsList
?.
map
(
val
=>
{
}
val
.
constructionFlag
=
2
})
confirmInfo
?.
subOrderList
?.
map
(
item
=>
{
const
allRelationList
=
goodsList
?.
map
(
val
=>
{
if
(
val
.
subOrderCode
==
item
.
subOrderCode
)
val
.
constructionFlag
=
2
val
.
constructionFlag
=
1
confirmInfo
?.
subOrderList
?.
map
(
item
=>
{
})
if
(
val
.
subOrderCode
==
item
.
subOrderCode
)
return
{
val
.
constructionFlag
=
1
subOrderCode
:
val
.
subOrderCode
,
constructionFlag
:
val
.
constructionFlag
}
})
})
const
mainTechnicianList
=
[
return
{
...(
mainSelected
?.
map
(
val
=>
({
subOrderCode
:
val
.
subOrderCode
,
id
:
val
.
id
,
constructionFlag
:
val
.
constructionFlag
technicianName
:
val
.
staffName
,
}
technicianUuid
:
val
.
uuid
,
})
technicianType
:
0
,
const
mainTechnicianList
=
[
staffPhone
:
val
.
staffPhone
,
...(
mainSelected
?.
map
(
val
=>
({
shareRatio
:
((
val
.
shareRatio
??
0
)
*
1
)
/
100
id
:
val
.
id
,
}))
||
[]),
technicianName
:
val
.
staffName
,
...(
deputySelected
?.
map
(
val
=>
({
technicianUuid
:
val
.
uuid
,
id
:
val
.
id
,
technicianType
:
0
,
technicianName
:
val
.
staffName
,
staffPhone
:
val
.
staffPhone
,
technicianUuid
:
val
.
uuid
,
shareRatio
:
technicianType
:
1
,
val
.
shareRatio
===
''
||
staffPhone
:
val
.
staffPhone
,
val
.
shareRatio
===
undefined
||
shareRatio
:
((
val
.
shareRatio
??
0
)
*
1
)
/
100
val
.
shareRatio
===
null
||
}))
||
[])
isNaN
(
Number
(
val
.
shareRatio
))
]
?
1
const
serviceItemsList
=
(
:
Number
(
val
.
shareRatio
)
/
100
confirmInfo
?.
serviceItemsList
||
[]
}))
||
[]),
).
reduce
((
acc
,
val
)
=>
{
...(
deputySelected
?.
map
(
val
=>
({
id
:
val
.
id
,
technicianName
:
val
.
staffName
,
technicianUuid
:
val
.
uuid
,
technicianType
:
1
,
staffPhone
:
val
.
staffPhone
,
shareRatio
:
val
.
shareRatio
===
''
||
val
.
shareRatio
===
undefined
||
val
.
shareRatio
===
null
||
isNaN
(
Number
(
val
.
shareRatio
))
?
0
:
Number
(
val
.
shareRatio
)
/
100
}))
||
[])
]
const
serviceItemsList
=
(
confirmInfo
?.
serviceItemsList
||
[]).
reduce
(
(
acc
,
val
)
=>
{
const
details
=
(
val
?.
detailList
||
[]).
map
(
it
=>
({
const
details
=
(
val
?.
detailList
||
[]).
map
(
it
=>
({
serviceItemsId
:
it
.
serviceItemsId
,
serviceItemsId
:
it
.
serviceItemsId
,
serviceItemsName
:
it
.
serviceItemsName
,
serviceItemsName
:
it
.
serviceItemsName
,
...
@@ -462,42 +497,44 @@ Page({
...
@@ -462,42 +497,44 @@ Page({
useNum
:
it
.
useNum
useNum
:
it
.
useNum
}))
}))
return
acc
.
concat
(
details
)
return
acc
.
concat
(
details
)
},
[])
},
let
params
=
{
[]
id
:
confirmInfo
.
id
,
)
constructionCode
:
confirmInfo
.
constructionCode
,
let
params
=
{
orderCode
:
confirmInfo
.
orderCode
,
id
:
confirmInfo
.
id
,
reworkFlag
:
confirmInfo
?.
reworkFlag
,
// 是否返工
constructionCode
:
confirmInfo
.
constructionCode
,
subOrderList
,
orderCode
:
confirmInfo
.
orderCode
,
mainTechnicianList
,
reworkFlag
:
confirmInfo
?.
reworkFlag
,
// 是否返工
serviceItemsList
,
subOrderList
,
allRelationList
// 传全部可选商品,区分是否需要施工
mainTechnicianList
,
}
serviceItemsList
,
if
(
requesting
)
return
false
allRelationList
// 传全部可选商品,区分是否需要施工
this
.
setData
({
requesting
:
true
})
console
.
log
(
params
)
api
.
confirmConstruction
(
params
).
then
(
res
=>
{
let
{
code
,
message
}
=
res
if
(
code
==
0
)
{
wx
.
$router
.
redirectTo
(
'repairOrderDetail'
,
{
id
:
confirmInfo
.
id
,
constructionCode
:
confirmInfo
.
constructionCode
,
orderCode
:
confirmInfo
.
orderCode
})
}
else
{
wx
.
$util
.
showToast
(
message
)
}
setTimeout
(()
=>
{
this
.
setData
({
requesting
:
false
})
},
1000
)
})
}
}
if
(
requesting
)
return
false
this
.
setData
({
requesting
:
true
})
console
.
log
(
params
)
api
.
confirmConstruction
(
params
).
then
(
res
=>
{
let
{
code
,
message
}
=
res
if
(
code
==
0
)
{
wx
.
$router
.
redirectTo
(
'repairOrderDetail'
,
{
id
:
confirmInfo
.
id
,
constructionCode
:
confirmInfo
.
constructionCode
,
orderCode
:
confirmInfo
.
orderCode
})
}
else
{
wx
.
$util
.
showToast
(
message
)
}
setTimeout
(()
=>
{
this
.
setData
({
requesting
:
false
})
},
1000
)
})
}
}
})
}
})
},
},
/**
/**
* 生命周期函数--监听页面隐藏
* 生命周期函数--监听页面隐藏
...
...
tabRepairOrder/pages/confirmWorkOrder/confirmWorkOrder.wxml
View file @
43c0f1d
...
@@ -74,7 +74,7 @@
...
@@ -74,7 +74,7 @@
<block wx:if="{{ mainSelected.length }}">
<block wx:if="{{ mainSelected.length }}">
<view class="techic-value text-hide">
<view class="techic-value text-hide">
{{mainSelected[0] && mainSelected[0].staffName}}
{{mainSelected[0] && mainSelected[0].staffName}}
<text class="text" wx:if="{{
mainSelected[0] && mainSelected[0].shareRatio != ''
}}">{{mainSelected[0].shareRatio}}%</text>
<text class="text" wx:if="{{
deputySelected.length && mainSelected[0] && mainSelected[0].shareRatio !== '' && mainSelected[0].shareRatio !== undefined && mainSelected[0].shareRatio !== null
}}">{{mainSelected[0].shareRatio}}%</text>
</view>
</view>
</block>
</block>
</gl-cell>
</gl-cell>
...
@@ -92,11 +92,11 @@
...
@@ -92,11 +92,11 @@
<view class="techic-value text-hide">
<view class="techic-value text-hide">
<view class="text-hide" wx:if="{{ deputySelected[0] }}">
<view class="text-hide" wx:if="{{ deputySelected[0] }}">
{{deputySelected[0].staffName}}
{{deputySelected[0].staffName}}
<text class="text" wx:if="{{ deputySelected[0].shareRatio }}">{{deputySelected[0].shareRatio}}%</text>
<text class="text" wx:if="{{ deputySelected[0].shareRatio
!== '' && deputySelected[0].shareRatio !== undefined && deputySelected[0].shareRatio !== null
}}">{{deputySelected[0].shareRatio}}%</text>
</view>
</view>
<view class="deputy-value text-hide" wx:if="{{ deputySelected[1] }}">
<view class="deputy-value text-hide" wx:if="{{ deputySelected[1] }}">
· {{deputySelected[1].staffName}}
· {{deputySelected[1].staffName}}
<text class="text" wx:if="{{ deputySelected[1].shareRatio }}">{{deputySelected[1].shareRatio}}%</text>
<text class="text" wx:if="{{ deputySelected[1].shareRatio
!== '' && deputySelected[1].shareRatio !== undefined && deputySelected[1].shareRatio !== null
}}">{{deputySelected[1].shareRatio}}%</text>
</view>
</view>
</view>
</view>
<!-- {{filter.techicianRatio(deputySelected)}}</view> -->
<!-- {{filter.techicianRatio(deputySelected)}}</view> -->
...
...
tabRepairOrder/pages/repairOrderDetail/repairOrderDetail.js
View file @
43c0f1d
...
@@ -304,7 +304,12 @@ Page({
...
@@ -304,7 +304,12 @@ Page({
id
:
it
.
id
,
id
:
it
.
id
,
uuid
:
it
.
technicianUuid
,
uuid
:
it
.
technicianUuid
,
staffPhone
:
it
.
staffPhone
,
staffPhone
:
it
.
staffPhone
,
shareRatio
:
Math
.
round
((
it
.
shareRatio
||
0
)
*
100
)
shareRatio
:
it
.
shareRatio
===
null
||
it
.
shareRatio
===
undefined
||
isNaN
(
Number
(
it
.
shareRatio
))
?
''
:
Math
.
round
(
Number
(
it
.
shareRatio
)
*
100
)
}
}
})
})
const
deputySelected
=
data
?.
mainTechnicianList
const
deputySelected
=
data
?.
mainTechnicianList
...
@@ -315,7 +320,12 @@ Page({
...
@@ -315,7 +320,12 @@ Page({
id
:
it
.
id
,
id
:
it
.
id
,
uuid
:
it
.
technicianUuid
,
uuid
:
it
.
technicianUuid
,
staffPhone
:
it
.
staffPhone
,
staffPhone
:
it
.
staffPhone
,
shareRatio
:
Math
.
round
((
it
.
shareRatio
||
0
)
*
100
)
shareRatio
:
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
(
...
@@ -858,7 +868,13 @@ Page({
...
@@ -858,7 +868,13 @@ Page({
technicianType
:
0
,
technicianType
:
0
,
technicianUuid
:
it
.
uuid
,
technicianUuid
:
it
.
uuid
,
staffPhone
:
it
.
staffPhone
,
staffPhone
:
it
.
staffPhone
,
shareRatio
:
((
it
.
shareRatio
??
100
)
*
1
)
/
100
shareRatio
:
it
.
shareRatio
===
''
||
it
.
shareRatio
===
undefined
||
it
.
shareRatio
===
null
||
isNaN
(
Number
(
it
.
shareRatio
))
?
1
:
Number
(
it
.
shareRatio
)
/
100
}))
}))
:
[]),
:
[]),
...(
Array
.
isArray
(
deputySelected
)
...(
Array
.
isArray
(
deputySelected
)
...
@@ -868,7 +884,13 @@ Page({
...
@@ -868,7 +884,13 @@ Page({
technicianType
:
1
,
technicianType
:
1
,
technicianUuid
:
it
.
uuid
,
technicianUuid
:
it
.
uuid
,
staffPhone
:
it
.
staffPhone
,
staffPhone
:
it
.
staffPhone
,
shareRatio
:
((
it
.
shareRatio
??
0
)
*
1
)
/
100
shareRatio
:
it
.
shareRatio
===
''
||
it
.
shareRatio
===
undefined
||
it
.
shareRatio
===
null
||
isNaN
(
Number
(
it
.
shareRatio
))
?
0
:
Number
(
it
.
shareRatio
)
/
100
}))
}))
:
[])
:
[])
]
]
...
...
tabRepairOrder/pages/repairOrderDetail/repairOrderDetail.wxml
View file @
43c0f1d
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<block wx:if="{{ mainSelected.length }}">
<block wx:if="{{ mainSelected.length }}">
<view class="techic-value text-hide">
<view class="techic-value text-hide">
{{mainSelected[0] && mainSelected[0].staffName}}
{{mainSelected[0] && mainSelected[0].staffName}}
<text class="text" wx:if="{{
mainSelected[0] && mainSelected[0].shareRatio != ''
}}">{{mainSelected[0].shareRatio}}%</text>
<text class="text" wx:if="{{
deputySelected.length && mainSelected[0] && mainSelected[0].shareRatio !== '' && mainSelected[0].shareRatio !== undefined && mainSelected[0].shareRatio !== null
}}">{{mainSelected[0].shareRatio}}%</text>
</view>
</view>
</block>
</block>
<view wx:else class="value">-</view>
<view wx:else class="value">-</view>
...
@@ -77,11 +77,11 @@
...
@@ -77,11 +77,11 @@
<view class="techic-value text-hide">
<view class="techic-value text-hide">
<view class="text-hide" wx:if="{{ deputySelected[0] }}">
<view class="text-hide" wx:if="{{ deputySelected[0] }}">
{{deputySelected[0].staffName}}
{{deputySelected[0].staffName}}
<text class="text" wx:if="{{ deputySelected[0].shareRatio }}">{{deputySelected[0].shareRatio}}%</text>
<text class="text" wx:if="{{ deputySelected[0].shareRatio
!== '' && deputySelected[0].shareRatio !== undefined && deputySelected[0].shareRatio !== null
}}">{{deputySelected[0].shareRatio}}%</text>
</view>
</view>
<view class="deputy-value text-hide" wx:if="{{ deputySelected[1] }}">
<view class="deputy-value text-hide" wx:if="{{ deputySelected[1] }}">
· {{deputySelected[1].staffName}}
· {{deputySelected[1].staffName}}
<text class="text" wx:if="{{ deputySelected[1].shareRatio }}">{{deputySelected[1].shareRatio}}%</text>
<text class="text" wx:if="{{ deputySelected[1].shareRatio
!== '' && deputySelected[1].shareRatio !== undefined && deputySelected[1].shareRatio !== null
}}">{{deputySelected[1].shareRatio}}%</text>
</view>
</view>
</view>
</view>
<!-- {{filter.techicianRatio(deputySelected)}}</view> -->
<!-- {{filter.techicianRatio(deputySelected)}}</view> -->
...
...
tabWorkOrder/pages/createAConstructionOrder/createAConstructionOrder.js
View file @
43c0f1d
...
@@ -64,7 +64,13 @@ Page({
...
@@ -64,7 +64,13 @@ Page({
technicianType
:
0
,
technicianType
:
0
,
technicianUuid
:
it
.
uuid
,
technicianUuid
:
it
.
uuid
,
staffPhone
:
it
.
staffPhone
,
staffPhone
:
it
.
staffPhone
,
shareRatio
:
((
it
.
shareRatio
??
100
)
*
1
)
/
100
shareRatio
:
it
.
shareRatio
===
''
||
it
.
shareRatio
===
undefined
||
it
.
shareRatio
===
null
||
isNaN
(
Number
(
it
.
shareRatio
))
?
1
:
Number
(
it
.
shareRatio
)
/
100
})
})
})
})
item
.
deputySelected
.
map
(
it
=>
{
item
.
deputySelected
.
map
(
it
=>
{
...
@@ -73,7 +79,13 @@ Page({
...
@@ -73,7 +79,13 @@ Page({
technicianType
:
1
,
technicianType
:
1
,
technicianUuid
:
it
.
uuid
,
technicianUuid
:
it
.
uuid
,
staffPhone
:
it
.
staffPhone
,
staffPhone
:
it
.
staffPhone
,
shareRatio
:
((
it
.
shareRatio
??
0
)
*
1
)
/
100
shareRatio
:
it
.
shareRatio
===
''
||
it
.
shareRatio
===
undefined
||
it
.
shareRatio
===
null
||
isNaN
(
Number
(
it
.
shareRatio
))
?
0
:
Number
(
it
.
shareRatio
)
/
100
})
})
})
})
delete
item
.
mainSelected
delete
item
.
mainSelected
...
...
tabWorkOrder/pages/createAConstructionOrder/createAConstructionOrder.wxml
View file @
43c0f1d
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
<block wx:if="{{ mainSelected.length }}">
<block wx:if="{{ mainSelected.length }}">
<view class="techic-value text-hide">
<view class="techic-value text-hide">
{{mainSelected[0] && mainSelected[0].staffName}}
{{mainSelected[0] && mainSelected[0].staffName}}
<text class="text" wx:if="{{
mainSelected[0] && mainSelected[0].shareRatio != ''
}}">{{mainSelected[0].shareRatio}}%</text>
<text class="text" wx:if="{{
deputySelected.length && mainSelected[0] && mainSelected[0].shareRatio !== '' && mainSelected[0].shareRatio !== undefined && mainSelected[0].shareRatio !== null
}}">{{mainSelected[0].shareRatio}}%</text>
</view>
</view>
</block>
</block>
</gl-cell>
</gl-cell>
...
@@ -67,11 +67,11 @@
...
@@ -67,11 +67,11 @@
<view class="techic-value text-hide">
<view class="techic-value text-hide">
<view class="text-hide" wx:if="{{ deputySelected[0] }}">
<view class="text-hide" wx:if="{{ deputySelected[0] }}">
{{deputySelected[0].staffName}}
{{deputySelected[0].staffName}}
<text class="text" wx:if="{{ deputySelected[0].shareRatio }}">{{deputySelected[0].shareRatio}}%</text>
<text class="text" wx:if="{{ deputySelected[0].shareRatio
!== '' && deputySelected[0].shareRatio !== undefined && deputySelected[0].shareRatio !== null
}}">{{deputySelected[0].shareRatio}}%</text>
</view>
</view>
<view class="deputy-value text-hide" wx:if="{{ deputySelected[1] }}">
<view class="deputy-value text-hide" wx:if="{{ deputySelected[1] }}">
· {{deputySelected[1].staffName}}
· {{deputySelected[1].staffName}}
<text class="text" wx:if="{{ deputySelected[1].shareRatio }}">{{deputySelected[1].shareRatio}}%</text>
<text class="text" wx:if="{{ deputySelected[1].shareRatio
!== '' && deputySelected[1].shareRatio !== undefined && deputySelected[1].shareRatio !== null
}}">{{deputySelected[1].shareRatio}}%</text>
</view>
</view>
</view>
</view>
<!-- {{filter.techicianRatio(deputySelected)}}</view> -->
<!-- {{filter.techicianRatio(deputySelected)}}</view> -->
...
...
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