Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx
/
gl_tape
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
3
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit d59d9149
authored
Apr 29, 2026
by
岑成威
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 场景选择
1 parent
f5c584e8
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
133 additions
and
101 deletions
components/OrderPopup/components/SceneList.vue
components/OrderScreen/components/SceneList.vue
components/OrderScreenContract/components/SceneList.vue
pages/boutique/components/OrderCard.vue
pages/boutique/tool/components/CreateOrder.vue
pages/boutique/tool/components/DefeatOrder.vue
pages/equity/tool/components/CreateOrder.vue
pages/equity/tool/components/DefeatOrder.vue
pages/equity/tool/components/OrderCard.vue
pages/equity/tool/contant.js
components/OrderPopup/components/SceneList.vue
View file @
d59d914
<
template
>
<view
class=
"scene-list"
>
<template
v-for=
"(i, index) in listData"
>
<view
v-for=
"(i, index) in listData"
:key=
"index"
@
click=
"choose(i)"
:class=
"['item flex',
{ active: checkActive(i) }]"
>
<view
:key=
"index"
@
click=
"choose(i)"
:class=
"['item flex',
{ active: checkActive(i) }]"
>
<view
class=
"scene-type-tag"
:style=
"
{ background: sceneTag.bg, color: sceneTag.color }"
>
{{
sceneTag
.
label
}}
</view>
<view
class=
"sprite-icon icon-tag-checked"
></view>
{{
i
.
staffName
}}
</view>
</
template
>
class=
"scene-type-tag"
:style=
"
{ background: sceneTag.bg, color: sceneTag.color }"
>
{{
sceneTag
.
label
}}
</view>
<view
class=
"sprite-icon icon-tag-checked"
></view>
{{
i
.
name
||
i
.
staffName
}}
</view>
</view>
</
template
>
...
...
@@ -21,22 +20,22 @@
import
popupmixin
from
'./popupmixin'
const
SCENE_TYPE_TAG_MAP
=
{
0
:
{
label
:
'轻改'
,
bg
:
'#5575f51a'
,
color
:
'#5575f5'
},
1
:
{
label
:
'权益'
,
bg
:
'#4bc8fe1a'
,
color
:
'#4bc8fe'
},
1
:
{
label
:
'轻改'
,
bg
:
'#5575f51a'
,
color
:
'#5575f5'
},
0
:
{
label
:
'权益'
,
bg
:
'#4bc8fe1a'
,
color
:
'#4bc8fe'
},
2
:
{
label
:
'保险'
,
bg
:
'#00baad1a'
,
color
:
'#00baad'
},
7
:
{
label
:
'二手车'
,
bg
:
'#fe624b1a'
,
color
:
'#fe624b'
},
4
:
{
label
:
'其他'
,
bg
:
'#ff9d2e1a'
,
color
:
'#ff9d2e'
}
}
const
MOCK_SCENE_LIST
=
[
{
uuid
:
'100101'
,
staffN
ame
:
'精品升级'
,
baseSceneCode
:
'100101'
,
sceneType
:
1
,
businessType
:
null
},
{
uuid
:
'100102'
,
staffN
ame
:
'交新车干配'
,
baseSceneCode
:
'100102'
,
sceneType
:
2
,
businessType
:
null
},
{
uuid
:
'100103'
,
staffN
ame
:
'售后众筹'
,
baseSceneCode
:
'100103'
,
sceneType
:
3
,
businessType
:
null
},
{
uuid
:
'110101'
,
staffN
ame
:
'售前会员权益升级'
,
baseSceneCode
:
'110101'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110102'
,
staffN
ame
:
'售后会员权益升级'
,
baseSceneCode
:
'110102'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110201'
,
staffN
ame
:
'售前延保'
,
baseSceneCode
:
'110201'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'110202'
,
staffN
ame
:
'售后延保'
,
baseSceneCode
:
'110202'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'120101'
,
staffN
ame
:
'二手车收车'
,
baseSceneCode
:
'120101'
,
sceneType
:
7
,
businessType
:
null
}
{
uuid
:
'100101'
,
n
ame
:
'精品升级'
,
baseSceneCode
:
'100101'
,
sceneType
:
1
,
businessType
:
null
},
{
uuid
:
'100102'
,
n
ame
:
'交新车干配'
,
baseSceneCode
:
'100102'
,
sceneType
:
2
,
businessType
:
null
},
{
uuid
:
'100103'
,
n
ame
:
'售后众筹'
,
baseSceneCode
:
'100103'
,
sceneType
:
3
,
businessType
:
null
},
{
uuid
:
'110101'
,
n
ame
:
'售前会员权益升级'
,
baseSceneCode
:
'110101'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110102'
,
n
ame
:
'售后会员权益升级'
,
baseSceneCode
:
'110102'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110201'
,
n
ame
:
'售前延保'
,
baseSceneCode
:
'110201'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'110202'
,
n
ame
:
'售后延保'
,
baseSceneCode
:
'110202'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'120101'
,
n
ame
:
'二手车收车'
,
baseSceneCode
:
'120101'
,
sceneType
:
7
,
businessType
:
null
}
]
export
default
{
...
...
@@ -107,7 +106,8 @@ export default {
employeeList
=
JSON
.
parse
(
JSON
.
stringify
(
list
)),
arr
=
[]
employeeList
.
map
(
e
=>
{
if
(
e
.
staffName
&&
e
.
staffName
.
toUpperCase
().
indexOf
(
searchValue
)
!=
-
1
)
arr
.
push
(
e
)
const
sceneName
=
e
.
name
||
e
.
staffName
if
(
sceneName
&&
sceneName
.
toUpperCase
().
indexOf
(
searchValue
)
!=
-
1
)
arr
.
push
(
e
)
})
this
.
searchList
=
arr
this
.
searchStatus
=
true
...
...
components/OrderScreen/components/SceneList.vue
View file @
d59d914
...
...
@@ -4,12 +4,10 @@
<view
class=
"sprite-icon icon-tag-checked"
></view>
全部
</view>
<template
v-for=
"(i, index) in list"
>
<view
:key=
"index"
@
click=
"choose(i)"
:class=
"['item flex',
{ active: checkActive(i) }]">
<view
class=
"sprite-icon icon-tag-checked"
></view>
{{
i
.
staffName
}}
</view>
</
template
>
<view
v-for=
"(i, index) in list"
:key=
"index"
@
click=
"choose(i)"
:class=
"['item flex',
{ active: checkActive(i) }]">
<view
class=
"sprite-icon icon-tag-checked"
></view>
{{
i
.
name
||
i
.
staffName
}}
</view>
</view>
</
template
>
...
...
@@ -43,6 +41,9 @@
this
.
getList
()
},
methods
:
{
getSceneId
(
item
=
{})
{
return
item
.
baseSceneCode
},
async
getList
()
{
const
{
userInfo
,
params
}
=
this
,
{
cacheData
}
=
params
...
...
@@ -58,14 +59,14 @@
?
data
:
[
// 接口暂无数据时的临时模拟返回(来自 scene 表)
{
uuid
:
'100101'
,
staffN
ame
:
'精品升级'
,
baseSceneCode
:
'100101'
,
sceneType
:
1
,
businessType
:
null
},
{
uuid
:
'100102'
,
staffN
ame
:
'交新车干配'
,
baseSceneCode
:
'100102'
,
sceneType
:
2
,
businessType
:
null
},
{
uuid
:
'100103'
,
staffN
ame
:
'售后众筹'
,
baseSceneCode
:
'100103'
,
sceneType
:
3
,
businessType
:
null
},
{
uuid
:
'110101'
,
staffN
ame
:
'售前会员权益升级'
,
baseSceneCode
:
'110101'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110102'
,
staffN
ame
:
'售后会员权益升级'
,
baseSceneCode
:
'110102'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110201'
,
staffN
ame
:
'售前延保'
,
baseSceneCode
:
'110201'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'110202'
,
staffN
ame
:
'售后延保'
,
baseSceneCode
:
'110202'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'120101'
,
staffN
ame
:
'二手车收车'
,
baseSceneCode
:
'120101'
,
sceneType
:
7
,
businessType
:
null
}
{
uuid
:
'100101'
,
n
ame
:
'精品升级'
,
baseSceneCode
:
'100101'
,
sceneType
:
1
,
businessType
:
null
},
{
uuid
:
'100102'
,
n
ame
:
'交新车干配'
,
baseSceneCode
:
'100102'
,
sceneType
:
2
,
businessType
:
null
},
{
uuid
:
'100103'
,
n
ame
:
'售后众筹'
,
baseSceneCode
:
'100103'
,
sceneType
:
3
,
businessType
:
null
},
{
uuid
:
'110101'
,
n
ame
:
'售前会员权益升级'
,
baseSceneCode
:
'110101'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110102'
,
n
ame
:
'售后会员权益升级'
,
baseSceneCode
:
'110102'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110201'
,
n
ame
:
'售前延保'
,
baseSceneCode
:
'110201'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'110202'
,
n
ame
:
'售后延保'
,
baseSceneCode
:
'110202'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'120101'
,
n
ame
:
'二手车收车'
,
baseSceneCode
:
'120101'
,
sceneType
:
7
,
businessType
:
null
}
]
this
.
initList
(
list
)
...
...
@@ -83,17 +84,19 @@
},
choose
(
i
)
{
if
(
i
)
{
let
{
uuid
}
=
i
,
const
sceneId
=
this
.
getSceneId
(
i
)
if
(
!
sceneId
)
return
let
{
currentIds
}
=
this
,
index
=
currentIds
.
indexOf
(
uui
d
)
if
(
index
==
-
1
)
this
.
currentIds
.
push
(
uui
d
)
index
=
currentIds
.
indexOf
(
sceneI
d
)
if
(
index
==
-
1
)
this
.
currentIds
.
push
(
sceneI
d
)
else
this
.
currentIds
.
splice
(
index
,
1
)
}
},
checkActive
(
i
)
{
let
{
currentIds
}
=
this
,
active
=
false
if
(
currentIds
.
length
)
active
=
currentIds
.
includes
(
i
.
uuid
)
if
(
currentIds
.
length
)
active
=
currentIds
.
includes
(
this
.
getSceneId
(
i
)
)
return
active
// return this.currentIds.includes(i.uuid)
},
...
...
components/OrderScreenContract/components/SceneList.vue
View file @
d59d914
...
...
@@ -4,12 +4,10 @@
<view
class=
"sprite-icon icon-tag-checked"
></view>
全部
</view>
<template
v-for=
"(i, index) in list"
>
<view
:key=
"index"
@
click=
"choose(i)"
:class=
"['item flex',
{ active: checkActive(i) }]">
<view
class=
"sprite-icon icon-tag-checked"
></view>
{{
i
.
staffName
}}
</view>
</
template
>
<view
v-for=
"(i, index) in list"
:key=
"index"
@
click=
"choose(i)"
:class=
"['item flex',
{ active: checkActive(i) }]">
<view
class=
"sprite-icon icon-tag-checked"
></view>
{{
i
.
name
||
i
.
staffName
}}
</view>
</view>
</
template
>
...
...
@@ -43,6 +41,9 @@
this
.
getList
()
},
methods
:
{
getSceneId
(
item
=
{})
{
return
item
.
baseSceneCode
},
async
getList
()
{
const
{
userInfo
,
params
}
=
this
,
{
cacheData
}
=
params
...
...
@@ -57,14 +58,14 @@
const
list
=
(
data
&&
data
.
length
)
?
data
:
[
{
uuid
:
'100101'
,
staffN
ame
:
'精品升级'
,
baseSceneCode
:
'100101'
,
sceneType
:
1
,
businessType
:
null
},
{
uuid
:
'100102'
,
staffN
ame
:
'交新车干配'
,
baseSceneCode
:
'100102'
,
sceneType
:
2
,
businessType
:
null
},
{
uuid
:
'100103'
,
staffN
ame
:
'售后众筹'
,
baseSceneCode
:
'100103'
,
sceneType
:
3
,
businessType
:
null
},
{
uuid
:
'110101'
,
staffN
ame
:
'售前会员权益升级'
,
baseSceneCode
:
'110101'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110102'
,
staffN
ame
:
'售后会员权益升级'
,
baseSceneCode
:
'110102'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110201'
,
staffN
ame
:
'售前延保'
,
baseSceneCode
:
'110201'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'110202'
,
staffN
ame
:
'售后延保'
,
baseSceneCode
:
'110202'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'120101'
,
staffN
ame
:
'二手车收车'
,
baseSceneCode
:
'120101'
,
sceneType
:
7
,
businessType
:
null
}
{
uuid
:
'100101'
,
n
ame
:
'精品升级'
,
baseSceneCode
:
'100101'
,
sceneType
:
1
,
businessType
:
null
},
{
uuid
:
'100102'
,
n
ame
:
'交新车干配'
,
baseSceneCode
:
'100102'
,
sceneType
:
2
,
businessType
:
null
},
{
uuid
:
'100103'
,
n
ame
:
'售后众筹'
,
baseSceneCode
:
'100103'
,
sceneType
:
3
,
businessType
:
null
},
{
uuid
:
'110101'
,
n
ame
:
'售前会员权益升级'
,
baseSceneCode
:
'110101'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110102'
,
n
ame
:
'售后会员权益升级'
,
baseSceneCode
:
'110102'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110201'
,
n
ame
:
'售前延保'
,
baseSceneCode
:
'110201'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'110202'
,
n
ame
:
'售后延保'
,
baseSceneCode
:
'110202'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'120101'
,
n
ame
:
'二手车收车'
,
baseSceneCode
:
'120101'
,
sceneType
:
7
,
businessType
:
null
}
]
this
.
initList
(
list
)
params
.
cacheData
=
list
...
...
@@ -81,17 +82,19 @@
},
choose
(
i
)
{
if
(
i
)
{
let
{
uuid
}
=
i
,
const
sceneId
=
this
.
getSceneId
(
i
)
if
(
!
sceneId
)
return
let
{
currentIds
}
=
this
,
index
=
currentIds
.
indexOf
(
uui
d
)
if
(
index
==
-
1
)
this
.
currentIds
.
push
(
uui
d
)
index
=
currentIds
.
indexOf
(
sceneI
d
)
if
(
index
==
-
1
)
this
.
currentIds
.
push
(
sceneI
d
)
else
this
.
currentIds
.
splice
(
index
,
1
)
}
},
checkActive
(
i
)
{
let
{
currentIds
}
=
this
,
active
=
false
if
(
currentIds
.
length
)
active
=
currentIds
.
includes
(
i
.
uuid
)
if
(
currentIds
.
length
)
active
=
currentIds
.
includes
(
this
.
getSceneId
(
i
)
)
return
active
// return this.currentIds.includes(i.uuid)
},
...
...
pages/boutique/components/OrderCard.vue
View file @
d59d914
...
...
@@ -63,6 +63,13 @@
</view>
<view
class=
"payType flex align-center"
>
<view
class=
"payType-label"
>
场景名称
</view>
<view
class=
"payType-value flex align-center"
>
{{
orderCardDetail
.
baseSceneName
||
'-'
}}
</view>
</view>
<view
class=
"payType flex align-center"
>
<view
class=
"payType-label"
>
审批状态
</view>
<view
class=
"payType-value flex align-center"
>
{{
goodsOrderApplyStatus
[
orderCardDetail
.
goodsOrderApplyStatus
]
}}
...
...
pages/boutique/tool/components/CreateOrder.vue
View file @
d59d914
...
...
@@ -92,6 +92,12 @@ export default {
outTradeNo
:
outTradeNo
.
join
(
','
),
tradeNo
:
tradeNo
.
join
(
','
)
})
// 补录订单也需要默认订单类型(用于页面“订单类型”字段展示)
if
(
!
this
.
orderObj
.
orderTypeCode
)
this
.
$set
(
this
.
orderObj
,
'orderTypeCode'
,
'1'
)
if
(
!
this
.
orderObj
.
djOrderType
)
this
.
$set
(
this
.
orderObj
,
'djOrderType'
,
'正常订单'
)
const
orderTypeCell
=
this
.
formList
?.[
2
]?.
find
(
item
=>
item
.
value
===
'djOrderType'
)
if
(
orderTypeCell
)
orderTypeCell
.
current
=
this
.
orderObj
.
djOrderType
return
}
// 编辑和修改订单进入这里
...
...
@@ -228,6 +234,7 @@ export default {
payeeType
:
1
,
salesType
:
'0'
,
orderTypeCode
:
'1'
,
// 默认正常订单
djOrderType
:
'正常订单'
,
// 默认正常订单(表单展示用)
frontGear
:
null
,
// 1 ,回显upgradeGoodsPosition == 1
frontWindow
:
null
,
// 2
rearWindow
:
null
,
// 3
...
...
@@ -308,14 +315,14 @@ export default {
if
(
!
recentBaseSceneCode
)
return
const
MOCK_SCENE_LIST
=
[
{
uuid
:
'100101'
,
staffN
ame
:
'精品升级'
,
baseSceneCode
:
'100101'
,
sceneType
:
1
,
businessType
:
null
},
{
uuid
:
'100102'
,
staffN
ame
:
'交新车干配'
,
baseSceneCode
:
'100102'
,
sceneType
:
2
,
businessType
:
null
},
{
uuid
:
'100103'
,
staffN
ame
:
'售后众筹'
,
baseSceneCode
:
'100103'
,
sceneType
:
3
,
businessType
:
null
},
{
uuid
:
'110101'
,
staffN
ame
:
'售前会员权益升级'
,
baseSceneCode
:
'110101'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110102'
,
staffN
ame
:
'售后会员权益升级'
,
baseSceneCode
:
'110102'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110201'
,
staffN
ame
:
'售前延保'
,
baseSceneCode
:
'110201'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'110202'
,
staffN
ame
:
'售后延保'
,
baseSceneCode
:
'110202'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'120101'
,
staffN
ame
:
'二手车收车'
,
baseSceneCode
:
'120101'
,
sceneType
:
7
,
businessType
:
null
}
{
uuid
:
'100101'
,
n
ame
:
'精品升级'
,
baseSceneCode
:
'100101'
,
sceneType
:
1
,
businessType
:
null
},
{
uuid
:
'100102'
,
n
ame
:
'交新车干配'
,
baseSceneCode
:
'100102'
,
sceneType
:
2
,
businessType
:
null
},
{
uuid
:
'100103'
,
n
ame
:
'售后众筹'
,
baseSceneCode
:
'100103'
,
sceneType
:
3
,
businessType
:
null
},
{
uuid
:
'110101'
,
n
ame
:
'售前会员权益升级'
,
baseSceneCode
:
'110101'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110102'
,
n
ame
:
'售后会员权益升级'
,
baseSceneCode
:
'110102'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110201'
,
n
ame
:
'售前延保'
,
baseSceneCode
:
'110201'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'110202'
,
n
ame
:
'售后延保'
,
baseSceneCode
:
'110202'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'120101'
,
n
ame
:
'二手车收车'
,
baseSceneCode
:
'120101'
,
sceneType
:
7
,
businessType
:
null
}
]
// getSceneListWithOrder 有 Promise 缓存,不会重复发请求;接口无数据时 fallback 到 mock
const
rawList
=
await
uni
.
$api
.
equityApi
.
getSceneListWithOrder
({
...
...
@@ -326,7 +333,7 @@ export default {
const
item
=
listData
.
find
(
i
=>
String
(
i
.
baseSceneCode
||
i
.
uuid
)
===
String
(
recentBaseSceneCode
))
if
(
!
item
)
return
this
.
$set
(
this
.
orderObj
,
'baseSceneCode'
,
item
.
staffName
)
this
.
$set
(
this
.
orderObj
,
'baseSceneCode'
,
item
.
name
||
item
.
staffName
)
this
.
$set
(
this
.
orderObj
,
'baseSceneCodeValue'
,
item
.
baseSceneCode
||
item
.
uuid
)
this
.
$set
(
this
.
orderObj
,
'sceneType'
,
item
.
sceneType
)
}
catch
(
e
)
{}
...
...
@@ -733,7 +740,7 @@ export default {
},
0
)
}
else
if
(
_typeValue
.
key
===
'baseSceneCode'
)
{
// 场景名称:页面显示名称;提交时使用 code
this
.
$set
(
this
.
orderObj
,
'baseSceneCode'
,
chooseContent
.
staffName
)
this
.
$set
(
this
.
orderObj
,
'baseSceneCode'
,
chooseContent
.
name
||
chooseContent
.
staffName
)
this
.
$set
(
this
.
orderObj
,
'baseSceneCodeValue'
,
chooseContent
.
uuid
)
this
.
$set
(
this
.
orderObj
,
'sceneType'
,
chooseContent
.
sceneType
)
// 选择后保存最近选中场景(sceneType 用登录场景)
...
...
pages/boutique/tool/components/DefeatOrder.vue
View file @
d59d914
...
...
@@ -324,14 +324,14 @@ export default {
if
(
!
recentBaseSceneCode
)
return
const
MOCK_SCENE_LIST
=
[
{
uuid
:
'100101'
,
staffN
ame
:
'精品升级'
,
baseSceneCode
:
'100101'
,
sceneType
:
1
,
businessType
:
null
},
{
uuid
:
'100102'
,
staffN
ame
:
'交新车干配'
,
baseSceneCode
:
'100102'
,
sceneType
:
2
,
businessType
:
null
},
{
uuid
:
'100103'
,
staffN
ame
:
'售后众筹'
,
baseSceneCode
:
'100103'
,
sceneType
:
3
,
businessType
:
null
},
{
uuid
:
'110101'
,
staffN
ame
:
'售前会员权益升级'
,
baseSceneCode
:
'110101'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110102'
,
staffN
ame
:
'售后会员权益升级'
,
baseSceneCode
:
'110102'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110201'
,
staffN
ame
:
'售前延保'
,
baseSceneCode
:
'110201'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'110202'
,
staffN
ame
:
'售后延保'
,
baseSceneCode
:
'110202'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'120101'
,
staffN
ame
:
'二手车收车'
,
baseSceneCode
:
'120101'
,
sceneType
:
7
,
businessType
:
null
}
{
uuid
:
'100101'
,
n
ame
:
'精品升级'
,
baseSceneCode
:
'100101'
,
sceneType
:
1
,
businessType
:
null
},
{
uuid
:
'100102'
,
n
ame
:
'交新车干配'
,
baseSceneCode
:
'100102'
,
sceneType
:
2
,
businessType
:
null
},
{
uuid
:
'100103'
,
n
ame
:
'售后众筹'
,
baseSceneCode
:
'100103'
,
sceneType
:
3
,
businessType
:
null
},
{
uuid
:
'110101'
,
n
ame
:
'售前会员权益升级'
,
baseSceneCode
:
'110101'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110102'
,
n
ame
:
'售后会员权益升级'
,
baseSceneCode
:
'110102'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110201'
,
n
ame
:
'售前延保'
,
baseSceneCode
:
'110201'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'110202'
,
n
ame
:
'售后延保'
,
baseSceneCode
:
'110202'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'120101'
,
n
ame
:
'二手车收车'
,
baseSceneCode
:
'120101'
,
sceneType
:
7
,
businessType
:
null
}
]
// getSceneListWithOrder 有 Promise 缓存,不会重复发请求;接口无数据时 fallback 到 mock
const
rawList
=
await
uni
.
$api
.
equityApi
.
getSceneListWithOrder
({
...
...
@@ -342,7 +342,7 @@ export default {
const
item
=
listData
.
find
(
i
=>
String
(
i
.
baseSceneCode
||
i
.
uuid
)
===
String
(
recentBaseSceneCode
))
if
(
!
item
)
return
this
.
$set
(
this
.
orderObj
,
'baseSceneCode'
,
item
.
staffName
)
this
.
$set
(
this
.
orderObj
,
'baseSceneCode'
,
item
.
name
||
item
.
staffName
)
this
.
$set
(
this
.
orderObj
,
'baseSceneCodeValue'
,
item
.
baseSceneCode
||
item
.
uuid
)
this
.
$set
(
this
.
orderObj
,
'sceneType'
,
item
.
sceneType
)
}
catch
(
e
)
{}
...
...
@@ -467,7 +467,7 @@ export default {
this
.
$set
(
this
.
orderObj
,
'createDate'
,
dayjs
(
chooseContent
).
format
(
'YYYY-MM-DD'
))
}
else
if
(
_typeValue
.
key
===
'baseSceneCode'
)
{
// 场景名称:页面显示名称;接口参数使用 code
this
.
$set
(
this
.
orderObj
,
'baseSceneCode'
,
chooseContent
.
staffName
)
this
.
$set
(
this
.
orderObj
,
'baseSceneCode'
,
chooseContent
.
name
||
chooseContent
.
staffName
)
this
.
$set
(
this
.
orderObj
,
'baseSceneCodeValue'
,
chooseContent
.
uuid
)
this
.
$set
(
this
.
orderObj
,
'sceneType'
,
chooseContent
.
sceneType
)
// 选择后保存最近选中场景(sceneType 用登录场景)
...
...
pages/equity/tool/components/CreateOrder.vue
View file @
d59d914
...
...
@@ -217,14 +217,14 @@ export default {
if
(
!
recentBaseSceneCode
)
return
const
MOCK_SCENE_LIST
=
[
{
uuid
:
'100101'
,
staffN
ame
:
'精品升级'
,
baseSceneCode
:
'100101'
,
sceneType
:
1
,
businessType
:
null
},
{
uuid
:
'100102'
,
staffN
ame
:
'交新车干配'
,
baseSceneCode
:
'100102'
,
sceneType
:
2
,
businessType
:
null
},
{
uuid
:
'100103'
,
staffN
ame
:
'售后众筹'
,
baseSceneCode
:
'100103'
,
sceneType
:
3
,
businessType
:
null
},
{
uuid
:
'110101'
,
staffN
ame
:
'售前会员权益升级'
,
baseSceneCode
:
'110101'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110102'
,
staffN
ame
:
'售后会员权益升级'
,
baseSceneCode
:
'110102'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110201'
,
staffN
ame
:
'售前延保'
,
baseSceneCode
:
'110201'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'110202'
,
staffN
ame
:
'售后延保'
,
baseSceneCode
:
'110202'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'120101'
,
staffN
ame
:
'二手车收车'
,
baseSceneCode
:
'120101'
,
sceneType
:
7
,
businessType
:
null
}
{
uuid
:
'100101'
,
n
ame
:
'精品升级'
,
baseSceneCode
:
'100101'
,
sceneType
:
1
,
businessType
:
null
},
{
uuid
:
'100102'
,
n
ame
:
'交新车干配'
,
baseSceneCode
:
'100102'
,
sceneType
:
2
,
businessType
:
null
},
{
uuid
:
'100103'
,
n
ame
:
'售后众筹'
,
baseSceneCode
:
'100103'
,
sceneType
:
3
,
businessType
:
null
},
{
uuid
:
'110101'
,
n
ame
:
'售前会员权益升级'
,
baseSceneCode
:
'110101'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110102'
,
n
ame
:
'售后会员权益升级'
,
baseSceneCode
:
'110102'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110201'
,
n
ame
:
'售前延保'
,
baseSceneCode
:
'110201'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'110202'
,
n
ame
:
'售后延保'
,
baseSceneCode
:
'110202'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'120101'
,
n
ame
:
'二手车收车'
,
baseSceneCode
:
'120101'
,
sceneType
:
7
,
businessType
:
null
}
]
// getSceneListWithOrder 有 Promise 缓存,不会重复发请求;接口无数据时 fallback 到 mock
const
rawList
=
await
uni
.
$api
.
equityApi
.
getSceneListWithOrder
({
...
...
@@ -235,7 +235,7 @@ export default {
const
item
=
listData
.
find
(
i
=>
String
(
i
.
baseSceneCode
||
i
.
uuid
)
===
String
(
recentBaseSceneCode
))
if
(
!
item
)
return
this
.
$set
(
this
.
orderObj
,
'baseSceneCode'
,
item
.
staffName
)
this
.
$set
(
this
.
orderObj
,
'baseSceneCode'
,
item
.
name
||
item
.
staffName
)
this
.
$set
(
this
.
orderObj
,
'baseSceneCodeValue'
,
item
.
baseSceneCode
||
item
.
uuid
)
this
.
$set
(
this
.
orderObj
,
'sceneType'
,
item
.
sceneType
)
}
catch
(
e
)
{}
...
...
@@ -647,7 +647,7 @@ export default {
this
.
$set
(
this
.
orderObj
,
'city'
,
chooseContent
.
city
==
chooseContent
.
province
?
chooseContent
.
city
:
`
${
chooseContent
.
province
}
-
${
chooseContent
.
city
}
`
)
}
else
if
(
_typeValue
.
key
===
'baseSceneCode'
)
{
// 场景名称:界面显示名称;提交时使用 code
this
.
$set
(
this
.
orderObj
,
'baseSceneCode'
,
chooseContent
.
staffName
)
this
.
$set
(
this
.
orderObj
,
'baseSceneCode'
,
chooseContent
.
name
||
chooseContent
.
staffName
)
this
.
$set
(
this
.
orderObj
,
'baseSceneCodeValue'
,
chooseContent
.
uuid
)
this
.
$set
(
this
.
orderObj
,
'sceneType'
,
chooseContent
.
sceneType
)
// 选择后保存最近选中场景(sceneType 用登录场景)
...
...
pages/equity/tool/components/DefeatOrder.vue
View file @
d59d914
...
...
@@ -209,14 +209,14 @@ export default {
if
(
!
recentBaseSceneCode
)
return
const
MOCK_SCENE_LIST
=
[
{
uuid
:
'100101'
,
staffN
ame
:
'精品升级'
,
baseSceneCode
:
'100101'
,
sceneType
:
1
,
businessType
:
null
},
{
uuid
:
'100102'
,
staffN
ame
:
'交新车干配'
,
baseSceneCode
:
'100102'
,
sceneType
:
2
,
businessType
:
null
},
{
uuid
:
'100103'
,
staffN
ame
:
'售后众筹'
,
baseSceneCode
:
'100103'
,
sceneType
:
3
,
businessType
:
null
},
{
uuid
:
'110101'
,
staffN
ame
:
'售前会员权益升级'
,
baseSceneCode
:
'110101'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110102'
,
staffN
ame
:
'售后会员权益升级'
,
baseSceneCode
:
'110102'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110201'
,
staffN
ame
:
'售前延保'
,
baseSceneCode
:
'110201'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'110202'
,
staffN
ame
:
'售后延保'
,
baseSceneCode
:
'110202'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'120101'
,
staffN
ame
:
'二手车收车'
,
baseSceneCode
:
'120101'
,
sceneType
:
7
,
businessType
:
null
}
{
uuid
:
'100101'
,
n
ame
:
'精品升级'
,
baseSceneCode
:
'100101'
,
sceneType
:
1
,
businessType
:
null
},
{
uuid
:
'100102'
,
n
ame
:
'交新车干配'
,
baseSceneCode
:
'100102'
,
sceneType
:
2
,
businessType
:
null
},
{
uuid
:
'100103'
,
n
ame
:
'售后众筹'
,
baseSceneCode
:
'100103'
,
sceneType
:
3
,
businessType
:
null
},
{
uuid
:
'110101'
,
n
ame
:
'售前会员权益升级'
,
baseSceneCode
:
'110101'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110102'
,
n
ame
:
'售后会员权益升级'
,
baseSceneCode
:
'110102'
,
sceneType
:
0
,
businessType
:
1
},
{
uuid
:
'110201'
,
n
ame
:
'售前延保'
,
baseSceneCode
:
'110201'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'110202'
,
n
ame
:
'售后延保'
,
baseSceneCode
:
'110202'
,
sceneType
:
0
,
businessType
:
2
},
{
uuid
:
'120101'
,
n
ame
:
'二手车收车'
,
baseSceneCode
:
'120101'
,
sceneType
:
7
,
businessType
:
null
}
]
// getSceneListWithOrder 有 Promise 缓存,不会重复发请求;接口无数据时 fallback 到 mock
const
rawList
=
await
uni
.
$api
.
equityApi
.
getSceneListWithOrder
({
...
...
@@ -227,7 +227,7 @@ export default {
const
item
=
listData
.
find
(
i
=>
String
(
i
.
baseSceneCode
||
i
.
uuid
)
===
String
(
recentBaseSceneCode
))
if
(
!
item
)
return
this
.
$set
(
this
.
orderObj
,
'baseSceneCode'
,
item
.
staffName
)
this
.
$set
(
this
.
orderObj
,
'baseSceneCode'
,
item
.
name
||
item
.
staffName
)
this
.
$set
(
this
.
orderObj
,
'baseSceneCodeValue'
,
item
.
baseSceneCode
||
item
.
uuid
)
this
.
$set
(
this
.
orderObj
,
'sceneType'
,
item
.
sceneType
)
}
catch
(
e
)
{}
...
...
@@ -369,7 +369,7 @@ export default {
this
.
$set
(
this
.
orderObj
,
'createDate'
,
dayjs
(
chooseContent
).
format
(
'YYYY-MM-DD'
))
}
else
if
(
_typeValue
.
key
===
'baseSceneCode'
)
{
// 场景名称:页面显示名称;后续接口参数使用 sceneType/code
this
.
$set
(
this
.
orderObj
,
'baseSceneCode'
,
chooseContent
.
staffName
)
this
.
$set
(
this
.
orderObj
,
'baseSceneCode'
,
chooseContent
.
name
||
chooseContent
.
staffName
)
this
.
$set
(
this
.
orderObj
,
'baseSceneCodeValue'
,
chooseContent
.
uuid
)
this
.
$set
(
this
.
orderObj
,
'sceneType'
,
chooseContent
.
sceneType
)
// 选择后保存最近选中场景(sceneType 用登录场景)
...
...
@@ -487,6 +487,11 @@ export default {
let
{
default4SStoreInfo
}
=
this
.
userInfo
console
.
log
(
default4SStoreInfo
,
'4s店信息'
)
let
params
=
this
.
defaultMsg
// 业务场景(与新建工单一致:提交使用 code;页面展示用 name)
params
.
baseSceneCode
=
this
.
orderObj
.
baseSceneCodeValue
||
this
.
orderObj
.
baseSceneCode
if
(
this
.
orderObj
.
sceneType
!==
undefined
&&
this
.
orderObj
.
sceneType
!==
null
)
{
params
.
sceneType
=
this
.
orderObj
.
sceneType
}
params
.
owner
.
owner
=
this
.
orderObj
.
customerName
params
.
owner
.
phone
=
this
.
orderObj
.
customerPhone
params
.
owner
.
salesType
=
this
.
orderObj
.
salesType
...
...
pages/equity/tool/components/OrderCard.vue
View file @
d59d914
...
...
@@ -45,7 +45,7 @@
<view
class=
"order-list align-center"
>
<view
class=
"order flex align-center"
>
<view
class=
"order-label"
>
场景名称
</view>
<view
class=
"order-value flex"
>
{{
goodsOrderApplyStatus
[
orderCardDetail
.
approveStatus
]
||
'-'
}}
</view>
<view
class=
"order-value flex"
>
{{
orderCardDetail
.
baseSceneName
||
'-'
}}
</view>
</view>
</view>
<view
class=
"order-list align-center"
>
...
...
pages/equity/tool/contant.js
View file @
d59d914
...
...
@@ -226,6 +226,13 @@ const FORM_LIST = [
const
DEFEAT_FORM_LIST
=
[
[
{
label
:
'场景名称'
,
value
:
'baseSceneCode'
,
type
:
'select'
,
key
:
'baseSceneCode'
,
required
:
true
},
{
label
:
'战败日期'
,
value
:
'todayShow'
,
type
:
'select'
,
...
...
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