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 4d77ad19
authored
Dec 03, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat: 修改客户信息
1 parent
49d2ddc6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
415 additions
and
123 deletions
api/module/equit.js
api/module/equity.js
api/module/index.js
pages/equity/tool/components/OrderCard.vue
pages/equity/tool/components/OrderManagement.vue
pages/equity/tool/components/UpdateOrderInfo.vue
pages/equity/tool/contant.js
pages/equity/tool/index.vue
api/module/equit.js
deleted
100644 → 0
View file @
49d2ddc
import
http
from
'../request/http'
module
.
exports
=
{
/** 报价单分页列表 */
quotationPage
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page'
,
projectName
:
'boutique'
,
...
data
})
},
/** 根据id查询报价单数据 */
getQuotationInfo
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate'
,
projectName
:
'boutique'
,
...
data
})
},
/** 查询报价单信息 */
getQuotationInfoById
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.find.by.id'
,
projectName
:
'boutique'
,
...
data
})
},
/** 修改车损报价单客户基本信息信息 */
updateCustomerInfo
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.base.info.update'
,
projectName
:
'boutique'
,
...
data
})
},
/** 报价单订单分状态统计信息 */
orderStatistics
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics'
,
projectName
:
'boutique'
,
...
data
})
}
}
api/module/equity.js
View file @
4d77ad1
import
http
from
'../request/http'
import
http
from
'../request/http'
module
.
exports
=
{
module
.
exports
=
{
/**新建车损报价单 */
/**新建车损报价单 */
quotationAdd
(
data
)
{
quotationAdd
(
data
)
{
return
http
.
post
({
return
http
.
post
({
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add'
,
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.add'
,
projectName
:
'boutique'
,
projectName
:
'boutique'
,
...
@@ -12,7 +10,7 @@ module.exports = {
...
@@ -12,7 +10,7 @@ module.exports = {
})
})
},
},
/** 报价单支付订单生成(带上签名)返回订单号(商户地址) */
/** 报价单支付订单生成(带上签名)返回订单号(商户地址) */
quotationUpgrade
(
data
)
{
quotationUpgrade
(
data
)
{
return
http
.
post
({
return
http
.
post
({
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.pay.order.generate'
,
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.pay.order.generate'
,
projectName
:
'boutique'
,
projectName
:
'boutique'
,
...
@@ -20,7 +18,7 @@ module.exports = {
...
@@ -20,7 +18,7 @@ module.exports = {
})
})
},
},
// 校验订单是否需要上传合同协议
// 校验订单是否需要上传合同协议
checkZyPayFlag
(
data
)
{
checkZyPayFlag
(
data
)
{
return
http
.
post
({
return
http
.
post
({
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.check'
,
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.zyPayUrl.check'
,
projectName
:
'boutique'
,
projectName
:
'boutique'
,
...
@@ -28,9 +26,8 @@ module.exports = {
...
@@ -28,9 +26,8 @@ module.exports = {
})
})
},
},
// 查询店铺配置
// 查询店铺配置
getShopMerchantPointConfig
(
data
)
{
getShopMerchantPointConfig
(
data
)
{
return
http
.
post
({
return
http
.
post
({
method
:
'dj.api.smartcarlife.shopMerchantPointConfig.get'
,
method
:
'dj.api.smartcarlife.shopMerchantPointConfig.get'
,
projectName
:
'boutique'
,
projectName
:
'boutique'
,
...
@@ -39,7 +36,7 @@ module.exports = {
...
@@ -39,7 +36,7 @@ module.exports = {
},
},
/** 查询报价单信息 */
/** 查询报价单信息 */
getQuotationInfoById
(
data
)
{
getQuotationInfoById
(
data
)
{
return
http
.
post
({
return
http
.
post
({
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.find.by.id'
,
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.find.by.id'
,
projectName
:
'boutique'
,
projectName
:
'boutique'
,
...
@@ -64,5 +61,38 @@ module.exports = {
...
@@ -64,5 +61,38 @@ module.exports = {
...
data
...
data
})
})
},
},
/** 报价单分页列表 */
quotationPage
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.page'
,
projectName
:
'boutique'
,
...
data
})
},
/** 根据id查询报价单数据 */
getQuotationInfo
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.generate'
,
projectName
:
'boutique'
,
...
data
})
},
/** 修改车损报价单客户基本信息信息 */
updateCustomerInfo
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.customer.base.info.update'
,
projectName
:
'boutique'
,
...
data
})
},
/** 报价单订单分状态统计信息 */
orderStatistics
(
data
)
{
return
http
.
post
({
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.quotation.order.status.statistics'
,
projectName
:
'boutique'
,
...
data
})
}
}
}
api/module/index.js
View file @
4d77ad1
...
@@ -12,7 +12,6 @@ import interceptionApi from './interceptionApi'
...
@@ -12,7 +12,6 @@ import interceptionApi from './interceptionApi'
import
popupApi
from
'./popupApi'
import
popupApi
from
'./popupApi'
import
usedCarApi
from
'./usedCar'
import
usedCarApi
from
'./usedCar'
import
equityApi
from
'./equity'
import
equityApi
from
'./equity'
import
equitApi
from
'./equit'
module
.
exports
=
{
module
.
exports
=
{
commonApi
,
commonApi
,
...
@@ -28,6 +27,5 @@ module.exports = {
...
@@ -28,6 +27,5 @@ module.exports = {
evaluationApi
,
evaluationApi
,
usedCarApi
,
usedCarApi
,
activityApi
,
activityApi
,
equityApi
,
equityApi
equitApi
}
}
pages/equity/tool/components/OrderCard.vue
View file @
4d77ad1
This diff is collapsed.
Click to expand it.
pages/equity/tool/components/OrderManagement.vue
View file @
4d77ad1
...
@@ -121,9 +121,6 @@ export default {
...
@@ -121,9 +121,6 @@ export default {
this
.
localUserInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
this
.
localUserInfo
=
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
this
.
search
()
this
.
search
()
},
},
beforeDestroy
()
{
this
.
clearWaitOrderPolling
()
},
methods
:
{
methods
:
{
clear
()
{
clear
()
{
this
.
keyword
=
''
this
.
keyword
=
''
...
@@ -190,7 +187,7 @@ export default {
...
@@ -190,7 +187,7 @@ export default {
params
.
transferIds
=
[
localUserInfo
.
uuid
]
params
.
transferIds
=
[
localUserInfo
.
uuid
]
}
}
if
(
params
?.
zyPayStatus
==
'1'
)
params
.
orderStatus
=
7
if
(
params
?.
zyPayStatus
==
'1'
)
params
.
orderStatus
=
7
uni
.
$api
.
equitApi
uni
.
$api
.
equit
y
Api
.
orderStatistics
(
params
)
.
orderStatistics
(
params
)
.
then
(
result
=>
{
.
then
(
result
=>
{
const
labelList
=
[
'total'
,
'waitQuotation'
,
'waitPay'
,
'paySuccess'
,
'completed'
,
'defeat'
]
const
labelList
=
[
'total'
,
'waitQuotation'
,
'waitPay'
,
'paySuccess'
,
'completed'
,
'defeat'
]
...
@@ -263,7 +260,7 @@ export default {
...
@@ -263,7 +260,7 @@ export default {
// } else {
// } else {
// params.merchantId = storeInfo?.merchantId
// params.merchantId = storeInfo?.merchantId
// }
// }
uni
.
$api
.
equitApi
uni
.
$api
.
equit
y
Api
.
quotationPage
(
params
)
.
quotationPage
(
params
)
.
then
(
result
=>
{
.
then
(
result
=>
{
console
.
log
(
result
)
console
.
log
(
result
)
...
...
pages/equity/tool/components/UpdateOrderInfo.vue
0 → 100644
View file @
4d77ad1
<
template
>
<view
class=
"order"
>
<view
:class=
"['order-box',
{ hide: showUpload }]" :key="formKey">
<view
class=
"common-title"
>
修改客户信息
</view>
<view
class=
"box"
>
<scroll-view
class=
"scroll-view"
scroll-y=
"true"
>
<view
class=
"box-content"
>
<GlCell
:formList=
"formList"
:formData=
"orderObj"
@
radioChange=
"radioChange"
@
inputBlur=
"inputBlur"
@
handleCell=
"handleCell"
:titleList=
"titleList"
></GlCell>
</view>
<view
class=
"btns flex"
>
<view
class=
"btn save"
>
放弃
</view>
<view
@
click=
"submit"
class=
"btn"
>
提交修改
</view>
</view>
</scroll-view>
</view>
</view>
<!-- 弹窗 -->
<order-popup
ref=
"orderPopup"
:data=
"orderObj"
:dataKey=
"valueKey"
@
onConfirm=
"onConfirm"
:externalData=
"externalData"
:popupType=
"popupType"
:popupTitle=
"popupTitle"
/>
<template
v-if=
"showUpload"
>
<view
class=
"upload-box"
>
<upload-proof-of-payment
@
back=
"showUpload = false"
@
confirm=
"uploadConfirm"
/>
</view>
</
template
>
<!-- 支付弹框 -->
<OrderPay
ref=
"OrderPay"
@
jumpSuccess=
"jumpSuccess"
/>
</view>
</template>
<
script
>
import
utils
from
'@/utils/utils'
import
OrderPopup
from
'@/components/OrderPopup/index.vue'
import
GlCell
from
'../../../../components/Form/GlCell.vue'
import
Product
from
'./Product.vue'
import
Package
from
'./Package.vue'
import
SkuGoods
from
'./SkuGoods.vue'
import
{
UpdateOrderInfo
,
popupTypeEnum
,
payTypeList
,
titleList
}
from
'../contant'
import
{
interceptionMixin
}
from
'@/mixin/index'
import
UploadProofOfPayment
from
'./UploadProofOfPayment.vue'
import
dayjs
from
'dayjs'
import
OrderPay
from
'./OrderPay.vue'
import
NP
from
'number-precision'
export
default
{
name
:
'CreateOrder'
,
mixins
:
[
interceptionMixin
],
components
:
{
GlCell
,
OrderPopup
,
Product
,
Package
,
SkuGoods
,
UploadProofOfPayment
,
OrderPay
},
props
:
{
transmissionOfData
:
{
type
:
Object
,
default
:
()
=>
null
}
},
data
()
{
return
{
showUpload
:
false
,
titleList
,
formList
:
utils
.
deepClone
(
UpdateOrderInfo
),
baseConfigData
:
{},
requiredList
:
[],
// 录单设置的必填项
orderObj
:
{
owner
:
''
,
phone
:
''
,
salesType
:
0
,
carVin
:
''
,
certificateNo
:
''
,
notes
:
''
}
}
},
computed
:
{
showPayTips
()
{
return
this
.
orderObj
.
payee
==
0
&&
this
.
orderObj
.
payType
==
7
},
userInfo
()
{
return
uni
.
$storage
.
get
(
'userInfo'
)
||
{}
}
},
watch
:
{
transmissionOfData
:
{
handler
(
newVal
,
oldVal
)
{
if
(
newVal
)
{
console
.
log
(
newVal
,
'newVal'
)
}
else
{
console
.
log
(
oldVal
,
'oldVal'
)
}
}
}
},
mounted
()
{
this
.
baseConfigData
=
uni
.
$storage
.
get
(
'mock_data'
)
||
{}
this
.
initData
()
},
methods
:
{
initData
()
{
console
.
log
(
'initData'
,
this
.
transmissionOfData
)
const
{
paramsData
}
=
this
.
transmissionOfData
this
.
getQuotationInfoById
(
paramsData
.
id
)
// 埋点
// uni.$track.add({ eventCode: 'app_create_order' })
},
async
getQuotationInfoById
(
id
)
{
const
data
=
await
uni
.
$api
.
equityApi
.
getQuotationInfoById
({
id
})
console
.
log
(
data
,
'data'
)
// this.orderInfo = data
this
.
orderObj
.
id
=
id
this
.
orderObj
.
carVin
=
data
.
owner
.
carVin
this
.
orderObj
.
owner
=
data
.
owner
.
owner
this
.
orderObj
.
phone
=
data
.
owner
.
phone
this
.
orderObj
.
salesType
=
data
.
owner
.
carVin
this
.
orderObj
.
certificateNo
=
data
.
owner
.
certificateNo
this
.
orderObj
.
notes
=
data
.
notes
},
// 输入框失去焦点事件
inputBlur
(
e
,
val
)
{
console
.
log
(
e
,
val
)
this
.
orderObj
[
val
.
value
]
=
this
.
orderObj
[
val
.
value
]
},
// 校验必填等规则
checkRequired
()
{
try
{
const
phoneRex
=
/^
[
1
]([
3-9
])[
0-9
]{9}
$/
,
requiredArr
=
[],
onlyLabelItem
=
[],
{
orderObj
}
=
this
this
.
formList
.
forEach
(
group
=>
{
group
.
forEach
(
item
=>
{
if
(
item
.
required
===
true
&&
item
.
hidden
!==
true
)
{
if
(
item
.
isArray
)
onlyLabelItem
.
push
(
item
)
else
requiredArr
.
push
(
item
)
}
})
})
// 遍历requiredArr,检查orderObj中是否有对应的值
for
(
let
i
=
0
;
i
<
requiredArr
.
length
;
i
++
)
{
const
item
=
requiredArr
[
i
]
// 兼容嵌套customer对象的情况
let
value
=
orderObj
[
item
.
value
]
if
(
value
===
undefined
||
value
===
null
||
value
===
''
)
throw
`
${
item
.
label
}
不能为空`
// 如果是customerPhone,添加phoneRex校验
if
(
item
.
value
===
'phone'
&&
!
phoneRex
.
test
(
value
))
throw
`请输入正确的
${
item
.
label
}
`
}
if
(
orderObj
.
carVin
)
{
const
vinRex
=
/^
(?=
.*
[
A-Za-z
])[
A-Za-z0-9
]{17}
$/
if
(
!
vinRex
.
test
(
orderObj
.
carVin
))
throw
'请输入正确的车架号'
}
if
(
orderObj
.
certificateNo
&&
orderObj
.
certificateNo
.
length
!=
18
)
throw
'请输入正确的18位证件号'
return
true
}
catch
(
error
)
{
if
(
error
)
uni
.
showToast
({
title
:
error
,
icon
:
'none'
})
return
false
}
},
// 提交
async
submit
()
{
if
(
!
this
.
checkRequired
()
||
(
await
this
.
checkDailyReport
()))
return
let
params
=
{
id
:
this
.
orderObj
.
id
,
notes
:
this
.
orderObj
.
notes
||
''
,
owner
:
{
id
:
this
.
orderObj
.
owner
.
id
,
owner
:
this
.
owner
.
owner
,
phone
:
this
.
owner
.
phone
,
carVin
:
this
.
owner
.
carVin
||
''
,
certificateNo
:
this
.
owner
.
certificateNo
||
''
,
salesType
:
this
.
owner
.
salesType
||
0
}
}
console
.
log
(
params
,
'params'
)
uni
.
showLoading
({
title
:
'提交中...'
,
mask
:
true
})
uni
.
$api
.
equityApi
.
updateCustomerInfo
(
params
)
.
then
(
result
=>
{
uni
.
hideLoading
()
console
.
log
(
result
)
})
.
catch
(
err
=>
{
uni
.
hideLoading
()
})
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.order
{
height
:
100%
;
position
:
relative
;
&-box
{
visibility
:
visible
;
height
:
100%
;
}
.hide
{
opacity
:
0
;
visibility
:
hidden
;
}
.upload-box
{
position
:
absolute
;
left
:
0
;
top
:
0
;
width
:
100%
;
height
:
100%
;
}
}
.box
{
height
:
calc
(
100%
-
#{
toRpx
(
120
)}
);
padding-bottom
:
toRpx
(
24
);
.scroll-view
{
height
:
100%
;
}
}
.box-content
{
padding
:
0
toRpx
(
48
);
}
.total
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
padding
:
toRpx
(
24
)
toRpx
(
32
)
toRpx
(
24
)
0
;
font-size
:
toRpx
(
28
);
border-bottom
:
toRpx
(
2
)
solid
#f7f7f6
;
&-left
{
color
:
#333
;
font-weight
:
500
;
}
&
-right
{
color
:
#f24724
;
font-weight
:
500
;
}
}
.pay-tips
{
padding
:
toRpx
(
24
)
toRpx
(
24
)
toRpx
(
24
)
0
;
font-size
:
toRpx
(
24
);
color
:
#999
;
}
.btns
{
position
:
absolute
;
width
:
100%
;
bottom
:
0
;
padding
:
24
rpx
128
rpx
;
gap
:
32
rpx
;
.save
{
background
:
#3b73ff1
a
;
color
:
#4673ff
;
font-size
:
28
rpx
;
font-weight
:
500
;
}
}
.btn
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
width
:
toRpx
(
1130
);
height
:
toRpx
(
80
);
color
:
#fff
;
border-radius
:
toRpx
(
48
);
background
:
linear-gradient
(
0deg
,
#2c66f7
0%
,
#48a6ff
100%
);
}
.customer-title
{
.customer-file
{
margin-left
:
20
rpx
;
color
:
#347bff
;
font-size
:
24
rpx
;
.sprite-icon
{
margin-right
:
4
rpx
;
}
}
}
</
style
>
pages/equity/tool/contant.js
View file @
4d77ad1
...
@@ -5,15 +5,15 @@ const FORM_LIST = [
...
@@ -5,15 +5,15 @@ const FORM_LIST = [
value
:
'referrer'
,
value
:
'referrer'
,
type
:
'select'
,
type
:
'select'
,
key
:
'employeeName'
,
key
:
'employeeName'
,
required
:
true
,
required
:
true
},
},
{
{
label
:
'交付专员'
,
label
:
'交付专员'
,
value
:
'deliveryName'
,
value
:
'deliveryName'
,
type
:
'select'
,
type
:
'select'
,
required
:
true
,
required
:
true
,
key
:
'deliveryEmployeeName'
,
key
:
'deliveryEmployeeName'
}
,
}
],
],
[
[
{
{
...
@@ -93,7 +93,7 @@ const FORM_LIST = [
...
@@ -93,7 +93,7 @@ const FORM_LIST = [
value
:
'companion'
,
value
:
'companion'
,
maxlength
:
'200'
,
maxlength
:
'200'
,
type
:
'input'
type
:
'input'
}
,
}
],
],
[
[
{
{
...
@@ -101,7 +101,7 @@ const FORM_LIST = [
...
@@ -101,7 +101,7 @@ const FORM_LIST = [
value
:
'carBrandText'
,
value
:
'carBrandText'
,
type
:
'select'
,
type
:
'select'
,
key
:
'carBrand'
,
key
:
'carBrand'
,
required
:
true
,
required
:
true
},
},
{
{
label
:
'车辆颜色'
,
label
:
'车辆颜色'
,
...
@@ -128,8 +128,8 @@ const FORM_LIST = [
...
@@ -128,8 +128,8 @@ const FORM_LIST = [
value
:
'price'
,
value
:
'price'
,
maxlength
:
'8'
,
maxlength
:
'8'
,
type
:
'input'
,
type
:
'input'
,
required
:
true
,
required
:
true
}
,
}
],
],
[
[
{
{
...
@@ -140,7 +140,7 @@ const FORM_LIST = [
...
@@ -140,7 +140,7 @@ const FORM_LIST = [
addHtml
:
'skuGoods'
,
addHtml
:
'skuGoods'
,
required
:
true
,
required
:
true
,
isArray
:
true
isArray
:
true
}
,
}
],
],
[
[
{
{
...
@@ -584,11 +584,61 @@ const popupTypeEnum = {
...
@@ -584,11 +584,61 @@ const popupTypeEnum = {
key
:
'customer'
key
:
'customer'
}
}
}
}
const
titleList
=
[
const
titleList
=
[
null
,
{
addHtml
:
'customer'
},
{
name
:
'车辆信息'
},
{
name
:
'增值车损险'
},
{
name
:
'其他信息'
}]
null
,
const
UpdateOrderInfo
=
[
{
addHtml
:
'customer'
},
[
{
name
:
'车辆信息'
},
{
{
name
:
'增值车损险'
},
label
:
'车主姓名'
,
{
name
:
'其他信息'
},
value
:
'owner'
,
maxlength
:
'10'
,
type
:
'input'
,
required
:
true
},
{
label
:
'手机号'
,
value
:
'phone'
,
maxlength
:
'11'
,
inputType
:
'number'
,
type
:
'input'
,
required
:
true
},
{
label
:
'客户类型'
,
value
:
'salesType'
,
type
:
'radio'
,
current
:
0
,
radioList
:
[
{
value
:
0
,
name
:
'售前'
},
{
value
:
1
,
name
:
'售后'
}
]
},
{
label
:
'车架号(VIN码)'
,
value
:
'carVin'
,
maxlength
:
'10'
,
type
:
'input'
},
{
label
:
'身份证号'
,
value
:
'certificateNo'
,
maxlength
:
'18'
,
type
:
'input'
},
{
label
:
'订单备注'
,
value
:
'notes'
,
maxlength
:
'100'
,
type
:
'textarea'
,
placeholder
:
'请输入 (100字以内)'
,
class
:
'cell-break'
}
]
]
]
export
{
FORM_LIST
,
popupTypeEnum
,
payTypeList
,
DEFEAT_FORM_LIST
,
titleList
}
export
{
FORM_LIST
,
popupTypeEnum
,
payTypeList
,
DEFEAT_FORM_LIST
,
titleList
,
UpdateOrderInfo
}
pages/equity/tool/index.vue
View file @
4d77ad1
<
template
>
<
template
>
<view
class=
"detail-box"
>
<view
class=
"detail-box"
>
<view
class=
"nav-bar"
>
<view
class=
"nav-bar"
>
<view
<view
class=
"back"
@
click=
"backPage"
>
class=
"back"
<uni-icons
type=
"left"
:size=
"20"
color=
"#000"
></uni-icons>
@
click=
"backPage"
>
<uni-icons
type=
"left"
:size=
"20"
color=
"#000"
></uni-icons>
</view>
</view>
<view
class=
"title"
>
展业工具
</view>
<view
class=
"title"
>
展业工具
</view>
</view>
</view>
...
@@ -17,46 +10,20 @@
...
@@ -17,46 +10,20 @@
<view
class=
"detail-left"
>
<view
class=
"detail-left"
>
<view
class=
"common-title"
>
展业
</view>
<view
class=
"common-title"
>
展业
</view>
<view
class=
"content"
>
<view
class=
"content"
>
<image
<image
class=
"banner"
src=
"../../../assets/images/common/tool_banner.png"
mode=
"scaleToFill"
/>
class=
"banner"
src=
"../../../assets/images/common/tool_banner.png"
mode=
"scaleToFill"
/>
<template
v-if=
"toolComponentName !== 'DailyReport'"
>
<template
v-if=
"toolComponentName !== 'DailyReport'"
>
<Entrance
@
entranceClick=
"entranceClick"
></Entrance>
<Entrance
@
entranceClick=
"entranceClick"
></Entrance>
</
template
>
</
template
>
<
template
v-else
>
<
template
v-else
>
<uni-calendar
<uni-calendar
ref=
"calendar"
:clearDate=
"false"
:endDate=
"endDate"
:showMonth=
"false"
@
monthSwitch=
"currentMonth = `$
{$event.year}-${$event.month}`" @change="currentDate = $event.fulldate" backgroundColor="transparent" :selected="selectedDays" :date="currentDate" />
ref=
"calendar"
:clearDate=
"false"
:endDate=
"endDate"
:showMonth=
"false"
@
monthSwitch=
"currentMonth = `$
{$event.year}-${$event.month}`"
@change="currentDate = $event.fulldate"
backgroundColor="transparent"
:selected="selectedDays"
:date="currentDate"
/>
</
template
>
</
template
>
</view>
</view>
</view>
</view>
<view
class=
"detail-right"
>
<view
class=
"detail-right"
>
<component
<component
:is=
"toolComponentName"
@
jump=
"jump"
:transmission-of-data=
"transmissionOfData"
:currentDate=
"currentDate"
:currentMonth=
"currentMonth"
@
setCalendarSelected=
"selectedDays = $event"
/>
:is=
"toolComponentName"
@
jump=
"jump"
:transmission-of-data=
"transmissionOfData"
:currentDate=
"currentDate"
:currentMonth=
"currentMonth"
@
setCalendarSelected=
"selectedDays = $event"
/>
</view>
</view>
</view>
</view>
<NoticePopup
<NoticePopup
ref=
"notice"
title=
"重要提示"
text=
"当前页面暂未保存,是否确认退出"
type=
"warning"
></NoticePopup>
ref=
"notice"
title=
"重要提示"
text=
"当前页面暂未保存,是否确认退出"
type=
"warning"
></NoticePopup>
</view>
</view>
</template>
</template>
...
@@ -71,6 +38,7 @@ import UploadProofOfPayment from './components/UploadProofOfPayment.vue'
...
@@ -71,6 +38,7 @@ import UploadProofOfPayment from './components/UploadProofOfPayment.vue'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
dayjs
from
'dayjs'
import
dayjs
from
'dayjs'
import
{
interceptionMixin
}
from
'@/mixin/index'
import
{
interceptionMixin
}
from
'@/mixin/index'
import
UpdateOrderInfo
from
'./components/UpdateOrderInfo.vue'
export
default
{
export
default
{
mixins
:
[
interceptionMixin
],
mixins
:
[
interceptionMixin
],
...
@@ -82,9 +50,10 @@ export default {
...
@@ -82,9 +50,10 @@ export default {
OrderManagement
,
OrderManagement
,
NoticePopup
,
NoticePopup
,
UploadProofOfPayment
,
UploadProofOfPayment
,
OrderDetail
OrderDetail
,
UpdateOrderInfo
},
},
data
()
{
data
()
{
return
{
return
{
toolComponentName
:
''
,
toolComponentName
:
''
,
transmissionOfData
:
null
,
transmissionOfData
:
null
,
...
@@ -94,7 +63,7 @@ export default {
...
@@ -94,7 +63,7 @@ export default {
selectedDays
:
[]
selectedDays
:
[]
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
if
(
options
.
componentName
)
this
.
toolComponentName
=
options
.
componentName
if
(
options
.
componentName
)
this
.
toolComponentName
=
options
.
componentName
if
(
options
.
currentDate
)
this
.
setCurrentDate
(
options
.
currentDate
)
if
(
options
.
currentDate
)
this
.
setCurrentDate
(
options
.
currentDate
)
uni
.
$on
(
'jumpToDailyReport'
,
currentDate
=>
{
uni
.
$on
(
'jumpToDailyReport'
,
currentDate
=>
{
...
@@ -103,11 +72,11 @@ export default {
...
@@ -103,11 +72,11 @@ export default {
})
})
},
},
methods
:
{
methods
:
{
setCurrentDate
(
currentDate
)
{
setCurrentDate
(
currentDate
)
{
this
.
currentDate
=
currentDate
this
.
currentDate
=
currentDate
this
.
currentMonth
=
dayjs
(
currentDate
).
format
(
'YYYY-MM'
)
this
.
currentMonth
=
dayjs
(
currentDate
).
format
(
'YYYY-MM'
)
},
},
async
entranceClick
(
item
)
{
async
entranceClick
(
item
)
{
const
noInterceptPage
=
[
'DailyReport'
]
const
noInterceptPage
=
[
'DailyReport'
]
if
(
!
noInterceptPage
.
includes
(
item
.
name
)
&&
((
await
this
.
checkDailyReport
())
||
(
await
this
.
inspectionOfProhibitionBill
())))
return
if
(
!
noInterceptPage
.
includes
(
item
.
name
)
&&
((
await
this
.
checkDailyReport
())
||
(
await
this
.
inspectionOfProhibitionBill
())))
return
// 保存当前选择的组件信息,但不立即切换
// 保存当前选择的组件信息,但不立即切换
...
@@ -151,11 +120,11 @@ export default {
...
@@ -151,11 +120,11 @@ export default {
// 打开弹窗
// 打开弹窗
this
.
$refs
.
notice
.
open
()
this
.
$refs
.
notice
.
open
()
},
},
backPage
()
{
backPage
()
{
uni
.
navigateBack
()
uni
.
navigateBack
()
},
},
// name:跳转组件名,val:跳转参数
// name:跳转组件名,val:跳转参数
jump
(
name
,
val
)
{
jump
(
name
,
val
)
{
this
.
toolComponentName
=
name
this
.
toolComponentName
=
name
if
(
val
)
{
if
(
val
)
{
this
.
transmissionOfData
=
val
this
.
transmissionOfData
=
val
...
...
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