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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
195 additions
and
199 deletions
src/views/orderManage/carDamageDetail.vue
src/views/orderManage/orderDetail.vue
src/views/orderManage/carDamageDetail.vue
View file @
6d10a80
...
...
@@ -9,16 +9,15 @@
<p
class=
"edit-sub-title"
>
车辆信息
</p>
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
<el-form-item
label=
"车架号:"
>
{{
$$
(
detail
,
'ownerDTO'
,
'carVin'
)
}}
{{
$$
(
detail
,
'ownerDTO'
,
'carVin'
)
}}
</el-form-item>
<el-form-item
label=
"座位数:"
>
{{
$$
(
detail
,
'ownerDTO'
,
'seat'
)
}}
{{
$$
(
detail
,
'ownerDTO'
,
'seat'
)
}}
</el-form-item>
<el-form-item
label=
"车辆发票价/元:"
>
{{
$$
(
detail
,
'ownerDTO'
,
'price'
)
/
100
}}
{{
$$
(
detail
,
'ownerDTO'
,
'price'
)
/
100
}}
</el-form-item>
</el-form>
</div>
...
...
@@ -26,16 +25,15 @@
<p
class=
"edit-sub-title"
>
车主信息
</p>
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
<el-form-item
label=
"姓名:"
>
{{
$$
(
detail
,
'ownerDTO'
,
'owner'
)
}}
{{
$$
(
detail
,
'ownerDTO'
,
'owner'
)
}}
</el-form-item>
<el-form-item
label=
"手机号:"
>
{{
$$
(
detail
,
'ownerDTO'
,
'phone'
)
}}
{{
$$
(
detail
,
'ownerDTO'
,
'phone'
)
}}
</el-form-item>
<el-form-item
label=
"证件号:"
>
{{
$$
(
detail
,
'ownerDTO'
,
'certificateNo'
)
}}
{{
$$
(
detail
,
'ownerDTO'
,
'certificateNo'
)
}}
</el-form-item>
</el-form>
</div>
...
...
@@ -43,49 +41,36 @@
<p
class=
"edit-sub-title"
>
商业险信息
</p>
<el-table
:data=
"commerceInsureList"
border
:header-cell-style=
"
{'text-align':'center','background-color':'#fafafa'}"
style="width: 100%">
<el-table-column
prop=
"company"
align=
"center"
label=
"保险公司"
/>
<el-table-column
prop=
"base"
align=
"center"
label=
"基础车损险"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
base
/
100
}}
元
</
template
>
<el-table
:data=
"commerceInsureList"
border
:header-cell-style=
"
{ 'text-align': 'center', 'background-color': '#fafafa' }" style="width: 100%">
<el-table-column
prop=
"company"
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
prop=
"three"
align=
"center"
label=
"第三方责任险"
/>
<el-table-column
prop=
"threePremium"
align=
"center"
label=
"保费"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
threePremium
/
100
}}
元
</
template
>
<el-table-column
prop=
"three"
align=
"center"
label=
"第三方责任险"
/>
<el-table-column
prop=
"threePremium"
align=
"center"
label=
"保费"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
threePremium
/
100
}}
元
</
template
>
</el-table-column>
<el-table-column
prop=
"driver"
align=
"center"
label=
"车上人员责任险(司机)"
/>
<el-table-column
prop=
"carInsidePremium"
align=
"center"
label=
"保费"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
carInsidePremium
/
100
}}
元
</
template
>
<el-table-column
prop=
"driver"
align=
"center"
label=
"车上人员责任险(司机)"
/>
<el-table-column
prop=
"carInsidePremium"
align=
"center"
label=
"保费"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
carInsidePremium
/
100
}}
元
</
template
>
</el-table-column>
<el-table-column
prop=
"passenger"
align=
"center"
label=
"车上人员责任险(乘客)"
/>
<el-table-column
prop=
"passengerPremium"
align=
"center"
label=
"保费"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
passengerPremium
/
100
}}
元
</
template
>
<el-table-column
prop=
"passenger"
align=
"center"
label=
"车上人员责任险(乘客)"
/>
<el-table-column
prop=
"passengerPremium"
align=
"center"
label=
"保费"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
passengerPremium
/
100
}}
元
</
template
>
</el-table-column>
</el-table>
</div>
<div
class=
"form_gp"
>
<p
class=
"edit-sub-title"
>
其他商业险
</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>
</div>
...
...
@@ -93,33 +78,24 @@
<p
class=
"edit-sub-title"
>
交强和车船税
</p>
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
<el-form-item
label=
"交强险:"
>
{{ $$(compulsoryInsure,'compensation') }} /
保费:{{ $$(compulsoryInsure,'payPrice') / 100 }}元
</el-form-item>
<el-form-item
label=
"车船税:"
>
{{ $$(vehicleInsure,'compensation') }}年 /
保费:{{ $$(compulsoryInsure,'payPrice') / 100 }}元
</el-form-item>
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
<el-form-item
label=
"交强险:"
>
{{ $$(compulsoryInsure, 'compensation') }} / 保费:{{ $$(compulsoryInsure, 'payPrice') /
100 }}元
</el-form-item>
<el-form-item
label=
"车船税:"
>
{{ $$(vehicleInsure, 'compensation') }}年 / 保费:{{ $$(compulsoryInsure, 'payPrice') /
100 }}元
</el-form-item>
</el-form>
</div>
<div
class=
"form_gp"
>
<p
class=
"edit-sub-title"
>
增值车损险服务
</p>
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
<el-form-item
label=
"商品:"
>
<img
v-if=
"$$(detail,'quotationGoodsInfo','titlePictureUrl')"
class=
"order-img"
:src=
"$$(detail,'quotationGoodsInfo','titlePictureUrl')"
@
click=
"handleEnlargeImg"
>
{{ $$(detail,'quotationGoodsInfo','goodsName') }}
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
<el-form-item
label=
"商品:"
class=
"goods"
>
<img
v-if=
"$$(detail, 'quotationGoodsInfo', 'titlePictureUrl')"
class=
"order-img"
:src=
"$$(detail, 'quotationGoodsInfo', 'titlePictureUrl')"
@
click=
"handleEnlargeImg"
/>
{{ $$(detail, 'quotationGoodsInfo', 'goodsName') }}
</el-form-item>
<el-form-item
label=
"增值权益价格/元:"
style=
"width:450px"
>
<el-form-item
label=
"增值权益价格/元:"
style=
"width:450px"
>
{{ detail.quotedPriceUpdate / 100 }}
</el-form-item>
</el-form>
...
...
@@ -132,13 +108,9 @@
</p> -->
</div>
<el-dialog
:visible=
"imgVisible"
:before-close=
"handleEnlargeImg"
>
<img
width=
"100%"
:src=
"$$(detail,'quotationGoodsInfo','titlePictureUrl') || ''"
alt=
"图片"
>
<el-dialog
:visible=
"imgVisible"
:before-close=
"handleEnlargeImg"
>
<img
width=
"100%"
:src=
"$$(detail, 'quotationGoodsInfo', 'titlePictureUrl') || ''"
alt=
"图片"
/>
</el-dialog>
</d2-container>
</template>
...
...
@@ -149,20 +121,56 @@ import dayjs from 'dayjs'
// import { quotationFindById } from "@api/vehicleDamage"
export
default
{
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
()
{
return
{
imgVisible
:
false
,
detail
:
{},
commerceInsureList
:
[],
//商业险
compulsoryInsure
:
{},
//交强险
vehicleInsure
:
{},
//车船税
commerceInsureList
:
[],
//商业险
compulsoryInsure
:
{},
//交强险
vehicleInsure
:
{},
//车船税
otherInsuranceList
:
[]
}
},
computed
:
{
},
computed
:
{},
mounted
()
{
this
.
detail
=
this
.
$route
.
query
this
.
quotationFindById
()
...
...
@@ -189,14 +197,15 @@ export default {
this
.
compulsoryInsure
=
item
}
else
if
(
item
.
type
==
2
)
{
this
.
vehicleInsure
=
item
}
else
if
(
item
.
type
==
4
)
{
this
.
otherInsuranceList
.
push
(
item
)
}
})
;
})
}
})
}
}
}
</
script
>
<
style
scoped
lang=
"scss"
>
.order-detail
{
...
...
@@ -204,9 +213,11 @@ export default {
margin-top
:
0
!important
;
background-color
:
#fff
;
}
.edit-title
{
//
padding-left
:
0
;
}
.form_gp
{
color
:
#333333
;
padding
:
20px
30px
;
...
...
@@ -228,10 +239,18 @@ export default {
width
:
400px
;
margin-bottom
:
0px
;
}
.goods
{
height
:
100px
;
//
display
:
flex
;
}
.order-img
{
width
:
80px
;
height
:
80px
;
cursor
:
pointer
;
vertical-align
:
middle
;
}
}
...
...
@@ -240,16 +259,18 @@ export default {
margin-bottom
:
20px
;
}
}
.signRefundBtn
{
margin-left
:
10px
;
.signRefundIcon
{
width
:
12px
;
margin-right
:
5px
;
}
span
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
}
</
style
>
}
</
style
>
src/views/orderManage/orderDetail.vue
View file @
6d10a80
...
...
@@ -9,24 +9,21 @@
<p
class=
"edit-sub-title"
>
订单详情
</p>
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
<el-form-item
label=
"订单单号:"
>
{{
detail
.
orderCode
}}
</el-form-item>
<el-form-item
label=
"订单状态:"
>
{{
statusOpts
[
detail
.
status
]
}}
</el-form-item>
<el-form-item
label=
"订单来源:"
v-if=
"!specialAccout"
>
<el-form-item
label=
"订单来源:"
v-if=
"!specialAccout"
>
{{
detail
.
source
==
7
?
'系统导入'
:
'小程序订单'
}}
</el-form-item>
<el-form-item
label=
"交易流水:"
>
<el-form-item
label=
"交易流水:"
style=
"width:400px"
>
{{
detail
.
outTradeNo
||
$$
(
detail
.
payOrder
,
'outTradeNo'
)
}}
</el-form-item>
<el-form-item
v-if=
"detail.source == 7"
label=
"订单导入时间:"
>
<el-form-item
v-if=
"detail.source == 7"
label=
"订单导入时间:"
>
{{
detail
.
createdDate
}}
</el-form-item>
<el-form-item
label=
"支付方式:"
>
...
...
@@ -39,26 +36,22 @@
<el-form-item
label=
"支付状态:"
>
{{
detail
.
upgradeFlag
==
'N'
?
'战败'
:
payStatusOpts
[
detail
.
payStatus
||
$$
(
detail
.
payOrder
,
'payStatus'
)]
}}
</el-form-item>
<el-form-item
label=
"收款凭证:"
>
<img
v-if=
"detail.payVoucher || $$(detail.payOrder, 'payVoucher')"
class=
"order-img"
:src=
"detail.payVoucher || $$(detail.payOrder, 'payVoucher')"
@
click=
"handleEnlargeImg(detail.payVoucher || $$(detail.payOrder, 'payVoucher'))"
>
<el-form-item
label=
"收款凭证:"
class=
"photoItem"
>
<img
v-if=
"detail.payVoucher || $$(detail.payOrder, 'payVoucher')"
class=
"order-img"
:src=
"detail.payVoucher || $$(detail.payOrder, 'payVoucher')"
@
click=
"handleEnlargeImg(detail.payVoucher || $$(detail.payOrder, 'payVoucher'))"
/>
<span
v-else
>
无
</span>
</el-form-item>
<el-form-item
label=
"退款订单:"
v-if=
"detail.status == 12"
>
<el-form-item
label=
"退款订单:"
v-if=
"detail.status == 12"
>
{{
detail
.
refundRemark
}}
</el-form-item>
</el-form>
</div>
<div
class=
"form_gp"
>
<p
class=
"edit-sub-title"
>
用户信息
</p>
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
<el-form-item
label=
"用户姓名:"
>
{{
detail
.
customerName
||
$$
(
detail
,
'customer'
,
'customerName'
)
}}
</el-form-item>
...
...
@@ -75,21 +68,13 @@
{{
detail
.
evaluation
}}
</el-form-item>
<el-form-item
label=
"客户签名:"
class=
"photoItem"
v-if=
"detail.electronicSignature"
>
<img
class=
"order-img"
:src=
"detail.electronicSignature"
@
click=
"handleEnlargeImg(detail.electronicSignature)"
>
<el-form-item
label=
"客户签名:"
class=
"photoItem"
v-if=
"detail.electronicSignature"
>
<img
class=
"order-img"
:src=
"detail.electronicSignature"
@
click=
"handleEnlargeImg(detail.electronicSignature)"
/>
</el-form-item>
<el-form-item
label=
"客户车辆施工图片:"
class=
"photoItem"
v-if=
"detail.customerPhotos"
>
<img
v-for=
"(item, index) in detail.customerPhotos"
:key=
"index"
class=
"order-img"
:src=
"item.customerPhoto"
@
click=
"handleEnlargeImg(item.customerPhoto)"
>
<el-form-item
label=
"客户车辆施工图片:"
class=
"photoItem photoItemList"
v-if=
"detail.customerPhotos"
>
<img
v-for=
"(item, index) in detail.customerPhotos"
:key=
"index"
class=
"img"
:src=
"item.customerPhoto"
@
click=
"handleEnlargeImg(item.customerPhoto)"
/>
</el-form-item>
</el-form>
</div>
...
...
@@ -97,16 +82,14 @@
<p
class=
"edit-sub-title"
>
关联信息
</p>
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
<el-form
class=
"edit-sub-block"
:inline=
"true"
>
<el-form-item
label=
"流量来源:"
>
{{
detail
.
merchantName
}}
</el-form-item>
<el-form-item
label=
"推荐人:"
>
{{
detail
.
employeeName
}}
</el-form-item>
<el-form-item
label=
"技师:"
v-if=
"detail.sceneType == 1"
>
<el-form-item
label=
"技师:"
v-if=
"detail.sceneType == 1"
>
{{
detail
.
technicianName
}}
</el-form-item>
<div>
...
...
@@ -123,8 +106,7 @@
</div>
<div>
<!-- 审计特殊字段 -->
<el-form-item
label=
"二级流量方:"
v-if=
"detail.subShopMerchantName"
>
<el-form-item
label=
"二级流量方:"
v-if=
"detail.subShopMerchantName"
>
{{
detail
.
subShopMerchantName
}}
</el-form-item>
</div>
...
...
@@ -134,32 +116,16 @@
<p
class=
"edit-sub-title"
>
订单商品
</p>
<el-table
:data=
"detail.subOrderList"
border
:header-cell-style=
"
{ 'text-align': 'center', 'background-color': '#fafafa' }"
show-summary
:summary-method="getSummaries"
style="width: 100%">
<el-table
:data=
"detail.subOrderList"
border
:header-cell-style=
"
{ 'text-align': 'center', 'background-color': '#fafafa' }" show-summary
:summary-method="getSummaries" style="width: 100%">
<!--
<el-table-column
:prop=
"detail.upgradeFlag === 'Y' ? 'upgradeGoodsCommodityCode' : 'baseGoodsCommodityCode'"
--
>
<el-table-column
:prop=
"'upgradeGoodsCommodityCode'"
align=
"center"
label=
"商品ID"
width=
"180px"
/>
<el-table-column
:prop=
"'upgradeGoodsName'"
align=
"center"
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
:prop=
"'upgradeGoodsCommodityCode'"
align=
"center"
label=
"商品ID"
width=
"180px"
/>
<el-table-column
:prop=
"'upgradeGoodsName'"
align=
"center"
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
prop=
"upgradeDiscount"
align=
"center"
...
...
@@ -169,27 +135,19 @@
<span
v-else
>
0
</span>
</
template
>
</el-table-column>
-->
<el-table-column
prop=
"upgradeWarrantyPeriod"
align=
"center"
label=
"质保年限"
>
<span
slot-scope=
"scope"
>
{{ scope.row.upgradeWarrantyPeriod ? (scope.row.upgradeWarrantyPeriod + '年') : '无'
<el-table-column
prop=
"upgradeWarrantyPeriod"
align=
"center"
label=
"质保年限"
>
<span
slot-scope=
"scope"
>
{{ scope.row.upgradeWarrantyPeriod ? scope.row.upgradeWarrantyPeriod + '年' : '无'
}}
</span>
</el-table-column>
<el-table-column
prop=
"cardCode"
align=
"center"
label=
"质保条形码"
>
<span
slot-scope=
"scope"
>
{{ scope.row.cardCode ? (scope.row.cardCode) : '无' }}
</span>
<el-table-column
prop=
"cardCode"
align=
"center"
label=
"质保条形码"
>
<span
slot-scope=
"scope"
>
{{ scope.row.cardCode ? scope.row.cardCode : '无' }}
</span>
</el-table-column>
<el-table-column
prop=
"nums"
align=
"center"
label=
"数量(件)"
>
<el-table-column
prop=
"nums"
align=
"center"
label=
"数量(件)"
>
<
template
slot-scope=
"scope"
>
<span>
{{
scope
.
row
.
number
}}
件
</span>
</
template
>
</el-table-column>
<el-table-column
prop=
"totalPrice"
align=
"center"
label=
"支付金额"
>
<el-table-column
prop=
"totalPrice"
align=
"center"
label=
"支付金额"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"detail.upgradeFlag === 'Y'"
>
¥
{{
scope
.
row
.
totalPrice
||
0
}}
</span>
<span
v-else
>
0
</span>
...
...
@@ -202,19 +160,11 @@
订单进度
</p>
<!-- header-cell-style="text-align:center; background-color:#fafafa" -->
<el-table
:data=
"detail.accessLogs"
border
:header-cell-style=
"{ 'text-align': 'center', 'background-color': '#fafafa' }"
style=
"width: 100%"
>
<el-table-column
prop=
"createdDateStr"
align=
"center"
label=
"时间"
/>
<el-table-column
prop=
"logContent"
align=
"center"
label=
"当前进度"
/>
<el-table-column
prop=
"userName"
align=
"center"
label=
"关联操作员"
>
<el-table
:data=
"detail.accessLogs"
border
:header-cell-style=
"{ 'text-align': 'center', 'background-color': '#fafafa' }"
style=
"width: 100%"
>
<el-table-column
prop=
"createdDateStr"
align=
"center"
label=
"时间"
/>
<el-table-column
prop=
"logContent"
align=
"center"
label=
"当前进度"
/>
<el-table-column
prop=
"userName"
align=
"center"
label=
"关联操作员"
>
<
template
slot-scope=
"scope"
>
<span
v-if=
"detail.payType == 1 && scope.row.logType == 3"
>
用户 微信支付
</span>
<span
v-else
>
{{
logType
[
scope
.
row
.
logType
]
}}
{{
scope
.
row
.
userName
}}
</span>
...
...
@@ -230,13 +180,9 @@
</p> -->
</div>
<el-dialog
:visible=
"imgVisible"
:before-close=
"handleEnlargeImg"
>
<img
width=
"100%"
:src=
"previewImgUrl"
alt=
"图片"
>
<el-dialog
:visible=
"imgVisible"
:before-close=
"handleEnlargeImg"
>
<img
width=
"100%"
:src=
"previewImgUrl"
alt=
"图片"
/>
</el-dialog>
</d2-container>
</template>
...
...
@@ -248,9 +194,7 @@ import dayjs from 'dayjs'
// import { getList, goodsOrderDetail } from '@api/order'
export
default
{
name
:
'OrderDetail'
,
components
:
{
},
components
:
{},
data
()
{
return
{
// userInfo: this.$store.state.d2admin.user.info,
...
...
@@ -290,11 +234,12 @@ export default {
Y
:
'已施工'
,
N
:
'未施工'
},
productList
:
[{
name
:
'xx'
},
{
}],
productList
:
[
{
name
:
'xx'
},
{}
],
progressList
:
[],
signRefundVisible
:
false
,
// signRefundFlag: false,
...
...
@@ -311,7 +256,7 @@ export default {
},
mounted
()
{
// this.detail = this.$route.query
console
.
log
(
'this.detail'
,
this
.
detail
)
;
console
.
log
(
'this.detail'
,
this
.
detail
)
// this.signRefundFlag = this.$route.params.signRefundFlag
// if (this.detail.source == 7) {
...
...
@@ -351,7 +296,12 @@ export default {
if
(
index
===
1
)
{
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
}
...
...
@@ -363,10 +313,12 @@ export default {
return
sums
},
handleClose
()
{
if
(
this
.
$route
.
params
.
from
)
{
// 从待补录订单列表跳转
if
(
this
.
$route
.
params
.
from
)
{
// 从待补录订单列表跳转
this
.
close
({
tagName
:
'/orderSupplement'
})
this
.
$router
.
push
({
name
:
'orderSupplement'
})
}
else
{
// 从订单列表跳转
}
else
{
// 从订单列表跳转
this
.
close
({
tagName
:
'/orderList'
})
this
.
$router
.
push
({
name
:
'orderList'
})
}
...
...
@@ -387,11 +339,14 @@ export default {
getGoodsOrderDetail
()
{
const
routerParams
=
this
.
$route
.
query
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
)
{
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(',')
const
evaluateLabelList
=
{
0
:
'服务态度好'
,
...
...
@@ -407,9 +362,8 @@ export default {
}
}
}
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
>
.order-detail
{
.d2-container-content
{
margin-top
:
0
!important
;
...
...
@@ -454,4 +408,25 @@ export default {
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