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 90a2c2e3
authored
Dec 11, 2025
by
cen
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
Merge branch 'SAAS+V5.5.0' of
http://192.168.3.233:8090/glsx/gl_tape
into SAAS+V5.5.0
2 parents
4f31d228
15785f69
Show whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
326 additions
and
90 deletions
api/module/equity.js
components/OrderPopup/components/CarBrand.vue
components/OrderPopup/components/City.vue
pages/equity/tool/components/CreateEquity.vue
pages/equity/tool/components/EquityForm/EquityConversion.vue
pages/equity/tool/components/EquityForm/EquityGoods.vue
pages/equity/tool/components/EquityForm/EquityTire.vue
pages/equity/tool/components/EquityForm/EquityUpload.vue
pages/equity/tool/components/EquityForm/EquityVinCheck.vue
pages/equity/tool/contant.js
api/module/equity.js
View file @
90a2c2e
...
@@ -243,6 +243,6 @@ module.exports = {
...
@@ -243,6 +243,6 @@ module.exports = {
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.add'
,
method
:
'dj.api.smartcarlife.vehicle.damage.upgrade.equityOrder.add'
,
projectName
:
'boutique'
,
projectName
:
'boutique'
,
...
data
...
data
})
}
,
true
)
},
},
}
}
components/OrderPopup/components/CarBrand.vue
View file @
90a2c2e
...
@@ -29,9 +29,15 @@
...
@@ -29,9 +29,15 @@
:class=
"['sub-brand-name']"
:class=
"['sub-brand-name']"
>
>
<view
<view
class=
"subtitle subtitle-one"
class=
"subtitle subtitle-one
flex
"
@
click
.
stop=
"chooseSubBrand(j, c , jindex, cindex, index)"
@
click
.
stop=
"chooseSubBrand(j, c , jindex, cindex, index)"
>
{{
j
.
name
}}
</view>
>
{{
j
.
name
}}
<uni-icons
:type=
"`$
{j.children
&&
j.children.length?'down':'right'}`"
size="18"
>
</uni-icons>
</view>
</view>
</view>
<template
v-for=
"(k,kindex) in j.children"
>
<template
v-for=
"(k,kindex) in j.children"
>
...
@@ -40,9 +46,15 @@
...
@@ -40,9 +46,15 @@
:key=
"`$
{k.id}_${kindex}`"
:key=
"`$
{k.id}_${kindex}`"
>
>
<view
<view
class=
"subtitle subtitle-two"
class=
"subtitle subtitle-two
flex
"
@
click
.
stop=
"chooseSeries(k,jindex, cindex, index ,kindex)"
@
click
.
stop=
"chooseSeries(k,jindex, cindex, index ,kindex)"
>
{{
k
.
name
}}
</view>
>
{{
k
.
name
}}
<uni-icons
:type=
"`$
{k.children
&&
k.children.length?'down':'right'}`"
size="18"
>
</uni-icons>
</view>
<template
v-for=
"(s,sindex) in k.children"
>
<template
v-for=
"(s,sindex) in k.children"
>
<view
<view
:class=
"['item flex',
{active: checkActive(s)}]"
:class=
"['item flex',
{active: checkActive(s)}]"
...
@@ -172,6 +184,7 @@ export default {
...
@@ -172,6 +184,7 @@ export default {
}
}
},
},
async
chooseSubBrand
(
that
,
item
,
jindex
,
cindex
,
index
)
{
async
chooseSubBrand
(
that
,
item
,
jindex
,
cindex
,
index
)
{
if
(
that
.
children
&&
that
.
children
.
length
)
return
uni
.
showLoading
({
uni
.
showLoading
({
mask
:
true
mask
:
true
})
})
...
@@ -184,6 +197,7 @@ export default {
...
@@ -184,6 +197,7 @@ export default {
this
.
viewKey
=
Date
.
now
()
this
.
viewKey
=
Date
.
now
()
},
},
async
chooseSeries
(
k
,
jindex
,
cindex
,
index
,
kindex
)
{
async
chooseSeries
(
k
,
jindex
,
cindex
,
index
,
kindex
)
{
if
(
k
.
children
&&
k
.
children
.
length
)
return
uni
.
showLoading
({
uni
.
showLoading
({
mask
:
true
mask
:
true
})
})
...
@@ -260,6 +274,7 @@ export default {
...
@@ -260,6 +274,7 @@ export default {
line-height
:
toRpx
(
40
);
line-height
:
toRpx
(
40
);
width
:
100%
;
width
:
100%
;
flex-shrink
:
0
;
flex-shrink
:
0
;
border-bottom
:
toRpx
(
2
)
solid
#888
;
}
}
}
}
}
}
...
@@ -275,11 +290,11 @@ export default {
...
@@ -275,11 +290,11 @@ export default {
flex-shrink
:
0
;
flex-shrink
:
0
;
}
}
.subtitle-one
{
.subtitle-one
{
margin
-bottom
:
10
rpx
;
margin
:
toRpx
(
10
)
0
;
}
}
.subtitle-two
{
.subtitle-two
{
color
:
#000
;
color
:
#000
;
font-size
:
36
rpx
;
font-size
:
toRpx
(
36
)
;
font-weight
:
500
;
font-weight
:
500
;
}
}
.sub-item
{
.sub-item
{
...
@@ -291,7 +306,7 @@ export default {
...
@@ -291,7 +306,7 @@ export default {
display
:
flex
;
display
:
flex
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
gap
:
toRpx
(
32
);
gap
:
toRpx
(
32
);
margin-
bottom
:
20
rpx
;
margin-
top
:
toRpx
(
20
)
;
align-items
:
stretch
;
align-items
:
stretch
;
}
}
.item
{
.item
{
...
@@ -304,7 +319,7 @@ export default {
...
@@ -304,7 +319,7 @@ export default {
position
:
relative
;
position
:
relative
;
color
:
#333333
;
color
:
#333333
;
font-size
:
toRpx
(
32
);
font-size
:
toRpx
(
32
);
padding
:
10rpx
;
padding
:
toRpx
(
10
)
;
.sprite-icon
{
.sprite-icon
{
display
:
none
;
display
:
none
;
position
:
absolute
;
position
:
absolute
;
...
@@ -324,6 +339,6 @@ export default {
...
@@ -324,6 +339,6 @@ export default {
}
}
.block
{
.block
{
width
:
100%
;
width
:
100%
;
height
:
24
rpx
;
height
:
toRpx
(
24
)
;
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
components/OrderPopup/components/City.vue
View file @
90a2c2e
...
@@ -282,17 +282,17 @@ export default {
...
@@ -282,17 +282,17 @@ export default {
.step-box
{
.step-box
{
height
:
toRpx
(
64
);
height
:
toRpx
(
64
);
justify-content
:
center
;
justify-content
:
center
;
gap
:
0
96
rpx
;
gap
:
0
toRpx
(
96
)
;
position
:
relative
;
position
:
relative
;
margin-bottom
:
16
rpx
;
margin-bottom
:
toRpx
(
16
)
;
.step
{
.step
{
height
:
64
rpx
;
height
:
toRpx
(
64
)
;
border-radius
:
12
rpx
;
border-radius
:
toRpx
(
12
)
;
background
:
#f2f2f2
;
background
:
#f2f2f2
;
justify-content
:
center
;
justify-content
:
center
;
padding
:
0
32
rpx
;
padding
:
0
toRpx
(
32
)
;
color
:
#666666
;
color
:
#666666
;
font-size
:
28
rpx
;
font-size
:
toRpx
(
28
)
;
}
}
.step-active
{
.step-active
{
background
:
#dee7ff
;
background
:
#dee7ff
;
...
@@ -304,8 +304,8 @@ export default {
...
@@ -304,8 +304,8 @@ export default {
left
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
transform
:
translate
(
-50%
,
-50%
);
content
:
''
;
content
:
''
;
width
:
16
rpx
;
width
:
toRpx
(
16
)
;
height
:
2
rpx
;
height
:
toRpx
(
2
)
;
background
:
#cccccc
;
background
:
#cccccc
;
}
}
}
}
...
...
pages/equity/tool/components/CreateEquity.vue
View file @
90a2c2e
...
@@ -55,10 +55,10 @@
...
@@ -55,10 +55,10 @@
<view
class=
"btns flex"
>
<view
class=
"btns flex"
>
<view
<view
class=
"btn save"
class=
"btn save"
@
click=
"
handleEditSave
"
@
click=
"
submit(0)
"
>
存草稿
</view>
>
存草稿
</view>
<view
<view
@
click=
"submit"
@
click=
"submit
(1)
"
class=
"btn"
class=
"btn"
>
确认提交
</view>
>
确认提交
</view>
</view>
</view>
...
@@ -96,6 +96,7 @@
...
@@ -96,6 +96,7 @@
:type=
"noticeObj.type || 'success'"
:type=
"noticeObj.type || 'success'"
:buttons=
"noticeObj.buttons"
:buttons=
"noticeObj.buttons"
></NoticePopup>
></NoticePopup>
<EquityVinCheck
ref=
"vinCheckRef"
/>
</view>
</view>
</template>
</template>
...
@@ -121,6 +122,8 @@ import EquityUpload from './EquityForm/EquityUpload.vue'
...
@@ -121,6 +122,8 @@ import EquityUpload from './EquityForm/EquityUpload.vue'
import
EquityConversion
from
'./EquityForm/EquityConversion.vue'
import
EquityConversion
from
'./EquityForm/EquityConversion.vue'
import
NP
from
'number-precision'
import
NP
from
'number-precision'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
NoticePopup
from
'@/components/NoticePopup.vue'
import
EquityVinCheck
from
'./EquityForm/EquityVinCheck.vue'
const
codeToAttr
=
{
const
codeToAttr
=
{
YB0001
:
'invoice'
,
YB0001
:
'invoice'
,
YB0003
:
'driveFront'
,
YB0003
:
'driveFront'
,
...
@@ -159,7 +162,14 @@ export default {
...
@@ -159,7 +162,14 @@ export default {
EquityTire
,
EquityTire
,
EquityUpload
,
EquityUpload
,
EquityConversion
,
EquityConversion
,
NoticePopup
NoticePopup
,
EquityVinCheck
},
props
:
{
transmissionOfData
:
{
type
:
Object
,
default
:
()
=>
null
}
},
},
data
()
{
data
()
{
return
{
return
{
...
@@ -167,8 +177,7 @@ export default {
...
@@ -167,8 +177,7 @@ export default {
titleList
:
utils
.
deepClone
(
EQUITY_FORM_TITLE_LIST
),
titleList
:
utils
.
deepClone
(
EQUITY_FORM_TITLE_LIST
),
endDate
:
dayjs
().
format
(
'YYYY-MM-DD'
),
endDate
:
dayjs
().
format
(
'YYYY-MM-DD'
),
equityFormRule
:
utils
.
deepClone
(
EQUITY_FORM_RULE
),
equityFormRule
:
utils
.
deepClone
(
EQUITY_FORM_RULE
),
orderObj
:
{
orderObj
:
{},
},
loadComplete
:
false
,
loadComplete
:
false
,
popupType
:
0
,
popupType
:
0
,
viewKey
:
Date
.
now
(),
viewKey
:
Date
.
now
(),
...
@@ -179,13 +188,23 @@ export default {
...
@@ -179,13 +188,23 @@ export default {
}
}
},
},
watch
:
{
transmissionOfData
:
{
handler
(
val
)
{
if
(
val
&&
val
.
contractNo
)
this
.
getServiceInfoDetail
(
val
.
contractNo
)
},
deep
:
true
,
immediate
:
true
}
},
computed
:
{
computed
:
{
orderPopupRef
()
{
orderPopupRef
()
{
return
this
.
$refs
.
orderPopup
return
this
.
$refs
.
orderPopup
}
}
},
},
mounted
()
{
mounted
()
{
this
.
getServiceInfoDetail
(
'car995580848107536384'
)
// this.$refs.vinCheckRef.open()
},
},
methods
:
{
methods
:
{
// 单选框change事件
// 单选框change事件
...
@@ -205,6 +224,7 @@ export default {
...
@@ -205,6 +224,7 @@ export default {
this
.
orderPopupRef
.
open
()
this
.
orderPopupRef
.
open
()
},
},
onConfirm
(
val
)
{
onConfirm
(
val
)
{
console
.
log
(
val
)
const
{
chooseContent
,
popupType
}
=
val
,
const
{
chooseContent
,
popupType
}
=
val
,
_typeValue
=
EQUITY_POPUP_ENUM
[
popupType
]
_typeValue
=
EQUITY_POPUP_ENUM
[
popupType
]
console
.
log
(
_typeValue
)
console
.
log
(
_typeValue
)
...
@@ -219,6 +239,7 @@ export default {
...
@@ -219,6 +239,7 @@ export default {
return
return
}
}
this
.
$set
(
this
.
orderObj
,
_typeValue
.
value
,
chooseContent
)
this
.
$set
(
this
.
orderObj
,
_typeValue
.
value
,
chooseContent
)
this
.
viewKey
=
Date
.
now
()
},
},
inputBlur
(
e
,
val
)
{
inputBlur
(
e
,
val
)
{
this
.
orderObj
[
val
.
value
]
=
this
.
orderObj
[
val
.
value
]
this
.
orderObj
[
val
.
value
]
=
this
.
orderObj
[
val
.
value
]
...
@@ -274,9 +295,10 @@ export default {
...
@@ -274,9 +295,10 @@ export default {
}
}
let
priceList
=
[
'actualSalesPrice'
]
let
priceList
=
[
'actualSalesPrice'
]
data
.
goodInfoList
.
map
((
item
,
idx
)
=>
{
data
.
goodInfoList
.
map
((
item
,
idx
)
=>
{
priceList
.
forEach
(
k
=>
{
if
(
item
.
actualSalesPrice
)
item
.
actualSalesPrice
=
NP
.
divide
(
Number
(
item
.
actualSalesPrice
),
100
).
toFixed
(
2
)
data
.
goodInfoList
[
idx
][
k
]
=
item
[
k
]
===
null
?
null
:
(
item
[
k
]
/
100
).
toFixed
(
2
)
// priceList.forEach(k => {
})
// data.goodInfoList[idx][k] = item[k] === null ? null : (item[k] / 100).toFixed(2)
// })
if
(
item
.
vehicleRegistrationDate
)
{
if
(
item
.
vehicleRegistrationDate
)
{
item
.
vehicleRegistrationDate
=
dayjs
(
item
.
vehicleRegistrationDate
).
format
(
'YYYY-MM-DD'
)
item
.
vehicleRegistrationDate
=
dayjs
(
item
.
vehicleRegistrationDate
).
format
(
'YYYY-MM-DD'
)
}
}
...
@@ -331,8 +353,9 @@ export default {
...
@@ -331,8 +353,9 @@ export default {
Object
.
assign
(
this
.
orderObj
,
{
Object
.
assign
(
this
.
orderObj
,
{
...
data
,
...
data
,
vin
:
data
.
vin
,
vin
:
data
.
vin
,
invoicePrice
:
NP
.
divide
(
data
.
invoicePrice
||
0
,
100
).
toFixed
(
2
),
invoicePrice
:
NP
.
divide
(
Number
(
data
.
invoicePrice
||
0
)
,
100
).
toFixed
(
2
),
seatesNum
:
data
.
seatesNum
,
seatesNum
:
data
.
seatesNum
,
seat
:
data
.
seatesNum
,
engineNo
:
data
.
engineNo
,
engineNo
:
data
.
engineNo
,
vehicleColor
:
data
.
vehicleColor
,
vehicleColor
:
data
.
vehicleColor
,
billingDate
:
data
.
billingDate
?
dayjs
(
data
.
billingDate
).
format
(
'YYYY-MM-DD'
)
:
dayjs
().
format
(
'YYYY-MM-DD'
),
billingDate
:
data
.
billingDate
?
dayjs
(
data
.
billingDate
).
format
(
'YYYY-MM-DD'
)
:
dayjs
().
format
(
'YYYY-MM-DD'
),
...
@@ -375,15 +398,16 @@ export default {
...
@@ -375,15 +398,16 @@ export default {
},
},
confirmCalendar
(
e
,
key
)
{
confirmCalendar
(
e
,
key
)
{
this
.
orderObj
[
key
]
=
e
.
fulldate
this
.
orderObj
[
key
]
=
e
.
fulldate
this
.
viewKey
=
Date
.
now
()
},
},
async
submit
()
{
async
submit
(
operationType
)
{
uni
.
showLoading
({
uni
.
showLoading
({
title
:
'提交中...'
,
title
:
'提交中...'
,
mask
:
true
mask
:
true
})
})
const
{
orderObj
,
conSecondObj
}
=
this
,
const
{
orderObj
,
conSecondObj
}
=
this
,
{
goodsRef
,
tireRef
,
uplopdRef
,
conversionRef
}
=
this
.
$refs
{
goodsRef
,
tireRef
,
uplopdRef
,
conversionRef
}
=
this
.
$refs
let
params
=
orderObj
,
let
params
=
utils
.
deepClone
(
orderObj
)
,
attachmentList
=
[],
attachmentList
=
[],
attributeList
=
[]
attributeList
=
[]
if
(
tireRef
)
{
if
(
tireRef
)
{
...
@@ -400,11 +424,17 @@ export default {
...
@@ -400,11 +424,17 @@ export default {
})
})
params
.
attributeList
=
attributeList
params
.
attributeList
=
attributeList
}
}
if
(
goodsRef
)
params
.
goodInfoList
=
goodsRef
.
goodInfoList
if
(
goodsRef
)
{
let
goodInfoList
=
utils
.
deepClone
(
goodsRef
.
goodInfoList
)
goodInfoList
.
map
(
item
=>
{
item
.
actualSalesPrice
=
NP
.
times
(
Number
(
item
.
actualSalesPrice
),
100
)
})
params
.
goodInfoList
=
goodInfoList
}
if
(
uplopdRef
||
conversionRef
)
{
if
(
uplopdRef
||
conversionRef
)
{
let
imgObj
=
{}
let
imgObj
=
{}
if
(
uplopdRef
)
imgObj
=
uplopdRef
.
imgObj
if
(
uplopdRef
)
imgObj
=
uplopdRef
.
imgObj
if
(
conversionRef
)
imgObj
=
{
if
(
conversionRef
&&
params
.
inclueType
==
1
)
imgObj
=
{
...
imgObj
,
...
imgObj
,
...
conversionRef
.
imgObj
...
conversionRef
.
imgObj
}
}
...
@@ -426,17 +456,21 @@ export default {
...
@@ -426,17 +456,21 @@ export default {
}
}
})
})
}
}
params
.
invoicePrice
=
NP
.
times
(
params
.
invoicePrice
,
100
)
params
.
invoicePrice
=
NP
.
times
(
Number
(
params
.
invoicePrice
)
,
100
)
params
.
attachmentList
=
attachmentList
params
.
attachmentList
=
attachmentList
if
(
operationType
==
0
)
{
this
.
confirm
(
params
,
operationType
)
return
}
if
(
!
this
.
checkOrder
(
params
))
return
uni
.
hideLoading
()
if
(
!
this
.
checkOrder
(
params
))
return
uni
.
hideLoading
()
const
{
code
,
message
}
=
await
uni
.
$api
.
equityApi
.
checkVinBuyEquityOrder
({
const
{
code
,
message
}
=
await
uni
.
$api
.
equityApi
.
checkVinBuyEquityOrder
({
vin
:
orderObj
.
vin
vin
:
orderObj
.
vin
})
})
if
(
code
==
0
)
{
if
(
code
==
0
)
{
this
.
confirm
(
params
)
this
.
confirm
(
params
,
operationType
)
}
else
if
(
code
==
'-2'
)
{
}
else
if
(
code
==
'-2'
)
{
if
(
conSecondObj
.
vin
==
orderObj
.
vin
)
{
if
(
conSecondObj
.
vin
==
orderObj
.
vin
)
{
this
.
confirm
(
params
)
this
.
confirm
(
params
,
operationType
)
this
.
conSecondObj
.
vin
=
''
this
.
conSecondObj
.
vin
=
''
}
else
{
}
else
{
this
.
conSecondObj
.
vin
=
orderObj
.
vin
this
.
conSecondObj
.
vin
=
orderObj
.
vin
...
@@ -461,6 +495,7 @@ export default {
...
@@ -461,6 +495,7 @@ export default {
})
})
params
.
goodInfoList
?.
map
(
item
=>
{
params
.
goodInfoList
?.
map
(
item
=>
{
if
(
item
.
printType
==
2
)
{
if
(
item
.
itemsCode
==
'YB0003'
)
Object
.
keys
(
oilFormRule
).
map
(
key
=>
{
if
(
item
.
itemsCode
==
'YB0003'
)
Object
.
keys
(
oilFormRule
).
map
(
key
=>
{
let
[
nullCheck
,
validatorCheck
]
=
oilFormRule
[
key
]
let
[
nullCheck
,
validatorCheck
]
=
oilFormRule
[
key
]
if
(
nullCheck
.
required
)
{
if
(
nullCheck
.
required
)
{
...
@@ -486,6 +521,7 @@ export default {
...
@@ -486,6 +521,7 @@ export default {
})
})
if
(
item
.
itemsCode
!=
'YB0001'
&&
item
.
itemsCode
!=
'YB0002'
&&
item
.
itemsCode
!=
'YB0003'
)
Object
.
keys
(
extendServiceFormRule
).
map
(
key
=>
{
if
(
item
.
itemsCode
!=
'YB0001'
&&
item
.
itemsCode
!=
'YB0002'
&&
item
.
itemsCode
!=
'YB0003'
)
Object
.
keys
(
extendServiceFormRule
).
map
(
key
=>
{
let
[
nullCheck
,
validatorCheck
]
=
extendServiceFormRule
[
key
]
let
[
nullCheck
,
validatorCheck
]
=
extendServiceFormRule
[
key
]
if
(
nullCheck
.
required
)
{
if
(
nullCheck
.
required
)
{
if
(
!
item
[
key
])
throw
extendServiceFormRule
[
key
][
0
].
message
if
(
!
item
[
key
])
throw
extendServiceFormRule
[
key
][
0
].
message
...
@@ -497,6 +533,7 @@ export default {
...
@@ -497,6 +533,7 @@ export default {
}
}
})
})
}
})
})
if
(
params
.
ybAttachmentFlag
==
0
||
params
.
qsFlag
==
1
)
{
if
(
params
.
ybAttachmentFlag
==
0
||
params
.
qsFlag
==
1
)
{
...
@@ -525,15 +562,78 @@ export default {
...
@@ -525,15 +562,78 @@ export default {
}
}
return
true
return
true
},
},
handleEditSave
()
{
async
confirm
(
paramsData
,
operationType
)
{
try
{
},
let
params
=
utils
.
deepClone
(
paramsData
)
async
confirm
(
params
)
{
this
.
$refs
.
reportNotice
.
close
()
this
.
$refs
.
reportNotice
.
close
()
console
.
log
(
params
,
'==='
)
console
.
log
(
params
,
'==='
)
const
data
=
await
uni
.
$api
.
equityApi
.
addEquityOrder
(
params
)
// 0草稿,1提单
console
.
log
(
data
)
params
.
operationType
=
operationType
params
.
addOnsFlag
=
params
.
inclueType
==
2
?
0
:
1
params
.
seatesNum
=
params
.
seat
delete
params
.
imgObj
delete
params
.
inclueType
delete
params
.
seat
uni
.
showLoading
({
mask
:
true
})
const
{
code
,
message
}
=
await
uni
.
$api
.
equityApi
.
addEquityOrder
(
params
)
if
(
code
==
0
)
{
if
(
operationType
==
0
)
{
uni
.
hideLoading
()
uni
.
hideLoading
()
uni
.
showToast
({
title
:
'保存成功'
,
icon
:
'none'
,
mask
:
true
})
setTimeout
(()
=>
{
this
.
$emit
(
'jump'
,
'EquityManagement'
)
},
1500
)
}
else
{
// 从URL获取文件名
const
getFileNameFromUrl
=
(
url
)
=>
{
return
url
.
split
(
'/'
).
pop
().
split
(
'?'
)[
0
]
||
'未知文件'
}
const
{
contractNo
}
=
params
,
url
=
await
uni
.
$api
.
equityApi
.
printContract
({
contractNo
}),
fileName
=
getFileNameFromUrl
(
url
),
type
=
3
if
(
!
url
)
throw
'获取合同失败'
this
.
noticeObj
=
{
title
:
'提单成功'
,
text
:
'提单合同支持分享或保存'
,
type
:
'success'
,
buttons
:
[
{
text
:
'查看合同'
,
type
:
'primary'
,
callback
:
_
=>
{
this
.
$refs
.
reportNotice
.
close
()
this
.
$emit
(
'jump'
,
'EquityManagement'
)
// 跳转到预览页面
uni
.
navigateTo
({
url
:
`/pages/common/filePreview?fileUrl=
${
encodeURIComponent
(
url
)}
&fileType=
${
type
}
&fileName=
${
encodeURIComponent
(
fileName
)}
`
})
}
}
]
}
setTimeout
(()
=>
{
uni
.
hideLoading
()
this
.
$refs
.
reportNotice
.
open
()
},
100
)
}
}
else
throw
message
}
catch
(
error
)
{
console
.
log
(
error
)
uni
.
hideLoading
()
if
(
error
)
uni
.
showToast
({
title
:
error
,
icon
:
'none'
})
}
},
},
openNotice
(
message
,
params
)
{
openNotice
(
message
,
params
)
{
uni
.
hideLoading
()
uni
.
hideLoading
()
...
@@ -544,7 +644,7 @@ export default {
...
@@ -544,7 +644,7 @@ export default {
title
=
'信息确认'
title
=
'信息确认'
btnText
=
'继续出单'
btnText
=
'继续出单'
callbackFun
=
()
=>
{
callbackFun
=
()
=>
{
this
.
confirm
(
params
)
this
.
confirm
(
params
,
1
)
}
}
}
}
this
.
noticeObj
=
{
this
.
noticeObj
=
{
...
...
pages/equity/tool/components/EquityForm/EquityConversion.vue
View file @
90a2c2e
...
@@ -86,6 +86,7 @@ export default {
...
@@ -86,6 +86,7 @@ export default {
externalData
:
{
externalData
:
{
handler
(
val
)
{
handler
(
val
)
{
let
{
imgObj
}
=
val
let
{
imgObj
}
=
val
if
(
Object
.
keys
(
this
.
imgObj
).
length
)
return
this
.
imgObj
=
{
this
.
imgObj
=
{
retrofitInvoice
:
imgObj
.
retrofitInvoice
||
''
,
retrofitInvoice
:
imgObj
.
retrofitInvoice
||
''
,
retrofit
:
imgObj
.
retrofit
||
''
retrofit
:
imgObj
.
retrofit
||
''
...
@@ -159,30 +160,30 @@ export default {
...
@@ -159,30 +160,30 @@ export default {
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
'scss'
>
.upload-content
{
.upload-content
{
padding
:
32
rpx
32
rpx
0
;
padding
:
toRpx
(
32
)
toRpx
(
32
)
0
;
.upload-box
{
.upload-box
{
display
:
flex
;
display
:
flex
;
margin-bottom
:
32
rpx
;
margin-bottom
:
toRpx
(
32
)
;
.label
{
.label
{
width
:
168
rpx
;
width
:
toRpx
(
168
)
;
flex-shrink
:
0
;
flex-shrink
:
0
;
margin-right
:
32
rpx
;
margin-right
:
toRpx
(
32
)
;
}
}
.value
{
.value
{
gap
:
16
rpx
;
gap
:
toRpx
(
16
)
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
}
}
.upload-item
{
.upload-item
{
width
:
192
rpx
;
width
:
toRpx
(
192
)
;
height
:
192
rpx
;
height
:
toRpx
(
192
)
;
border-radius
:
12
rpx
;
border-radius
:
toRpx
(
12
)
;
background
:
#f5f8ff
;
background
:
#f5f8ff
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
color
:
#999999
;
color
:
#999999
;
font-size
:
20
rpx
;
font-size
:
toRpx
(
20
)
;
position
:
relative
;
position
:
relative
;
.del
{
.del
{
position
:
absolute
;
position
:
absolute
;
...
...
pages/equity/tool/components/EquityForm/EquityGoods.vue
View file @
90a2c2e
...
@@ -280,44 +280,44 @@ export default {
...
@@ -280,44 +280,44 @@ export default {
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
'scss'
>
.equity-goods-box
{
.equity-goods-box
{
padding
:
0
32
rpx
;
padding
:
0
toRpx
(
32
)
;
.goods-item
{
.goods-item
{
margin-bottom
:
8
rpx
;
margin-bottom
:
toRpx
(
8
)
;
.goods-head
{
.goods-head
{
padding
:
16
rpx
0
;
padding
:
toRpx
(
16
)
0
;
.goods-name
{
.goods-name
{
color
:
#333333
;
color
:
#333333
;
font-size
:
28
rpx
;
font-size
:
toRpx
(
28
)
;
line-height
:
40
rpx
;
line-height
:
toRpx
(
40
)
;
}
}
.goods-pervice
{
.goods-pervice
{
color
:
#999999
;
color
:
#999999
;
font-size
:
26
rpx
;
font-size
:
toRpx
(
26
)
;
line-height
:
36
rpx
;
line-height
:
toRpx
(
36
)
;
}
}
}
}
.goods-list
{
.goods-list
{
background
:
#f5f7fa
;
background
:
#f5f7fa
;
border-radius
:
16
rpx
;
border-radius
:
toRpx
(
16
)
;
}
}
}
}
.displacement-power
{
.displacement-power
{
width
:
100%
;
width
:
100%
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
0
32
rpx
;
padding
:
0
toRpx
(
32
)
;
.switch-box
{
.switch-box
{
width
:
208
rpx
;
width
:
toRpx
(
208
)
;
height
:
52
rpx
;
height
:
toRpx
(
52
)
;
border-radius
:
64
rpx
;
border-radius
:
toRpx
(
64
)
;
background
:
#ffffff
;
background
:
#ffffff
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
padding
:
0
4
rpx
;
padding
:
0
toRpx
(
4
)
;
.switch-item
{
.switch-item
{
width
:
50%
;
width
:
50%
;
height
:
44
rpx
;
height
:
toRpx
(
44
)
;
border-radius
:
40
rpx
;
border-radius
:
toRpx
(
40
)
;
color
:
#333333
;
color
:
#333333
;
font-size
:
26
rpx
;
font-size
:
toRpx
(
26
)
;
justify-content
:
center
;
justify-content
:
center
;
transition
:
all
0.15s
;
transition
:
all
0.15s
;
}
}
...
@@ -330,12 +330,12 @@ export default {
...
@@ -330,12 +330,12 @@ export default {
.warranty
{
.warranty
{
margin-left
:
auto
;
margin-left
:
auto
;
&-input
{
&-input
{
width
:
84
rpx
;
width
:
toRpx
(
84
)
;
font-size
:
28
rpx
;
font-size
:
toRpx
(
28
)
;
margin-left
:
16
rpx
;
margin-left
:
toRpx
(
16
)
;
}
}
&
-suffix
{
&
-suffix
{
margin-left
:
16
rpx
;
margin-left
:
toRpx
(
16
)
;
}
}
.placeholder
{
.placeholder
{
color
:
#999999
;
color
:
#999999
;
...
...
pages/equity/tool/components/EquityForm/EquityTire.vue
View file @
90a2c2e
...
@@ -96,21 +96,21 @@ export default {
...
@@ -96,21 +96,21 @@ export default {
.tire-box
{
.tire-box
{
display
:
grid
;
display
:
grid
;
grid-template-columns
:
repeat
(
2
,
1
fr
);
grid-template-columns
:
repeat
(
2
,
1
fr
);
padding
:
0
32
rpx
;
padding
:
0
toRpx
(
32
)
;
gap
:
16
rpx
32
rpx
;
gap
:
toRpx
(
16
)
toRpx
(
32
)
;
.tire-item
{
.tire-item
{
.label
{
.label
{
height
:
68
rpx
;
height
:
toRpx
(
68
)
;
color
:
#999999
;
color
:
#999999
;
font-size
:
26
rpx
;
font-size
:
toRpx
(
26
)
;
.tips
{
.tips
{
color
:
#4673ff
;
color
:
#4673ff
;
font-size
:
24
rpx
;
font-size
:
toRpx
(
24
)
;
margin-left
:
8
rpx
;
margin-left
:
toRpx
(
8
)
;
}
}
}
}
.content
{
.content
{
border-radius
:
16
rpx
;
border-radius
:
toRpx
(
16
)
;
}
}
}
}
}
}
...
...
pages/equity/tool/components/EquityForm/EquityUpload.vue
View file @
90a2c2e
...
@@ -195,6 +195,7 @@ export default {
...
@@ -195,6 +195,7 @@ export default {
externalData
:
{
externalData
:
{
handler
(
val
)
{
handler
(
val
)
{
let
{
imgObj
}
=
val
let
{
imgObj
}
=
val
if
(
Object
.
keys
(
this
.
imgObj
).
length
)
return
this
.
imgObj
=
{
this
.
imgObj
=
{
invoice
:
imgObj
.
invoice
||
''
,
invoice
:
imgObj
.
invoice
||
''
,
driveFront
:
imgObj
.
driveFront
||
''
,
driveFront
:
imgObj
.
driveFront
||
''
,
...
@@ -273,30 +274,30 @@ export default {
...
@@ -273,30 +274,30 @@ export default {
<
style
scoped
lang=
'scss'
>
<
style
scoped
lang=
'scss'
>
.upload-content
{
.upload-content
{
padding
:
0
32
rpx
;
padding
:
0
toRpx
(
32
)
;
.upload-box
{
.upload-box
{
display
:
flex
;
display
:
flex
;
margin-bottom
:
32
rpx
;
margin-bottom
:
toRpx
(
32
)
;
.label
{
.label
{
width
:
168
rpx
;
width
:
toRpx
(
168
)
;
flex-shrink
:
0
;
flex-shrink
:
0
;
margin-right
:
32
rpx
;
margin-right
:
toRpx
(
32
)
;
}
}
.value
{
.value
{
gap
:
16
rpx
;
gap
:
toRpx
(
16
)
;
flex-wrap
:
wrap
;
flex-wrap
:
wrap
;
}
}
.upload-item
{
.upload-item
{
width
:
192
rpx
;
width
:
toRpx
(
192
)
;
height
:
192
rpx
;
height
:
toRpx
(
192
)
;
border-radius
:
12
rpx
;
border-radius
:
toRpx
(
12
)
;
background
:
#f5f8ff
;
background
:
#f5f8ff
;
display
:
flex
;
display
:
flex
;
flex-direction
:
column
;
flex-direction
:
column
;
justify-content
:
center
;
justify-content
:
center
;
align-items
:
center
;
align-items
:
center
;
color
:
#999999
;
color
:
#999999
;
font-size
:
20
rpx
;
font-size
:
toRpx
(
20
)
;
position
:
relative
;
position
:
relative
;
.del
{
.del
{
position
:
absolute
;
position
:
absolute
;
...
...
pages/equity/tool/components/EquityForm/EquityVinCheck.vue
0 → 100644
View file @
90a2c2e
<
template
>
<uni-popup
ref=
"centerPopupRef"
type=
"center"
:is-mask-click=
"false"
animation
class=
"center-popup"
>
<view
class=
"box"
>
<view
class=
"title flex"
>
<view
class=
"text"
>
车架号复核
</view>
<view
class=
"icon-close-box flex"
@
click=
"close"
>
<uni-icons
class=
"icon-close"
type=
"closeempty"
:size=
"20"
color=
"#1A1A1A"
></uni-icons>
</view>
</view>
<view
class=
"content flex"
>
<view
class=
"tips"
>
请核对车架号是否正确,如信息有误后期将无法申请补偿服务!
</view>
<view
class=
"input-box flex"
>
<view
class=
"input"
>
<view
class=
"label"
>
车架号
</view>
<input
type=
"text"
maxlength=
"17"
v-model=
"obj.vin"
/>
</view>
<view
class=
"edit"
></view>
</view>
<view
class=
"footer-box"
>
</view>
</view>
</view>
</uni-popup>
</
template
>
<
script
type=
'text/ecmascript-6'
>
export
default
{
name
:
'CenterPopup'
,
props
:
{
list
:
Array
,
title
:
String
,
tag
:
String
,
id
:
[
Number
,
String
],
isLine
:
Boolean
},
data
()
{
return
{
}
},
mounted
()
{
},
methods
:
{
open
()
{
this
.
$refs
.
centerPopupRef
.
open
();
},
close
()
{
this
.
$refs
.
centerPopupRef
.
close
();
this
.
$emit
(
'cancel'
)
},
choose
:
uni
.
$throttle
(
function
(
index
)
{
this
.
$emit
(
'choose'
,
index
)
this
.
$refs
.
centerPopupRef
.
close
();
},
200
)
}
}
</
script
>
<
style
scoped
lang=
'scss'
>
.center-popup
{
z-index
:
99
!important
;
}
.box
{
width
:
848
rpx
;
height
:
608
rpx
;
border-radius
:
32
rpx
;
background
:
linear-gradient
(
180deg
,
#e6f0ff
0%
,
#ffffff
100%
);
.title
{
width
:
100%
;
height
:
toRpx
(
160
);
//
background
:
url('@/assets/images/boutique/customer-type-bg.webp')
no-repeat
;
background-size
:
100%
100%
;
position
:
relative
;
.text
{
font-weight
:
500
;
font-size
:
toRpx
(
40
);
color
:
#1a1a1a
;
position
:
absolute
;
left
:
64
rpx
;
top
:
50%
;
transform
:
translateY
(
-50%
);
}
.icon-close-box
{
height
:
100%
;
margin-left
:
auto
;
padding
:
0
toRpx
(
48
);
font-weight
:
700
;
}
}
.content
{
padding
:
0
toRpx
(
64
);
width
:
100%
;
.tips
{
color
:
#666666
;
font-size
:
32
rpx
;
line-height
:
48
rpx
;
}
.input-box
{
margin
:
48
rpx
0
16
rpx
;
}
}
}
</
style
>
\ No newline at end of file
\ No newline at end of file
pages/equity/tool/contant.js
View file @
90a2c2e
...
@@ -465,7 +465,7 @@ const EQUITY_FORM_LIST = [
...
@@ -465,7 +465,7 @@ const EQUITY_FORM_LIST = [
},
},
{
{
label
:
'座位数'
,
label
:
'座位数'
,
value
:
'seat
esNum
'
,
value
:
'seat'
,
type
:
'select'
,
type
:
'select'
,
key
:
'seat'
,
key
:
'seat'
,
},
},
...
@@ -619,7 +619,7 @@ const EQUITY_FORM_TITLE_LIST = [
...
@@ -619,7 +619,7 @@ const EQUITY_FORM_TITLE_LIST = [
]
]
const
EQUITY_POPUP_ENUM
=
{
const
EQUITY_POPUP_ENUM
=
{
18
:
{
18
:
{
value
:
'seat
esNum
'
,
value
:
'seat'
,
key
:
'seat'
key
:
'seat'
},
},
21
:
{
21
:
{
...
@@ -709,7 +709,7 @@ const EQUITY_FORM_RULE = {
...
@@ -709,7 +709,7 @@ const EQUITY_FORM_RULE = {
}
}
}
}
],
],
seat
esNum
:
[{
required
:
true
,
message
:
'座位数不能为空'
}],
seat
:
[{
required
:
true
,
message
:
'座位数不能为空'
}],
engineNo
:
[
engineNo
:
[
{
required
:
true
,
message
:
'发动机号不能为空'
},
{
required
:
true
,
message
:
'发动机号不能为空'
},
{
{
...
...
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