Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-ordermanage
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6d10a807
authored
May 04, 2023
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
样式修改
1 parent
588f9344
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
192 additions
and
196 deletions
src/views/orderManage/carDamageDetail.vue
src/views/orderManage/orderDetail.vue
src/views/orderManage/carDamageDetail.vue
View file @
6d10a80
...
@@ -9,16 +9,15 @@
...
@@ -9,16 +9,15 @@
<p
class=
"edit-sub-title"
>
<p
class=
"edit-sub-title"
>
车辆信息
车辆信息
</p>
</p>
<el-form
class=
"edit-sub-block"
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
:inline=
"true"
>
<el-form-item
label=
"车架号:"
>
<el-form-item
label=
"车架号:"
>
{{
$$
(
detail
,
'ownerDTO'
,
'carVin'
)
}}
{{
$$
(
detail
,
'ownerDTO'
,
'carVin'
)
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"座位数:"
>
<el-form-item
label=
"座位数:"
>
{{
$$
(
detail
,
'ownerDTO'
,
'seat'
)
}}
{{
$$
(
detail
,
'ownerDTO'
,
'seat'
)
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"车辆发票价/元:"
>
<el-form-item
label=
"车辆发票价/元:"
>
{{
$$
(
detail
,
'ownerDTO'
,
'price'
)
/
100
}}
{{
$$
(
detail
,
'ownerDTO'
,
'price'
)
/
100
}}
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -26,16 +25,15 @@
...
@@ -26,16 +25,15 @@
<p
class=
"edit-sub-title"
>
<p
class=
"edit-sub-title"
>
车主信息
车主信息
</p>
</p>
<el-form
class=
"edit-sub-block"
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
:inline=
"true"
>
<el-form-item
label=
"姓名:"
>
<el-form-item
label=
"姓名:"
>
{{
$$
(
detail
,
'ownerDTO'
,
'owner'
)
}}
{{
$$
(
detail
,
'ownerDTO'
,
'owner'
)
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"手机号:"
>
<el-form-item
label=
"手机号:"
>
{{
$$
(
detail
,
'ownerDTO'
,
'phone'
)
}}
{{
$$
(
detail
,
'ownerDTO'
,
'phone'
)
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"证件号:"
>
<el-form-item
label=
"证件号:"
>
{{
$$
(
detail
,
'ownerDTO'
,
'certificateNo'
)
}}
{{
$$
(
detail
,
'ownerDTO'
,
'certificateNo'
)
}}
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -43,49 +41,36 @@
...
@@ -43,49 +41,36 @@
<p
class=
"edit-sub-title"
>
<p
class=
"edit-sub-title"
>
商业险信息
商业险信息
</p>
</p>
<el-table
:data=
"commerceInsureList"
<el-table
:data=
"commerceInsureList"
border
border
:header-cell-style=
"
{ 'text-align': 'center', 'background-color': '#fafafa' }" style="width: 100%">
:header-cell-style=
"
{'text-align':'center','background-color':'#fafafa'}"
<el-table-column
prop=
"company"
align=
"center"
label=
"保险公司"
/>
style="width: 100%">
<el-table-column
prop=
"base"
align=
"center"
label=
"基础车损险"
>
<el-table-column
prop=
"company"
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
base
/
100
}}
元
</
template
>
align=
"center"
label=
"保险公司"
/>
<el-table-column
prop=
"base"
align=
"center"
label=
"基础车损险"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
base
/
100
}}
元
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"three"
<el-table-column
prop=
"three"
align=
"center"
label=
"第三方责任险"
/>
align=
"center"
<el-table-column
prop=
"threePremium"
align=
"center"
label=
"保费"
>
label=
"第三方责任险"
/>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
threePremium
/
100
}}
元
</
template
>
<el-table-column
prop=
"threePremium"
align=
"center"
label=
"保费"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
threePremium
/
100
}}
元
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"driver"
<el-table-column
prop=
"driver"
align=
"center"
label=
"车上人员责任险(司机)"
/>
align=
"center"
<el-table-column
prop=
"carInsidePremium"
align=
"center"
label=
"保费"
>
label=
"车上人员责任险(司机)"
/>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
carInsidePremium
/
100
}}
元
</
template
>
<el-table-column
prop=
"carInsidePremium"
align=
"center"
label=
"保费"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
carInsidePremium
/
100
}}
元
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"passenger"
<el-table-column
prop=
"passenger"
align=
"center"
label=
"车上人员责任险(乘客)"
/>
align=
"center"
<el-table-column
prop=
"passengerPremium"
align=
"center"
label=
"保费"
>
label=
"车上人员责任险(乘客)"
/>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
passengerPremium
/
100
}}
元
</
template
>
<el-table-column
prop=
"passengerPremium"
</el-table-column>
align=
"center"
</el-table>
label=
"保费"
>
</div>
<
template
slot-scope=
"scope"
>
<div
class=
"form_gp"
>
{{
scope
.
row
.
passengerPremium
/
100
}}
元
<p
class=
"edit-sub-title"
>
</
template
>
其他商业险
</p>
<el-table
:data=
"otherInsuranceList"
border
:header-cell-style=
"{ 'text-align': 'center', 'background-color': '#fafafa' }"
style=
"width: 100%"
>
<el-table-column
prop=
"typeName"
align=
"center"
label=
"商业险名称"
/>
<el-table-column
prop=
"compensation"
align=
"center"
label=
"险种保额"
/>
<el-table-column
prop=
"payPrice"
align=
"center"
label=
"保费"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
payPrice
|
divideByHundred
}}
元
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
</div>
</div>
...
@@ -93,33 +78,24 @@
...
@@ -93,33 +78,24 @@
<p
class=
"edit-sub-title"
>
<p
class=
"edit-sub-title"
>
交强和车船税
交强和车船税
</p>
</p>
<el-form
class=
"edit-sub-block"
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
:inline=
"true"
>
<el-form-item
label=
"交强险:"
>
{{ $$(compulsoryInsure, 'compensation') }} / 保费:{{ $$(compulsoryInsure, 'payPrice') /
<el-form-item
label=
"交强险:"
>
100 }}元
</el-form-item>
{{ $$(compulsoryInsure,'compensation') }} /
<el-form-item
label=
"车船税:"
>
{{ $$(vehicleInsure, 'compensation') }}年 / 保费:{{ $$(compulsoryInsure, 'payPrice') /
保费:{{ $$(compulsoryInsure,'payPrice') / 100 }}元
100 }}元
</el-form-item>
</el-form-item>
<el-form-item
label=
"车船税:"
>
{{ $$(vehicleInsure,'compensation') }}年 /
保费:{{ $$(compulsoryInsure,'payPrice') / 100 }}元
</el-form-item>
</el-form>
</el-form>
</div>
</div>
<div
class=
"form_gp"
>
<div
class=
"form_gp"
>
<p
class=
"edit-sub-title"
>
<p
class=
"edit-sub-title"
>
增值车损险服务
增值车损险服务
</p>
</p>
<el-form
class=
"edit-sub-block"
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
:inline=
"true"
>
<el-form-item
label=
"商品:"
class=
"goods"
>
<el-form-item
label=
"商品:"
>
<img
v-if=
"$$(detail, 'quotationGoodsInfo', 'titlePictureUrl')"
class=
"order-img"
<img
v-if=
"$$(detail,'quotationGoodsInfo','titlePictureUrl')"
:src=
"$$(detail, 'quotationGoodsInfo', 'titlePictureUrl')"
@
click=
"handleEnlargeImg"
/>
class=
"order-img"
{{ $$(detail, 'quotationGoodsInfo', 'goodsName') }}
:src=
"$$(detail,'quotationGoodsInfo','titlePictureUrl')"
@
click=
"handleEnlargeImg"
>
{{ $$(detail,'quotationGoodsInfo','goodsName') }}
</el-form-item>
</el-form-item>
<el-form-item
label=
"增值权益价格/元:"
<el-form-item
label=
"增值权益价格/元:"
style=
"width:450px"
>
style=
"width:450px"
>
{{ detail.quotedPriceUpdate / 100 }}
{{ detail.quotedPriceUpdate / 100 }}
</el-form-item>
</el-form-item>
</el-form>
</el-form>
...
@@ -132,13 +108,9 @@
...
@@ -132,13 +108,9 @@
</p> -->
</p> -->
</div>
</div>
<el-dialog
:visible=
"imgVisible"
<el-dialog
:visible=
"imgVisible"
:before-close=
"handleEnlargeImg"
>
:before-close=
"handleEnlargeImg"
>
<img
width=
"100%"
:src=
"$$(detail, 'quotationGoodsInfo', 'titlePictureUrl') || ''"
alt=
"图片"
/>
<img
width=
"100%"
:src=
"$$(detail,'quotationGoodsInfo','titlePictureUrl') || ''"
alt=
"图片"
>
</el-dialog>
</el-dialog>
</d2-container>
</d2-container>
</template>
</template>
...
@@ -149,20 +121,56 @@ import dayjs from 'dayjs'
...
@@ -149,20 +121,56 @@ import dayjs from 'dayjs'
// import { quotationFindById } from "@api/vehicleDamage"
// import { quotationFindById } from "@api/vehicleDamage"
export
default
{
export
default
{
name
:
'VehicleDamageDetail'
,
name
:
'VehicleDamageDetail'
,
components
:
{
components
:
{},
filters
:
{
// 除以100保留两位小数点
divideByHundred
:
str
=>
{
let
floatVal
=
parseFloat
(
str
)
if
(
isNaN
(
floatVal
))
{
return
0
}
floatVal
=
Math
.
round
(
str
*
100
)
/
10000
let
strVal
=
floatVal
.
toString
()
let
searchVal
=
strVal
.
indexOf
(
'.'
)
if
(
searchVal
<
0
)
{
searchVal
=
strVal
.
length
strVal
+=
'.'
}
while
(
strVal
.
length
<=
searchVal
+
2
)
{
strVal
+=
'0'
}
return
parseFloat
(
strVal
)
},
// 乘以100保留两位小数点
multipliedByHundred
:
str
=>
{
let
floatVal
=
parseFloat
(
str
)
if
(
isNaN
(
floatVal
))
{
return
0
}
floatVal
=
Math
.
round
(
str
*
10000
)
/
100
let
strVal
=
floatVal
.
toString
()
let
searchVal
=
strVal
.
indexOf
(
'.'
)
if
(
searchVal
<
0
)
{
searchVal
=
strVal
.
length
strVal
+=
'.'
}
while
(
strVal
.
length
<=
searchVal
+
2
)
{
strVal
+=
'0'
}
return
parseFloat
(
strVal
)
}
},
},
data
()
{
data
()
{
return
{
return
{
imgVisible
:
false
,
imgVisible
:
false
,
detail
:
{},
detail
:
{},
commerceInsureList
:
[],
//商业险
commerceInsureList
:
[],
//商业险
compulsoryInsure
:
{},
//交强险
compulsoryInsure
:
{},
//交强险
vehicleInsure
:
{},
//车船税
vehicleInsure
:
{},
//车船税
otherInsuranceList
:
[]
}
}
},
},
computed
:
{
computed
:
{},
},
mounted
()
{
mounted
()
{
this
.
detail
=
this
.
$route
.
query
this
.
detail
=
this
.
$route
.
query
this
.
quotationFindById
()
this
.
quotationFindById
()
...
@@ -189,14 +197,15 @@ export default {
...
@@ -189,14 +197,15 @@ export default {
this
.
compulsoryInsure
=
item
this
.
compulsoryInsure
=
item
}
else
if
(
item
.
type
==
2
)
{
}
else
if
(
item
.
type
==
2
)
{
this
.
vehicleInsure
=
item
this
.
vehicleInsure
=
item
}
else
if
(
item
.
type
==
4
)
{
this
.
otherInsuranceList
.
push
(
item
)
}
}
})
;
})
}
}
})
})
}
}
}
}
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"scss"
>
<
style
scoped
lang=
"scss"
>
.order-detail
{
.order-detail
{
...
@@ -204,9 +213,11 @@ export default {
...
@@ -204,9 +213,11 @@ export default {
margin-top
:
0
!important
;
margin-top
:
0
!important
;
background-color
:
#fff
;
background-color
:
#fff
;
}
}
.edit-title
{
.edit-title
{
//
padding-left
:
0
;
//
padding-left
:
0
;
}
}
.form_gp
{
.form_gp
{
color
:
#333333
;
color
:
#333333
;
padding
:
20px
30px
;
padding
:
20px
30px
;
...
@@ -228,10 +239,18 @@ export default {
...
@@ -228,10 +239,18 @@ export default {
width
:
400px
;
width
:
400px
;
margin-bottom
:
0px
;
margin-bottom
:
0px
;
}
}
.goods
{
height
:
100px
;
//
display
:
flex
;
}
.order-img
{
.order-img
{
width
:
80px
;
width
:
80px
;
height
:
80px
;
height
:
80px
;
cursor
:
pointer
;
cursor
:
pointer
;
vertical-align
:
middle
;
}
}
}
}
...
@@ -240,16 +259,18 @@ export default {
...
@@ -240,16 +259,18 @@ export default {
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
}
}
.signRefundBtn
{
.signRefundBtn
{
margin-left
:
10px
;
margin-left
:
10px
;
.signRefundIcon
{
.signRefundIcon
{
width
:
12px
;
width
:
12px
;
margin-right
:
5px
;
margin-right
:
5px
;
}
}
span
{
span
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
}
}
}
}
</
style
>
</
style
>
src/views/orderManage/orderDetail.vue
View file @
6d10a80
...
@@ -9,24 +9,21 @@
...
@@ -9,24 +9,21 @@
<p
class=
"edit-sub-title"
>
<p
class=
"edit-sub-title"
>
订单详情
订单详情
</p>
</p>
<el-form
class=
"edit-sub-block"
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
:inline=
"true"
>
<el-form-item
label=
"订单单号:"
>
<el-form-item
label=
"订单单号:"
>
{{
detail
.
orderCode
}}
{{
detail
.
orderCode
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"订单状态:"
>
<el-form-item
label=
"订单状态:"
>
{{
statusOpts
[
detail
.
status
]
}}
{{
statusOpts
[
detail
.
status
]
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"订单来源:"
<el-form-item
label=
"订单来源:"
v-if=
"!specialAccout"
>
v-if=
"!specialAccout"
>
{{
detail
.
source
==
7
?
'系统导入'
:
'小程序订单'
}}
{{
detail
.
source
==
7
?
'系统导入'
:
'小程序订单'
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"交易流水:"
>
<el-form-item
label=
"交易流水:"
style=
"width:400px"
>
{{
detail
.
outTradeNo
||
$$
(
detail
.
payOrder
,
'outTradeNo'
)
}}
{{
detail
.
outTradeNo
||
$$
(
detail
.
payOrder
,
'outTradeNo'
)
}}
</el-form-item>
</el-form-item>
<el-form-item
v-if=
"detail.source == 7"
<el-form-item
v-if=
"detail.source == 7"
label=
"订单导入时间:"
>
label=
"订单导入时间:"
>
{{
detail
.
createdDate
}}
{{
detail
.
createdDate
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"支付方式:"
>
<el-form-item
label=
"支付方式:"
>
...
@@ -39,26 +36,22 @@
...
@@ -39,26 +36,22 @@
<el-form-item
label=
"支付状态:"
>
<el-form-item
label=
"支付状态:"
>
{{
detail
.
upgradeFlag
==
'N'
?
'战败'
:
payStatusOpts
[
detail
.
payStatus
||
$$
(
detail
.
payOrder
,
'payStatus'
)]
}}
{{
detail
.
upgradeFlag
==
'N'
?
'战败'
:
payStatusOpts
[
detail
.
payStatus
||
$$
(
detail
.
payOrder
,
'payStatus'
)]
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"收款凭证:"
>
<el-form-item
label=
"收款凭证:"
class=
"photoItem"
>
<img
v-if=
"detail.payVoucher || $$(detail.payOrder, 'payVoucher')"
<img
v-if=
"detail.payVoucher || $$(detail.payOrder, 'payVoucher')"
class=
"order-img"
class=
"order-img"
:src=
"detail.payVoucher || $$(detail.payOrder, 'payVoucher')"
:src=
"detail.payVoucher || $$(detail.payOrder, 'payVoucher')"
@
click=
"handleEnlargeImg(detail.payVoucher || $$(detail.payOrder, 'payVoucher'))"
>
@
click=
"handleEnlargeImg(detail.payVoucher || $$(detail.payOrder, 'payVoucher'))"
/
>
<span
v-else
>
无
</span>
<span
v-else
>
无
</span>
</el-form-item>
</el-form-item>
<el-form-item
label=
"退款订单:"
<el-form-item
label=
"退款订单:"
v-if=
"detail.status == 12"
>
v-if=
"detail.status == 12"
>
{{
detail
.
refundRemark
}}
{{
detail
.
refundRemark
}}
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
<div
class=
"form_gp"
>
<div
class=
"form_gp"
>
<p
class=
"edit-sub-title"
>
<p
class=
"edit-sub-title"
>
用户信息
用户信息
</p>
</p>
<el-form
class=
"edit-sub-block"
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
:inline=
"true"
>
<el-form-item
label=
"用户姓名:"
>
<el-form-item
label=
"用户姓名:"
>
{{
detail
.
customerName
||
$$
(
detail
,
'customer'
,
'customerName'
)
}}
{{
detail
.
customerName
||
$$
(
detail
,
'customer'
,
'customerName'
)
}}
</el-form-item>
</el-form-item>
...
@@ -75,21 +68,13 @@
...
@@ -75,21 +68,13 @@
{{
detail
.
evaluation
}}
{{
detail
.
evaluation
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"客户签名:"
<el-form-item
label=
"客户签名:"
class=
"photoItem"
v-if=
"detail.electronicSignature"
>
class=
"photoItem"
<img
class=
"order-img"
:src=
"detail.electronicSignature"
v-if=
"detail.electronicSignature"
>
@
click=
"handleEnlargeImg(detail.electronicSignature)"
/>
<img
class=
"order-img"
:src=
"detail.electronicSignature"
@
click=
"handleEnlargeImg(detail.electronicSignature)"
>
</el-form-item>
</el-form-item>
<el-form-item
label=
"客户车辆施工图片:"
<el-form-item
label=
"客户车辆施工图片:"
class=
"photoItem photoItemList"
v-if=
"detail.customerPhotos"
>
class=
"photoItem"
<img
v-for=
"(item, index) in detail.customerPhotos"
:key=
"index"
class=
"img"
:src=
"item.customerPhoto"
v-if=
"detail.customerPhotos"
>
@
click=
"handleEnlargeImg(item.customerPhoto)"
/>
<img
v-for=
"(item, index) in detail.customerPhotos"
:key=
"index"
class=
"order-img"
:src=
"item.customerPhoto"
@
click=
"handleEnlargeImg(item.customerPhoto)"
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</div>
</div>
...
@@ -97,16 +82,14 @@
...
@@ -97,16 +82,14 @@
<p
class=
"edit-sub-title"
>
<p
class=
"edit-sub-title"
>
关联信息
关联信息
</p>
</p>
<el-form
class=
"edit-sub-block"
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
:inline=
"true"
>
<el-form-item
label=
"流量来源:"
>
<el-form-item
label=
"流量来源:"
>
{{
detail
.
merchantName
}}
{{
detail
.
merchantName
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"推荐人:"
>
<el-form-item
label=
"推荐人:"
>
{{
detail
.
employeeName
}}
{{
detail
.
employeeName
}}
</el-form-item>
</el-form-item>
<el-form-item
label=
"技师:"
<el-form-item
label=
"技师:"
v-if=
"detail.sceneType == 1"
>
v-if=
"detail.sceneType == 1"
>
{{
detail
.
technicianName
}}
{{
detail
.
technicianName
}}
</el-form-item>
</el-form-item>
<div>
<div>
...
@@ -123,8 +106,7 @@
...
@@ -123,8 +106,7 @@
</div>
</div>
<div>
<div>
<!-- 审计特殊字段 -->
<!-- 审计特殊字段 -->
<el-form-item
label=
"二级流量方:"
<el-form-item
label=
"二级流量方:"
v-if=
"detail.subShopMerchantName"
>
v-if=
"detail.subShopMerchantName"
>
{{
detail
.
subShopMerchantName
}}
{{
detail
.
subShopMerchantName
}}
</el-form-item>
</el-form-item>
</div>
</div>
...
@@ -134,32 +116,16 @@
...
@@ -134,32 +116,16 @@
<p
class=
"edit-sub-title"
>
<p
class=
"edit-sub-title"
>
订单商品
订单商品
</p>
</p>
<el-table
:data=
"detail.subOrderList"
<el-table
:data=
"detail.subOrderList"
border
border
:header-cell-style=
"
{ 'text-align': 'center', 'background-color': '#fafafa' }" show-summary
:header-cell-style=
"
{ 'text-align': 'center', 'background-color': '#fafafa' }"
:summary-method="getSummaries" style="width: 100%">
show-summary
:summary-method="getSummaries"
style="width: 100%">
<!--
<el-table-column
:prop=
"detail.upgradeFlag === 'Y' ? 'upgradeGoodsCommodityCode' : 'baseGoodsCommodityCode'"
--
>
<!--
<el-table-column
:prop=
"detail.upgradeFlag === 'Y' ? 'upgradeGoodsCommodityCode' : 'baseGoodsCommodityCode'"
--
>
<el-table-column
:prop=
"'upgradeGoodsCommodityCode'"
<el-table-column
:prop=
"'upgradeGoodsCommodityCode'"
align=
"center"
label=
"商品ID"
width=
"180px"
/>
align=
"center"
<el-table-column
:prop=
"'upgradeGoodsName'"
align=
"center"
label=
"商品名称"
/>
label=
"商品ID"
<el-table-column
:prop=
"'upgradeGoodsAlias'"
align=
"center"
label=
"商品别名"
/>
width=
"180px"
/>
<el-table-column
:prop=
"'upgradeGoodsTypeName'"
align=
"center"
label=
"商品分类"
/>
<el-table-column
:prop=
"'upgradeGoodsName'"
<el-table-column
:prop=
"'upgradeBrandMerchantName'"
align=
"center"
label=
"品牌商"
/>
align=
"center"
<el-table-column
:prop=
"'upgradePrice'"
align=
"center"
label=
"商品售价"
/>
label=
"商品名称"
/>
<el-table-column
:prop=
"'upgradeGoodsAlias'"
align=
"center"
label=
"商品别名"
/>
<el-table-column
:prop=
"'upgradeGoodsTypeName'"
align=
"center"
label=
"商品分类"
/>
<el-table-column
:prop=
"'upgradeBrandMerchantName'"
align=
"center"
label=
"品牌商"
/>
<el-table-column
:prop=
"'upgradePrice'"
align=
"center"
label=
"商品售价"
/>
<!--
<el-table-column
<!--
<el-table-column
prop=
"upgradeDiscount"
prop=
"upgradeDiscount"
align=
"center"
align=
"center"
...
@@ -169,27 +135,19 @@
...
@@ -169,27 +135,19 @@
<span
v-else
>
0
</span>
<span
v-else
>
0
</span>
</
template
>
</
template
>
</el-table-column>
-->
</el-table-column>
-->
<el-table-column
prop=
"upgradeWarrantyPeriod"
<el-table-column
prop=
"upgradeWarrantyPeriod"
align=
"center"
label=
"质保年限"
>
align=
"center"
<span
slot-scope=
"scope"
>
{{ scope.row.upgradeWarrantyPeriod ? scope.row.upgradeWarrantyPeriod + '年' : '无'
label=
"质保年限"
>
<span
slot-scope=
"scope"
>
{{ scope.row.upgradeWarrantyPeriod ? (scope.row.upgradeWarrantyPeriod + '年') : '无'
}}
</span>
}}
</span>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"cardCode"
<el-table-column
prop=
"cardCode"
align=
"center"
label=
"质保条形码"
>
align=
"center"
<span
slot-scope=
"scope"
>
{{ scope.row.cardCode ? scope.row.cardCode : '无' }}
</span>
label=
"质保条形码"
>
<span
slot-scope=
"scope"
>
{{ scope.row.cardCode ? (scope.row.cardCode) : '无' }}
</span>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"nums"
<el-table-column
prop=
"nums"
align=
"center"
label=
"数量(件)"
>
align=
"center"
label=
"数量(件)"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
number
}}
件
</span>
<span>
{{
scope
.
row
.
number
}}
件
</span>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"totalPrice"
<el-table-column
prop=
"totalPrice"
align=
"center"
label=
"支付金额"
>
align=
"center"
label=
"支付金额"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"detail.upgradeFlag === 'Y'"
>
¥
{{
scope
.
row
.
totalPrice
||
0
}}
</span>
<span
v-if=
"detail.upgradeFlag === 'Y'"
>
¥
{{
scope
.
row
.
totalPrice
||
0
}}
</span>
<span
v-else
>
0
</span>
<span
v-else
>
0
</span>
...
@@ -202,19 +160,11 @@
...
@@ -202,19 +160,11 @@
订单进度
订单进度
</p>
</p>
<!-- header-cell-style="text-align:center; background-color:#fafafa" -->
<!-- header-cell-style="text-align:center; background-color:#fafafa" -->
<el-table
:data=
"detail.accessLogs"
<el-table
:data=
"detail.accessLogs"
border
border
:header-cell-style=
"{ 'text-align': 'center', 'background-color': '#fafafa' }"
style=
"width: 100%"
>
:header-cell-style=
"{ 'text-align': 'center', 'background-color': '#fafafa' }"
<el-table-column
prop=
"createdDateStr"
align=
"center"
label=
"时间"
/>
style=
"width: 100%"
>
<el-table-column
prop=
"logContent"
align=
"center"
label=
"当前进度"
/>
<el-table-column
prop=
"createdDateStr"
<el-table-column
prop=
"userName"
align=
"center"
label=
"关联操作员"
>
align=
"center"
label=
"时间"
/>
<el-table-column
prop=
"logContent"
align=
"center"
label=
"当前进度"
/>
<el-table-column
prop=
"userName"
align=
"center"
label=
"关联操作员"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"detail.payType == 1 && scope.row.logType == 3"
>
用户 微信支付
</span>
<span
v-if=
"detail.payType == 1 && scope.row.logType == 3"
>
用户 微信支付
</span>
<span
v-else
>
{{
logType
[
scope
.
row
.
logType
]
}}
{{
scope
.
row
.
userName
}}
</span>
<span
v-else
>
{{
logType
[
scope
.
row
.
logType
]
}}
{{
scope
.
row
.
userName
}}
</span>
...
@@ -230,13 +180,9 @@
...
@@ -230,13 +180,9 @@
</p> -->
</p> -->
</div>
</div>
<el-dialog
:visible=
"imgVisible"
<el-dialog
:visible=
"imgVisible"
:before-close=
"handleEnlargeImg"
>
:before-close=
"handleEnlargeImg"
>
<img
width=
"100%"
:src=
"previewImgUrl"
alt=
"图片"
/>
<img
width=
"100%"
:src=
"previewImgUrl"
alt=
"图片"
>
</el-dialog>
</el-dialog>
</d2-container>
</d2-container>
</template>
</template>
...
@@ -248,9 +194,7 @@ import dayjs from 'dayjs'
...
@@ -248,9 +194,7 @@ import dayjs from 'dayjs'
// import { getList, goodsOrderDetail } from '@api/order'
// import { getList, goodsOrderDetail } from '@api/order'
export
default
{
export
default
{
name
:
'OrderDetail'
,
name
:
'OrderDetail'
,
components
:
{
components
:
{},
},
data
()
{
data
()
{
return
{
return
{
// userInfo: this.$store.state.d2admin.user.info,
// userInfo: this.$store.state.d2admin.user.info,
...
@@ -290,11 +234,12 @@ export default {
...
@@ -290,11 +234,12 @@ export default {
Y
:
'已施工'
,
Y
:
'已施工'
,
N
:
'未施工'
N
:
'未施工'
},
},
productList
:
[{
productList
:
[
{
name
:
'xx'
name
:
'xx'
},
{
},
{}
}
],
],
progressList
:
[],
progressList
:
[],
signRefundVisible
:
false
,
signRefundVisible
:
false
,
// signRefundFlag: false,
// signRefundFlag: false,
...
@@ -311,7 +256,7 @@ export default {
...
@@ -311,7 +256,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
// this.detail = this.$route.query
// this.detail = this.$route.query
console
.
log
(
'this.detail'
,
this
.
detail
)
;
console
.
log
(
'this.detail'
,
this
.
detail
)
// this.signRefundFlag = this.$route.params.signRefundFlag
// this.signRefundFlag = this.$route.params.signRefundFlag
// if (this.detail.source == 7) {
// if (this.detail.source == 7) {
...
@@ -351,7 +296,12 @@ export default {
...
@@ -351,7 +296,12 @@ export default {
if
(
index
===
1
)
{
if
(
index
===
1
)
{
const
numberList
=
this
.
detail
.
subOrderList
.
map
(
item
=>
item
.
number
)
const
numberList
=
this
.
detail
.
subOrderList
.
map
(
item
=>
item
.
number
)
sums
[
index
]
=
(
numberList
.
length
?
numberList
.
reduce
((
preVal
,
curVal
)
=>
{
return
preVal
+
curVal
})
:
'0'
)
+
'件'
sums
[
index
]
=
(
numberList
.
length
?
numberList
.
reduce
((
preVal
,
curVal
)
=>
{
return
preVal
+
curVal
})
:
'0'
)
+
'件'
return
return
}
}
...
@@ -363,10 +313,12 @@ export default {
...
@@ -363,10 +313,12 @@ export default {
return
sums
return
sums
},
},
handleClose
()
{
handleClose
()
{
if
(
this
.
$route
.
params
.
from
)
{
// 从待补录订单列表跳转
if
(
this
.
$route
.
params
.
from
)
{
// 从待补录订单列表跳转
this
.
close
({
tagName
:
'/orderSupplement'
})
this
.
close
({
tagName
:
'/orderSupplement'
})
this
.
$router
.
push
({
name
:
'orderSupplement'
})
this
.
$router
.
push
({
name
:
'orderSupplement'
})
}
else
{
// 从订单列表跳转
}
else
{
// 从订单列表跳转
this
.
close
({
tagName
:
'/orderList'
})
this
.
close
({
tagName
:
'/orderList'
})
this
.
$router
.
push
({
name
:
'orderList'
})
this
.
$router
.
push
({
name
:
'orderList'
})
}
}
...
@@ -387,11 +339,14 @@ export default {
...
@@ -387,11 +339,14 @@ export default {
getGoodsOrderDetail
()
{
getGoodsOrderDetail
()
{
const
routerParams
=
this
.
$route
.
query
const
routerParams
=
this
.
$route
.
query
this
.
$apis
.
order
.
goodsOrderDetail
({
orderCode
:
routerParams
?.
orderCode
}).
then
(
res
=>
{
this
.
$apis
.
order
.
goodsOrderDetail
({
orderCode
:
routerParams
?.
orderCode
}).
then
(
res
=>
{
this
.
detail
=
res
// this.detail = res
const
clientSignatureDTOList
=
res
?.
clientSignatureDTOList
[
0
]
||
[]
this
.
detail
=
Object
.
assign
(
clientSignatureDTOList
,
res
)
if
(
this
.
detail
.
source
==
7
)
{
if
(
this
.
detail
.
source
==
7
)
{
this
.
detail
.
createdDate
=
dayjs
(
this
.
detail
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
this
.
detail
.
createdDate
=
dayjs
(
this
.
detail
.
createdDate
).
format
(
'YYYY-MM-DD HH:mm:ss'
)
}
}
const
evaluateList
=
this
.
detail
.
evaluation
.
split
(
','
)
||
[]
// const evaluateList = this.detail.evaluation.split(',') || []
const
evaluateList
=
clientSignatureDTOList
?.
evaluation
?.
split
(
','
)
||
[]
// this.detail.evaluate = this.detail.evaluate.split(',')
// this.detail.evaluate = this.detail.evaluate.split(',')
const
evaluateLabelList
=
{
const
evaluateLabelList
=
{
0
:
'服务态度好'
,
0
:
'服务态度好'
,
...
@@ -407,7 +362,6 @@ export default {
...
@@ -407,7 +362,6 @@ export default {
}
}
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.order-detail
{
.order-detail
{
...
@@ -454,4 +408,25 @@ export default {
...
@@ -454,4 +408,25 @@ export default {
height
:
100px
;
height
:
100px
;
}
}
}
}
</
style
>
.photoItem
{
//
display
:
flex
;
min-height
:
100px
;
.el-form-item__content
{
height
:
auto
!important
;
}
}
.order-detail
.form_gp
.el-form-item.photoItemList
{
//
width
:
400px
;
display
:
flex
;
width
:
auto
;
height
:
auto
;
.img
{
width
:
80px
;
height
:
80px
;
margin-left
:
10px
;
}
}
</
style
>
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