Commit 6623b672 authored by youjie's avatar youjie

no message

parent 5476eb33
...@@ -1012,7 +1012,7 @@ export const obj = { ...@@ -1012,7 +1012,7 @@ export const obj = {
t1: '車/使用時間/天數', t1: '車/使用時間/天數',
t2: '用車詳情', t2: '用車詳情',
t3: '總金額', t3: '總金額',
t4: '收金額', t4: '收金額',
t5: '實收', t5: '實收',
t6: '退款', t6: '退款',
t7: '平台在途金額', t7: '平台在途金額',
......
<style scoped> <style scoped>
/deep/.orderlist-box .el-table .el-table__cell{
padding: 5px 0;
}
/deep/.orderlist-box .el-table th{
background: #f4f4f4;
color: rgb(153, 153, 153) !important;
}
.row { .row {
display: flex; display: flex;
} }
...@@ -509,265 +516,436 @@ ...@@ -509,265 +516,436 @@
</style> </style>
<template> <template>
<div> <div class="orderlist-box">
<!-- <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>
<div v-for="(child,indexs) in OrderList"> <div>
<div class="row-c justify-sb align-c py"> <div v-for="(chind,indexs) in OrderList"
<div class="row-c"> style="background: #fff;
<div v-if="false"> padding: 0 10px 10px 10px;
<!-- active activeNo --> margin-bottom: 10px;border-radius: 5px;">
<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
class="orderType cf fz12"
:class="{
active: chind.OrderType == 1,
activeB:chind.OrderType == 2,
}"
>
<template v-if="chind.OrderType == 1">常规</template>
<template v-if="chind.OrderType == 2">包车</template>
</div>
</div>
<div class="cblack fz14 mr" v-if="chind.IsFinish == 1">
<span class="">
<span>{{chind.FinishEmpName}}/</span>
<span class="text-grey-6">{{chind.FinishTimeStr}}</span>
</span>
</div> </div>
<div class="c9e fz12" v-if="chind.OrderType==2">
<span>主{{ $t('OrderList.search.orderId') }}:</span>
<span>{{ chind.MainId}}</span>
<span class="copy cblack cursor-pointer" v-if="copyId != chind.MainId"
@click="CopyHandler(chind.MainId)">{{$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>
<div class="cblack fz14 mr" v-if="child.IsFinish == 1"> <div class="c9e fz12">
<span class=""> <!-- <span>{{$t('objFill.guestinfor')}}:{{chind.CustomerName}}
<span>{{child.FinishEmpName}}/</span> <span v-if="chind.CustomerTel">/ Tel:{{ chind.CustomerTel }} </span>
<span class="text-grey-6">{{child.FinishTimeStr}}</span> <span v-if="chind.CustomerMail">/ Email:
</span> {{chind.CustomerMail}} </span>
</span> -->
</div> </div>
<div class="row c9e fz12">
<span class="mr">{{$t('objFill.orderholder')}}:
<!-- <div class="c9e fz12"> {{chind.CreateByName}}/{{chind.CreateDateStr}}
<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> </span>
<div class="">
<i class="mx5" :class="{
'el-icon-alarm-clock c20C997': chind.OrderState == 1,
'el-icon-refresh cff9800': chind.OrderState == 2,
}"></i>
<span class="fz12 cblack" :class="{
c20C997: chind.OrderState == 1,
cF1416C: chind.OrderState == 2,
}">
{{ chind.typeInfo.Name }}
</span>
</div>
</div> </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>
<!-- <div class="c9e fz12"> <el-table v-if="chind.OrderType==2" :data="[chind]" style="width:100%;margin-bottom: 10px;" border>
<span>{{$t('objFill.guestinfor')}}{{scope.row.CustomerName}} <el-table-column :label="$t('objFill.collectiondocument')" style="background:#EAEAEA"
<span v-if="scope.row.CustomerTel">/ Tel:{{ scope.row.CustomerTel }} </span> min-width="220">
<span v-if="scope.row.CustomerMail">/ Email: <template slot-scope="scope">
{{scope.row.CustomerMail}} </span> <template v-if="scope.row.IncomeList.length>0">
</span> <span class="cursor-pointer radius5 mr mb px5"
</div> --> :class="{'bgD9F3FF':x.ColorState==1,'bg20c997':x.ColorState==2,'bgFAEAED':x.ColorState==3,'bjFFF3E0':x.ColorState==4,
<div class="row c9e fz12"> 'c3FC4FF':x.ColorState==1,'c20c997':x.ColorState==2,'cF1416C':x.ColorState==3,'cff9800':x.ColorState==4}" v-for="(x, i) in scope.row.IncomeList"
<span class="mr">{{$t('objFill.orderholder')}} @click="openDetails(x)">{{ x.FrID }}</span>
{{child.CreateByName}}/{{child.CreateDateStr}} </template>
</span> <el-tooltip v-if="scope.row.OrderState == 1" class="item" effect="dark"
<div class=""> :content="$t('objFill.preparedocument')" placement="top">
<i class="mx5" :class="{ <i class="el-icon-circle-plus cursor-pointer c059FF6"
'el-icon-alarm-clock c20C997': child.OrderState == 1, @click="makeAdocument(child, scope.row, 1)"></i>
'el-icon-refresh cff9800': child.OrderState == 2, </el-tooltip>
}"></i> </template>
<span class="fz12 cblack" :class="{ </el-table-column>
c20C997: child.OrderState == 1, <el-table-column width="150" label="包月时间" style="background:#EAEAEA">
cF1416C: child.OrderState == 2, <template slot-scope="scope">
}"> {{ scope.row.BCMonth }}/{{ scope.row.BCDay }}
<!-- {{ child.typeInfo.Name }} --> </template>
</span> </el-table-column>
<el-table-column width="150" :label="$t('objFill.caravanshopcol.t3')" style="background:#EAEAEA">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.Money }}</span>
</template>
</el-table-column>
<el-table-column width="150" :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 width="150" :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 width="150" :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 width="150" label="油费支出" min-width="70" style="background:#EAEAEA">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.OutOilFee }}</span>
</template>
</el-table-column>
<el-table-column width="150" label="停车过路费收入" min-width="70" style="background:#EAEAEA">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.InPassByFee }}</span>
</template>
</el-table-column>
<el-table-column width="150" :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 width="150" label="停车过路费支出" min-width="70" style="background:#EAEAEA">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.OutPassByFee }}</span>
</template>
</el-table-column>
<el-table-column width="150" :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>
<el-table-column width="150" :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>
<template slot="append" v-if="chind.Remark">
<div style="padding:10px;color:#f1416c">{{$t('pub.pubRemark')}}{{chind.Remark}}
</div>
</template>
</el-table>
<div style="background: #E1F5FE;padding: 0 5px 5px 5px;margin-top: 10px;border-radius: 5px;"
:style="{'margin-top': index?'10px':'0px'}"
v-for="(item,index) in chind.OrderList">
<div class="row-c justify-sb align-c py">
<div class="row-c">
<template v-if="false">
<div>
<!-- active activeNo -->
<div class="orderType cf fz12" :class="[item.IsFinish==1?'active':'']">
{{item.IsFinish==1?$t('objFill.finished'):$t('objFill.uncompleted')}}
</div>
</div>
<div class="cblack fz14 mr" v-if="item.IsFinish == 1">
<span class="">
<span>{{item.FinishEmpName}}/</span>
<span class="text-grey-6">{{item.FinishTimeStr}}</span>
</span>
</div>
</template>
<div class="c9e fz12">
<span>{{ $t('OrderList.search.orderId') }}:</span>
<span>{{ item.OrderId}}</span>
<span class="copy cblack cursor-pointer" v-if="copyId != item.OrderId"
@click="CopyHandler(item.OrderId)">{{$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>
</div>
<div class="c9e fz12">
<span class="cblack fz12 ml mr" v-if="item.OrderTCNUM">
<span class="c9e">系统团号:</span>{{ item.OrderTCNUM }} </span>
<div class="cblack fz12 mr" v-if="false">
<span class="">
<span class="c9e">{{$t('objFill.petition')}}:</span>
<span class="text-grey-6">{{item.PetitionId}}</span>
</span>
</div>
<span> {{$t('objFill.guestinfor')}}:<span class="cblack">{{item.CustomerName}}</span>
<span v-if="item.CustomerTel">/ Tel:<span class="cblack">{{ item.CustomerTel }}</span> </span>
<!-- <span v-if="item.CustomerMail">/ Email:
<span class="cblack">{{chind.CustomerMail}}</span> </span> -->
</span>
</div>
<div class="row c9e fz12">
<div class="">
<i class="mx5" :class="{
'el-icon-alarm-clock c20C997': item.OrderState == 1,
'el-icon-refresh cff9800': item.OrderState == 2,
}"></i>
<span class="fz12 cblack" :class="{
c20C997: item.OrderState == 1,
cF1416C: item.OrderState == 2,
}">
{{ item.typeInfo.Name }}
</span>
</div>
</div>
</div> </div>
</div>
</div> <el-table :data="[item]" style="width:100%" border>
<div v-if="items in child.OrderList"> <el-table-column label="司机" min-width="180" style="background:#EAEAEA">
<div class="mb"> <template slot-scope="scope">
<el-table :data="[items]" style="width:100%" border> <div v-if="scope.row.DriverModel">
<el-table-column :label="$t('objFill.caravanshopcol.t1')" min-width="100" style="background:#EAEAEA"> {{ scope.row.DriverModel.DriverName }}/{{ scope.row.DriverModel.DriverTel }}
</div>
</template>
</el-table-column>
<el-table-column :label="$t('objFill.caravanshopcol.t1')" min-width="150" style="background:#EAEAEA">
<template slot-scope="scope"> <template slot-scope="scope">
<div v-if="scope.row.CarModel"> <div v-if="scope.row.CarModel">
{{ scope.row.CarModel.CarName+'/'+scope.row.CarModel.CarNo }} {{ scope.row.CarModel.CarName+'/'+scope.row.CarModel.CarNo }}
</div> </div>
<span style="color: #999999;">{{ scope.row.UseDateStr }}</span> <span style="color: #999999;">{{ scope.row.UseDate }}</span>
<span style="color: #999999;">/ {{ scope.row.UseDay }}</span> <span style="color: #999999;">/ {{ scope.row.UseDay }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('objFill.caravanshopcol.t2')" min-width="200" style="background:#EAEAEA"> <el-table-column :label="$t('objFill.caravanshopcol.t2')" min-width="160" style="background:#EAEAEA">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="RoomList"> <div class="RoomList text-center">
<div class="fz12 c9e" v-for="(x, i) in scope.row.NewOrderDetailList"> <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="mr">
{{x.useDate}}
<span class="ml mr" v-if="x.DriverModel">{{$t('objFill.driver')}}: </span>
{{x.DriverModel.DriverName}}/{{x.DriverModel.DriverTel}}</span> <span class="mr"
<span class="ml mr"
v-if="x.CopilotDriverModel">{{$t('objFill.assistantdriver')}}{{x.CopilotDriverModel.DriverName}}/{{x.CopilotDriverModel.DriverTel}}</span> v-if="x.CopilotDriverModel">{{$t('objFill.assistantdriver')}}{{x.CopilotDriverModel.DriverName}}/{{x.CopilotDriverModel.DriverTel}}</span>
<span class="ml"> {{ x.useTypeInfo.StatusName }} </span> <span class="ml"> {{ x.useTypeInfo.StatusName }} </span>
</div> </div>
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('objFill.caravanshopcol.t3')" style="background:#EAEAEA"> <el-table-column v-if="chind.OrderType==1" width="150" :label="$t('objFill.caravanshopcol.t3')" style="background:#EAEAEA">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.Money }} <span class="fz15 fbold">{{ scope.row.Money }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('objFill.caravanshopcol.t4')" min-width="70" style="background:#EAEAEA"> <el-table-column v-if="chind.OrderType==1" width="150" :label="$t('objFill.caravanshopcol.t5')" 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"> <template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.Income }}</span> <span class="fz15 fbold">{{ scope.row.Income }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('objFill.caravanshopcol.t6')" min-width="70" style="background:#EAEAEA"> <el-table-column width="150" :label="$t('objFill.caravanshopcol.t6')" min-width="70" style="background:#EAEAEA">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.Refund }}</span> <span class="fz15 fbold">{{ scope.row.Refund }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('objFill.caravanshopcol.t7')" min-width="70" style="background:#EAEAEA"> <el-table-column width="150" :label="$t('objFill.caravanshopcol.t7')" min-width="70" style="background:#EAEAEA">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.PlatformMoney }}</span> <span class="fz15 fbold">{{ scope.row.PlatformMoney }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('objFill.caravanshopcol.t8')" min-width="70" style="background:#EAEAEA"> <el-table-column width="150" label="油费支出" min-width="70" style="background:#EAEAEA">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.OutOilFee }}</span>
</template>
</el-table-column>
<el-table-column width="150" label="停车过路费收入" min-width="70" style="background:#EAEAEA">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.InPassByFee }}</span>
</template>
</el-table-column>
<el-table-column width="150" :label="$t('objFill.caravanshopcol.t8')" min-width="70" style="background:#EAEAEA">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.PlatformTax }}</span> <span class="fz15 fbold">{{ scope.row.PlatformTax }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('objFill.caravanshopcol.t9')" min-width="70" style="background:#EAEAEA"> <el-table-column width="150" label="停车过路费支出" min-width="70" style="background:#EAEAEA">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.OutPassByFee }}</span>
</template>
</el-table-column>
<el-table-column width="150" :label="'其他'+$t('objFill.caravanshopcol.t9')" min-width="70" style="background:#EAEAEA">
<template slot-scope="scope"> <template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.CostMoney }}</span> <span class="fz15 fbold">{{ scope.row.CostMoney }}</span>
</template> </template>
</el-table-column> </el-table-column>
<!-- --> <!-- <el-table-column width="150" :label="$t('objFill.caravanshopcol.t4')" min-width="70" style="background:#EAEAEA">
<template slot="append" v-if="items.Remark||items.isMore"> <template slot-scope="scope">
<div style="padding:10px;color:#f1416c">{{$t('pub.pubRemark')}} <span class="fz15 fbold">{{ scope.row.DueInMoney }}</span>
<!-- {{items.Remark}} --> </template>
</el-table-column> -->
<el-table-column width="150" label="支付方式" min-width="70" style="background:#EAEAEA">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.paymentInfo.Name }}</span>
</template>
</el-table-column>
<template slot="append" v-if="item.Remark||item.isMore">
<div style="padding:10px;color:#f1416c">{{$t('pub.pubRemark')}}{{item.Remark}}
</div> </div>
<!-- <div :style="{'height': items.isMore?'20px':''}"></div> --> <div :style="{'height': item.isMore?'20px':''}"></div>
<!-- <more v-if="items.isMore" @change="ViewMore(items,scope.$index)" :upIcon="items.upIcon"></more> --> <more v-if="item.isMore" @change="ViewMore(item,index)" :upIcon="item.upIcon"></more>
</template> </template>
</el-table> </el-table>
</div>
<!-- <div class="row justify-sb mt mb20"
v-if="item.IncomeList.length>0||item.RefundList.length>0||item.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 item.IncomeList"
@click="openDetails(x)">{{ x.FrID }}</span>
<span v-if="item.IncomeList.length == 0" class="c9e fz12"> <div class="row justify-sb mt mb20"
{{$t('objFill.nocollectiondocument')}} v-if="item.IncomeList.length>0||item.RefundList.length>0||item.CostList.length>0">
</span> <div class="column px15 bgf5 radius5 flex-g pa relative" style="min-width: 150px;max-width:400px">
</div> <div class="fz12">{{$t('objFill.collectiondocument')}}</div>
<el-tooltip v-if="item.OrderState == 1" class="item" effect="dark" <div class="row wrap orderNo fz12 py">
:content="$t('objFill.preparedocument')" placement="top"> <span class="cursor-pointer radius5 mr mb px5"
<i class="absolute right20 bottom20 el-icon-circle-plus cursor-pointer c059FF6" :class="{'bgD9F3FF':x.ColorState==1,'bg20c997':x.ColorState==2,'bgFAEAED':x.ColorState==3,'bjFFF3E0':x.ColorState==4,
@click="makeAdocument(item, 1)"></i> 'c3FC4FF':x.ColorState==1,'c20c997':x.ColorState==2,'cF1416C':x.ColorState==3,'cff9800':x.ColorState==4}" v-for="(x, i) in item.IncomeList"
</el-tooltip> @click="openDetails(x)">{{ x.FrID }}</span>
</div>
<div class="column px15 bgf5 radius5 ml flex-g pa relative" style="min-width: 150px;max-width:400px"> <span v-if="item.IncomeList.length == 0" class="c9e fz12">
<div class="fz12">{{$t('objFill.refundreceipt')}}</div> {{$t('objFill.nocollectiondocument')}}
<div class="row wrap orderNo fz12 py"> </span>
<span class="cursor-pointer radius5 mr mb px5" </div>
: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="item" effect="dark"
'c3FC4FF':x.ColorState==1,'c20c997':x.ColorState==2,'cF1416C':x.ColorState==3,'cff9800':x.ColorState==4}" v-for="(x, i) in item.RefundList" :content="$t('objFill.preparedocument')" placement="top">
@click="openDetails(x)">{{ x.FrID }}</span> <i class="absolute right20 bottom20 el-icon-circle-plus cursor-pointer c059FF6"
<span v-if="item.RefundList.length == 0" class="c9e fz12"> @click="makeAdocument(chind, item, 1)"></i>
{{$t('objFill.norefundreceipt')}}
</span>
</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 class="column px15 bgf5 radius5 ml flex-g pa relative" style="min-width: 150px;max-width:400px">
<div class="fz12">{{$t('objFill.costdocument')}}</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.CostList"
@click="openDetails(x)">{{ x.FrID }}</span>
<span v-if="item.CostList.length == 0" class="c9e fz12">
{{$t('objFill.nocostdocument')}}
</span>
</div>
<div class="item absolute right20 bottom20" v-if="item.OrderState == 1 && pagesTitle != '销售'">
<el-tooltip class="" effect="dark" :content="$t('objFill.preparedocument')" placement="top">
<i class="el-icon-circle-plus cursor-pointer c059FF6" @click="makeAdocument(item, 3)"></i>
</el-tooltip>
<el-tooltip v-if="item.OrderState == 1" class="" effect="dark" :content="$t('objFill.balanceout')"
placement="top">
<i class="el-icon-circle-plus cursor-pointer c3FC4FF" @click="isOffset(item, 3)"></i>
</el-tooltip> </el-tooltip>
</div> </div>
</div> <div class="column px15 bgf5 radius5 ml flex-g pa relative" style="min-width: 150px;max-width:400px">
<div v-if="false" class="column px15 bgf5 radius5 ml flex-g pa relative" <div class="fz12">{{$t('objFill.refundreceipt')}}</div>
style="min-width: 150px;max-width:400px"> <div class="row wrap orderNo fz12 py">
<div class="fz12">{{$t('objFill.invoicedocument')}}</div> <span class="cursor-pointer radius5 mr mb px5"
<div class="row wrap orderNo fz12 py"> :class="{'bgD9F3FF':x.ColorState==1,'bg20c997':x.ColorState==2,'bgFAEAED':x.ColorState==3,'bjFFF3E0':x.ColorState==4,
<span class="cursor-pointer radius5 mr px5" :class="{'bgD9F3FF':x.InvoiceApplyState===6,'bgFAEAED':x.InvoiceApplyState===1||x.InvoiceApplyState===3, 'c3FC4FF':x.ColorState==1,'c20c997':x.ColorState==2,'cF1416C':x.ColorState==3,'cff9800':x.ColorState==4}" v-for="(x, i) in item.RefundList"
'bjFFF3E0':x.InvoiceApplyState===2||x.InvoiceApplyState===4||x.InvoiceApplyState===5, @click="openDetails(x)">{{ x.FrID }}</span>
'c3FC4FF':x.InvoiceApplyState===6,'cF1416C':x.InvoiceApplyState===1||x.InvoiceApplyState===3, <span v-if="item.RefundList.length == 0" class="c9e fz12">
'cff9800':x.InvoiceApplyState===2||x.InvoiceApplyState===4||x.InvoiceApplyState===5}" {{$t('objFill.norefundreceipt')}}
v-for="(x, i) in item.InvoiceApplyList" @click="openDetails(x,item)">{{ x.ID }}</span> </span>
<span v-if="item.InvoiceApplyList&&item.InvoiceApplyList.length == 0" class="c9e fz12"> </div>
{{$t('objFill.noinvoicedocument')}} <el-tooltip v-if="item.OrderState == 1" class="item" effect="dark"
</span> :content="$t('objFill.preparedocument')" placement="top">
<i class="absolute right20 bottom20 el-icon-circle-plus cursor-pointer c059FF6"
@click="makeAdocument(chind, item, 2)"></i>
</el-tooltip>
</div> </div>
</div> <div class="column px15 bgf5 radius5 ml flex-g pa relative" 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.costdocument')}}</div>
<div v-if=" <div class="row wrap orderNo fz12 py">
item.OrderState == 1 && <span class="cursor-pointer radius5 mr mb px5"
item.IncomeList.length == 0 && :class="{'bgD9F3FF':x.ColorState==1,'bg20c997':x.ColorState==2,'bgFAEAED':x.ColorState==3,'bjFFF3E0':x.ColorState==4,
item.RefundList.length == 0 && 'c3FC4FF':x.ColorState==1,'c20c997':x.ColorState==2,'cF1416C':x.ColorState==3,'cff9800':x.ColorState==4}" v-for="(x, i) in item.CostList"
item.CostList.length == 0 && item.OrderSource!=1 @click="openDetails(x)">{{ x.FrID }}</span>
" class="row-c cursor-pointer radius5 cancel py5" @click="clickRightButtom(item, 0)"> <span v-if="item.CostList.length == 0" class="c9e fz12">
<i v-loading="msg.OrderId == item.OrderId && loading0"></i> {{$t('objFill.nocostdocument')}}
<span class="cF1416C">{{$t('sm.exitOrder')}}</span> </span>
</div>
<div class="item absolute right20 bottom20" v-if="item.OrderState == 1 && pagesTitle != '销售'">
<el-tooltip class="" effect="dark" :content="$t('objFill.preparedocument')" placement="top">
<i class="el-icon-circle-plus cursor-pointer c059FF6" @click="makeAdocument(chind, item, 3)"></i>
</el-tooltip>
<el-tooltip v-if="item.OrderState == 1" class="" effect="dark" :content="$t('objFill.balanceout')"
placement="top">
<i class="el-icon-circle-plus cursor-pointer c3FC4FF" @click="isOffset(chind, item, 3)"></i>
</el-tooltip>
</div>
</div> </div>
<div v-if="item.OrderState == 1 && pagesTitle != '销售' && item.OrderSource!=1" <div v-if="false" class="column px15 bgf5 radius5 ml flex-g pa relative"
class="row-c cursor-pointer radius5 confirm py5" @click="clickRightButtom(item, 1)"> style="min-width: 150px;max-width:400px">
<i v-loading="msg.OrderId == item.OrderId && loading1"></i> <div class="fz12">{{$t('objFill.invoicedocument')}}</div>
<span class="c20C997">{{$t('ground.qrendindan')}}</span> <div class="row wrap orderNo fz12 py">
<span class="cursor-pointer radius5 mr px5" :class="{'bgD9F3FF':x.InvoiceApplyState===6,'bgFAEAED':x.InvoiceApplyState===1||x.InvoiceApplyState===3,
'bjFFF3E0':x.InvoiceApplyState===2||x.InvoiceApplyState===4||x.InvoiceApplyState===5,
'c3FC4FF':x.InvoiceApplyState===6,'cF1416C':x.InvoiceApplyState===1||x.InvoiceApplyState===3,
'cff9800':x.InvoiceApplyState===2||x.InvoiceApplyState===4||x.InvoiceApplyState===5}"
v-for="(x, i) in item.InvoiceApplyList" @click="openDetails(x,item)">{{ x.ID }}</span>
<span v-if="item.InvoiceApplyList&&item.InvoiceApplyList.length == 0" class="c9e fz12">
{{$t('objFill.noinvoicedocument')}}
</span>
</div>
</div> </div>
<div v-if="item.OrderState > 1" class="row-c cursor-pointer radius5 change1 py5" <div v-if="false" class="row-c wrap justify-c px15 bgE8F5E9 radius5 ml fz12 orderop flex-s">
@click="clickRightButtom(item, 4)"> <div v-if="
<i v-loading="msg.OrderId == item.OrderId && loading2"></i> item.OrderState == 1 &&
<span class="c20C997">{{$t('fnc.shousun')}}</span> item.IncomeList.length == 0 &&
item.RefundList.length == 0 &&
item.CostList.length == 0 && item.OrderSource!=1
" class="row-c cursor-pointer radius5 cancel py5" @click="clickRightButtom(item, 0)">
<i v-loading="msg.OrderId == item.OrderId && loading0"></i>
<span class="cF1416C">{{$t('sm.exitOrder')}}</span>
</div>
<div v-if="item.OrderState == 1 && pagesTitle != '销售' && item.OrderSource!=1"
class="row-c cursor-pointer radius5 confirm py5" @click="clickRightButtom(item, 1)">
<i v-loading="msg.OrderId == item.OrderId && loading1"></i>
<span class="c20C997">{{$t('ground.qrendindan')}}</span>
</div>
<div v-if="item.OrderState > 1" class="row-c cursor-pointer radius5 change1 py5"
@click="clickRightButtom(item, 4)">
<i v-loading="msg.OrderId == item.OrderId && loading2"></i>
<span class="c20C997">{{$t('fnc.shousun')}}</span>
</div>
<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 v-if="item.OrderState != 3
&&pagesTitle=='OP'" class="row-c cursor-pointer radius5 change py5" @click="clickCorrelation(item,2)">
<span class="c059FF6">编辑总金额</span>
</div>
<ApplyFoInvoice v-if="userInfo&&userInfo.RB_Group_id==2&&userInfo.EmployeeId==item.EnterID" :obj="item" :type="7"></ApplyFoInvoice>
</div> </div>
<div v-if="item.OrderState >1 && item.OrderState != 3 </div>
&& item.OrderState != 4 <div class="mt mb20 bgf5 pa15 row-c" v-if="item.CancelRemark">
&&pagesTitle=='OP'&&is_correlationOP" class="row-c cursor-pointer radius5 change py5" <div style="font-size:16px;font-weight:bold;font-family: pingfangR;">
@click="clickCorrelation(item,1)"> {{$t('objFill.groundsforcancellation')}}:</div>
<span class="c059FF6">编辑关联OP</span> <div style="margin-left:12px;font-size:12px;color: grey; font-family: microsoft yahei;">
{{ item.CancelRemark }}
</div> </div>
<div v-if="item.OrderState != 3 <div style="margin-left:12px;font-size:12px;font-family: microsoft yahei;">
&&pagesTitle=='OP'" class="row-c cursor-pointer radius5 change py5" @click="clickCorrelation(item,2)"> {{ item.CancelEmpName }} {{ item.CancelTime }}
<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>
</div> -->
</div>
<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>
</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">
<el-input type="textarea" autofocus rows="5" placeholder="请填写取消订单的缘由" clear="w300" v-model="cancelRemark"> <el-input type="textarea" autofocus rows="5" placeholder="请填写取消订单的缘由" clear="w300" v-model="cancelRemark">
...@@ -1086,8 +1264,8 @@ ...@@ -1086,8 +1264,8 @@
this.queryObj = query this.queryObj = query
this.cdState = true this.cdState = true
}, },
isOffset(row, num) { isOffset(child, row, num) {
this.makeAdocument(row, num, 'Offset') this.makeAdocument(child, row, num, 'Offset')
}, },
editRemark(item) { editRemark(item) {
this.postMsg.OrderId = item.OrderId this.postMsg.OrderId = item.OrderId
...@@ -1310,8 +1488,9 @@ ...@@ -1310,8 +1488,9 @@
} }
}, },
// 制作单据 // 制作单据
makeAdocument(row, num, Offset) { makeAdocument(chind, row, num, Offset) {
if ((num == 2 || num == 3) && (row.Income + row.PlatformMoney) <= 0) { if ((num == 2 || num == 3) && child && ((child.OrderType==1&&row.Income + row.PlatformMoney)||
(child.OrderType==2&&chind.Income + chind.PlatformMoney)) <= 0) {
this.Info('请先制收款单据,再制成本或退款单据!') this.Info('请先制收款单据,再制成本或退款单据!')
return return
} }
...@@ -1324,9 +1503,10 @@ ...@@ -1324,9 +1503,10 @@
} else { } else {
type = num type = num
} }
this.BillMakingMsg.ReFinanceId = row.OrderId; this.BillMakingMsg.ReFinanceId = row.OrderId?row.OrderId:row.MainId;
this.BillMakingMsg.ReFinanceId2 = num; this.BillMakingMsg.ReFinanceId2 = num;
this.BillMakingMsg.OtherType = 80; if(row.MainId&&row.MainId>0) this.BillMakingMsg.OtherType = 83;
else this.BillMakingMsg.OtherType = 80;
if (type == 1) this.BillMakingMsg.CostType = 77 if (type == 1) this.BillMakingMsg.CostType = 77
let text = ""; let text = "";
let query = {}; let query = {};
...@@ -1558,9 +1738,9 @@ ...@@ -1558,9 +1738,9 @@
}); });
}, },
//复制信息 //复制信息
CopyHandler(item) { CopyHandler(OrderId) {
this.copyId = item.OrderId; this.copyId = OrderId;
let copyText = item.OrderId; let copyText = OrderId;
const save = function (e) { const save = function (e) {
e.clipboardData.setData('text/plain', copyText) e.clipboardData.setData('text/plain', copyText)
e.preventDefault() // 阻止默认行为 e.preventDefault() // 阻止默认行为
......
...@@ -160,9 +160,14 @@ ...@@ -160,9 +160,14 @@
</el-select> </el-select>
</span> </span>
</li> </li>
<li>
<span><em>{{ $t('OrderList.search.orderId') }}</em>
<el-input clearable type="Number" v-model="msg.MainId" :placeholder="$t('objFill.orderid')" />
</span>
</li>
<li> <li>
<span><em>{{ $t('OrderList.search.orderId') }}</em> <span><em>{{ $t('OrderList.search.orderId') }}</em>
<el-input clearable type="Number" v-model="msg.OrderId" :placeholder="$t('objFill.v100.orderid')" /> <el-input clearable type="Number" v-model="msg.OrderId" :placeholder="$t('objFill.orderid')" />
</span> </span>
</li> </li>
<li> <li>
...@@ -238,12 +243,15 @@ export default { ...@@ -238,12 +243,15 @@ export default {
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 5, pageSize: 5,
OrderId: '0',
CustomerId: 0, CustomerId: 0,
UseSTime: "", UseSTime: "",
UseETime: "", UseETime: "",
OrderState: 0, OrderState: 0,
IsFinish: -1, IsFinish: -1,
Sort: 1,
OrderId: null,
MainId: null,
OrderTCNUM: '',
}, },
total: 0, total: 0,
currentPage: 1, currentPage: 1,
...@@ -357,7 +365,7 @@ export default { ...@@ -357,7 +365,7 @@ export default {
}, },
//获取酒店订单列表 //获取酒店订单列表
GetList() { GetList() {
if(this.msg.OrderId=='') this.msg.OrderId = 0 // if(this.msg.OrderId=='') this.msg.OrderId = 0
this.loading = true this.loading = true
let url let url
// 销售 OP // 销售 OP
...@@ -373,7 +381,8 @@ export default { ...@@ -373,7 +381,8 @@ export default {
let data = res.data.data.pageData let data = res.data.data.pageData
let addLists = function(arr){ let addLists = function(arr){
arr.forEach(x=>{ arr.forEach(x=>{
x.typeInfo = '' x.typeInfo = {}
x.paymentInfo = {}
}) })
} }
let addList = function(arr){ let addList = function(arr){
...@@ -389,10 +398,11 @@ export default { ...@@ -389,10 +398,11 @@ export default {
// addLists(data) // addLists(data)
data.forEach(k => { data.forEach(k => {
addList(k.OrderList) addList(k.OrderList)
// k.typeInfo = this.OrderStatusType.find(y => y.ID == k.OrderState) ?? this.OrderStatusType[1] k.typeInfo = this.OrderStatusType.find(y => y.ID == k.OrderState) ?? this.OrderStatusType[1]
k.paymentInfo = this.PaymentMethods.find(y => y.Id == k.PayWay) ?? this.PaymentMethods[1]
k.OrderList.forEach(item=>{ k.OrderList.forEach(item=>{
// item.typeInfo = this.OrderStatusType.find(y => y.ID == item.OrderState) ?? this.OrderStatusType[1] 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] item.paymentInfo = this.PaymentMethods.find(y => y.Id == k.PayWay) ?? this.PaymentMethods[1]
if(item.OrderDetailList.length>2){ if(item.OrderDetailList.length>2){
item.isMore = true item.isMore = true
} }
...@@ -409,7 +419,6 @@ export default { ...@@ -409,7 +419,6 @@ export default {
}) })
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);
...@@ -443,6 +452,9 @@ export default { ...@@ -443,6 +452,9 @@ export default {
if (this.$route.query.OrderId) { if (this.$route.query.OrderId) {
this.msg.OrderId = this.$route.query.OrderId this.msg.OrderId = this.$route.query.OrderId
} }
if (this.$route.query.MainId) {
this.msg.MainId = this.$route.query.MainId
}
// crm自动登陆传过来的参数 // crm自动登陆传过来的参数
if(this.$route.query.crmOrderObj){ if(this.$route.query.crmOrderObj){
let crmOrderObj = JSON.parse(this.$route.query.crmOrderObj) let crmOrderObj = JSON.parse(this.$route.query.crmOrderObj)
......
...@@ -1888,7 +1888,7 @@ ...@@ -1888,7 +1888,7 @@
} }
}); });
} }
} }
else if(this.GetDetail.OtherType == 83){ else if(this.GetDetail.OtherType == 83){
if (this.typeSystem == 1) { if (this.typeSystem == 1) {
let href = this.domainManager().CarUrl let href = this.domainManager().CarUrl
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment