Commit e04c7a11 authored by 黄奎's avatar 黄奎

新增车辆满意度调查

parent ff1a2bc5
......@@ -77,7 +77,7 @@
}
.c20C997 {
color: #20c997
color: #20c997;
}
.c02C854 {
......@@ -259,7 +259,7 @@
}
.bg20c997 {
background: rgba(238, 238, 238, .5);
background: rgba(238, 238, 238, 0.5);
}
.bgFAEAED {
......@@ -271,7 +271,7 @@
}
.bjFFF3E0 {
background: #FFF3E0;
background: #fff3e0;
}
.radius5 {
......@@ -338,7 +338,7 @@
}
.orderType.activeNo {
background: #E95252;
background: #e95252;
}
.copy {
......@@ -460,7 +460,7 @@
.flexOne-description {
padding: 15px 15px;
border-radius: 5px;
background: #E1F5FE;
background: #e1f5fe;
margin-bottom: 20px;
}
......@@ -470,7 +470,7 @@
.flexOne-description p {
font-size: 12px;
color: #4C5759;
color: #4c5759;
padding: 10px 0 0 0;
}
......@@ -486,7 +486,7 @@
.list-title {
padding: 20px 0;
border-bottom: 1px dashed #eeeeee;
color: #7E8299;
color: #7e8299;
font-size: 13px;
}
......@@ -514,54 +514,58 @@
}
/deep/.el-table tr:last-child td {
border-bottom: 1px solid #EBEEF5;
border-bottom: 1px solid #ebeef5;
}
/deep/.el-table tr td {
border-bottom: 1px solid #EBEEF5;
border-bottom: 1px solid #ebeef5;
}
</style>
<template>
<div class="orderlist-box">
<!-- <div style="text-align: right;position: fixed;top: 62px; right: 89px;">
<el-button class="hollowFixedBtn" v-if="pagesTitle=='OP'" @click="setCompleted" :loading="CompletedLoading">
{{$t('objFill.oneclickfinish')}}
</el-button>
</div> -->
<div>
<div v-for="(chind,indexs) in OrderList" style="background: #fff;
<div v-for="(chind, indexs) in OrderList" style="
background: #fff;
padding: 0 10px 10px 10px;
margin-bottom: 10px;border-radius: 5px;">
margin-bottom: 10px;
border-radius: 5px;
">
<div class="row-c justify-sb align-c py">
<div class="row-c">
<div>
<div class="orderType cf fz12" :class="{
active: chind.OrderType == 1,
activeB:chind.OrderType == 2,
activeB: chind.OrderType == 2,
}">
<template v-if="chind.OrderType == 1">{{$t('objFill.changgui')}}</template>
<template v-if="chind.OrderType == 2">{{$t('objFill.baoche')}}</template>
<template v-if="chind.OrderType == 1">{{
$t("objFill.changgui")
}}</template>
<template v-if="chind.OrderType == 2">{{
$t("objFill.baoche")
}}</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>{{ chind.FinishEmpName }}/</span>
<span class="text-grey-6">{{ chind.FinishTimeStr }}</span>
</span>
</div>
<div class="c9e fz12">
<span>{{$t('Operation.Op_zhu')}}{{ $t('OrderList.search.orderId') }}:</span>
<span>{{ chind.MainId}}</span>
<span>{{ $t("Operation.Op_zhu") }}{{ $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>
@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')}}
<i class="el-icon-check mr"></i>{{ $t("objFill.copied") }}
</span>
</div>
<!-- <span class="cblack fz12 ml mr" v-if="scope.row.OrderTCNUM">
......@@ -581,8 +585,9 @@
</span> -->
</div>
<div class="row c9e fz12">
<span class="mr">{{$t('objFill.orderholder')}}:
{{chind.CreateByName}}/{{chind.CreateDateStr}}
<span class="mr">{{ $t("objFill.orderholder") }}: {{ chind.CreateByName }}/{{
chind.CreateDateStr
}}
</span>
<!-- <div class="">
<i class="mx5" :class="{
......@@ -598,13 +603,20 @@
</div> -->
</div>
</div>
<el-table v-if="chind.OrderType==2" :data="[chind]" style="width:100%;margin-bottom: 10px;" border>
<el-table-column :label="$t('objFill.collectiondocument')" style="background:#EAEAEA" min-width="220">
<el-table v-if="chind.OrderType == 2" :data="[chind]" style="width: 100%; margin-bottom: 10px" border>
<el-table-column :label="$t('objFill.collectiondocument')" style="background: #eaeaea" min-width="220">
<template slot-scope="scope">
<template v-if="scope.row.IncomeList.length>0">
<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>
<template v-if="scope.row.IncomeList.length > 0">
<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>
</template>
<el-tooltip v-if="scope.row.OrderState == 1" class="item" effect="dark"
:content="$t('objFill.preparedocument')" placement="top">
......@@ -612,166 +624,182 @@
</el-tooltip>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.v101.CarDealerOrder.baoyuesj')" style="background:#EAEAEA">
<el-table-column width="115" :label="$t('objFill.v101.CarDealerOrder.baoyuesj')" style="background: #eaeaea">
<template slot-scope="scope">
{{ scope.row.BCMonth }}/{{ scope.row.BCDay }} {{$t('hotel.hotel_day')}}
{{ scope.row.BCMonth }}/{{ scope.row.BCDay }} {{ $t("hotel.hotel_day") }}
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.caravanshopcol.t3')" style="background:#EAEAEA">
<el-table-column width="115" :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="115" :label="$t('objFill.caravanshopcol.t5')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.Income }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.caravanshopcol.t8')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.PlatformTax }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.caravanshopcol.t6')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.Refund }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.caravanshopcol.t7')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.PlatformMoney }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.v101.CarDealerOrder.xingshigl')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15">{{ scope.row.RunKM }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.v101.CarDealerOrder.youfeizhic')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.OutOilFee }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.v101.CarDealerOrder.tingcheglfsr')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.InPassByFee }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.v101.CarDealerOrder.tingcheglfzc')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.OutPassByFee }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.qitashouru')" min-width="70" style="background:#EAEAEA">
<el-table-column width="115" :label="$t('objFill.qitashouru')" min-width="70" style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.OtherIncome }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.v101.busManagement.sijizhusf')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.DriverRoomFee }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.v101.Contract.tincrzf')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.InParkingFee }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.v101.Contract.tinczcf')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.OutParkingFee }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.v101.Contract.sijicdsr')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.InTeaFee }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.v101.Contract.sijicdzc')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.OutTeaFee }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('active.cl_qita')+$t('objFill.caravanshopcol.t9')" min-width="70"
style="background:#EAEAEA">
<el-table-column width="115" :label="$t('active.cl_qita') + $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="115" :label="$t('objFill.caravanshopcol.t4')" min-width="70"
style="background:#EAEAEA">
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 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 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 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>{{ 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>{{ $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>
@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')}}
<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">{{$t('objFill.v101.CarDealerOrder.xitongtuanh')}}:</span>{{ item.OrderTCNUM }} </span>
<span class="c9e">{{ $t("objFill.v101.CarDealerOrder.xitongtuanh") }}:</span>{{ item.OrderTCNUM }}
</span>
<span class="cblack fz12 ml mr" v-if="item.TCNUM">
<span class="c9e">{{$t('objFill.zhutuanhao')}}:</span>{{ item.TCNUM }} </span>
<span class="cblack fz12 ml mr" v-if="item.SurveyUrl&&item.SurveyUrl!=''">
<a target="_blank" :href="item.SurveyUrl" style="color:blue;text-decoration: underline;">{{$t('objFill.v101.CarDealerOrder.surveyInfo')}}</a>
<span class="c9e">{{ $t("objFill.zhutuanhao") }}:</span>{{ item.TCNUM }}
</span>
<span class="cblack fz12 ml mr" v-if="item.SurveyArray && item.SurveyArray.length > 0">
<a style="color: blue; text-decoration: underline; cursor: pointer" @click="showSurvey(item)">{{
$t("objFill.v101.CarDealerOrder.surveyInfo")
}}</a>
</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 class="c9e">{{ $t("objFill.petition") }}:</span>
<span class="text-grey-6">{{ item.PetitionId }}</span>
</span>
</div>
<span v-if="item.CustomerName||item.CustomerTel">
<span v-if="item.CustomerName || item.CustomerTel">
<template v-if="item.CustomerName">
{{$t('objFill.guestinfor')}}<span class="cblack">{{item.CustomerName}}</span>
{{ $t("objFill.guestinfor") }}<span class="cblack">{{
item.CustomerName
}}</span>
</template>
<span v-if="item.CustomerTel">/ Tel:<span class="cblack">{{ item.CustomerTel }}</span> </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>
......@@ -792,32 +820,36 @@
</div>
</div>
<el-table :data="[item]" style="width:100%" border>
<el-table-column :label="$t('objFill.driver')" min-width="220" style="background:#EAEAEA">
<el-table :data="[item]" style="width: 100%" border>
<el-table-column :label="$t('objFill.driver')" min-width="220" style="background: #eaeaea">
<template slot-scope="scope">
<div v-if="scope.row.DriverModel">
{{ scope.row.DriverModel.DriverName }}/{{ scope.row.DriverModel.DriverTel }}
{{ scope.row.DriverModel.DriverName }}/{{
scope.row.DriverModel.DriverTel
}}
</div>
<span v-if="scope.row.CopilotDriverModel">
{{$t('objFill.assistantdriver')}}{{scope.row.CopilotDriverModel.DriverName}}/{{scope.row.CopilotDriverModel.DriverTel}}
{{ $t("objFill.assistantdriver") }}{{
scope.row.CopilotDriverModel.DriverName
}}/{{ scope.row.CopilotDriverModel.DriverTel }}
</span>
</template>
</el-table-column>
<el-table-column :label="$t('objFill.caravanshopcol.t1')" min-width="180" style="background:#EAEAEA">
<el-table-column :label="$t('objFill.caravanshopcol.t1')" min-width="180" style="background: #eaeaea">
<template slot-scope="scope">
<div v-if="scope.row.CarModel">
{{ scope.row.CarModel.CarName+'/'+scope.row.CarModel.CarNo }}
{{ scope.row.CarModel.CarName + "/" + scope.row.CarModel.CarNo }}
</div>
<span style="color: #999999;">{{ scope.row.UseDate }}</span>
<span style="color: #999999;">/ {{ scope.row.UseDay }}{{$t('hotel.hotel_day')}}</span>
<span style="color: #999999">{{ scope.row.UseDate }}</span>
<span style="color: #999999">/ {{ scope.row.UseDay }}{{ $t("hotel.hotel_day") }}</span>
</template>
</el-table-column>
<el-table-column :label="$t('objFill.caravanshopcol.t2')" min-width="160" style="background:#EAEAEA">
<el-table-column :label="$t('objFill.caravanshopcol.t2')" min-width="160" style="background: #eaeaea">
<template slot-scope="scope">
<div class="RoomList text-center">
<div class="fz12 c9e" v-for="(x, i) in scope.row.NewOrderDetailList">
<span class="mr">
{{x.useDate}}
{{ x.useDate }}
</span>
<!-- <span class="mr"
v-if="x.CopilotDriverModel">{{$t('objFill.assistantdriver')}}{{x.CopilotDriverModel.DriverName}}/{{x.CopilotDriverModel.DriverTel}}</span> -->
......@@ -826,103 +858,103 @@
</div>
</template>
</el-table-column>
<el-table-column v-if="chind.OrderType==1" width="115" :label="$t('objFill.caravanshopcol.t3')"
style="background:#EAEAEA">
<el-table-column v-if="chind.OrderType == 1" width="115" :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 v-if="chind.OrderType==1" width="115" :label="$t('objFill.caravanshopcol.t4')"
min-width="70" style="background:#EAEAEA">
<el-table-column v-if="chind.OrderType == 1" width="115" :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 width="115" :label="$t('objFill.caravanshopcol.t5')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.Income }}</span>
</template>
</el-table-column>
<el-table-column v-if="chind.OrderType==1" width="115" :label="$t('objFill.caravanshopcol.t8')"
min-width="70" style="background:#EAEAEA">
<el-table-column v-if="chind.OrderType == 1" width="115" :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="115" :label="$t('objFill.caravanshopcol.t6')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.Refund }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.caravanshopcol.t7')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.PlatformMoney }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.v101.CarDealerOrder.xingshigl')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15">{{ scope.row.RunKM }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.v101.CarDealerOrder.youfeizhic')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.OutOilFee }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.v101.CarDealerOrder.tingcheglfsr')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.InPassByFee }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.v101.CarDealerOrder.tingcheglfzc')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.OutPassByFee }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.qitashouru')" min-width="70" style="background:#EAEAEA">
<el-table-column width="115" :label="$t('objFill.qitashouru')" min-width="70" style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.OtherIncome }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.v101.busManagement.sijizhusf')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.DriverRoomFee }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.v101.Contract.tincrzf')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.InParkingFee }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.v101.Contract.tinczcf')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.OutParkingFee }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.v101.Contract.sijicdsr')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.InTeaFee }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('objFill.v101.Contract.sijicdzc')" min-width="70"
style="background:#EAEAEA">
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.OutTeaFee }}</span>
</template>
</el-table-column>
<el-table-column width="115" :label="$t('active.cl_qita')+$t('objFill.caravanshopcol.t9')" min-width="70"
style="background:#EAEAEA">
<el-table-column width="115" :label="$t('active.cl_qita') + $t('objFill.caravanshopcol.t9')" min-width="70"
style="background: #eaeaea">
<template slot-scope="scope">
<span class="fz15 fbold">{{ scope.row.CostMoney }}</span>
</template>
......@@ -932,30 +964,37 @@
<span class="fz15 fbold">{{ scope.row.DueInMoney }}</span>
</template>
</el-table-column> -->
<el-table-column width="115" :label="$t('objFill.zffs')" min-width="70" style="background:#EAEAEA">
<el-table-column width="115" :label="$t('objFill.zffs')" 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}}
<template slot="append" v-if="item.Remark || item.isMore">
<div style="padding: 10px; color: #f1416c">
{{ $t("pub.pubRemark") }}{{ item.Remark }}
</div>
<div :style="{'height': item.isMore?'20px':''}"></div>
<more v-if="item.isMore" @change="ViewMore(item,index)" :upIcon="item.upIcon"></more>
<div :style="{ height: item.isMore ? '20px' : '' }"></div>
<more v-if="item.isMore" @change="ViewMore(item, index)" :upIcon="item.upIcon"></more>
</template>
</el-table>
<div class="row justify-sb mt" v-if="chind.OrderState!=2">
<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 justify-sb mt" v-if="chind.OrderState != 2">
<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 pyt5">
<span class="cursor-pointer radius5 mr mb5 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 class="cursor-pointer radius5 mr mb5 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">
{{$t('objFill.nocollectiondocument')}}
{{ $t("objFill.nocollectiondocument") }}
</span>
</div>
<el-tooltip v-if="item.OrderState == 1" class="item" effect="dark"
......@@ -964,15 +1003,21 @@
@click="makeAdocument(chind, 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="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 pyt5">
<span class="cursor-pointer radius5 mr mb5 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 class="cursor-pointer radius5 mr mb5 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')}}
{{ $t("objFill.norefundreceipt") }}
</span>
</div>
<el-tooltip v-if="item.OrderState == 1" class="item" effect="dark"
......@@ -981,15 +1026,21 @@
@click="makeAdocument(chind, 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="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 pyt5">
<span class="cursor-pointer radius5 mr mb5 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 class="cursor-pointer radius5 mr mb5 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')}}
{{ $t("objFill.nocostdocument") }}
</span>
</div>
<div class="item absolute right20 bottom20" v-if="item.OrderState == 1 && pagesTitle != '销售'">
......@@ -1003,16 +1054,25 @@
</div>
</div>
<div v-if="false" class="column px15 bgf5 radius5 ml flex-g pa relative"
style="min-width: 150px;max-width:400px">
<div class="fz12">{{$t('objFill.invoicedocument')}}</div>
style="min-width: 150px; max-width: 400px">
<div class="fz12">{{ $t("objFill.invoicedocument") }}</div>
<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 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>
......@@ -1021,58 +1081,71 @@
item.OrderState == 1 &&
item.IncomeList.length == 0 &&
item.RefundList.length == 0 &&
item.CostList.length == 0 && item.OrderSource!=1
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>
<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)">
<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>
<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>
<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">{{$t('objFill.v101.CarDealerOrder.bianjiglop')}}</span>
<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">{{
$t("objFill.v101.CarDealerOrder.bianjiglop")
}}</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">{{$t('objFill.bianjizje')}}</span>
<div v-if="item.OrderState != 3 && pagesTitle == 'OP'" class="row-c cursor-pointer radius5 change py5"
@click="clickCorrelation(item, 2)">
<span class="c059FF6">{{ $t("objFill.bianjizje") }}</span>
</div>
<ApplyFoInvoice v-if="userInfo&&userInfo.RB_Group_id==2&&userInfo.EmployeeId==item.EnterID" :obj="item"
:type="7"></ApplyFoInvoice>
<ApplyFoInvoice v-if="
userInfo &&
userInfo.RB_Group_id == 2 &&
userInfo.EmployeeId == item.EnterID
" :obj="item" :type="7"></ApplyFoInvoice>
</div>
</div>
<div class="mt mb20 bgf5 pa15 row-c" v-if="item.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;">
<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;
">
{{ item.CancelRemark }}
</div>
<div style="margin-left:12px;font-size:12px;font-family: microsoft yahei;">
<div style="margin-left: 12px; font-size: 12px; font-family: microsoft yahei">
{{ item.CancelEmpName }} {{ item.CancelTime }}
</div>
</div>
</div>
</div>
</div>
<el-dialog custom-class="w600" :title="$t('sm.exitOrder')" :visible.sync="cancelOrderDialog">
<div style="padding-bottom:20px">
<div style="padding-bottom: 20px">
<el-input type="textarea" autofocus rows="5" :placeholder="$t('objFill.quxiaodindanyy')" clear="w300"
v-model="cancelRemark">
</el-input>
<el-row :gutter="20" style="margin-top: 20px;">
<el-col :span="24" style="text-align: right;">
<el-row :gutter="20" style="margin-top: 20px">
<el-col :span="24" style="text-align: right">
<input type="button" class="normalBtn" :value="$t('sm.exitOrder')" @click="cancelOrderHandler" />
<input type="button" class="hollowFixedBtn" :value="$t('pub.closeSel')"
@click="cancelOrderDialog = false" />
......@@ -1081,30 +1154,46 @@
</div>
</el-dialog>
<!-- 变更订单 -->
<el-dialog custom-class="w800" :title="pagesTitle=='销售'?$t('objFill.biangendindan'):$t('objFill.bianjiqupiaofs')"
:visible.sync="ChangeOrderDialog">
<div style="padding-bottom:20px">
<el-dialog custom-class="w800" :title="
pagesTitle == '销售' ? $t('objFill.biangendindan') : $t('objFill.bianjiqupiaofs')
" :visible.sync="ChangeOrderDialog">
<div style="padding-bottom: 20px">
<div class="flexOne-form-bj">
<h3>{{$t('objFill.qupiaofanshi')}}</h3>
<h3>{{ $t("objFill.qupiaofanshi") }}</h3>
<div class="flexOne-type">
<b>{{$t('objFill.qupiaofanshi')}}:</b>
<b>{{ $t("objFill.qupiaofanshi") }}:</b>
<div>
<el-radio v-model="msgParameter.MailingState" label="1">{{$t('objFill.zixingqupiao')}}</el-radio>
<el-radio v-model="msgParameter.MailingState" label="2">{{$t('objFill.youjipiaoquan')}}</el-radio>
<el-radio v-model="msgParameter.MailingState" label="4">{{$t('objFill.dianziquan')}}</el-radio>
<el-radio v-model="msgParameter.MailingState" label="1">{{
$t("objFill.zixingqupiao")
}}</el-radio>
<el-radio v-model="msgParameter.MailingState" label="2">{{
$t("objFill.youjipiaoquan")
}}</el-radio>
<el-radio v-model="msgParameter.MailingState" label="4">{{
$t("objFill.dianziquan")
}}</el-radio>
</div>
</div>
<div class="flexOne-description" v-if="msgParameter.MailingState==1">
<b>{{$t('objFill.zixingqupiaosm')}}</b>
<p>{{$t('objFill.ziqudizhi')}}:{{msgParameter.SelffetchAddress?msgParameter.SelffetchAddress:'-'}}</p>
<div class="flexOne-description" v-if="msgParameter.MailingState == 1">
<b>{{ $t("objFill.zixingqupiaosm") }}</b>
<p>
{{ $t("objFill.ziqudizhi") }}:{{
msgParameter.SelffetchAddress ? msgParameter.SelffetchAddress : "-"
}}
</p>
</div>
<div class="flexOne-infor-box">
<b>{{msgParameter.MailingState==1?$t('objFill.kerenxunxi'):msgParameter.MailingState==2?$t('objFill.youjixunxi'):''}}</b>
<el-form v-if="msgParameter.MailingState!=4" label-width="80px" :model="msgParameter" :rules="rules2"
<b>{{
msgParameter.MailingState == 1
? $t("objFill.kerenxunxi")
: msgParameter.MailingState == 2
? $t("objFill.youjixunxi")
: ""
}}</b>
<el-form v-if="msgParameter.MailingState != 4" label-width="80px" :model="msgParameter" :rules="rules2"
ref="msgParameter">
<div class="infor-list">
</span>
<div class="list-centent" :class="{ 'active': msgParameter.MailingState == 1 }">
<div class="list-centent" :class="{ active: msgParameter.MailingState == 1 }">
<li>
<el-form-item :label="$t('admin.admin_Surname')" prop="Name">
<el-input v-model="msgParameter.Name" :placeholder="$t('system.ph_name')" />
......@@ -1123,33 +1212,37 @@
</li>
<li v-if="msgParameter.MailingState == 2">
<el-form-item :label="$t('admin.admin_address')" prop="MailingAddress">
<el-input style="border-radius: 3px;" v-model="msgParameter.MailingAddress"
<el-input style="border-radius: 3px" v-model="msgParameter.MailingAddress"
:placeholder="$t('objFill.qinshuruyoujidz')" />
</el-form-item>
</li>
<li v-if="msgParameter.MailingState == 2">
<el-form-item :label="$t('objFill.youjifei')" prop="MailingMoney">
<el-input type="Number" style="border-radius: 3px;" v-model="msgParameter.MailingMoney"
<el-input type="Number" style="border-radius: 3px" v-model="msgParameter.MailingMoney"
:placeholder="$t('objFill.qinshuruyoujif')" />
</el-form-item>
</li>
<li class="bottom">
<el-form-item :label="$t('system.table_sex')" prop="Sex">
<el-radio v-model="msgParameter.Sex" label="1">{{$t('visaT.boy')}}</el-radio>
<el-radio v-model="msgParameter.Sex" label="2">{{$t('visaT.girl')}}</el-radio>
<el-radio v-model="msgParameter.Sex" label="1">{{
$t("visaT.boy")
}}</el-radio>
<el-radio v-model="msgParameter.Sex" label="2">{{
$t("visaT.girl")
}}</el-radio>
</el-form-item>
</li>
</div>
</div>
</el-form>
<div v-if="pagesTitle=='销售'" style="margin-top: 20px;">
<el-input style="width: 100%;" type="textarea" :autosize="{ minRows: 2, maxRows: 4 }"
<div v-if="pagesTitle == '销售'" style="margin-top: 20px">
<el-input style="width: 100%" type="textarea" :autosize="{ minRows: 2, maxRows: 4 }"
v-model="msgParameter.Remark" :placeholder="$t('visaT.Orderremark')" />
</div>
</div>
</div>
<el-row :gutter="20" style="margin-top: 20px;">
<el-col :span="24" style="text-align: right;">
<el-row :gutter="20" style="margin-top: 20px">
<el-col :span="24" style="text-align: right">
<input type="button" class="hollowFixedBtn" :value="$t('pub.cancelBtn')"
@click="ChangeOrderDialog = false" />
<input type="button" class="normalBtn" :value="$t('pub.sureBtn')" @click="submit2" />
......@@ -1158,33 +1251,58 @@
</div>
</el-dialog>
<!-- op备注 -->
<el-dialog custom-class='addCompany' :title="pagesTitle=='销售'?$t('objFill.bianjikehubz'):$t('objFill.bianjiopbz')"
:visible.sync="isShowRemark" center width="400px">
<el-row class="flex" style="margin-top: 10px;">
<el-dialog custom-class="addCompany" :title="
pagesTitle == '销售' ? $t('objFill.bianjikehubz') : $t('objFill.bianjiopbz')
" :visible.sync="isShowRemark" center width="400px">
<el-row class="flex" style="margin-top: 10px">
<el-col>
<span style="display: block;margin-bottom: 10px;">{{$t('pub.pubRemark')}}:</span>
<span style="display: block; margin-bottom: 10px">{{ $t("pub.pubRemark") }}:</span>
<span>
<el-input type="textarea" :rows="4" v-model="postMsg.Remark">
</el-input>
<el-input type="textarea" :rows="4" v-model="postMsg.Remark"> </el-input>
</span>
</el-col>
</el-row>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="isShowRemark = false">{{$t('pub.cancelBtn')}}</button> &nbsp;
<button class="normalBtn" type="primary" @click="submitEditRemark">{{$t('pub.sureBtn')}}</button>
<button class="hollowFixedBtn" @click="isShowRemark = false">
{{ $t("pub.cancelBtn") }}
</button>
&nbsp;
<button class="normalBtn" type="primary" @click="submitEditRemark">
{{ $t("pub.sureBtn") }}
</button>
</div>
</el-dialog>
<offset :isShow="cdState" :obj="queryObj" @close="cdState=false"></offset>
<offset :isShow="cdState" :obj="queryObj" @close="cdState = false"></offset>
<correlationOP :isShowCorrelation="isShowCorrelation" :CorrelationObj="CorrelationObj" @close="close"
@success="success"></correlationOP>
<!--车辆意见调查表-->
<el-dialog custom-class="addCompany" :title='$t("objFill.v101.CarDealerOrder.surveyInfo")'
:visible.sync="surveyMsg.isShowSurvey" center width="400px">
<el-row class="flex" style="margin-top: 10px">
<el-col>
<template v-for="(sItem,sIndex) in surveyMsg.SurveyArray">
<a target="_blank" style="color:blue" :href="sItem.FileUrl" :key="sIndex">{{sIndex+1}}{{sItem.FileName}} </a>
<template v-if="sIndex!=surveyMsg.SurveyArray.length-1">
<br :key="`b_`+sIndex" />
</template>
</template>
</el-col>
</el-row>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="closeSurvey()">
{{ $t("pub.cancelBtn") }}
</button>
</div>
</el-dialog>
</div>
</template>
<script>
import offset from '../../public/offset.vue';
import correlationOP from '../../Hotel/reservation/correlationOP.vue';
import commissionDialog from "../../FinancialModule/TradeCommission/commissionDialog"
import ApplyFoInvoice from '../../public/ApplyFoInvoice';
import more from '../../public/more.vue';
import offset from "../../public/offset.vue";
import correlationOP from "../../Hotel/reservation/correlationOP.vue";
import commissionDialog from "../../FinancialModule/TradeCommission/commissionDialog";
import ApplyFoInvoice from "../../public/ApplyFoInvoice";
import more from "../../public/more.vue";
export default {
components: {
......@@ -1192,7 +1310,7 @@
correlationOP,
commissionDialog,
ApplyFoInvoice,
more
more,
},
props: ["OrderList", "pagesTitle"],
data() {
......@@ -1200,7 +1318,7 @@
postMsg: {
OrderId: 0,
Type: 1,
Remark: ''
Remark: "",
},
isShowRemark: false,
queryObj: null,
......@@ -1219,80 +1337,80 @@
OtherType: 61,
ReFinanceId: "",
ReFinanceId2: "",
CostType: '',
CostType: "",
},
userInfo: {},
msg: {
OrderId: "",
LossMoney: 0,
State: '', //状态 1确认 2已邮寄 3设置自提 4收损
SelffetchAddress: ''
State: "", //状态 1确认 2已邮寄 3设置自提 4收损
SelffetchAddress: "",
},
msgParameter: {
IsUpdateMailing: 1,
OrderId: 0,
Money: 0.0,
Remark: '',
MailingState: '1', //邮寄状态 1自取 2邮寄
MailingAddress: '', //MailingState =2 填写邮寄
UseDate: '', //门票日期
Name: '',
EName: '',
Sex: '1', //1男2女
Birthday: '',
Mobile: '',
CouponsId: '', //景点id
Remark: "",
MailingState: "1", //邮寄状态 1自取 2邮寄
MailingAddress: "", //MailingState =2 填写邮寄
UseDate: "", //门票日期
Name: "",
EName: "",
Sex: "1", //1男2女
Birthday: "",
Mobile: "",
CouponsId: "", //景点id
DetailList: [],
},
rules2: {
Name: [{
required: true,
message: this.$t('rule.qsrzwm'),
trigger: 'blur'
}],
message: this.$t("rule.qsrzwm"),
trigger: "blur",
}, ],
EName: [{
required: true,
message: this.$t('rule.qsrywm'),
trigger: 'blur'
}],
message: this.$t("rule.qsrywm"),
trigger: "blur",
}, ],
Mobile: [{
required: true,
message: this.$t('rule.EnterPNum'),
trigger: "blur"
message: this.$t("rule.EnterPNum"),
trigger: "blur",
},
{
pattern: this.$commonUtils.Regex.el_ISphone,
message: this.$t('rule.EnterRightNum')
}
message: this.$t("rule.EnterRightNum"),
},
],
MailingAddress: [{
required: true,
message: this.$t('objFill.qinshuruyoujidz'),
trigger: 'blur'
}],
message: this.$t("objFill.qinshuruyoujidz"),
trigger: "blur",
}, ],
MailingMoney: [{
required: true,
message: this.$t('objFill.qinshuruyoujify'),
trigger: "blur"
message: this.$t("objFill.qinshuruyoujify"),
trigger: "blur",
}, ],
},
outerVisible: false,
rules: {
State: [{
required: true,
message: this.$t('objFill.qinxuanzhedindanzt'),
trigger: "change"
}],
message: this.$t("objFill.qinxuanzhedindanzt"),
trigger: "change",
}, ],
SelffetchAddress: [{
required: true,
message: this.$t('objFill.qinshuruzitidz'),
trigger: "blur"
}],
message: this.$t("objFill.qinshuruzitidz"),
trigger: "blur",
}, ],
LossMoney: [{
required: true,
message: this.$t('objFill.qinshurushoushunje'),
trigger: "blur"
}]
message: this.$t("objFill.qinshurushoushunje"),
trigger: "blur",
}, ],
},
cancelOrderDialog: false,
cancelRemark: "",
......@@ -1300,206 +1418,229 @@
uploadOrderId: 0,
loading: false,
fileList: [],
GuestFile: '',
GuestFile: "",
ChangeOrderDialog: false,
PaymentMethods: [],
OrderStatusType: [{
Name: this.$t('OrderList.orderStatus.apply'),
ID: '1'
Name: this.$t("OrderList.orderStatus.apply"),
ID: "1",
},
{
Name: this.$t('OrderList.orderStatus.check'),
ID: '2'
Name: this.$t("OrderList.orderStatus.check"),
ID: "2",
},
{
Name: this.$t('OrderList.orderStatus.cancel'),
ID: '3'
Name: this.$t("OrderList.orderStatus.cancel"),
ID: "3",
},
{
Name: this.$t('OrderList.orderStatus.sun'),
ID: '4'
Name: this.$t("OrderList.orderStatus.sun"),
ID: "4",
},
],
items: null,
typeState: '',
typeState: "",
loadingDZP: false,
uploadOrderId: 0,
GuestFile: '',
GuestFile: "",
isShowCorrelation: false,
CorrelationObj: {},
is_correlationOP: false,
typeSystem: 0
typeSystem: 0,
//车辆满意度调查
surveyMsg: {
SurveyArray: [],
isShowSurvey: false
}
};
},
watch: {
pagesTitle(val, oldval) {
this.pagesTitle = val
this.pagesTitle = val;
},
OrderList: {
handler(val, oldVal) {
}
}
handler(val, oldVal) {},
},
},
methods: {
showSurvey(item) {
this.surveyMsg.isShowSurvey = true;
this.surveyMsg.SurveyArray = item.SurveyArray;
},
closeSurvey() {
this.surveyMsg.isShowSurvey = false;
},
ViewMore(x, index) {
x.upIcon = !x.upIcon
x.upIcon = !x.upIcon;
if (x.upIcon) {
x.NewOrderDetailList = JSON.parse(JSON.stringify(x.OrderDetailList))
x.NewOrderDetailList = JSON.parse(JSON.stringify(x.OrderDetailList));
} else {
x.NewOrderDetailList = []
x.NewOrderDetailList = [];
x.OrderDetailList.forEach((y, index) => {
if (index < 2) {
x.NewOrderDetailList.push(y)
x.NewOrderDetailList.push(y);
}
})
});
}
},
close() {
this.isShowCorrelation = false
this.CorrelationObj.TypeNum = null
this.CorrelationObj.Money = null
this.isShowCorrelation = false;
this.CorrelationObj.TypeNum = null;
this.CorrelationObj.Money = null;
},
success() {
this.close()
this.$emit('success')
this.close();
this.$emit("success");
},
clickCorrelation(item, type) {
this.CorrelationObj = JSON.parse(JSON.stringify(item))
this.CorrelationObj = JSON.parse(JSON.stringify(item));
if (type == 2) {
this.CorrelationObj.TypeNum = 4 //编辑总价
this.CorrelationObj.TypeNum = 4; //编辑总价
} else {
this.CorrelationObj.TypeNum = 2
this.CorrelationObj.TypeNum = 2;
}
this.isShowCorrelation = true
this.isShowCorrelation = true;
},
// 车行订单 制成本冲抵单
addBalanceout() {
let datas = this.$route.query
let tradeObj = datas.tradeObj
let datas = this.$route.query;
let tradeObj = datas.tradeObj;
let query = {
blank: "y",
tab: `新增付款单据`,
Type: 2,
tradeObj: tradeObj,
companyID: 1248
companyID: 1248,
};
this.queryObj = query
this.cdState = true
this.queryObj = query;
this.cdState = true;
},
isOffset(chind, row, num) {
this.makeAdocument(chind, row, num, 'Offset')
this.makeAdocument(chind, row, num, "Offset");
},
editRemark(item) {
this.postMsg.OrderId = item.OrderId
this.postMsg.Remark = this.pagesTitle == '销售' ? item.Remark : item.OPRemark
this.isShowRemark = true
this.postMsg.OrderId = item.OrderId;
this.postMsg.Remark = this.pagesTitle == "销售" ? item.Remark : item.OPRemark;
this.isShowRemark = true;
},
selectable(row, index) {
if (((this.OrderList[index].IsFinish != 1 && this.OrderList[index].Income > 0 && this.OrderList[index]
.DueInMoney == 0) || (this.OrderList[index].Money == 0 && this.OrderList[index].Income == 0 &&
this.OrderList[index].CostMoney == 0 && this.OrderList[index].Refund == 0 &&
this.OrderList[index].PlatformTax == 0 && this.OrderList[index].IncomeList &&
this.OrderList[index].IncomeList.length > 0))) {
if (
(this.OrderList[index].IsFinish != 1 &&
this.OrderList[index].Income > 0 &&
this.OrderList[index].DueInMoney == 0) ||
(this.OrderList[index].Money == 0 &&
this.OrderList[index].Income == 0 &&
this.OrderList[index].CostMoney == 0 &&
this.OrderList[index].Refund == 0 &&
this.OrderList[index].PlatformTax == 0 &&
this.OrderList[index].IncomeList &&
this.OrderList[index].IncomeList.length > 0)
) {
return true;
} else {
return false;
}
},
handleSelectionChange(val) {
this.multipleSelection = val.map(x => {
return x.OrderId
this.multipleSelection = val.map((x) => {
return x.OrderId;
});
},
setCompleted(id, row) {
let ids = ''
let ids = "";
if (id > 0) {
ids = id
ids = id;
} else {
if (this.multipleSelection.length == 0) return this.$message.error(this.$t('objFill.qingouxuanwanjieshuju'))
ids = this.multipleSelection.join(',')
if (this.multipleSelection.length == 0)
return this.$message.error(this.$t("objFill.qingouxuanwanjieshuju"));
ids = this.multipleSelection.join(",");
}
if (ids == '') {
this.$message.error(this.$t('objFill.qingouxuanwanjieshuju'))
if (ids == "") {
this.$message.error(this.$t("objFill.qingouxuanwanjieshuju"));
}
this.$confirm(this.$t('objFill.shifouquedinwanjie'), this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning'
}).then(() => {
this.$confirm(this.$t("objFill.shifouquedinwanjie"), this.$t("tips.tips"), {
confirmButtonText: this.$t("pub.sureBtn"),
cancelButtonText: this.$t("pub.cancelBtn"),
type: "warning",
})
.then(() => {
if (id > 0) {
row.loading = true
row.loading = true;
} else {
this.CompletedLoading = true
this.CompletedLoading = true;
}
this.apipost('ticket_post_SetTicketOrderFinish', {
TticketOrderIds: ids
}, res => {
this.apipost(
"ticket_post_SetTicketOrderFinish", {
TticketOrderIds: ids,
},
(res) => {
if (res.data.resultCode == 1) {
if (id > 0) {
row.loading = false
row.loading = false;
} else {
this.CompletedLoading = false
this.CompletedLoading = false;
}
for (let i = 0; i < this.OrderList.length; i++) {
this.$refs.multipleTable.toggleRowSelection(
this.OrderList[i],
false
);
this.$refs.multipleTable.toggleRowSelection(this.OrderList[i], false);
}
this.multipleSelection = []
this.$message.success(this.$t('tips.czchenggong'));
this.$emit('success')
this.multipleSelection = [];
this.$message.success(this.$t("tips.czchenggong"));
this.$emit("success");
} else {
if (id > 0) {
row.loading = false
row.loading = false;
} else {
this.CompletedLoading = false
this.CompletedLoading = false;
}
this.$message.error(res.data.message);
}
}, err => {})
}).catch(() => {
this.$message.info(`${this.$t('OrderList.orderStatus.cancel')}!`);
},
(err) => {}
);
})
.catch(() => {
this.$message.info(`${this.$t("OrderList.orderStatus.cancel")}!`);
});
},
submitEditRemark() {
if (!this.postMsg.Remark) {
this.$message.error(this.$t('objFill.v101.busManagement.opbeizhubnwk'));
return
this.$message.error(this.$t("objFill.v101.busManagement.opbeizhubnwk"));
return;
}
this.apipost('ticket_post_SetTicketOrderRemark', {
this.apipost(
"ticket_post_SetTicketOrderRemark", {
OrderId: this.postMsg.OrderId,
Type: this.pagesTitle == '销售' ? 1 : 2,
Remark: this.postMsg.Remark
}, res => {
Type: this.pagesTitle == "销售" ? 1 : 2,
Remark: this.postMsg.Remark,
},
(res) => {
if (res.data.resultCode == 1) {
this.isShowRemark = false
this.$emit('success')
this.isShowRemark = false;
this.$emit("success");
this.$forceUpdate();
} else {
this.Error(res.data.message);
}
})
}
);
},
submit2() {
if (this.loading3) return
this.$refs['msgParameter'].validate((valid) => {
if (this.loading3) return;
this.$refs["msgParameter"].validate((valid) => {
if (valid) {
this.setFormMsg2()
this.setFormMsg2();
} else {
return false;
}
});
},
setFormMsg2() {
if (this.msgParameter.MailingState == '1') {
this.msgParameter.MailingAddress = ''
if (this.msgParameter.MailingState == "1") {
this.msgParameter.MailingAddress = "";
}
let m
let url
if (this.pagesTitle == 'OP') {
let m;
let url;
if (this.pagesTitle == "OP") {
m = {
OrderId: this.msgParameter.OrderId,
MailingMoney: this.msgParameter.MailingMoney,
......@@ -1510,10 +1651,10 @@
EName: this.msgParameter.EName,
Sex: this.msgParameter.Sex, //1男2女
Mobile: this.msgParameter.Mobile,
};
url = "dict_post_SetTicketOrderMailingState";
}
url = 'dict_post_SetTicketOrderMailingState'
}
if (this.pagesTitle == '销售') {
if (this.pagesTitle == "销售") {
m = {
IsUpdateMailing: 1,
OrderId: this.msgParameter.OrderId,
......@@ -1529,65 +1670,84 @@
Sex: this.msgParameter.Sex, //1男2女
Mobile: this.msgParameter.Mobile,
Remark: this.msgParameter.Remark,
};
url = "ticket_post_SetSaleTicketOrder";
}
url = 'ticket_post_SetSaleTicketOrder'
}
this.loading3 = true
this.apipost(url, m,
res => {
this.loading3 = false
this.loading3 = true;
this.apipost(
url,
m,
(res) => {
this.loading3 = false;
if (res.data.resultCode == 1) {
this.Success(
`${this.pagesTitle=='销售'?this.$t('objFill.biangendindan'):this.$t('objFill.bianjiqupiaofs')}${this.$t('objFill.chenggong')}`
`${
this.pagesTitle == "销售"
? this.$t("objFill.biangendindan")
: this.$t("objFill.bianjiqupiaofs")
}${this.$t("objFill.chenggong")}`
);
this.$emit('success')
this.ChangeOrderDialog = false
this.$emit("success");
this.ChangeOrderDialog = false;
} else {
this.Error(
`${this.pagesTitle=='销售'?this.$t('objFill.biangendindan'):this.$t('objFill.bianjiqupiaofs')}${this.$t('objFill.shibai')}`
)
`${
this.pagesTitle == "销售"
? this.$t("objFill.biangendindan")
: this.$t("objFill.bianjiqupiaofs")
}${this.$t("objFill.shibai")}`
);
}
},
err => {
this.loading3 = false
this.Error(err.message)
});
(err) => {
this.loading3 = false;
this.Error(err.message);
}
);
},
uploadFileBtn(file) {
let ft = file.file.name.substring(file.file.name.lastIndexOf('.') + 1, file.file.name.length).toUpperCase();
let ft = file.file.name
.substring(file.file.name.lastIndexOf(".") + 1, file.file.name.length)
.toUpperCase();
let typeOk = false;
let FileName = file.file.name.substring(0, file.file.name.lastIndexOf("."))
let FileName = file.file.name.substring(0, file.file.name.lastIndexOf("."));
let newArr = [];
newArr.push(file.file)
let path = "/Upload/Temporary/"
this.$message.info(this.$t('tips.shangchuanzhong'))
this.UploadSelfFileT(path, newArr, x => {
this.GuestFile = this.domainManager().ViittoFileUrl + x.data.FilePath
this.uploadHandleChange()
}, 1);
newArr.push(file.file);
let path = "/Upload/Temporary/";
this.$message.info(this.$t("tips.shangchuanzhong"));
this.UploadSelfFileT(
path,
newArr,
(x) => {
this.GuestFile = this.domainManager().ViittoFileUrl + x.data.FilePath;
this.uploadHandleChange();
},
1
);
},
// 上传电子券
uploadHandleChange() {
if (this.loading) return
if (this.loading) return;
let msg = {
OrderId: this.uploadOrderId,
TicketCodeFile: this.GuestFile
}
this.loading = true
TicketCodeFile: this.GuestFile,
};
this.loading = true;
this.apipost(
"ticket_post_SetTicketCodeFile", msg,
res => {
"ticket_post_SetTicketCodeFile",
msg,
(res) => {
this.loading = false;
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.uploadOrderId = 0
this.GuestFile = ''
this.uploadOrderId = 0;
this.GuestFile = "";
this.$emit("success");
} else {
this.Error(res.data.message);
}
},
err => {
(err) => {
this.loading = false;
}
);
......@@ -1611,31 +1771,35 @@
} else {
this.$router.push({
path: "/FinancialDocumentsDetail",
query
query,
});
}
},
// 制作单据
makeAdocument(chind, row, num, Offset) {
if ((num == 2 || num == 3) && chind && ((chind.OrderType == 1 && row.Income + row.PlatformMoney) ||
(chind.OrderType == 2 && chind.Income + chind.PlatformMoney)) <= 0) {
this.Info(this.$t('objFill.v101.busManagement.qingxzskdzzcbtk'))
return
if (
(num == 2 || num == 3) &&
chind &&
((chind.OrderType == 1 && row.Income + row.PlatformMoney) ||
(chind.OrderType == 2 && chind.Income + chind.PlatformMoney)) <= 0
) {
this.Info(this.$t("objFill.v101.busManagement.qingxzskdzzcbtk"));
return;
}
if (Offset) {
this.cdState = true
this.cdState = true;
}
let type = 0
let type = 0;
if (num == 3) {
type = 2
type = 2;
} else {
type = num
type = num;
}
this.BillMakingMsg.ReFinanceId = row.OrderId ? row.OrderId : row.MainId;
this.BillMakingMsg.ReFinanceId2 = num;
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 query = {};
if (num == 1) {
......@@ -1646,7 +1810,6 @@
text = "成本";
}
query = {
blank: "y",
tab: `新增${text}单据`,
......@@ -1656,39 +1819,38 @@
};
// 检索财务流程
if (num == 1) {
query.searchTitle = row.PayWay == 1 ? '车行' : '车行'
query.searchTitle = row.PayWay == 1 ? "车行" : "车行";
} else if (num == 2) {
query.searchTitle = '溢收团费退款'
query.searchTitle = "溢收团费退款";
} else if (num == 3) {
query.searchTitle = row.PayWay == 1 ? '车行' : '车行'
query.searchTitle = row.PayWay == 1 ? "车行" : "车行";
if (this.cdState == false) query.portTypeId = 6;
}
this.queryObj = query
this.queryObj = query;
if (!Offset) {
this.$store.commit("ChoiceAddFinancialDocuments");
this.$router.push({
path: "/ChoiceAddFinancialDocuments",
query
query,
});
}
},
clickRightButtom(item, type) {
// 0取消订单 1确认订单 2已邮寄 3设置自提地址 4收损
this.msg.OrderId = item.OrderId;
this.msg.SelffetchAddress = item.SelffetchAddress
this.items = item
this.typeState = type
this.msg.SelffetchAddress = item.SelffetchAddress;
this.items = item;
this.typeState = type;
if (type == 0) {
if (!this.loading0) {
this.cancelOrderId = item.OrderId
this.cancelOrderId = item.OrderId;
// 销售 OP
if (this.pagesTitle != '销售') {
if (this.pagesTitle != "销售") {
this.cancelOrderDialog = true;
} else {
this.cancelOrderHandler()
this.cancelOrderHandler();
}
}
} else if (type == 1) {
if (!this.loading1) {
......@@ -1711,39 +1873,44 @@
},
// 销售取消订单
cancelOrder() {
let that = this
let that = this;
if (this.loading0) return;
that.$confirm(this.$t('objFill.shifouquxiaodd'), this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: 'warning'
}).then(() => {
this.loading0 = true
this.apipost("ticket_post_CancelSaleTicketOrder", {
that
.$confirm(this.$t("objFill.shifouquxiaodd"), this.$t("tips.tips"), {
confirmButtonText: this.$t("pub.sureBtn"),
cancelButtonText: this.$t("pub.cancelBtn"),
type: "warning",
})
.then(() => {
this.loading0 = true;
this.apipost(
"ticket_post_CancelSaleTicketOrder", {
OrderId: this.cancelOrderId,
IsOPCancel: this.pagesTitle != '销售' ? 1 : 0,
Remark: this.cancelRemark
IsOPCancel: this.pagesTitle != "销售" ? 1 : 0,
Remark: this.cancelRemark,
},
res => {
this.loading0 = false
(res) => {
this.loading0 = false;
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.$emit("success");
} else {
this.Error(res.data.message);
}
}).catch(err => {
this.Error(err.message)
this.loading0 = false
})
}).catch(() => {
this.loading0 = false
}
).catch((err) => {
this.Error(err.message);
this.loading0 = false;
});
})
.catch(() => {
this.loading0 = false;
});
},
//提交
submitForm(msg) {
//提交创建、修改表单
this.$refs[msg].validate(valid => {
this.$refs[msg].validate((valid) => {
if (valid) {
if (!this.loading2) {
this.saveUpdate();
......@@ -1755,49 +1922,48 @@
});
},
cancelOrderHandler() {
if (this.cancelRemark == "" && this.pagesTitle != '销售') {
this.Error(this.$t('objFill.quxiaodindanyy'));
if (this.cancelRemark == "" && this.pagesTitle != "销售") {
this.Error(this.$t("objFill.quxiaodindanyy"));
return;
}
if (this.loading0) return;
this.loading0 = true
this.loading0 = true;
this.apipost(
"ticket_post_CancelSaleTicketOrder", {
OrderId: this.cancelOrderId,
IsOPCancel: this.pagesTitle != '销售' ? 1 : 0,
Remark: this.pagesTitle != '销售' ? this.cancelRemark : ''
IsOPCancel: this.pagesTitle != "销售" ? 1 : 0,
Remark: this.pagesTitle != "销售" ? this.cancelRemark : "",
},
res => {
(res) => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.cancelOrderDialog = false
this.cancelOrderId = 0
this.cancelRemark = ''
this.cancelOrderDialog = false;
this.cancelOrderId = 0;
this.cancelRemark = "";
this.$emit("success");
} else {
this.Error(res.data.message);
}
this.loading0 = false;
},
err => {
(err) => {
this.loading0 = false;
}
);
},
saveUpdate() {
let text
let text;
if (this.typeState == 3) {
text = this.$t('objFill.shifoushezhiziqudz')
text = this.$t("objFill.shifoushezhiziqudz");
}
if (this.typeState == 4) {
text = this.$t('objFill.shifouquedinss')
text = this.$t("objFill.shifouquedinss");
}
this.$confirm(text, `${this.$t('tips.tips')}`, {
confirmButtonText: `${this.$t('pub.sureBtn')}`,
cancelButtonText: `${this.$t('pub.cancelBtn')}`,
type: "warning"
this.$confirm(text, `${this.$t("tips.tips")}`, {
confirmButtonText: `${this.$t("pub.sureBtn")}`,
cancelButtonText: `${this.$t("pub.cancelBtn")}`,
type: "warning",
})
.then(() => {
this.loading2 = true;
......@@ -1805,10 +1971,10 @@
"ticket_post_SetSaleTicketOrderState", {
OrderId: this.msg.OrderId,
State: this.typeState,
SelffetchAddress: this.typeState == 3 ? this.msg.SelffetchAddress : '',
LossMoney: this.typeState == 4 ? this.msg.LossMoney : '',
SelffetchAddress: this.typeState == 3 ? this.msg.SelffetchAddress : "",
LossMoney: this.typeState == 4 ? this.msg.LossMoney : "",
},
res => {
(res) => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.$emit("success");
......@@ -1818,7 +1984,7 @@
this.loading2 = false;
this.outerVisible = false;
},
err => {
(err) => {
(this.loading2 = false), (this.outerVisible = false);
}
);
......@@ -1826,17 +1992,17 @@
.catch(() => {});
},
confirmFun(item, type) {
let text
let text;
if (type == 1) {
text = this.$t('objFill.shifuquediandd')
text = this.$t("objFill.shifuquediandd");
}
if (type == 2) {
text = this.$t('objFill.shifouquerenyouji')
text = this.$t("objFill.shifouquerenyouji");
}
this.$confirm(text, `${this.$t('tips.tips')}`, {
confirmButtonText: `${this.$t('pub.sureBtn')}`,
cancelButtonText: `${this.$t('pub.cancelBtn')}`,
type: "warning"
this.$confirm(text, `${this.$t("tips.tips")}`, {
confirmButtonText: `${this.$t("pub.sureBtn")}`,
cancelButtonText: `${this.$t("pub.cancelBtn")}`,
type: "warning",
})
.then(() => {
this.loading1 = true;
......@@ -1844,10 +2010,10 @@
"ticket_post_SetSaleTicketOrderState", {
OrderId: item.OrderId,
State: type,
SelffetchAddress: type == 3 ? this.msg.SelffetchAddress : '',
LossMoney: type == 4 ? this.msg.LossMoney : '',
SelffetchAddress: type == 3 ? this.msg.SelffetchAddress : "",
LossMoney: type == 4 ? this.msg.LossMoney : "",
},
res => {
(res) => {
if (res.data.resultCode == 1) {
this.Success(res.data.message);
this.$emit("success");
......@@ -1856,13 +2022,13 @@
}
this.loading1 = false;
},
err => {
(err) => {
this.loading1 = false;
}
);
})
.catch(() => {
this.$message.info(this.$t('hotel.hotel_HasBeenCancelled'));
this.$message.info(this.$t("hotel.hotel_HasBeenCancelled"));
});
},
//复制信息
......@@ -1870,11 +2036,11 @@
this.copyId = OrderId;
let copyText = OrderId;
const save = function (e) {
e.clipboardData.setData('text/plain', copyText)
e.preventDefault() // 阻止默认行为
}
document.addEventListener('copy', save) // 添加一个copy事件
let x = document.execCommand('copy') // 执行copy方法
e.clipboardData.setData("text/plain", copyText);
e.preventDefault(); // 阻止默认行为
};
document.addEventListener("copy", save); // 添加一个copy事件
let x = document.execCommand("copy"); // 执行copy方法
setTimeout(() => {
this.copyId = 0;
}, 2000);
......@@ -1888,10 +2054,7 @@
let nextM = new Date(ds[0], ds[1] - 1 + m + 1, 0);
let max = nextM.getDate();
d = new Date(ds[0], ds[1] - 1 + m, _d > max ? max : _d);
return d
.toLocaleDateString()
.match(/\d+/g)
.join("-");
return d.toLocaleDateString().match(/\d+/g).join("-");
},
com_onresize() {
//clientHeight的值由DIV内容的实际高度和CSS中的padding值决定,
......@@ -1902,29 +2065,27 @@
}
//设置table的行高
// this.tableHeight = h;
}
},
},
mounted() {
if (localStorage.typeSystem && localStorage.typeSystem == 1) this.typeSystem = localStorage.typeSystem
if (this.$route.query.cdState == 'true') {
this.addBalanceout()
if (localStorage.typeSystem && localStorage.typeSystem == 1)
this.typeSystem = localStorage.typeSystem;
if (this.$route.query.cdState == "true") {
this.addBalanceout();
}
this.userInfo = this.getLocalStorage();
let ActionMenuCode = this.userInfo.ActionMenuCode;
if (ActionMenuCode.indexOf('is_correlationOP') != -1) {
this.is_correlationOP = true
if (ActionMenuCode.indexOf("is_correlationOP") != -1) {
this.is_correlationOP = true;
}
//自适应高度调节
this.com_onresize();
window.onresize = () => {
this.com_onresize();
};
}
},
};
</script>
<style>
</style>
<style></style>
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