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 4d387ce5
authored
Dec 08, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix: 修复样式
1 parent
b68ecd63
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
175 additions
and
78 deletions
api/module/popupApi.js
api/request/http.js
assets/css/sprite.scss
assets/images/sprite.png
components/OrderPopup/components/Customer.vue
components/OrderPopup/components/DateTime.vue
components/OrderPopup/components/EmployeeList.vue
components/OrderPopup/config.js
components/OrderScreenContract/components/EmployeeList.vue
pages/equity/tool/components/DefeatOrder.vue
pages/equity/tool/components/UpdateOrderInfo.vue
pages/equity/tool/contant.js
api/module/popupApi.js
View file @
4d387ce
...
@@ -2,7 +2,7 @@ import http from '../request/http'
...
@@ -2,7 +2,7 @@ import http from '../request/http'
module
.
exports
=
{
module
.
exports
=
{
/** 销售顾问/录单员 & 交付专员 */
/** 销售顾问/录单员 & 交付专员 */
getEmployeeList
(
data
)
{
getEmployeeList
(
data
)
{
return
http
.
post
({
return
http
.
post
({
method
:
'dj.api.smartcarlife.employee.onTheJob.getByMerchantId'
,
method
:
'dj.api.smartcarlife.employee.onTheJob.getByMerchantId'
,
projectName
:
'boutique'
,
projectName
:
'boutique'
,
...
@@ -13,7 +13,7 @@ module.exports = {
...
@@ -13,7 +13,7 @@ module.exports = {
* 二级流量方
* 二级流量方
*/
*/
getDiversionMerchantRef
(
data
)
{
getDiversionMerchantRef
(
data
)
{
return
http
.
post
({
return
http
.
post
({
method
:
'dj.api.smartcarlife.diversionMerchant.getDiversionMerchantRef'
,
method
:
'dj.api.smartcarlife.diversionMerchant.getDiversionMerchantRef'
,
projectName
:
'boutique'
,
projectName
:
'boutique'
,
...
@@ -24,7 +24,7 @@ module.exports = {
...
@@ -24,7 +24,7 @@ module.exports = {
* 获取门店品牌车型
* 获取门店品牌车型
*/
*/
getMerchantCarBrandList
(
data
)
{
getMerchantCarBrandList
(
data
)
{
return
http
.
post
({
return
http
.
post
({
method
:
'dj.api.get.car.brandList'
,
method
:
'dj.api.get.car.brandList'
,
projectName
:
'boutique'
,
projectName
:
'boutique'
,
...
@@ -36,7 +36,7 @@ module.exports = {
...
@@ -36,7 +36,7 @@ module.exports = {
/***
/***
* 获取门店礼券列表
* 获取门店礼券列表
*/
*/
getMerchantCouponList
(
data
)
{
getMerchantCouponList
(
data
)
{
return
http
.
post
({
return
http
.
post
({
method
:
'dj.api.smartCarLife.merchant.coupon.list'
,
method
:
'dj.api.smartCarLife.merchant.coupon.list'
,
projectName
:
'boutique'
,
projectName
:
'boutique'
,
...
@@ -46,7 +46,7 @@ module.exports = {
...
@@ -46,7 +46,7 @@ module.exports = {
/**
/**
* 获取客户礼券列表
* 获取客户礼券列表
*/
*/
getCustomerCouponList
(
data
)
{
getCustomerCouponList
(
data
)
{
return
http
.
post
({
return
http
.
post
({
method
:
'dj.api.customer.coupon.list'
,
method
:
'dj.api.customer.coupon.list'
,
projectName
:
'boutique'
,
projectName
:
'boutique'
,
...
@@ -56,7 +56,7 @@ module.exports = {
...
@@ -56,7 +56,7 @@ module.exports = {
/**
/**
* 获取商品列表
* 获取商品列表
*/
*/
getGoodsList
(
data
)
{
getGoodsList
(
data
)
{
return
http
.
post
({
return
http
.
post
({
method
:
'dj.api.smartcarlife.selectOrderGoods.list'
,
method
:
'dj.api.smartcarlife.selectOrderGoods.list'
,
projectName
:
'boutique'
,
projectName
:
'boutique'
,
...
@@ -65,7 +65,7 @@ module.exports = {
...
@@ -65,7 +65,7 @@ module.exports = {
},
},
/**获取订单列表筛选转化人员&销售顾问 */
/**获取订单列表筛选转化人员&销售顾问 */
getOrderScreenEmployeeList
(
data
)
{
getOrderScreenEmployeeList
(
data
)
{
return
http
.
post
({
return
http
.
post
({
method
:
'dj.api.smartcarlife.employee.getByMerchantId'
,
method
:
'dj.api.smartcarlife.employee.getByMerchantId'
,
projectName
:
'boutique'
,
projectName
:
'boutique'
,
...
@@ -75,7 +75,7 @@ module.exports = {
...
@@ -75,7 +75,7 @@ module.exports = {
/**
/**
* 获取园区店配置
* 获取园区店配置
*/
*/
getYqStoreConfig
(
data
)
{
getYqStoreConfig
(
data
)
{
return
http
.
get
({
return
http
.
get
({
method
:
'dj.api.smarcarlife.yqMerchantConfig.detail'
,
method
:
'dj.api.smarcarlife.yqMerchantConfig.detail'
,
projectName
:
'boutique'
,
projectName
:
'boutique'
,
...
@@ -84,9 +84,9 @@ module.exports = {
...
@@ -84,9 +84,9 @@ module.exports = {
},
},
/**
/**
* 战败下单商品列表
* 战败下单商品列表
*
*
*/
*/
getOrderUpgradeGoodsList
(
data
)
{
getOrderUpgradeGoodsList
(
data
)
{
return
http
.
post
({
return
http
.
post
({
method
:
'dj.api.smartcarlife.orderUpgradeGoods.listByMerchantId'
,
method
:
'dj.api.smartcarlife.orderUpgradeGoods.listByMerchantId'
,
projectName
:
'boutique'
,
projectName
:
'boutique'
,
...
@@ -96,7 +96,7 @@ module.exports = {
...
@@ -96,7 +96,7 @@ module.exports = {
/**
/**
* 获取精品升级场景 太阳膜类商品部位数据
* 获取精品升级场景 太阳膜类商品部位数据
*/
*/
getPositionList
(
data
)
{
getPositionList
(
data
)
{
return
http
.
post
({
return
http
.
post
({
method
:
'dj.api.smartcarlife.goodsPosition.list'
,
method
:
'dj.api.smartcarlife.goodsPosition.list'
,
projectName
:
'boutique'
,
projectName
:
'boutique'
,
...
@@ -104,14 +104,32 @@ module.exports = {
...
@@ -104,14 +104,32 @@ module.exports = {
})
})
},
},
/**
/**
* 获取提单客户档案列表
* 获取提单客户档案列表
*
*
*/
*/
getQuotationCustomerList
(
data
)
{
getQuotationCustomerList
(
data
)
{
return
http
.
post
({
return
http
.
post
({
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.page'
,
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.page'
,
projectName
:
'boutique'
,
projectName
:
'boutique'
,
...
data
...
data
})
})
},
/**搜索订单(含套餐) */
getWorkPackageGoodsList
(
data
)
{
let
params
=
data
||
{}
params
.
sceneType
=
1
return
http
.
post
(
{
method
:
'dj.api.smartcarlife.order.search.containPackageGoods'
,
projectName
:
'boutique'
,
...
data
,
pageSize
:
10
,
pageSize
:
999999
,
statusList
:
[
1
]
},
false
,
'dj'
,
1000000
)
}
}
}
\ No newline at end of file
\ No newline at end of file
}
api/request/http.js
View file @
4d387ce
...
@@ -11,8 +11,8 @@ class Request {
...
@@ -11,8 +11,8 @@ class Request {
get
(
params
,
returnAll
=
false
,
hostType
)
{
get
(
params
,
returnAll
=
false
,
hostType
)
{
return
this
.
request
(
'GET'
,
params
,
returnAll
,
hostType
)
return
this
.
request
(
'GET'
,
params
,
returnAll
,
hostType
)
}
}
post
(
params
,
returnAll
=
false
,
hostType
)
{
post
(
params
,
returnAll
=
false
,
hostType
,
timeout
)
{
return
this
.
request
(
'POST'
,
params
,
returnAll
,
hostType
)
return
this
.
request
(
'POST'
,
params
,
returnAll
,
hostType
,
timeout
)
}
}
fetch
(
method
,
data
,
returnAll
=
true
,
hostType
)
{
fetch
(
method
,
data
,
returnAll
=
true
,
hostType
)
{
return
this
.
post
(
return
this
.
post
(
...
@@ -24,7 +24,7 @@ class Request {
...
@@ -24,7 +24,7 @@ class Request {
hostType
hostType
)
)
}
}
request
(
RequestMethods
,
params
,
returnAll
,
hostType
=
'dj'
)
{
request
(
RequestMethods
,
params
,
returnAll
,
hostType
=
'dj'
,
timeout
)
{
return
new
Promise
((
resolve
,
reject
)
=>
{
return
new
Promise
((
resolve
,
reject
)
=>
{
let
_this
=
this
let
_this
=
this
uni
.
getNetworkType
({
uni
.
getNetworkType
({
...
@@ -57,6 +57,7 @@ class Request {
...
@@ -57,6 +57,7 @@ class Request {
header
,
header
,
dataType
:
'json'
,
dataType
:
'json'
,
responseType
:
'text'
,
responseType
:
'text'
,
timeout
:
timeout
||
60000
,
success
(
response
)
{
success
(
response
)
{
/**业务代码 */
/**业务代码 */
let
{
data
,
statusCode
}
=
response
let
{
data
,
statusCode
}
=
response
...
@@ -162,4 +163,4 @@ class Request {
...
@@ -162,4 +163,4 @@ class Request {
})
})
}
}
}
}
export
default
new
Request
()
\ No newline at end of file
\ No newline at end of file
export
default
new
Request
()
assets/css/sprite.scss
View file @
4d387ce
This diff is collapsed.
Click to expand it.
assets/images/sprite.png
View file @
4d387ce
2.92 MB
|
W:
|
H:
2.92 MB
|
W:
|
H:
2-up
Swipe
Onion skin
components/OrderPopup/components/Customer.vue
View file @
4d387ce
<
template
>
<
template
>
<view
class=
"customer-list"
>
<view
class=
"customer-list"
>
<template
v-for=
"(i, index) in listData"
>
<template
v-for=
"(i, index) in listData"
>
<view
<view
:key=
"index"
@
click=
"choose(i)"
:class=
"['item flex',
{ active: checkActive(i) }]">
:key=
"index"
@
click=
"choose(i)"
:class=
"['item flex',
{ active: checkActive(i) }]"
>
<view
class=
"sprite-icon icon-tag-checked"
></view>
<view
class=
"sprite-icon icon-tag-checked"
></view>
<template
v-if=
"i.customerName"
>
<template
v-if=
"i.customerName
|| (i.customer && i.customer.customerName)
"
>
{{
i
.
customerName
}}
{{
i
.
customerName
||
(
i
.
customer
&&
i
.
customer
.
customerName
)
}}
</
template
>
</
template
>
<
template
v-if=
"i.carSeriesName"
>
<
template
v-if=
"i.carSeriesName
|| i.carType
"
>
<view
class=
"car-model"
>
(
{{
i
.
carChildsBrandName
||
''
}}
-
{{
i
.
carSeriesName
}}
)
</view>
<view
class=
"car-model"
>
(
{{
i
.
carType
?
i
.
carType
:
i
.
carChildsBrandName
+
'-'
+
i
.
carSeriesName
||
''
}}
)
</view>
</
template
>
</
template
>
<
template
v-if=
"i.customerPhone"
>
<
template
v-if=
"i.customerPhone
|| i.customer.customerPhone
"
>
<view
class=
"phone"
>
|
{{
i
.
customerPhone
}}
</view>
<view
class=
"phone"
>
|
{{
i
.
customerPhone
||
(
i
.
customer
&&
i
.
customer
.
customerPhone
)
}}
</view>
</
template
>
</
template
>
</view>
</view>
</template>
</template>
...
@@ -27,14 +23,14 @@ export default {
...
@@ -27,14 +23,14 @@ export default {
mixins
:
[
popupmixin
],
mixins
:
[
popupmixin
],
name
:
'Customer'
,
name
:
'Customer'
,
inject
:
[
'userInfo'
],
inject
:
[
'userInfo'
],
data
()
{
data
()
{
return
{
return
{
}
}
},
},
mounted
()
{
mounted
()
{
},
},
methods
:
{
methods
:
{
async
getList
(
searchValue
,
search
)
{
async
getList
(
searchValue
,
search
)
{
const
{
userInfo
,
params
}
=
this
,
const
{
userInfo
,
params
}
=
this
,
{
cacheData
}
=
params
{
cacheData
}
=
params
this
.
currentId
=
''
this
.
currentId
=
''
...
@@ -50,30 +46,48 @@ export default {
...
@@ -50,30 +46,48 @@ export default {
currentPage
:
1
,
currentPage
:
1
,
search
:
searchValue
search
:
searchValue
}
}
const
{
list
}
=
await
uni
.
$api
.
popupApi
.
getQuotationCustomerList
(
apiParams
)
let
apiTargetName
=
!
params
.
defeat
?
'getQuotationCustomerList'
:
'getWorkPackageGoodsList'
this
.
updateParams
(
params
,
list
||
[])
console
.
log
(
apiTargetName
,
'apiTargetName'
)
const
{
list
}
=
await
uni
.
$api
.
popupApi
[
apiTargetName
](
apiParams
)
let
customerList
=
list
if
(
params
.
defeat
)
{
const
listArray
=
list
.
map
(
item
=>
{
if
(
item
.
customer
&&
item
.
customer
.
carSeriesName
)
{
item
.
carType
=
`
${
item
.
customer
.
carBrand
||
''
}
-
${
item
.
customer
.
carChildsBrandName
||
''
}
-
${
item
.
customer
.
carSeriesName
||
''
}
`
}
return
item
})
customerList
=
listArray
}
console
.
log
(
customerList
,
'customerList'
)
this
.
updateParams
(
params
,
customerList
||
[])
},
},
initData
(
list
)
{
initData
(
list
)
{
const
{
params
:
{
idKey
},
data
}
=
this
const
{
params
:
{
idKey
,
defeat
},
data
}
=
this
let
key
=
defeat
?
'id'
:
'customerPhone'
console
.
log
(
data
,
idKey
)
if
(
data
[
idKey
])
{
if
(
data
[
idKey
])
{
this
.
currentId
=
data
[
idKey
]
this
.
currentId
=
data
[
idKey
]
let
item
=
list
.
find
(
i
=>
i
.
customerPhone
==
this
.
currentId
)
let
item
=
list
.
find
(
i
=>
i
[
key
]
==
this
.
currentId
)
this
.
$emit
(
'choose'
,
item
)
this
.
$emit
(
'choose'
,
item
)
}
}
this
.
list
=
list
this
.
list
=
list
this
.
$emit
(
'onComplete'
)
this
.
$emit
(
'onComplete'
)
},
},
handleSearch
(
searchValue
)
{
handleSearch
(
searchValue
)
{
this
.
list
=
[]
this
.
list
=
[]
this
.
getList
(
searchValue
,
true
)
this
.
getList
(
searchValue
,
true
)
},
},
choose
(
i
)
{
choose
(
i
)
{
this
.
currentId
=
i
.
customerPhone
let
{
params
}
=
this
let
key
=
params
.
defeat
?
'id'
:
'customerPhone'
this
.
currentId
=
i
[
key
]
this
.
$emit
(
'choose'
,
i
)
this
.
$emit
(
'choose'
,
i
)
},
},
checkActive
(
i
)
{
checkActive
(
i
)
{
let
{
currentId
,
data
,
params
}
=
this
let
{
currentId
,
data
,
params
}
=
this
return
currentId
?
i
.
customerPhone
==
currentId
:
i
.
customerPhone
==
data
[
params
.
idKey
]
let
key
=
params
.
defeat
?
'id'
:
'customerPhone'
return
currentId
?
(
i
[
key
]
==
currentId
)
:
(
i
[
key
])
==
data
[
params
.
idKey
]
}
}
}
}
}
}
...
@@ -85,6 +99,7 @@ export default {
...
@@ -85,6 +99,7 @@ export default {
grid-template-columns
:
repeat
(
2
,
1
fr
);
grid-template-columns
:
repeat
(
2
,
1
fr
);
gap
:
toRpx
(
32
);
gap
:
toRpx
(
32
);
margin
:
0
toRpx
(
48
);
margin
:
0
toRpx
(
48
);
.item
{
.item
{
justify-content
:
center
;
justify-content
:
center
;
height
:
toRpx
(
72
);
height
:
toRpx
(
72
);
...
@@ -94,6 +109,7 @@ export default {
...
@@ -94,6 +109,7 @@ export default {
position
:
relative
;
position
:
relative
;
color
:
#333333
;
color
:
#333333
;
font-size
:
toRpx
(
32
);
font-size
:
toRpx
(
32
);
.sprite-icon
{
.sprite-icon
{
display
:
none
;
display
:
none
;
position
:
absolute
;
position
:
absolute
;
...
@@ -101,10 +117,12 @@ export default {
...
@@ -101,10 +117,12 @@ export default {
right
:
0
;
right
:
0
;
}
}
}
}
.active
{
.active
{
border-color
:
#2c66f7
;
border-color
:
#2c66f7
;
background
:
#ecf1ff
;
background
:
#ecf1ff
;
color
:
#2c66f7
;
color
:
#2c66f7
;
.sprite-icon
{
.sprite-icon
{
display
:
block
;
display
:
block
;
}
}
...
...
components/OrderPopup/components/DateTime.vue
View file @
4d387ce
...
@@ -127,6 +127,7 @@ export default {
...
@@ -127,6 +127,7 @@ export default {
const
{
days
}
=
this
const
{
days
}
=
this
const
{
value
}
=
e
.
detail
const
{
value
}
=
e
.
detail
const
index
=
value
[
0
]
const
index
=
value
[
0
]
console
.
log
(
days
[
index
],
days
,
index
)
this
.
currentDate
=
days
[
index
]
this
.
currentDate
=
days
[
index
]
// 选择过去时间需要重新初始化时分
// 选择过去时间需要重新初始化时分
const
today
=
dayjs
().
format
(
'YYYY/MM/DD'
)
const
today
=
dayjs
().
format
(
'YYYY/MM/DD'
)
...
@@ -175,6 +176,7 @@ export default {
...
@@ -175,6 +176,7 @@ export default {
this
.
minutes
=
minutes
this
.
minutes
=
minutes
},
},
getResult
()
{
getResult
()
{
console
.
log
(
this
.
currentDate
,
this
.
currentHour
,
this
.
currentMinute
)
let
str
=
''
let
str
=
''
str
=
this
.
currentDate
+
' '
+
this
.
currentHour
+
':'
+
this
.
currentMinute
+
":00"
str
=
this
.
currentDate
+
' '
+
this
.
currentHour
+
':'
+
this
.
currentMinute
+
":00"
const
result
=
dayjs
(
str
).
format
(
'YYYY/MM/DD HH:mm:ss'
)
const
result
=
dayjs
(
str
).
format
(
'YYYY/MM/DD HH:mm:ss'
)
...
...
components/OrderPopup/components/EmployeeList.vue
View file @
4d387ce
...
@@ -50,7 +50,7 @@ export default {
...
@@ -50,7 +50,7 @@ export default {
},
},
initData
(
list
)
{
initData
(
list
)
{
const
{
idKey
,
data
}
=
this
const
{
idKey
,
data
}
=
this
console
.
log
(
idKey
)
console
.
log
(
idKey
,
data
)
if
(
data
[
idKey
])
{
if
(
data
[
idKey
])
{
this
.
currentId
=
data
[
idKey
]
this
.
currentId
=
data
[
idKey
]
let
item
=
list
.
find
(
i
=>
i
.
uuid
==
this
.
currentId
)
let
item
=
list
.
find
(
i
=>
i
.
uuid
==
this
.
currentId
)
...
...
components/OrderPopup/config.js
View file @
4d387ce
...
@@ -20,6 +20,7 @@
...
@@ -20,6 +20,7 @@
* 17:所在城市
* 17:所在城市
* 18: 座位数
* 18: 座位数
* 19: 客户档案
* 19: 客户档案
* 20: 战败客户档案
*/
*/
const
componentConfig
=
{
const
componentConfig
=
{
...
@@ -184,7 +185,7 @@ const componentConfig = {
...
@@ -184,7 +185,7 @@ const componentConfig = {
15
:
{
15
:
{
name
:
'GoodsCategory'
,
name
:
'GoodsCategory'
,
title
:
'选择商品类目'
,
title
:
'选择商品类目'
,
hideSearch
:
true
,
hideSearch
:
true
,
loadComplete
:
false
loadComplete
:
false
},
},
...
@@ -225,6 +226,19 @@ const componentConfig = {
...
@@ -225,6 +226,19 @@ const componentConfig = {
loadComplete
:
false
,
loadComplete
:
false
,
searchValue
:
''
,
searchValue
:
''
,
noData
:
false
noData
:
false
},
20
:
{
name
:
'Customer'
,
title
:
'客户档案'
,
loadComplete
:
false
,
placeholder
:
'查找'
,
nullTips
:
'请选择客户'
,
idKey
:
'id'
,
cacheData
:
[],
loadComplete
:
false
,
searchValue
:
''
,
noData
:
false
,
defeat
:
true
}
}
}
}
export
default
{
componentConfig
}
export
default
{
componentConfig
}
components/OrderScreenContract/components/EmployeeList.vue
View file @
4d387ce
<
template
>
<
template
>
<view
class=
"employee-list"
>
<view
class=
"employee-list"
>
<view
<view
@
click=
"currentIds = []"
:class=
"['item flex',
{ active: !currentIds.length }]">
@
click=
"currentIds = []"
:class=
"['item flex',
{active:!currentIds.length}]"
>
<view
class=
"sprite-icon icon-tag-checked"
></view>
<view
class=
"sprite-icon icon-tag-checked"
></view>
全部
全部
</view>
</view>
<template
v-for=
"(i, index) in list"
>
<template
v-for=
"(i, index) in list"
>
<view
<view
:key=
"index"
@
click=
"choose(i)"
:class=
"['item flex',
{ active: checkActive(i) }]">
:key=
"index"
@
click=
"choose(i)"
:class=
"['item flex',
{active:checkActive(i)}]"
>
<view
class=
"sprite-icon icon-tag-checked"
></view>
<view
class=
"sprite-icon icon-tag-checked"
></view>
{{
i
.
staffName
}}
{{
i
.
staffName
}}
</view>
</view>
</
template
>
</
template
>
</view>
</view>
</template>
</template>
<
script
type=
'text/ecmascript-6'
>
<
script
type=
"text/ecmascript-6"
>
export
default
{
export
default
{
name
:
'EmployeeList'
,
name
:
'EmployeeList'
,
inject
:
[
'userInfo'
],
inject
:
[
'userInfo'
],
...
@@ -59,8 +52,8 @@ export default {
...
@@ -59,8 +52,8 @@ export default {
}
}
const
{
shopMerchantId
,
sceneType
,
merchantId
}
=
userInfo
,
const
{
shopMerchantId
,
sceneType
,
merchantId
}
=
userInfo
,
data
=
await
uni
.
$api
.
popupApi
.
getOrderScreenEmployeeList
({
data
=
await
uni
.
$api
.
popupApi
.
getOrderScreenEmployeeList
({
merchantId
:
params
.
idKey
==
'
sellerUserIdList
'
?
merchantId
:
shopMerchantId
,
merchantId
:
params
.
idKey
==
'
transferIds
'
?
merchantId
:
shopMerchantId
,
sceneList
:
params
.
idKey
==
'
sellerUserIdList
'
?
''
:
[
sceneType
]
sceneList
:
params
.
idKey
==
'
transferIds
'
?
''
:
[
sceneType
]
})
})
if
(
data
&&
data
.
length
)
{
if
(
data
&&
data
.
length
)
{
this
.
initList
(
data
)
this
.
initList
(
data
)
...
@@ -97,7 +90,7 @@ export default {
...
@@ -97,7 +90,7 @@ export default {
}
}
</
script
>
</
script
>
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
"scss"
>
.employee-list
{
.employee-list
{
display
:
grid
;
display
:
grid
;
grid-template-columns
:
repeat
(
6
,
1
fr
);
grid-template-columns
:
repeat
(
6
,
1
fr
);
...
@@ -128,4 +121,4 @@ export default {
...
@@ -128,4 +121,4 @@ export default {
}
}
}
}
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
</
style
>
pages/equity/tool/components/DefeatOrder.vue
View file @
4d387ce
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
class=
"customer-file flex"
class=
"customer-file flex"
@
click=
"
@
click=
"
handleCell(
{
handleCell(
{
key: 'c
ustomer'
value: 'defeatC
ustomer'
})
})
"
"
>
>
...
@@ -30,9 +30,13 @@
...
@@ -30,9 +30,13 @@
</
template
>
</
template
>
</GlCell>
</GlCell>
</view>
</view>
<view
@
click
.
stop=
"submit"
class=
"btn"
>
战败下单
</view>
</scroll-view>
</scroll-view>
<view
class=
"btns flex"
>
<view
@
click
.
stop=
"submit('reload')"
class=
"btn save"
>
提交后继续添加
</view>
<view
@
click
.
stop=
"submit"
class=
"btn"
>
战败下单
</view>
</view>
</view>
</view>
<!-- 弹窗 -->
<!-- 弹窗 -->
<order-popup
ref=
"orderPopup"
:data=
"orderObj"
:dataKey=
"valueKey"
:isDefeatOrder=
"true"
@
onConfirm=
"onConfirm"
:externalData=
"externalData"
:popupType=
"popupType"
/>
<order-popup
ref=
"orderPopup"
:data=
"orderObj"
:dataKey=
"valueKey"
:isDefeatOrder=
"true"
@
onConfirm=
"onConfirm"
:externalData=
"externalData"
:popupType=
"popupType"
/>
</view>
</view>
...
@@ -200,6 +204,19 @@ export default {
...
@@ -200,6 +204,19 @@ export default {
this
.
initData
()
this
.
initData
()
},
},
methods
:
{
methods
:
{
resetParams
()
{
// 重置表单数据
this
.
orderObj
=
{
deafeatReason
:
''
,
customerName
:
''
,
customerPhone
:
''
,
salesType
:
0
}
// 重置表单列表
this
.
formList
=
utils
.
deepClone
(
DEFEAT_FORM_LIST
)
this
.
initData
()
},
async
initData
()
{
async
initData
()
{
const
{
userInfo
}
=
this
const
{
userInfo
}
=
this
console
.
log
(
this
.
orderObj
,
'this.orderObj'
)
console
.
log
(
this
.
orderObj
,
'this.orderObj'
)
...
@@ -236,7 +253,7 @@ export default {
...
@@ -236,7 +253,7 @@ export default {
// 获取当前选中的popupType
// 获取当前选中的popupType
console
.
log
(
val
,
'val'
)
console
.
log
(
val
,
'val'
)
console
.
log
(
this
.
popupTypeEnum
,
'this.popupTypeEnum'
)
console
.
log
(
this
.
popupTypeEnum
,
'this.popupTypeEnum'
)
this
.
popupType
=
Object
.
keys
(
this
.
popupTypeEnum
).
find
(
key
=>
this
.
popupTypeEnum
[
key
].
key
===
val
.
key
)
*
1
this
.
popupType
=
Object
.
keys
(
this
.
popupTypeEnum
).
find
(
key
=>
this
.
popupTypeEnum
[
key
].
key
===
val
.
value
)
*
1
// 获取对应的list字段
// 获取对应的list字段
const
popupConfig
=
this
.
popupTypeEnum
[
this
.
popupType
]
const
popupConfig
=
this
.
popupTypeEnum
[
this
.
popupType
]
if
(
popupConfig
&&
popupConfig
.
list
)
{
if
(
popupConfig
&&
popupConfig
.
list
)
{
...
@@ -278,6 +295,7 @@ export default {
...
@@ -278,6 +295,7 @@ export default {
console
.
log
(
res
,
'上一个订单的销售顾问信息'
)
console
.
log
(
res
,
'上一个订单的销售顾问信息'
)
this
.
$set
(
this
.
orderObj
,
'employeeName'
,
res
.
employeeName
)
this
.
$set
(
this
.
orderObj
,
'employeeName'
,
res
.
employeeName
)
this
.
orderObj
.
userId
=
res
.
userId
this
.
orderObj
.
userId
=
res
.
userId
this
.
orderObj
.
referrerId
=
res
.
userId
console
.
log
(
res
,
'上一个订单的销售顾问信息'
)
console
.
log
(
res
,
'上一个订单的销售顾问信息'
)
},
},
// 单选框change事件
// 单选框change事件
...
@@ -303,11 +321,19 @@ export default {
...
@@ -303,11 +321,19 @@ export default {
// 根据popupTypeEnum优化处理
// 根据popupTypeEnum优化处理
const
_typeValue
=
this
.
popupTypeEnum
[
this
.
popupType
]
const
_typeValue
=
this
.
popupTypeEnum
[
this
.
popupType
]
console
.
log
(
_typeValue
)
console
.
log
(
_typeValue
)
if
(
_typeValue
.
key
==
'todayShow'
)
{
const
weeks
=
[
'星期日'
,
'星期一'
,
'星期二'
,
'星期三'
,
'星期四'
,
'星期五'
,
'星期六'
]
this
.
$set
(
this
.
orderObj
,
'todayShow'
,
dayjs
(
chooseContent
).
format
(
'YYYY-MM-DD'
)
+
' '
+
weeks
[
dayjs
(
chooseContent
).
day
()])
this
.
$set
(
this
.
orderObj
,
'createDate'
,
dayjs
(
chooseContent
).
format
(
'YYYY-MM-DD'
))
}
else
if
(
_typeValue
.
key
)
{
this
.
orderObj
[
_typeValue
.
targetIdKey
]
=
chooseContent
[
_typeValue
.
sourceIdKey
]
this
.
$set
(
this
.
orderObj
,
_typeValue
.
targetNameKey
,
chooseContent
[
_typeValue
.
sourceNameKey
])
}
// 定义产品相关字段数组
// 定义产品相关字段数组
if
(
val
.
popupType
==
19
)
{
if
(
val
.
popupType
==
20
)
{
console
.
log
(
chooseContent
,
'chooseContent'
)
console
.
log
(
chooseContent
,
'chooseContent'
)
this
.
orderObj
.
customerName
=
chooseContent
.
customerName
this
.
orderObj
.
customerName
=
chooseContent
.
customer
.
customer
Name
this
.
orderObj
.
customerPhone
=
chooseContent
.
customerPhone
this
.
orderObj
.
customerPhone
=
chooseContent
.
customer
.
customer
Phone
}
}
if
(
val
.
popupType
==
0
)
{
if
(
val
.
popupType
==
0
)
{
console
.
log
(
chooseContent
,
'chooseContent'
)
console
.
log
(
chooseContent
,
'chooseContent'
)
...
@@ -394,7 +420,7 @@ export default {
...
@@ -394,7 +420,7 @@ export default {
},
},
// 提交
// 提交
submit
:
debounce
(
async
function
()
{
submit
:
debounce
(
async
function
(
type
)
{
// 校验是否填写昨日日报
// 校验是否填写昨日日报
let
staffCheck
=
await
checkDailyReport
()
let
staffCheck
=
await
checkDailyReport
()
if
(
staffCheck
)
return
false
if
(
staffCheck
)
return
false
...
@@ -424,7 +450,11 @@ export default {
...
@@ -424,7 +450,11 @@ export default {
title
:
'保存成功'
,
title
:
'保存成功'
,
icon
:
'success'
icon
:
'success'
})
})
this
.
$emit
(
'jump'
,
'OrderManagement'
)
if
(
type
==
'reload'
)
{
this
.
resetParams
()
}
else
{
this
.
$emit
(
'jump'
,
'OrderManagement'
)
}
}
}
},
300
),
},
300
),
...
@@ -651,7 +681,7 @@ export default {
...
@@ -651,7 +681,7 @@ export default {
.box
{
.box
{
height
:
calc
(
100%
-
#{
toRpx
(
120
)}
);
height
:
calc
(
100%
-
#{
toRpx
(
120
)}
);
padding-bottom
:
toRpx
(
24
);
padding-bottom
:
toRpx
(
24
);
position
:
relative
;
.scroll-view
{
.scroll-view
{
height
:
100%
;
height
:
100%
;
}
}
...
@@ -859,13 +889,26 @@ export default {
...
@@ -859,13 +889,26 @@ export default {
}
}
.defeat-order
::v-deep
.cell-value
.textarea
{
.defeat-order
::v-deep
.cell-value
.textarea
{
margin-bottom
:
0
;
margin-bottom
:
0
;
height
:
toRpx
(
192
);
}
.btns
{
padding
:
24
rpx
128
rpx
;
gap
:
32
rpx
;
position
:
absolute
;
bottom
:
0
;
width
:
100%
;
left
:
0
;
.save
{
background
:
#3b73ff1
a
;
color
:
#4673ff
;
font-size
:
28
rpx
;
font-weight
:
500
;
}
}
}
.btn
{
.btn
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
margin
:
toRpx
(
88
)
auto
0
;
width
:
toRpx
(
1130
);
width
:
toRpx
(
1130
);
height
:
toRpx
(
80
);
height
:
toRpx
(
80
);
color
:
#fff
;
color
:
#fff
;
...
...
pages/equity/tool/components/UpdateOrderInfo.vue
View file @
4d387ce
<
template
>
<
template
>
<view
class=
"order"
>
<view
class=
"order"
>
<view
:class=
"['order-box',
{ hide: showUpload }]"
:key="formKey"
>
<view
:class=
"['order-box',
{ hide: showUpload }]">
<view
class=
"common-title"
>
修改客户信息
</view>
<view
class=
"common-title"
>
修改客户信息
</view>
<view
class=
"box"
>
<view
class=
"box"
>
<scroll-view
class=
"scroll-view"
scroll-y=
"true"
>
<scroll-view
class=
"scroll-view"
scroll-y=
"true"
>
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
</view>
</view>
</view>
</view>
<!-- 弹窗 -->
<!-- 弹窗 -->
<
order-popup
ref=
"orderPopup"
:data=
"orderObj"
:dataKey=
"valueKey"
@
onConfirm=
"onConfirm"
:externalData=
"externalData"
:popupType=
"popupType"
:popupTitle=
"popupTitle"
/
>
<
!--
<order-popup
ref=
"orderPopup"
:data=
"orderObj"
:dataKey=
"valueKey"
@
onConfirm=
"onConfirm"
:externalData=
"externalData"
:popupType=
"popupType"
:popupTitle=
"popupTitle"
/>
--
>
<template
v-if=
"showUpload"
>
<template
v-if=
"showUpload"
>
<view
class=
"upload-box"
>
<view
class=
"upload-box"
>
<upload-proof-of-payment
@
back=
"showUpload = false"
@
confirm=
"uploadConfirm"
/>
<upload-proof-of-payment
@
back=
"showUpload = false"
@
confirm=
"uploadConfirm"
/>
...
@@ -29,7 +29,7 @@
...
@@ -29,7 +29,7 @@
<
script
>
<
script
>
import
utils
from
'@/utils/utils'
import
utils
from
'@/utils/utils'
import
OrderPopup
from
'@/components/OrderPopup/index.vue'
//
import OrderPopup from '@/components/OrderPopup/index.vue'
import
GlCell
from
'../../../../components/Form/GlCell.vue'
import
GlCell
from
'../../../../components/Form/GlCell.vue'
import
{
UpdateOrderInfo
,
popupTypeEnum
,
payTypeList
,
titleList
}
from
'../contant'
import
{
UpdateOrderInfo
,
popupTypeEnum
,
payTypeList
,
titleList
}
from
'../contant'
import
{
interceptionMixin
}
from
'@/mixin/index'
import
{
interceptionMixin
}
from
'@/mixin/index'
...
@@ -44,7 +44,7 @@ export default {
...
@@ -44,7 +44,7 @@ export default {
mixins
:
[
interceptionMixin
],
mixins
:
[
interceptionMixin
],
components
:
{
components
:
{
GlCell
,
GlCell
,
OrderPopup
,
//
OrderPopup,
UploadProofOfPayment
,
UploadProofOfPayment
,
OrderPay
,
OrderPay
,
NoticePopup
NoticePopup
...
@@ -60,7 +60,9 @@ export default {
...
@@ -60,7 +60,9 @@ export default {
showUpload
:
false
,
showUpload
:
false
,
titleList
,
titleList
,
formList
:
utils
.
deepClone
(
UpdateOrderInfo
),
formList
:
utils
.
deepClone
(
UpdateOrderInfo
),
valueKey
:
''
,
externalData
:
[],
popupType
:
0
,
baseConfigData
:
{},
baseConfigData
:
{},
requiredList
:
[],
// 录单设置的必填项
requiredList
:
[],
// 录单设置的必填项
orderObj
:
{
orderObj
:
{
...
@@ -163,7 +165,6 @@ export default {
...
@@ -163,7 +165,6 @@ export default {
}
}
},
},
// 提交
// 提交
async
submit
()
{
async
submit
()
{
if
(
!
this
.
checkRequired
()
||
(
await
this
.
checkDailyReport
()))
return
if
(
!
this
.
checkRequired
()
||
(
await
this
.
checkDailyReport
()))
return
let
params
=
{
let
params
=
{
...
@@ -216,6 +217,10 @@ export default {
...
@@ -216,6 +217,10 @@ export default {
]
]
// 打开弹窗
// 打开弹窗
this
.
$refs
.
notice
.
open
()
this
.
$refs
.
notice
.
open
()
},
radioChange
(
val
)
{
console
.
log
(
val
)
this
.
orderObj
.
salesType
=
val
.
detail
.
value
}
}
}
}
}
}
...
...
pages/equity/tool/contant.js
View file @
4d387ce
...
@@ -387,6 +387,9 @@ const popupTypeEnum = {
...
@@ -387,6 +387,9 @@ const popupTypeEnum = {
},
},
19
:
{
19
:
{
key
:
'customer'
key
:
'customer'
},
20
:
{
key
:
'defeatCustomer'
}
}
}
}
const
titleList
=
[
null
,
{
addHtml
:
'customer'
},
{
name
:
'车辆信息'
},
{
name
:
'增值车损险'
},
{
name
:
'其他信息'
}]
const
titleList
=
[
null
,
{
addHtml
:
'customer'
},
{
name
:
'车辆信息'
},
{
name
:
'增值车损险'
},
{
name
:
'其他信息'
}]
...
...
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