Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
罗超
SuperMan
Commits
5476eb33
Commit
5476eb33
authored
Aug 06, 2024
by
youjie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
no message
parent
70c7e103
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
264 additions
and
252 deletions
+264
-252
OrderList.vue
src/components/CarDealerOrder/components/OrderList.vue
+236
-237
ReservationOrder.vue
...components/CarDealerOrder/components/ReservationOrder.vue
+28
-15
No files found.
src/components/CarDealerOrder/components/OrderList.vue
View file @
5476eb33
...
@@ -511,263 +511,262 @@
...
@@ -511,263 +511,262 @@
<
template
>
<
template
>
<div>
<div>
<div
style=
"text-align: right;position: fixed;top: 62px; right: 89px;"
>
<
!--
<
div
style=
"text-align: right;position: fixed;top: 62px; right: 89px;"
>
<el-button
class=
"hollowFixedBtn"
v-if=
"pagesTitle=='OP'"
@
click=
"setCompleted"
:loading=
"CompletedLoading"
>
<el-button
class=
"hollowFixedBtn"
v-if=
"pagesTitle=='OP'"
@
click=
"setCompleted"
:loading=
"CompletedLoading"
>
{{
$t
(
'objFill.oneclickfinish'
)
}}
{{
$t
(
'objFill.oneclickfinish'
)
}}
</el-button>
</el-button>
</div>
</div>
-->
<el-table
ref=
"multipleTable"
:data=
"OrderList"
tooltip-effect=
"dark"
style=
"width: 100%"
row-key=
"OrderId"
<div
v-for=
"(child,indexs) in OrderList"
>
@
selection-change=
"handleSelectionChange"
>
<div
class=
"row-c justify-sb align-c py"
>
<!--
<el-table-column
type=
"selection"
:selectable=
"selectable"
:reserve-selection=
"true"
v-if=
"pagesTitle=='OP'"
>
<div
class=
"row-c"
>
</el-table-column>
-->
<div
v-if=
"false"
>
<el-table-column
:label=
"pagesTitle=='OP'?'':''"
>
<!-- active activeNo -->
<template
slot-scope=
"scope"
>
<div
class=
"orderType cf fz12"
:class=
"[child.IsFinish==1?'active':'']"
>
<div
class=
"row-c justify-sb align-c py"
>
{{
child
.
IsFinish
==
1
?
$t
(
'objFill.finished'
):
$t
(
'objFill.uncompleted'
)
}}
<div
class=
"row-c"
>
</div>
<div
v-if=
"false"
>
</div>
<!-- active activeNo -->
<div
class=
"cblack fz14 mr"
v-if=
"child.IsFinish == 1"
>
<div
class=
"orderType cf fz12"
:class=
"[scope.row.IsFinish==1?'active':'']"
>
<span
class=
""
>
{{
scope
.
row
.
IsFinish
==
1
?
$t
(
'objFill.finished'
):
$t
(
'objFill.uncompleted'
)
}}
<span>
{{
child
.
FinishEmpName
}}
/
</span>
<span
class=
"text-grey-6"
>
{{
child
.
FinishTimeStr
}}
</span>
</span>
</div>
<!--
<div
class=
"c9e fz12"
>
<span>
{{
$t
(
'OrderList.search.orderId'
)
}}
:
</span>
<span>
{{
scope
.
row
.
OrderId
}}
</span>
<span
class=
"copy cblack cursor-pointer"
v-if=
"copyId != scope.row.OrderId"
@
click=
"CopyHandler(scope.row)"
>
{{
$t
(
'objFill.copy'
)
}}
</span>
<span
v-else
class=
"copy c059FF6 bgD9F3FF cursor-pointer"
>
<i
class=
"el-icon-check mr"
></i>
{{
$t
(
'objFill.copied'
)
}}
</span>
</div>
<span
class=
"cblack fz12 ml mr"
v-if=
"scope.row.OrderTCNUM"
>
<span
class=
"c9e"
>
系统团号:
</span>
{{
scope
.
row
.
OrderTCNUM
}}
</span>
<div
class=
"cblack fz12 mr"
v-if=
"false"
>
<span
class=
""
>
<span
class=
"c9e"
>
{{
$t
(
'objFill.petition'
)
}}
:
</span>
<span
class=
"text-grey-6"
>
{{
scope
.
row
.
PetitionId
}}
</span>
</span>
</div>
-->
</div>
<!--
<div
class=
"c9e fz12"
>
<span>
{{
$t
(
'objFill.guestinfor'
)
}}
:
{{
scope
.
row
.
CustomerName
}}
<span
v-if=
"scope.row.CustomerTel"
>
/ Tel:
{{
scope
.
row
.
CustomerTel
}}
</span>
<span
v-if=
"scope.row.CustomerMail"
>
/ Email:
{{
scope
.
row
.
CustomerMail
}}
</span>
</span>
</div>
-->
<div
class=
"row c9e fz12"
>
<span
class=
"mr"
>
{{
$t
(
'objFill.orderholder'
)
}}
:
{{
child
.
CreateByName
}}
/
{{
child
.
CreateDateStr
}}
</span>
<div
class=
""
>
<i
class=
"mx5"
:class=
"
{
'el-icon-alarm-clock c20C997': child.OrderState == 1,
'el-icon-refresh cff9800': child.OrderState == 2,
}">
</i>
<span
class=
"fz12 cblack"
:class=
"
{
c20C997: child.OrderState == 1,
cF1416C: child.OrderState == 2,
}">
<!--
{{
child
.
typeInfo
.
Name
}}
-->
</span>
</div>
</div>
</div>
<div
v-if=
"items in child.OrderList"
>
<div
class=
"mb"
>
<el-table
:data=
"[items]"
style=
"width:100%"
border
>
<el-table-column
:label=
"$t('objFill.caravanshopcol.t1')"
min-width=
"100"
style=
"background:#EAEAEA"
>
<template
slot-scope=
"scope"
>
<div
v-if=
"scope.row.CarModel"
>
{{
scope
.
row
.
CarModel
.
CarName
+
'/'
+
scope
.
row
.
CarModel
.
CarNo
}}
</div>
</div>
<span
style=
"color: #999999;"
>
{{
scope
.
row
.
UseDateStr
}}
</span>
<span
style=
"color: #999999;"
>
/
{{
scope
.
row
.
UseDay
}}
天
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('objFill.caravanshopcol.t2')"
min-width=
"200"
style=
"background:#EAEAEA"
>
<
template
slot-scope=
"scope"
>
<div
class=
"RoomList"
>
<div
class=
"fz12 c9e"
v-for=
"(x, i) in scope.row.NewOrderDetailList"
>
<span
class=
"mr"
>
{{
$t
(
'objFill.unit.thefirst'
)
}}
{{
x
.
Day
}}
{{
$t
(
'objFill.unit.day'
)
}}
</span>
<span
class=
"ml mr"
v-if=
"x.DriverModel"
>
{{
$t
(
'objFill.driver'
)
}}
:
{{
x
.
DriverModel
.
DriverName
}}
/
{{
x
.
DriverModel
.
DriverTel
}}
</span>
<span
class=
"ml mr"
v-if=
"x.CopilotDriverModel"
>
{{
$t
(
'objFill.assistantdriver'
)
}}
:
{{
x
.
CopilotDriverModel
.
DriverName
}}
/
{{
x
.
CopilotDriverModel
.
DriverTel
}}
</span>
<span
class=
"ml"
>
{{
x
.
useTypeInfo
.
StatusName
}}
</span>
</div>
</div>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('objFill.caravanshopcol.t3')"
style=
"background:#EAEAEA"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
Money
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('objFill.caravanshopcol.t4')"
min-width=
"70"
style=
"background:#EAEAEA"
>
<
template
slot-scope=
"scope"
>
<span
class=
"fz15 fbold"
>
{{
scope
.
row
.
DueInMoney
}}
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('objFill.caravanshopcol.t5')"
min-width=
"70"
style=
"background:#EAEAEA"
>
<
template
slot-scope=
"scope"
>
<span
class=
"fz15 fbold"
>
{{
scope
.
row
.
Income
}}
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('objFill.caravanshopcol.t6')"
min-width=
"70"
style=
"background:#EAEAEA"
>
<
template
slot-scope=
"scope"
>
<span
class=
"fz15 fbold"
>
{{
scope
.
row
.
Refund
}}
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('objFill.caravanshopcol.t7')"
min-width=
"70"
style=
"background:#EAEAEA"
>
<
template
slot-scope=
"scope"
>
<span
class=
"fz15 fbold"
>
{{
scope
.
row
.
PlatformMoney
}}
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('objFill.caravanshopcol.t8')"
min-width=
"70"
style=
"background:#EAEAEA"
>
<
template
slot-scope=
"scope"
>
<span
class=
"fz15 fbold"
>
{{
scope
.
row
.
PlatformTax
}}
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('objFill.caravanshopcol.t9')"
min-width=
"70"
style=
"background:#EAEAEA"
>
<
template
slot-scope=
"scope"
>
<span
class=
"fz15 fbold"
>
{{
scope
.
row
.
CostMoney
}}
</span>
</
template
>
</el-table-column>
<!-- -->
<
template
slot=
"append"
v-if=
"items.Remark||items.isMore"
>
<div
style=
"padding:10px;color:#f1416c"
>
{{
$t
(
'pub.pubRemark'
)
}}
:
<!--
{{
items
.
Remark
}}
-->
</div>
</div>
<div
class=
"cblack fz14 mr"
v-if=
"scope.row.IsFinish == 1"
>
<!--
<div
:style=
"
{'height': items.isMore?'20px':''}">
</div>
-->
<span
class=
""
>
<!--
<more
v-if=
"items.isMore"
@
change=
"ViewMore(items,scope.$index)"
:upIcon=
"items.upIcon"
></more>
-->
<span>
{{
scope
.
row
.
FinishEmpName
}}
/
</span>
</
template
>
<span
class=
"text-grey-6"
>
{{
scope
.
row
.
FinishTimeStr
}}
</span>
</el-table>
</span>
</div>
</div>
<div
class=
"c9e fz12"
>
<!-- <div class="row justify-sb mt mb20"
<span>
{{
$t
(
'OrderList.search.orderId'
)
}}
:
</span>
v-if="item.IncomeList.length>0||item.RefundList.length>0||item.CostList.length>0">
<span>
{{
scope
.
row
.
OrderId
}}
</span>
<div class="column px15 bgf5 radius5 flex-g pa relative" style="min-width: 150px;max-width:400px">
<span
class=
"copy cblack cursor-pointer"
v-if=
"copyId != scope.row.OrderId"
<div class="fz12">{{$t('objFill.collectiondocument')}}</div>
@
click=
"CopyHandler(scope.row)"
>
{{
$t
(
'objFill.copy'
)
}}
</span>
<div class="row wrap orderNo fz12 py">
<span
v-else
class=
"copy c059FF6 bgD9F3FF cursor-pointer"
>
<span class="cursor-pointer radius5 mr mb px5"
<i
class=
"el-icon-check mr"
></i>
{{
$t
(
'objFill.copied'
)
}}
:class="{'bgD9F3FF':x.ColorState==1,'bg20c997':x.ColorState==2,'bgFAEAED':x.ColorState==3,'bjFFF3E0':x.ColorState==4,
</span>
'c3FC4FF':x.ColorState==1,'c20c997':x.ColorState==2,'cF1416C':x.ColorState==3,'cff9800':x.ColorState==4}" v-for="(x, i) in item.IncomeList"
</div>
@click="openDetails(x)">{{ x.FrID }}</span>
<span
class=
"cblack fz12 ml mr"
v-if=
"scope.row.OrderTCNUM"
>
<span
class=
"c9e"
>
系统团号:
</span>
{{
scope
.
row
.
OrderTCNUM
}}
</span>
<span v-if="item.IncomeList.length == 0" class="c9e fz12">
<div
class=
"cblack fz12 mr"
v-if=
"false"
>
{{$t('objFill.nocollectiondocument')}}
<span
class=
""
>
<span
class=
"c9e"
>
{{
$t
(
'objFill.petition'
)
}}
:
</span>
<span
class=
"text-grey-6"
>
{{
scope
.
row
.
PetitionId
}}
</span>
</span>
</div>
</div>
<div
class=
"c9e fz12"
>
<span>
{{
$t
(
'objFill.guestinfor'
)
}}
:
{{
scope
.
row
.
CustomerName
}}
<span
v-if=
"scope.row.CustomerTel"
>
/ Tel:
{{
scope
.
row
.
CustomerTel
}}
</span>
<span
v-if=
"scope.row.CustomerMail"
>
/ Email:
{{
scope
.
row
.
CustomerMail
}}
</span>
</span>
</span>
</div>
</div>
<div
class=
"row c9e fz12"
>
<el-tooltip v-if="item.OrderState == 1" class="item" effect="dark"
<span
class=
"mr"
>
{{
$t
(
'objFill.orderholder'
)
}}
:
:content="$t('objFill.preparedocument')" placement="top">
{{
scope
.
row
.
CreateByName
}}
/
{{
scope
.
row
.
CreateDateStr
}}
<i class="absolute right20 bottom20 el-icon-circle-plus cursor-pointer c059FF6"
@click="makeAdocument(item, 1)"></i>
</el-tooltip>
</div>
<div class="column px15 bgf5 radius5 ml flex-g pa relative" style="min-width: 150px;max-width:400px">
<div class="fz12">{{$t('objFill.refundreceipt')}}</div>
<div class="row wrap orderNo fz12 py">
<span class="cursor-pointer radius5 mr mb px5"
:class="{'bgD9F3FF':x.ColorState==1,'bg20c997':x.ColorState==2,'bgFAEAED':x.ColorState==3,'bjFFF3E0':x.ColorState==4,
'c3FC4FF':x.ColorState==1,'c20c997':x.ColorState==2,'cF1416C':x.ColorState==3,'cff9800':x.ColorState==4}" v-for="(x, i) in item.RefundList"
@click="openDetails(x)">{{ x.FrID }}</span>
<span v-if="item.RefundList.length == 0" class="c9e fz12">
{{$t('objFill.norefundreceipt')}}
</span>
</span>
<div
class=
""
>
<i
class=
"mx5"
:class=
"
{
'el-icon-alarm-clock c20C997': scope.row.OrderState == 1,
'el-icon-refresh cff9800': scope.row.OrderState == 2,
}">
</i>
<span
class=
"fz12 cblack"
:class=
"
{
c20C997: scope.row.OrderState == 1,
cF1416C: scope.row.OrderState == 2,
}">
{{
scope
.
row
.
typeInfo
.
Name
}}
</span>
</div>
</div>
</div>
<el-tooltip v-if="item.OrderState == 1" class="item" effect="dark"
:content="$t('objFill.preparedocument')" placement="top">
<i class="absolute right20 bottom20 el-icon-circle-plus cursor-pointer c059FF6"
@click="makeAdocument(item, 2)"></i>
</el-tooltip>
</div>
</div>
<div
class=
"mb"
>
<div class="column px15 bgf5 radius5 ml flex-g pa relative" style="min-width: 150px;max-width:400px">
<el-table
:data=
"[scope.row]"
style=
"width:100%"
border
>
<div class="fz12">{{$t('objFill.costdocument')}}</div>
<el-table-column
:label=
"$t('objFill.caravanshopcol.t1')"
min-width=
"100"
style=
"background:#EAEAEA"
>
<div class="row wrap orderNo fz12 py">
<template
slot-scope=
"scopes"
>
<span class="cursor-pointer radius5 mr mb px5"
<div
v-if=
"scope.row.CarModel"
>
:class="{'bgD9F3FF':x.ColorState==1,'bg20c997':x.ColorState==2,'bgFAEAED':x.ColorState==3,'bjFFF3E0':x.ColorState==4,
{{
scope
.
row
.
CarModel
.
CarName
+
'/'
+
scope
.
row
.
CarModel
.
CarNo
}}
'c3FC4FF':x.ColorState==1,'c20c997':x.ColorState==2,'cF1416C':x.ColorState==3,'cff9800':x.ColorState==4}" v-for="(x, i) in item.CostList"
</div>
@click="openDetails(x)">{{ x.FrID }}</span>
<span
style=
"color: #999999;"
>
{{
scope
.
row
.
UseDateStr
}}
</span>
<span v-if="item.CostList.length == 0" class="c9e fz12">
<span
style=
"color: #999999;"
>
/
{{
scope
.
row
.
UseDay
}}
天
</span>
{{$t('objFill.nocostdocument')}}
</
template
>
</span>
</el-table-column>
<el-table-column
:label=
"$t('objFill.caravanshopcol.t2')"
min-width=
"200"
style=
"background:#EAEAEA"
>
<
template
slot-scope=
"scope"
>
<div
class=
"RoomList"
>
<div
class=
"fz12 c9e"
v-for=
"(x, i) in scope.row.NewOrderDetailList"
>
<span
class=
"mr"
>
{{
$t
(
'objFill.unit.thefirst'
)
}}
{{
x
.
Day
}}
{{
$t
(
'objFill.unit.day'
)
}}
</span>
<span
class=
"ml mr"
v-if=
"x.DriverModel"
>
{{
$t
(
'objFill.driver'
)
}}
:
{{
x
.
DriverModel
.
DriverName
}}
/
{{
x
.
DriverModel
.
DriverTel
}}
</span>
<span
class=
"ml mr"
v-if=
"x.CopilotDriverModel"
>
{{
$t
(
'objFill.assistantdriver'
)
}}
:
{{
x
.
CopilotDriverModel
.
DriverName
}}
/
{{
x
.
CopilotDriverModel
.
DriverTel
}}
</span>
<span
class=
"ml"
>
{{
x
.
useTypeInfo
.
StatusName
}}
</span>
</div>
</div>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('objFill.caravanshopcol.t3')"
style=
"background:#EAEAEA"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
Money
}}
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('objFill.caravanshopcol.t4')"
min-width=
"70"
style=
"background:#EAEAEA"
>
<
template
slot-scope=
"scope"
>
<span
class=
"fz15 fbold"
>
{{
scope
.
row
.
DueInMoney
}}
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('objFill.caravanshopcol.t5')"
min-width=
"70"
style=
"background:#EAEAEA"
>
<
template
slot-scope=
"scope"
>
<span
class=
"fz15 fbold"
>
{{
scope
.
row
.
Income
}}
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('objFill.caravanshopcol.t6')"
min-width=
"70"
style=
"background:#EAEAEA"
>
<
template
slot-scope=
"scope"
>
<span
class=
"fz15 fbold"
>
{{
scope
.
row
.
Refund
}}
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('objFill.caravanshopcol.t7')"
min-width=
"70"
style=
"background:#EAEAEA"
>
<
template
slot-scope=
"scope"
>
<span
class=
"fz15 fbold"
>
{{
scope
.
row
.
PlatformMoney
}}
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('objFill.caravanshopcol.t8')"
min-width=
"70"
style=
"background:#EAEAEA"
>
<
template
slot-scope=
"scope"
>
<span
class=
"fz15 fbold"
>
{{
scope
.
row
.
PlatformTax
}}
</span>
</
template
>
</el-table-column>
<el-table-column
:label=
"$t('objFill.caravanshopcol.t9')"
min-width=
"70"
style=
"background:#EAEAEA"
>
<
template
slot-scope=
"scope"
>
<span
class=
"fz15 fbold"
>
{{
scope
.
row
.
CostMoney
}}
</span>
</
template
>
</el-table-column>
<
template
slot=
"append"
v-if=
"scope.row.Remark||scope.row.isMore"
>
<div
style=
"padding:10px;color:#f1416c"
>
{{
$t
(
'pub.pubRemark'
)
}}
:
{{
scope
.
row
.
Remark
}}
</div>
<div
:style=
"
{'height': scope.row.isMore?'20px':''}">
</div>
<more
v-if=
"scope.row.isMore"
@
change=
"ViewMore(scope.row,scope.$index)"
:upIcon=
"scope.row.upIcon"
></more>
</
template
>
</el-table>
</div>
<div
class=
"row justify-sb mt mb20"
v-if=
"scope.row.IncomeList.length>0||scope.row.RefundList.length>0||scope.row.CostList.length>0"
>
<div
class=
"column px15 bgf5 radius5 flex-g pa relative"
style=
"min-width: 150px;max-width:400px"
>
<div
class=
"fz12"
>
{{$t('objFill.collectiondocument')}}
</div>
<div
class=
"row wrap orderNo fz12 py"
>
<span
class=
"cursor-pointer radius5 mr mb px5"
:class=
"{'bgD9F3FF':x.ColorState==1,'bg20c997':x.ColorState==2,'bgFAEAED':x.ColorState==3,'bjFFF3E0':x.ColorState==4,
'c3FC4FF':x.ColorState==1,'c20c997':x.ColorState==2,'cF1416C':x.ColorState==3,'cff9800':x.ColorState==4}"
v-for=
"(x, i) in scope.row.IncomeList"
@
click=
"openDetails(x)"
>
{{ x.FrID }}
</span>
<span
v-if=
"scope.row.IncomeList.length == 0"
class=
"c9e fz12"
>
{{$t('objFill.nocollectiondocument')}}
</span>
</div>
<el-tooltip
v-if=
"scope.row.OrderState == 1"
class=
"item"
effect=
"dark"
:content=
"$t('objFill.preparedocument')"
placement=
"top"
>
<i
class=
"absolute right20 bottom20 el-icon-circle-plus cursor-pointer c059FF6"
@
click=
"makeAdocument(scope.row, 1)"
></i>
</el-tooltip>
</div>
</div>
<div
class=
"column px15 bgf5 radius5 ml flex-g pa relative"
style=
"min-width: 150px;max-width:400px"
>
<div class="item absolute right20 bottom20" v-if="item.OrderState == 1 && pagesTitle != '销售'">
<div
class=
"fz12"
>
{{$t('objFill.refundreceipt')}}
</div>
<el-tooltip class="" effect="dark" :content="$t('objFill.preparedocument')" placement="top">
<div
class=
"row wrap orderNo fz12 py"
>
<i class="el-icon-circle-plus cursor-pointer c059FF6" @click="makeAdocument(item, 3)"></i>
<span
class=
"cursor-pointer radius5 mr mb px5"
</el-tooltip>
:class=
"{'bgD9F3FF':x.ColorState==1,'bg20c997':x.ColorState==2,'bgFAEAED':x.ColorState==3,'bjFFF3E0':x.ColorState==4,
<el-tooltip v-if="item.OrderState == 1" class="" effect="dark" :content="$t('objFill.balanceout')"
'c3FC4FF':x.ColorState==1,'c20c997':x.ColorState==2,'cF1416C':x.ColorState==3,'cff9800':x.ColorState==4}"
v-for=
"(x, i) in scope.row.RefundList"
placement="top">
@
click=
"openDetails(x)"
>
{{ x.FrID }}
</span>
<i class="el-icon-circle-plus cursor-pointer c3FC4FF" @click="isOffset(item, 3)"></i>
<span
v-if=
"scope.row.RefundList.length == 0"
class=
"c9e fz12"
>
{{$t('objFill.norefundreceipt')}}
</span>
</div>
<el-tooltip
v-if=
"scope.row.OrderState == 1"
class=
"item"
effect=
"dark"
:content=
"$t('objFill.preparedocument')"
placement=
"top"
>
<i
class=
"absolute right20 bottom20 el-icon-circle-plus cursor-pointer c059FF6"
@
click=
"makeAdocument(scope.row, 2)"
></i>
</el-tooltip>
</el-tooltip>
</div>
</div>
<div
class=
"column px15 bgf5 radius5 ml flex-g pa relative"
style=
"min-width: 150px;max-width:400px"
>
</div>
<div
class=
"fz12"
>
{{$t('objFill.costdocument')}}
</div>
<div v-if="false" class="column px15 bgf5 radius5 ml flex-g pa relative"
<div
class=
"row wrap orderNo fz12 py"
>
style="min-width: 150px;max-width:400px">
<span
class=
"cursor-pointer radius5 mr mb px5"
<div class="fz12">{{$t('objFill.invoicedocument')}}</div>
:class=
"{'bgD9F3FF':x.ColorState==1,'bg20c997':x.ColorState==2,'bgFAEAED':x.ColorState==3,'bjFFF3E0':x.ColorState==4,
<div class="row wrap orderNo fz12 py">
'c3FC4FF':x.ColorState==1,'c20c997':x.ColorState==2,'cF1416C':x.ColorState==3,'cff9800':x.ColorState==4}"
v-for=
"(x, i) in scope.row.CostList"
<span class="cursor-pointer radius5 mr px5" :class="{'bgD9F3FF':x.InvoiceApplyState===6,'bgFAEAED':x.InvoiceApplyState===1||x.InvoiceApplyState===3,
@
click=
"openDetails(x)"
>
{{ x.FrID }}
</span>
'bjFFF3E0':x.InvoiceApplyState===2||x.InvoiceApplyState===4||x.InvoiceApplyState===5,
<span
v-if=
"scope.row.CostList.length == 0"
class=
"c9e fz12"
>
'c3FC4FF':x.InvoiceApplyState===6,'cF1416C':x.InvoiceApplyState===1||x.InvoiceApplyState===3,
{{$t('objFill.nocostdocument')}}
'cff9800':x.InvoiceApplyState===2||x.InvoiceApplyState===4||x.InvoiceApplyState===5}"
</span>
v-for="(x, i) in item.InvoiceApplyList" @click="openDetails(x,item)">{{ x.ID }}</span>
</div>
<span v-if="item.InvoiceApplyList&&item.InvoiceApplyList.length == 0" class="c9e fz12">
<div
class=
"item absolute right20 bottom20"
v-if=
"scope.row.OrderState == 1 && pagesTitle != '销售'"
>
{{$t('objFill.noinvoicedocument')}}
<el-tooltip
class=
""
effect=
"dark"
:content=
"$t('objFill.preparedocument')"
placement=
"top"
>
</span>
<i
class=
"el-icon-circle-plus cursor-pointer c059FF6"
@
click=
"makeAdocument(scope.row, 3)"
></i>
</el-tooltip>
<el-tooltip
v-if=
"scope.row.OrderState == 1"
class=
""
effect=
"dark"
:content=
"$t('objFill.balanceout')"
placement=
"top"
>
<i
class=
"el-icon-circle-plus cursor-pointer c3FC4FF"
@
click=
"isOffset(scope.row, 3)"
></i>
</el-tooltip>
</div>
</div>
</div>
<div
v-if=
"false"
class=
"column px15 bgf5 radius5 ml flex-g pa relative"
</div>
style=
"min-width: 150px;max-width:400px"
>
<div v-if="false" class="row-c wrap justify-c px15 bgE8F5E9 radius5 ml fz12 orderop flex-s">
<div
class=
"fz12"
>
{{$t('objFill.invoicedocument')}}
</div>
<div v-if="
<div
class=
"row wrap orderNo fz12 py"
>
item.OrderState == 1 &&
<span
class=
"cursor-pointer radius5 mr px5"
:class=
"{'bgD9F3FF':x.InvoiceApplyState===6,'bgFAEAED':x.InvoiceApplyState===1||x.InvoiceApplyState===3,
item.IncomeList.length == 0 &&
'bjFFF3E0':x.InvoiceApplyState===2||x.InvoiceApplyState===4||x.InvoiceApplyState===5,
item.RefundList.length == 0 &&
'c3FC4FF':x.InvoiceApplyState===6,'cF1416C':x.InvoiceApplyState===1||x.InvoiceApplyState===3,
item.CostList.length == 0 && item.OrderSource!=1
'cff9800':x.InvoiceApplyState===2||x.InvoiceApplyState===4||x.InvoiceApplyState===5}"
" class="row-c cursor-pointer radius5 cancel py5" @click="clickRightButtom(item, 0)">
v-for=
"(x, i) in scope.row.InvoiceApplyList"
@
click=
"openDetails(x,scope.row)"
>
{{ x.ID }}
</span>
<i v-loading="msg.OrderId == item.OrderId && loading0"></i>
<span
v-if=
"scope.row.InvoiceApplyList&&scope.row.InvoiceApplyList.length == 0"
class=
"c9e fz12"
>
<span class="cF1416C">{{$t('sm.exitOrder')}}</span>
{{$t('objFill.noinvoicedocument')}}
</span>
</div>
</div>
</div>
<div
v-if=
"false"
class=
"row-c wrap justify-c px15 bgE8F5E9 radius5 ml fz12 orderop flex-s"
>
<div v-if="item.OrderState == 1 && pagesTitle != '销售' && item.OrderSource!=1"
<div
v-if=
"
class="row-c cursor-pointer radius5 confirm py5" @click="clickRightButtom(item, 1)">
scope.row.OrderState == 1 &&
<i v-loading="msg.OrderId == item.OrderId && loading1"></i>
scope.row.IncomeList.length == 0 &&
<span class="c20C997">{{$t('ground.qrendindan')}}</span>
scope.row.RefundList.length == 0 &&
scope.row.CostList.length == 0 && scope.row.OrderSource!=1
"
class=
"row-c cursor-pointer radius5 cancel py5"
@
click=
"clickRightButtom(scope.row, 0)"
>
<i
v-loading=
"msg.OrderId == scope.row.OrderId && loading0"
></i>
<span
class=
"cF1416C"
>
{{$t('sm.exitOrder')}}
</span>
</div>
<div
v-if=
"scope.row.OrderState == 1 && pagesTitle != '销售' && scope.row.OrderSource!=1"
class=
"row-c cursor-pointer radius5 confirm py5"
@
click=
"clickRightButtom(scope.row, 1)"
>
<i
v-loading=
"msg.OrderId == scope.row.OrderId && loading1"
></i>
<span
class=
"c20C997"
>
{{$t('ground.qrendindan')}}
</span>
</div>
<div
v-if=
"scope.row.OrderState > 1"
class=
"row-c cursor-pointer radius5 change1 py5"
@
click=
"clickRightButtom(scope.row, 4)"
>
<i
v-loading=
"msg.OrderId == scope.row.OrderId && loading2"
></i>
<span
class=
"c20C997"
>
{{$t('fnc.shousun')}}
</span>
</div>
<div
v-if=
"scope.row.OrderState >1 && scope.row.OrderState != 3
&& scope.row.OrderState != 4
&&pagesTitle=='OP'&&is_correlationOP"
class=
"row-c cursor-pointer radius5 change py5"
@
click=
"clickCorrelation(scope.row,1)"
>
<span
class=
"c059FF6"
>
编辑关联OP
</span>
</div>
<div
v-if=
"scope.row.OrderState != 3
&&pagesTitle=='OP'"
class=
"row-c cursor-pointer radius5 change py5"
@
click=
"clickCorrelation(scope.row,2)"
>
<span
class=
"c059FF6"
>
编辑总金额
</span>
</div>
<ApplyFoInvoice
v-if=
"userInfo&&userInfo.RB_Group_id==2&&userInfo.EmployeeId==scope.row.EnterID"
:obj=
"scope.row"
:type=
"7"
></ApplyFoInvoice>
</div>
</div>
</div>
<div v-if="item.OrderState > 1" class="row-c cursor-pointer radius5 change1 py5"
<div
class=
"mt mb20 bgf5 pa15 row-c"
v-if=
"scope.row.CancelRemark"
>
@click="clickRightButtom(item, 4)">
<div
style=
"font-size:16px;font-weight:bold;font-family: pingfangR;"
>
<i v-loading="msg.OrderId == item.OrderId && loading2"></i>
{{$t('objFill.groundsforcancellation')}}:
</div>
<span class="c20C997">{{$t('fnc.shousun')}}</span>
<div
style=
"margin-left:12px;font-size:12px;color: grey; font-family: microsoft yahei;"
>
</div>
{{ scope.row.CancelRemark }}
<div v-if="item.OrderState >1 && item.OrderState != 3
&& item.OrderState != 4
&&pagesTitle=='OP'&&is_correlationOP" class="row-c cursor-pointer radius5 change py5"
@click="clickCorrelation(item,1)">
<span class="c059FF6">编辑关联OP</span>
</div>
</div>
<div
style=
"margin-left:12px;font-size:12px;font-family: microsoft yahei;"
>
<div v-if="item.OrderState != 3
{{ scope.row.CancelEmpName }} {{ scope.row.CancelTime }}
&&pagesTitle=='OP'" class="row-c cursor-pointer radius5 change py5" @click="clickCorrelation(item,2)">
<span class="c059FF6">编辑总金额</span>
</div>
</div>
<ApplyFoInvoice v-if="userInfo&&userInfo.RB_Group_id==2&&userInfo.EmployeeId==item.EnterID" :obj="item" :type="7"></ApplyFoInvoice>
</div>
</div>
</template>
</div> -->
</el-table-column>
</div>
</el-table>
<div
class=
"mt mb20 bgf5 pa15 row-c"
v-if=
"child.CancelRemark"
>
<div
style=
"font-size:16px;font-weight:bold;font-family: pingfangR;"
>
{{$t('objFill.groundsforcancellation')}}:
</div>
<div
style=
"margin-left:12px;font-size:12px;color: grey; font-family: microsoft yahei;"
>
{{ child.CancelRemark }}
</div>
<div
style=
"margin-left:12px;font-size:12px;font-family: microsoft yahei;"
>
{{ child.CancelEmpName }} {{ child.CancelTime }}
</div>
</div>
</div>
<el-dialog
custom-class=
"w600"
title=
"取消订单"
:visible
.
sync=
"cancelOrderDialog"
>
<el-dialog
custom-class=
"w600"
title=
"取消订单"
:visible
.
sync=
"cancelOrderDialog"
>
<div
style=
"padding-bottom:20px"
>
<div
style=
"padding-bottom:20px"
>
...
...
src/components/CarDealerOrder/components/ReservationOrder.vue
View file @
5476eb33
...
@@ -362,41 +362,54 @@ export default {
...
@@ -362,41 +362,54 @@ export default {
let
url
let
url
// 销售 OP
// 销售 OP
if
(
this
.
pagesTitle
==
'销售'
)
{
if
(
this
.
pagesTitle
==
'销售'
)
{
url
=
"JapanCar_get_GetJapanOrderPageList"
url
=
"JapanCar_get_GetJapanOrder
Main
PageList"
}
else
{
}
else
{
url
=
"JapanCar_get_GetJapanOrderPageList"
url
=
"JapanCar_get_GetJapanOrder
Main
PageList"
}
}
this
.
apipost
(
url
,
this
.
msg
,
this
.
apipost
(
url
,
this
.
msg
,
res
=>
{
res
=>
{
this
.
loading
=
false
this
.
loading
=
false
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
let
data
=
res
.
data
.
data
.
pageData
let
data
=
res
.
data
.
data
.
pageData
let
addLists
=
function
(
arr
){
arr
.
forEach
(
x
=>
{
x
.
typeInfo
=
''
})
}
let
addList
=
function
(
arr
){
let
addList
=
function
(
arr
){
arr
.
forEach
(
x
=>
{
arr
.
forEach
(
x
=>
{
x
.
typeInfo
=
''
x
.
paymentInfo
=
{}
x
.
list
=
[]
x
.
list
=
[]
x
.
isMore
=
false
x
.
isMore
=
false
x
.
upIcon
=
false
x
.
upIcon
=
false
x
.
NewOrderDetailList
=
[]
x
.
NewOrderDetailList
=
[]
})
})
}
}
addList
(
data
)
// addLists(data)
data
.
forEach
(
item
=>
{
data
.
forEach
(
k
=>
{
item
.
typeInfo
=
this
.
OrderStatusType
.
find
(
y
=>
y
.
ID
==
item
.
OrderState
)
??
this
.
OrderStatusType
[
1
]
addList
(
k
.
OrderList
)
item
.
paymentInfo
=
this
.
PaymentMethods
.
find
(
y
=>
y
.
Id
==
item
.
PayWay
)
??
this
.
PaymentMethods
[
1
]
// k.typeInfo = this.OrderStatusType.find(y => y.ID == k.OrderState) ?? this.OrderStatusType[1]
if
(
item
.
OrderDetailList
.
length
>
2
){
k
.
OrderList
.
forEach
(
item
=>
{
item
.
isMore
=
true
// item.typeInfo = this.OrderStatusType.find(y => y.ID == item.OrderState) ?? this.OrderStatusType[1]
}
// item.paymentInfo = this.PaymentMethods.find(y => y.Id == k.PayWay) ?? this.PaymentMethods[1]
let
dataLists
=
[]
if
(
item
.
OrderDetailList
.
length
>
2
){
item
.
OrderDetailList
.
forEach
((
x
,
index
)
=>
{
item
.
isMore
=
true
x
.
useTypeInfo
=
this
.
useTypes
.
find
(
z
=>
z
.
StatusId
==
x
.
UseType
)
??
this
.
useTypes
[
1
]
if
(
index
<
2
){
dataLists
.
push
(
x
)
}
}
let
dataLists
=
[]
item
.
OrderDetailList
.
forEach
((
x
,
index
)
=>
{
x
.
useTypeInfo
=
this
.
useTypes
.
find
(
z
=>
z
.
StatusId
==
x
.
UseType
)
??
this
.
useTypes
[
1
]
if
(
index
<
2
){
dataLists
.
push
(
x
)
}
})
item
.
NewOrderDetailList
=
JSON
.
parse
(
JSON
.
stringify
(
dataLists
))
})
})
item
.
NewOrderDetailList
=
JSON
.
parse
(
JSON
.
stringify
(
dataLists
))
})
})
this
.
OrderList
=
data
;
this
.
OrderList
=
data
;
console
.
log
(
data
,
'--------------'
)
this
.
total
=
res
.
data
.
data
.
count
;
this
.
total
=
res
.
data
.
data
.
count
;
}
else
{
}
else
{
this
.
Error
(
res
.
data
.
message
);
this
.
Error
(
res
.
data
.
message
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment