Commit eff86d86 authored by 黄奎's avatar 黄奎

页面修改

parent 8d28e487
...@@ -321,11 +321,6 @@ ...@@ -321,11 +321,6 @@
<el-input class='w220' v-model='msg.Name' :placeholder="$t('pub.pleaseImport')"></el-input> <el-input class='w220' v-model='msg.Name' :placeholder="$t('pub.pleaseImport')"></el-input>
</span> </span>
</li> </li>
<!-- <li>
<span>
<em>送签日期</em><el-date-picker v-model='msg.SendStartDate' class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker>-<el-date-picker v-model='msg.SendEndDate' class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker>
</span>
</li> -->
<li> <li>
<span> <span>
<em>订单状态</em> <em>订单状态</em>
......
<style scoped> <style scoped>
.row { .row {
display: flex; display: flex;
} }
.row-c { .row-c {
display: flex; display: flex;
align-items: center; align-items: center;
} }
.column { .column {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.column-jac { .column-jac {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
} }
.column-ac { .column-ac {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
} }
.wrap { .wrap {
flex-wrap: wrap; flex-wrap: wrap;
} }
.justify-sb { .justify-sb {
justify-content: space-between; justify-content: space-between;
} }
.justify-c { .justify-c {
justify-content: center; justify-content: center;
} }
.justify-e { .justify-e {
justify-content: flex-end; justify-content: flex-end;
align-items: flex-end; align-items: flex-end;
} }
.flex-g { .flex-g {
flex-grow: 1; flex-grow: 1;
} }
.flex-s { .flex-s {
flex-shrink: 0; flex-shrink: 0;
} }
.align-c { .align-c {
align-items: center; align-items: center;
} }
.cblack { .cblack {
color: black; color: black;
} }
.cf { .cf {
color: #ffffff; color: #ffffff;
} }
.c9e { .c9e {
color: #9e9e9e; color: #9e9e9e;
} }
.c20C997 { .c20C997 {
color: #20c997; color: #20c997;
} }
.c02C854 { .c02C854 {
color: #02c854; color: #02c854;
} }
.cff9800 { .cff9800 {
color: #ff9800; color: #ff9800;
} }
.cF1416C { .cF1416C {
color: #f1416c; color: #f1416c;
} }
.cF57A98 { .cF57A98 {
color: #f57a98; color: #f57a98;
} }
.c04C8C8 { .c04C8C8 {
color: #04c8c8; color: #04c8c8;
} }
.c059FF6 { .c059FF6 {
color: #059ff6; color: #059ff6;
} }
.c3FC4FF { .c3FC4FF {
color: #3fc4ff; color: #3fc4ff;
} }
.fz10 { .fz10 {
font-size: 10px; font-size: 10px;
} }
.fz11 { .fz11 {
font-size: 11px; font-size: 11px;
} }
.fz12 { .fz12 {
font-size: 12px; font-size: 12px;
} }
.fz13 { .fz13 {
font-size: 13px; font-size: 13px;
} }
.fz14 { .fz14 {
font-size: 14px; font-size: 14px;
} }
.fz15 { .fz15 {
font-size: 15px; font-size: 15px;
} }
.fz16 { .fz16 {
font-size: 16px; font-size: 16px;
} }
.fz17 { .fz17 {
font-size: 17px; font-size: 17px;
} }
.fz18 { .fz18 {
font-size: 18px; font-size: 18px;
} }
.fbold { .fbold {
font-weight: bold; font-weight: bold;
} }
.ml { .ml {
margin-left: 10px; margin-left: 10px;
} }
.mr { .mr {
margin-right: 10px; margin-right: 10px;
} }
.mt { .mt {
margin-top: 10px; margin-top: 10px;
} }
.mt20 { .mt20 {
margin-top: 20px; margin-top: 20px;
} }
.mb { .mb {
margin-bottom: 10px; margin-bottom: 10px;
} }
.mb20 { .mb20 {
margin-bottom: 20px; margin-bottom: 20px;
} }
.mx { .mx {
margin-left: 10px; margin-left: 10px;
margin-right: 10px; margin-right: 10px;
} }
.mx5 { .mx5 {
margin-left: 5px; margin-left: 5px;
margin-right: 5px; margin-right: 5px;
} }
.mb5 { .mb5 {
margin-bottom: 5px; margin-bottom: 5px;
} }
.py { .py {
padding: 15px 0; padding: 15px 0;
} }
.py5 { .py5 {
padding: 5px 0; padding: 5px 0;
} }
.px5 { .px5 {
padding: 0 5px; padding: 0 5px;
} }
.px15 { .px15 {
padding: 0 15px; padding: 0 15px;
} }
.pa15 { .pa15 {
padding: 15px; padding: 15px;
} }
.py20 { .py20 {
padding: 20px 0; padding: 20px 0;
} }
.pb5 { .pb5 {
padding: 0 0 5px 0; padding: 0 0 5px 0;
} }
.pa { .pa {
padding: 10px 20px; padding: 10px 20px;
} }
.pa20 { .pa20 {
padding: 20px; padding: 20px;
} }
.pt20 { .pt20 {
padding: 20px 0; padding: 20px 0;
} }
.borderD { .borderD {
border-bottom: 1px dashed #dddddd; border-bottom: 1px dashed #dddddd;
} }
.bgf { .bgf {
background: #ffffff; background: #ffffff;
} }
.bgf5 { .bgf5 {
background: #f5f5f5; background: #f5f5f5;
} }
.bgE8F5E9 { .bgE8F5E9 {
background: #e8f5e9; background: #e8f5e9;
} }
.bgD9F3FF { .bgD9F3FF {
background: #d9f3ff; background: #d9f3ff;
} }
.bgFAEAED { .bgFAEAED {
background: #faeaed; background: #faeaed;
} }
.bj { .bj {
background: #ffffff; background: #ffffff;
} }
.bjFFF3E0 { .bjFFF3E0 {
background: #FFF3E0; background: #FFF3E0;
} }
.radius5 { .radius5 {
border-radius: 5px; border-radius: 5px;
} }
.cursor-pointer { .cursor-pointer {
cursor: pointer; cursor: pointer;
} }
.relative { .relative {
position: relative; position: relative;
} }
.absolute { .absolute {
position: absolute; position: absolute;
} }
.left0 { .left0 {
left: 0; left: 0;
} }
.right0 { .right0 {
right: 0; right: 0;
} }
.top0 { .top0 {
top: 0; top: 0;
} }
.bottom0 { .bottom0 {
bottom: 0; bottom: 0;
} }
.left20 { .left20 {
left: 020px; left: 020px;
} }
.right20 { .right20 {
right: 20px; right: 20px;
} }
.top20 { .top20 {
top: 20px; top: 20px;
} }
.bottom20 { .bottom20 {
bottom: 20px; bottom: 20px;
} }
.text-center { .text-center {
text-align: center; text-align: center;
} }
.orderType { .orderType {
padding: 3px 15px; padding: 3px 15px;
border-radius: 3px; border-radius: 3px;
background: #f57a98; background: #f57a98;
margin-right: 15px; margin-right: 15px;
} }
.orderType.active { .orderType.active {
background: #4dd0e1; background: #4dd0e1;
} }
.orderType.activeNo { .orderType.activeNo {
background: #E95252; background: #E95252;
} }
.copy { .copy {
display: inline-block; display: inline-block;
padding: 3px 15px; padding: 3px 15px;
border-radius: 3px; border-radius: 3px;
margin-left: 20px; margin-left: 20px;
} }
.copy:hover { .copy:hover {
background: #f5f5f5; background: #f5f5f5;
} }
.see-rec div { .see-rec div {
padding: 1px 5px; padding: 1px 5px;
border-radius: 3px; border-radius: 3px;
} }
.see { .see {
border: 1px solid #04c8c8; border: 1px solid #04c8c8;
} }
.seeLK { .seeLK {
border: 1px solid #059ff6; border: 1px solid #059ff6;
} }
.see:hover { .see:hover {
background-color: rgba(4, 200, 200, 0.1); background-color: rgba(4, 200, 200, 0.1);
} }
.rec { .rec {
border: 1px solid #04c8c8; border: 1px solid #04c8c8;
background-color: rgba(4, 200, 200, 1); background-color: rgba(4, 200, 200, 1);
} }
.rec:hover { .rec:hover {
border: 1px solid rgba(4, 200, 200, 0.9); border: 1px solid rgba(4, 200, 200, 0.9);
background-color: rgba(4, 200, 200, 0.9); background-color: rgba(4, 200, 200, 0.9);
} }
.cancel:hover { .cancel:hover {
background-color: #f3dce2; background-color: #f3dce2;
} }
.confirm:hover { .confirm:hover {
background-color: #dcedc8; background-color: #dcedc8;
} }
.change:hover { .change:hover {
background-color: #d7e9f3; background-color: #d7e9f3;
} }
.change1:hover { .change1:hover {
background-color: #dcedc8; background-color: #dcedc8;
} }
.orderop { .orderop {
text-align: center; text-align: center;
} }
.orderop div { .orderop div {
display: flex; display: flex;
justify-content: center; justify-content: center;
padding: 0 10px; padding: 0 10px;
margin: 5px 0; margin: 5px 0;
} }
.RoomList div { .RoomList div {
border-bottom: 1px solid #e7e7e7; border-bottom: 1px solid #e7e7e7;
} }
.RoomList div:last-child { .RoomList div:last-child {
border: 0; border: 0;
} }
.el-table { .el-table {
font-size: 13px; font-size: 13px;
} }
.shezhifrom { .shezhifrom {
position: relative; position: relative;
} }
.shebox { .shebox {
position: absolute; position: absolute;
top: 0; top: 0;
left: -100px; left: -100px;
display: none; display: none;
} }
.shezhifrom:hover .shebox { .shezhifrom:hover .shebox {
display: block; display: block;
} }
.flexOne-form-bj h3 { .flexOne-form-bj h3 {
font-size: 18px; font-size: 18px;
color: black; color: black;
padding: 0 0 20px 0; padding: 0 0 20px 0;
font-weight: 400; font-weight: 400;
} }
.flexOne-type { .flexOne-type {
display: flex; display: flex;
align-items: center; align-items: center;
padding: 0 0 20px 0; padding: 0 0 20px 0;
} }
.flexOne-type b { .flexOne-type b {
font-size: 13px; font-size: 13px;
width: 100px; width: 100px;
flex-shrink: 0; flex-shrink: 0;
} }
.flexOne-type div { .flexOne-type div {
display: flex; display: flex;
} }
.flexOne-description { .flexOne-description {
padding: 15px 15px; padding: 15px 15px;
border-radius: 5px; border-radius: 5px;
background: #E1F5FE; background: #E1F5FE;
margin-bottom: 20px; margin-bottom: 20px;
} }
.flexOne-description b { .flexOne-description b {
font-size: 14px; font-size: 14px;
} }
.flexOne-description p { .flexOne-description p {
font-size: 12px; font-size: 12px;
color: #4C5759; color: #4C5759;
padding: 10px 0 0 0; padding: 10px 0 0 0;
} }
.flexOne-infor-box b { .flexOne-infor-box b {
font-size: 13px; font-size: 13px;
} }
.infor-list { .infor-list {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
.list-title { .list-title {
padding: 20px 0; padding: 20px 0;
border-bottom: 1px dashed #eeeeee; border-bottom: 1px dashed #eeeeee;
color: #7E8299; color: #7E8299;
font-size: 13px; font-size: 13px;
} }
.list-title, .list-title,
.list-centent { .list-centent {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
margin-top: 20px; margin-top: 20px;
} }
.infor-list li { .infor-list li {
width: 25%; width: 25%;
} }
.list-centent li { .list-centent li {
width: 33.33%; width: 33.33%;
} }
.list-centent.active li { .list-centent.active li {
width: 25%; width: 25%;
} }
/deep/.el-table tr td:first-child { /deep/.el-table tr td:first-child {
/* border-bottom: 0; */ /* border-bottom: 0; */
} }
/deep/.el-table tr:last-child td { /deep/.el-table tr:last-child td {
border-bottom: 1px solid #EBEEF5; border-bottom: 1px solid #EBEEF5;
} }
/deep/.el-table tr td { /deep/.el-table tr td {
border-bottom: 1px solid #EBEEF5; border-bottom: 1px solid #EBEEF5;
} }
/deep/.el-table .el-table__cell{
/deep/.el-table .el-table__cell {
padding: 5px 0; padding: 5px 0;
} }
</style> </style>
<template> <template>
...@@ -507,33 +509,26 @@ ...@@ -507,33 +509,26 @@
<el-button class="hollowFixedBtn" v-if="IsSupperOrderEdit&&pagesTitle!='销售'" @click="setCompleted" <el-button class="hollowFixedBtn" v-if="IsSupperOrderEdit&&pagesTitle!='销售'" @click="setCompleted"
:loading="CompletedLoading">一键完结</el-button> :loading="CompletedLoading">一键完结</el-button>
</div> </div>
<el-table <el-table ref="multipleTable" :data="OrderList" tooltip-effect="dark" style="width: 100%" row-key="id"
ref="multipleTable" @selection-change="handleSelectionChange">
:data="OrderList" <el-table-column type="selection" :selectable="selectable" :reserve-selection="true"
tooltip-effect="dark" v-if="IsSupperOrderEdit&&pagesTitle!='销售'">
style="width: 100%"
row-key="id"
@selection-change="handleSelectionChange"
>
<el-table-column
type="selection"
:selectable="selectable"
:reserve-selection="true" v-if="IsSupperOrderEdit&&pagesTitle!='销售'"/>
</el-table-column> </el-table-column>
<el-table-column <el-table-column :label="IsSupperOrderEdit&&pagesTitle!='销售'?'全选':''">
:label="IsSupperOrderEdit&&pagesTitle!='销售'?'全选':''">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="row-c justify-sb align-c py"> <div class="row-c justify-sb align-c py">
<div class="row-c"> <div class="row-c">
<div> <div>
<div class="orderType cf fz12" :class="{ active: scope.row.visaOrderStatus == 1,activeNo: scope.row.visaOrderStatus == 2 }"> <div class="orderType cf fz12"
:class="{ active: scope.row.visaOrderStatus == 1,activeNo: scope.row.visaOrderStatus == 2 }">
<template v-if="scope.row.visaOrderStatus == 1">正常</template> <template v-if="scope.row.visaOrderStatus == 1">正常</template>
<template v-else-if="scope.row.visaOrderStatus == 3">待付款</template> <template v-else-if="scope.row.visaOrderStatus == 3">待付款</template>
<template v-else-if="scope.row.visaOrderStatus == 2">取消</template> <template v-else-if="scope.row.visaOrderStatus == 2">取消</template>
</div> </div>
</div> </div>
<div class="cblack fz14 mr" :class="{ cF1416C: scope.row.isFinish == 0,c20C997: scope.row.isFinish == 1 }"> <div class="cblack fz14 mr"
:class="{ cF1416C: scope.row.isFinish == 0,c20C997: scope.row.isFinish == 1 }">
<template v-if="scope.row.isFinish == 1"> <template v-if="scope.row.isFinish == 1">
已完结 <template v-if="scope.row.finishTime">/ {{scope.row.finishTime}}</template> 已完结 <template v-if="scope.row.finishTime">/ {{scope.row.finishTime}}</template>
</template> </template>
...@@ -544,7 +539,8 @@ ...@@ -544,7 +539,8 @@
<div class="c9e fz12"> <div class="c9e fz12">
<span>{{$t('fnc.danhao')}}:</span> <span>{{$t('fnc.danhao')}}:</span>
<span>{{scope.row.visaTCNUM}}({{scope.row.id}})</span> <span>{{scope.row.visaTCNUM}}({{scope.row.id}})</span>
<span class="copy cblack cursor-pointer" v-if="copyId != scope.row.id" @click="CopyHandler(scope.row)">复制</span> <span class="copy cblack cursor-pointer" v-if="copyId != scope.row.id"
@click="CopyHandler(scope.row)">复制</span>
<span class="copy c059FF6 bgD9F3FF cursor-pointer" v-else><i class="el-icon-check mr"></i>已复制</span> <span class="copy c059FF6 bgD9F3FF cursor-pointer" v-else><i class="el-icon-check mr"></i>已复制</span>
</div> </div>
</div> </div>
...@@ -555,8 +551,7 @@ ...@@ -555,8 +551,7 @@
<span class="mr">创建人:</span> <span class="mr">创建人:</span>
<span class="mr">{{ scope.row.createName }}</span> <span class="mr">{{ scope.row.createName }}</span>
<el-image class="mr" v-if="scope.row.createPhoto" <el-image class="mr" v-if="scope.row.createPhoto"
style="width: 20px; height: 20px;border-radius: 50%;" style="width: 20px; height: 20px;border-radius: 50%;" :src="scope.row.createPhoto"
:src="scope.row.createPhoto"
:preview-src-list="[scope.row.createPhoto]"> :preview-src-list="[scope.row.createPhoto]">
</el-image> </el-image>
</template> </template>
...@@ -641,7 +636,8 @@ ...@@ -641,7 +636,8 @@
</el-table-column> </el-table-column>
<el-table-column label="利润" style="background:#EAEAEA"> <el-table-column label="利润" style="background:#EAEAEA">
<template slot-scope="scope"> <template slot-scope="scope">
<span :class="{'cF1416C':(scope.row.income*100-scope.row.costMoney*100-scope.row.refundMoney*100)/100>0}"> <span
:class="{'cF1416C':(scope.row.income*100-scope.row.costMoney*100-scope.row.refundMoney*100)/100>0}">
<span class="fz15 fbold"> <span class="fz15 fbold">
{{moneyFormat((scope.row.income*100-scope.row.costMoney*100-scope.row.refundMoney*100)/100)}} {{moneyFormat((scope.row.income*100-scope.row.costMoney*100-scope.row.refundMoney*100)/100)}}
</span> </span>
...@@ -661,13 +657,14 @@ ...@@ -661,13 +657,14 @@
</div> </div>
</template> </template>
</el-table-column> </el-table-column>
<template slot="append" > <template slot="append">
<div class="row justify-sb" style="padding:10px;"> <div class="row justify-sb" style="padding:10px;">
<div class="cF1416C flex-g" style="min-width: 300px;" > <div class="cF1416C flex-g" style="min-width: 300px;">
<div class="row flex-wrap mb" v-if="scope.row.guestList&&scope.row.guestList.length>0"> <div class="row flex-wrap mb" v-if="scope.row.guestList&&scope.row.guestList.length>0">
<span class="flex-s">旅客名单:</span> <span class="flex-s">旅客名单:</span>
<div class="row wrap orderNo fz12 ml"> <div class="row wrap orderNo fz12 ml">
<span class="cursor-pointer radius5 mr px5 bgf5 c3FC4FF" style="margin: 3px;" v-for="(x, i) in scope.row.guestList" <span class="cursor-pointer radius5 mr px5 bgf5 c3FC4FF" style="margin: 3px;"
v-for="(x, i) in scope.row.guestList" :key="i+10000"
@click="goUrl2('VisapassengerList',scope.row.id,'旅客名单')">{{ x.userName }}</span> @click="goUrl2('VisapassengerList',scope.row.id,'旅客名单')">{{ x.userName }}</span>
</div> </div>
</div> </div>
...@@ -699,60 +696,66 @@ ...@@ -699,60 +696,66 @@
</el-tooltip> </el-tooltip>
</div> </div>
</div> </div>
<div class="row justify-sb"> <div class="row justify-sb">
<div class="row-c justify-sb px15 bgf5 radius5 flex-g pa relative" style="min-width: 200px;max-width: 400px;"> <div class="row-c justify-sb px15 bgf5 radius5 flex-g pa relative"
style="min-width: 200px;max-width: 400px;">
<div class="row-c"> <div class="row-c">
<div class="fz12 flex-s">收款单据</div> <div class="fz12 flex-s">收款单据</div>
<div class="row wrap orderNo fz12 ml"> <div class="row wrap orderNo fz12 ml">
<span class="cursor-pointer radius5 mr mb px5" style="margin: 3px;" <span class="cursor-pointer radius5 mr mb px5" style="margin: 3px;" :class="{'bgD9F3FF':x.status==1,'bgFAEAED':x.status==2,'bjFFF3E0':x.status==3,
:class="{'bgD9F3FF':x.status==1,'bgFAEAED':x.status==2,'bjFFF3E0':x.status==3, 'c3FC4FF':x.status==1,'cF1416C':x.status==2,'cff9800':x.status==3}"
'c3FC4FF':x.status==1,'cF1416C':x.status==2,'cff9800':x.status==3}" v-for="(x, i) in scope.row.financeList" v-for="(x, i) in scope.row.financeList" @click="openDetails(x)"
@click="openDetails(x)">{{ x.frID }}</span> :key="i+20000">{{ x.frID }}</span>
<span v-if="scope.row.financeList&&scope.row.financeList.length == 0" class="c9e fz12 mr"> <span v-if="scope.row.financeList&&scope.row.financeList.length == 0" class="c9e fz12 mr">
暂无 暂无
</span> </span>
</div> </div>
</div> </div>
<el-tooltip v-if="scope.row.visaOrderStatus!=2" class="item" effect="dark" content="制单" placement="top"> <el-tooltip v-if="scope.row.visaOrderStatus!=2" class="item" effect="dark" content="制单"
placement="top">
<i class="el-icon-circle-plus cursor-pointer c059FF6" <i class="el-icon-circle-plus cursor-pointer c059FF6"
@click="makeAdocument(scope.row, index, 1)"></i> @click="makeAdocument(scope.row, index, 1)"></i>
</el-tooltip> </el-tooltip>
</div> </div>
<div class="row-c justify-sb px15 bgf5 radius5 ml flex-g pa relative" style="min-width: 200px;max-width: 400px;"> <div class="row-c justify-sb px15 bgf5 radius5 ml flex-g pa relative"
style="min-width: 200px;max-width: 400px;">
<div class="row-c"> <div class="row-c">
<div class="fz12 flex-s">退款单据</div> <div class="fz12 flex-s">退款单据</div>
<div class="row wrap orderNo fz12 ml"> <div class="row wrap orderNo fz12 ml">
<span class="cursor-pointer radius5 mr mb px5" style="margin: 3px;" <span class="cursor-pointer radius5 mr mb px5" style="margin: 3px;" :class="{'bgD9F3FF':x.status==1,'bgFAEAED':x.status==2,'bjFFF3E0':x.status==3,
:class="{'bgD9F3FF':x.status==1,'bgFAEAED':x.status==2,'bjFFF3E0':x.status==3, 'c3FC4FF':x.status==1,'cF1416C':x.status==2,'cff9800':x.status==3}"
'c3FC4FF':x.status==1,'cF1416C':x.status==2,'cff9800':x.status==3}" v-for="(x, i) in scope.row.refundFinanceList" v-for="(x, i) in scope.row.refundFinanceList" @click="openDetails(x)"
@click="openDetails(x)">{{ x.frID }}</span> :key="i+30000">{{ x.frID }}</span>
<span v-if="scope.row.refundFinanceList&&scope.row.refundFinanceList.length == 0" class="c9e fz12 mr"> <span v-if="scope.row.refundFinanceList&&scope.row.refundFinanceList.length == 0"
class="c9e fz12 mr">
暂无 暂无
</span> </span>
</div> </div>
</div> </div>
<el-tooltip v-if="scope.row.visaOrderStatus!=2" class="item" effect="dark" content="制单" placement="top"> <el-tooltip v-if="scope.row.visaOrderStatus!=2" class="item" effect="dark" content="制单"
placement="top">
<i class="el-icon-circle-plus cursor-pointer c059FF6" <i class="el-icon-circle-plus cursor-pointer c059FF6"
@click="makeAdocument(scope.row, index, 2)"></i> @click="makeAdocument(scope.row, index, 2)"></i>
</el-tooltip> </el-tooltip>
</div> </div>
<div class="row-c justify-sb px15 bgf5 radius5 ml flex-g pa relative" style="min-width: 200px;max-width: 400px;"> <div class="row-c justify-sb px15 bgf5 radius5 ml flex-g pa relative"
style="min-width: 200px;max-width: 400px;">
<div class="row-c"> <div class="row-c">
<div class="fz12 flex-s">成本单据</div> <div class="fz12 flex-s">成本单据</div>
<div class="row wrap orderNo fz12 ml"> <div class="row wrap orderNo fz12 ml">
<span class="cursor-pointer radius5 mr mb px5" style="margin: 3px;" <span class="cursor-pointer radius5 mr mb px5" style="margin: 3px;" :class="{'bgD9F3FF':x.status==1,'bgFAEAED':x.status==2,'bjFFF3E0':x.status==3,
:class="{'bgD9F3FF':x.status==1,'bgFAEAED':x.status==2,'bjFFF3E0':x.status==3, 'c3FC4FF':x.status==1,'cF1416C':x.status==2,'cff9800':x.status==3}"
'c3FC4FF':x.status==1,'cF1416C':x.status==2,'cff9800':x.status==3}" v-for="(x, i) in scope.row.costFinanceList" v-for="(x, i) in scope.row.costFinanceList" @click="openDetails(x)"
@click="openDetails(x)">{{ x.frID }} {{ x.name?x.name:'' }}</span> :key="i+40000">{{ x.frID }}
<span v-if="scope.row.costFinanceList&&scope.row.costFinanceList.length == 0" class="c9e fz12 mr"> {{ x.name?x.name:'' }}</span>
<span v-if="scope.row.costFinanceList&&scope.row.costFinanceList.length == 0"
class="c9e fz12 mr">
暂无 暂无
</span> </span>
</div> </div>
</div> </div>
<div class="item" v-if="scope.row.visaOrderStatus!=2&& pagesTitle != '销售'"> <div class="item" v-if="scope.row.visaOrderStatus!=2&& pagesTitle != '销售'">
<el-tooltip class="" effect="dark" content="制单" <el-tooltip class="" effect="dark" content="制单" placement="top">
placement="top">
<i class="el-icon-circle-plus cursor-pointer c059FF6" <i class="el-icon-circle-plus cursor-pointer c059FF6"
@click="makeAdocument(scope.row, index, 3)"></i> @click="makeAdocument(scope.row, index, 3)"></i>
</el-tooltip> </el-tooltip>
...@@ -762,33 +765,27 @@ ...@@ -762,33 +765,27 @@
</el-tooltip> </el-tooltip>
</div> </div>
</div> </div>
<div class="row-c justify-sb px15 bgf5 radius5 ml flex-g pa relative" style="min-width: 200px;max-width: 400px;"> <div class="row-c justify-sb px15 bgf5 radius5 ml flex-g pa relative"
style="min-width: 200px;max-width: 400px;">
<div class="row-c"> <div class="row-c">
<div class="fz12 flex-s">发票单据</div> <div class="fz12 flex-s">发票单据 :</div>
<div class="row wrap orderNo fz12 ml"> <div class="row wrap orderNo fz12 ml">
<span class="cursor-pointer radius5 mr mb px5" style="margin: 3px;" <span class="cursor-pointer radius5 mr mb px5" style="margin: 3px;"
:class="{'bgD9F3FF':x.status==1,'bgFAEAED':x.status==2,'bjFFF3E0':x.status==3, :class="{'bgD9F3FF':x.invoiceApplyState==1,'bgFAEAED':x.invoiceApplyState==2,'bjFFF3E0':x.invoiceApplyState==3,
'c3FC4FF':x.status==1,'cF1416C':x.status==2,'cff9800':x.status==3}" v-for="(x, i) in scope.row.invoiceApplyList" 'c3FC4FF':x.invoiceApplyState==1,'cF1416C':x.invoiceApplyState==2,'cff9800':x.invoiceApplyState==3}" v-for="(x, i) in scope.row.invoiceApplyList"
@click="openDetails(x)">{{ x.frID }} {{ x.name?x.name:'' }}</span> @click="goIisDetail(x)" :key="i+50000">{{ x.id }} </span>
<span v-if="scope.row.invoiceApplyList&&scope.row.invoiceApplyList.length == 0" class="c9e fz12 mr"> <span v-if="scope.row.invoiceApplyList&&scope.row.invoiceApplyList.length == 0"
class="c9e fz12 mr">
暂无 暂无
</span> </span>
</div> </div>
</div> </div>
</div> </div>
<div <div class="row wrap px15 bgE8F5E9 radius5 ml fz12 orderop" style="min-width: 150px;">
class="row wrap px15 bgE8F5E9 radius5 ml fz12 orderop" style="min-width: 150px;">
<div class="row-c cursor-pointer radius5 change py5" @click="goUrlVisaList(scope.row)" <div class="row-c cursor-pointer radius5 change py5" @click="goUrlVisaList(scope.row)"
v-if="scope.row.VisaPlanIdStr!=''&&pagesTitle!='销售'"> v-if="scope.row.VisaPlanIdStr!=''&&pagesTitle!='销售'">
<span class="c059FF6">签证详情</span> <span class="c059FF6">签证详情</span>
</div> </div>
<!-- <div
v-if="pagesTitle=='OP'"
class="row-c cursor-pointer radius5 change py5"
@click="clickCorrelation(item, 1)"
>
<span class="c059FF6">编辑关联OP</span>
</div> -->
<div class="row-c cursor-pointer radius5 change py5" @click="getDetail(scope.row,false)" <div class="row-c cursor-pointer radius5 change py5" @click="getDetail(scope.row,false)"
v-if="scope.row.income<=0&&(scope.row.visaOrderStatus==1||scope.row.visaOrderStatus==3)&&scope.row.visaStatus==1&&pagesTitle=='销售'"> v-if="scope.row.income<=0&&(scope.row.visaOrderStatus==1||scope.row.visaOrderStatus==3)&&scope.row.visaStatus==1&&pagesTitle=='销售'">
<span class="c059FF6">{{$t('system.table_edit')}}订单</span> <span class="c059FF6">{{$t('system.table_edit')}}订单</span>
...@@ -797,7 +794,7 @@ ...@@ -797,7 +794,7 @@
v-if="scope.row.income<=0&&(scope.row.visaOrderStatus==1||scope.row.visaOrderStatus==3)"> v-if="scope.row.income<=0&&(scope.row.visaOrderStatus==1||scope.row.visaOrderStatus==3)">
<span class="cF1416C">{{ $t('pub.cancelBtn') }}</span> <span class="cF1416C">{{ $t('pub.cancelBtn') }}</span>
</div> </div>
<!-- &&scope.row.visaStatus==1 -->
<div class="row-c cursor-pointer radius5 change py5" @click='goUrlT(scope.row)' <div class="row-c cursor-pointer radius5 change py5" @click='goUrlT(scope.row)'
v-if="(scope.row.visaOrderStatus==1||scope.row.visaOrderStatus==3)&&pagesTitle=='销售'"> v-if="(scope.row.visaOrderStatus==1||scope.row.visaOrderStatus==3)&&pagesTitle=='销售'">
<span class="c059FF6">{{ $t('salesModule.LKMD') }}</span> <span class="c059FF6">{{ $t('salesModule.LKMD') }}</span>
...@@ -808,19 +805,19 @@ ...@@ -808,19 +805,19 @@
<span class="c20C997">{{ $t('salesModule.ApplyInvoice') }}</span> <span class="c20C997">{{ $t('salesModule.ApplyInvoice') }}</span>
</div> </div>
<template v-if="pagesTitle!='销售'"> <template v-if="pagesTitle!='销售'">
<div class="row-c cursor-pointer radius5 cancel py5" @click="goUrl2('OrderSplitting',scope.row.id,'订单拆分')" <div class="row-c cursor-pointer radius5 cancel py5"
@click="goUrl2('OrderSplitting',scope.row.id,'订单拆分')"
v-if="scope.row.peopleNum==scope.row.guestList.length"> v-if="scope.row.peopleNum==scope.row.guestList.length">
<span class="cF1416C">订单拆分</span> <span class="cF1416C">订单拆分</span>
</div> </div>
<div class="row-c cursor-pointer radius5 change py5" <div class="row-c cursor-pointer radius5 change py5" @click='Edit(scope.row)'
@click='Edit(scope.row)'
v-if="IsSupperOrderEdit"> v-if="IsSupperOrderEdit">
<span class="c059FF6">修改金额</span> <span class="c059FF6">修改金额</span>
</div> </div>
<div v-if="IsSupperOrderEdit&&pagesTitle!='销售'&&scope.row.isFinish!=1 <div v-if="IsSupperOrderEdit&&pagesTitle!='销售'&&scope.row.isFinish!=1
&&scope.row.income>0&&scope.row.dueInMoney==0" &&scope.row.income>0&&scope.row.dueInMoney==0"
class="row-c cursor-pointer radius5 change py5" class="row-c cursor-pointer radius5 change py5" @click='setCompleted(scope.row.id,scope.row)'
@click='setCompleted(scope.row.id,scope.row)' v-loading="scope.row.loading"> v-loading="scope.row.loading">
<span class="c059FF6">完结</span> <span class="c059FF6">完结</span>
</div> </div>
<div class="row-c cursor-pointer radius5 change py5" <div class="row-c cursor-pointer radius5 change py5"
...@@ -832,8 +829,6 @@ ...@@ -832,8 +829,6 @@
</div> </div>
</div> </div>
</div> </div>
</template> </template>
</el-table> </el-table>
</div> </div>
...@@ -950,7 +945,6 @@ ...@@ -950,7 +945,6 @@
</el-col> </el-col>
</el-row> </el-row>
</el-form> </el-form>
</div> </div>
<el-dialog title="修改金额" :visible.sync="EditVisible" width="400px"> <el-dialog title="修改金额" :visible.sync="EditVisible" width="400px">
<div> <div>
...@@ -963,16 +957,19 @@ ...@@ -963,16 +957,19 @@
</el-dialog> </el-dialog>
<offset :isShow="cdState" :obj="queryObj" @close="cdState=false"></offset> <offset :isShow="cdState" :obj="queryObj" @close="cdState=false"></offset>
<TransferOrder v-if="showTransferOrder" :isShow="showTransferOrder" :obj="queryObj" <TransferOrder v-if="showTransferOrder" :isShow="showTransferOrder" :obj="queryObj"
@success="showTransferOrder=false,$emit('success')" @success="showTransferOrder=false,$emit('success')" @close="showTransferOrder=false"></TransferOrder>
@close="showTransferOrder=false"></TransferOrder>
</div> </div>
</template> </template>
<script> <script>
import offset from '../../public/offset.vue'; import offset from '../../public/offset.vue';
import TransferOrder from './TransferOrder.vue'; import TransferOrder from './TransferOrder.vue';
import commissionDialog from "../../FinancialModule/TradeCommission/commissionDialog" import commissionDialog from "../../FinancialModule/TradeCommission/commissionDialog"
export default { export default {
components: { offset,TransferOrder,commissionDialog }, components: {
offset,
TransferOrder,
commissionDialog
},
props: ["OrderList", "pagesTitle"], props: ["OrderList", "pagesTitle"],
data() { data() {
return { return {
...@@ -980,8 +977,8 @@ export default { ...@@ -980,8 +977,8 @@ export default {
CompletedLoading: false, CompletedLoading: false,
multipleSelection: [], multipleSelection: [],
isCommissionDialog: false, isCommissionDialog: false,
objNew:{}, objNew: {},
queryObj:null, queryObj: null,
cdState: false, cdState: false,
copyId: 0, copyId: 0,
loading0: false, loading0: false,
...@@ -1064,7 +1061,7 @@ export default { ...@@ -1064,7 +1061,7 @@ export default {
EditMsg: { EditMsg: {
TotalPrice: 0, TotalPrice: 0,
}, },
IsSupperOrderEdit:false IsSupperOrderEdit: false
}; };
}, },
watch: { watch: {
...@@ -1078,15 +1075,15 @@ export default { ...@@ -1078,15 +1075,15 @@ export default {
} }
}, },
methods: { methods: {
clickCorrelation(item,){ clickCorrelation(item, ) {
this.CorrelationObj = JSON.parse(JSON.stringify(item)); this.CorrelationObj = JSON.parse(JSON.stringify(item));
this.CorrelationObj.TypeNum = 7; this.CorrelationObj.TypeNum = 7;
}, },
DetailsOfRoyalty(){ DetailsOfRoyalty() {
}, },
isOffset(row, index, num){ isOffset(row, index, num) {
this.makeAdocument(row, index, num,'Offset') this.makeAdocument(row, index, num, 'Offset')
}, },
PerferPrice() { PerferPrice() {
this.apipost('dmc_get_visa_SetVisaOrderPrice', this.EditMsg, res => { this.apipost('dmc_get_visa_SetVisaOrderPrice', this.EditMsg, res => {
...@@ -1169,15 +1166,13 @@ export default { ...@@ -1169,15 +1166,13 @@ export default {
} }
}); });
}, },
goIisDetail: function (id) { // 跳转发票详情页面 // 跳转发票详情页面
this.$router.push({ goIisDetail(item) {
name: 'invoicesManagerDetail', console.log("item", item)
query: { this.OpenNewPage('/invoicesManagerDetail', {
id: id, id: item.id,
noDetail: 1,
InvoiceApplyType: 2, InvoiceApplyType: 2,
blank: "y", noDetail: 1,
}
}); });
}, },
// 申请发票 // 申请发票
...@@ -1294,25 +1289,28 @@ export default { ...@@ -1294,25 +1289,28 @@ export default {
} }
}); });
}, },
selectable(row, index){ selectable(row, index) {
if (this.OrderList[index].isFinish!=1&&this.OrderList[index].income>0&&this.OrderList[index].dueInMoney==0) { if (this.OrderList[index].isFinish != 1 && this.OrderList[index].income > 0 && this.OrderList[index]
.dueInMoney == 0) {
return true; return true;
} else { } else {
return false; return false;
} }
}, },
handleSelectionChange(val) { handleSelectionChange(val) {
this.multipleSelection = val.map(x=>{ return x.id}); this.multipleSelection = val.map(x => {
return x.id
});
}, },
setCompleted(id,row){ setCompleted(id, row) {
let ids = '' let ids = ''
if(id>0){ if (id > 0) {
ids = id ids = id
}else{ } else {
if(this.multipleSelection.length==0) return this.$message.error('请勾选需要完结的数据') if (this.multipleSelection.length == 0) return this.$message.error('请勾选需要完结的数据')
ids = this.multipleSelection.join(',') ids = this.multipleSelection.join(',')
} }
if(ids == '') { if (ids == '') {
this.$message.error('请勾选需要完结的数据') this.$message.error('请勾选需要完结的数据')
} }
this.$confirm('是否确认完结?', '提示', { this.$confirm('是否确认完结?', '提示', {
...@@ -1320,18 +1318,18 @@ export default { ...@@ -1320,18 +1318,18 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
if(id>0){ if (id > 0) {
row.loading = true row.loading = true
}else{ } else {
this.CompletedLoading = true this.CompletedLoading = true
} }
this.apipost('dmc_post_SetVisaOrderFinish', { this.apipost('dmc_post_SetVisaOrderFinish', {
VisaOrderIds: ids VisaOrderIds: ids
}, res => { }, res => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
if(id>0){ if (id > 0) {
row.loading = false row.loading = false
}else{ } else {
this.CompletedLoading = false this.CompletedLoading = false
} }
for (let i = 0; i < this.OrderList.length; i++) { for (let i = 0; i < this.OrderList.length; i++) {
...@@ -1344,9 +1342,9 @@ export default { ...@@ -1344,9 +1342,9 @@ export default {
this.$message.success('操作成功!'); this.$message.success('操作成功!');
this.$emit('success') this.$emit('success')
} else { } else {
if(id>0){ if (id > 0) {
row.loading = false row.loading = false
}else{ } else {
this.CompletedLoading = false this.CompletedLoading = false
} }
this.$message.error(res.data.message); this.$message.error(res.data.message);
...@@ -1468,22 +1466,23 @@ export default { ...@@ -1468,22 +1466,23 @@ export default {
this.$router.push({ this.$router.push({
path: "/FinancialDocumentsDetail", path: "/FinancialDocumentsDetail",
query, query,
blank:'y' blank: 'y'
}); });
}, },
// 制作单据 // 制作单据
makeAdocument(row, index, num, Offset) { makeAdocument(row, index, num, Offset) {
if((num==2||num==3)&&row.income<=0){ if ((num == 2 || num == 3) && row.income <= 0) {
this.Info('请先制收款单据,再制成本或退款单据!') this.Info('请先制收款单据,再制成本或退款单据!')
return return
} }
if(Offset){ if (Offset) {
this.cdState = true this.cdState = true
} }
let type = 0 let type = 0
if(num==3){ if (num == 3) {
type = 2 type = 2
}else{ } else {
type = num type = num
} }
let TCIDARR = []; let TCIDARR = [];
...@@ -1497,7 +1496,7 @@ export default { ...@@ -1497,7 +1496,7 @@ export default {
SourceID: row.visaId, SourceID: row.visaId,
TCIDList: TCIDARR, TCIDList: TCIDARR,
ReFinanceId2: num, ReFinanceId2: num,
MatchFrId:0 MatchFrId: 0
} }
let query = {}; let query = {};
query = { query = {
...@@ -1508,14 +1507,13 @@ export default { ...@@ -1508,14 +1507,13 @@ export default {
orderObj: JSON.stringify(orderObj), orderObj: JSON.stringify(orderObj),
Type: type, Type: type,
} }
if(num==2){ if (num == 2) {
query.searchTitle='签证退款' query.searchTitle = '签证退款'
} } else if (num == 3 && this.cdState == false) {
else if(num ==3 && this.cdState == false){ query.portTypeId = 2; //签证成本
query.portTypeId= 2;//签证成本
} }
this.queryObj = query this.queryObj = query
if(!Offset){ if (!Offset) {
this.$router.push({ this.$router.push({
name: "ChoiceAddFinancialDocuments", name: "ChoiceAddFinancialDocuments",
query query
...@@ -1536,7 +1534,7 @@ export default { ...@@ -1536,7 +1534,7 @@ export default {
CopyHandler(item) { CopyHandler(item) {
this.copyId = item.id; this.copyId = item.id;
let copyText = item.id; let copyText = item.id;
const save = function(e) { const save = function (e) {
e.clipboardData.setData('text/plain', copyText) e.clipboardData.setData('text/plain', copyText)
e.preventDefault() // 阻止默认行为 e.preventDefault() // 阻止默认行为
} }
...@@ -1558,7 +1556,8 @@ export default { ...@@ -1558,7 +1556,8 @@ export default {
this.IsSupperOrderEdit = true this.IsSupperOrderEdit = true
} }
} }
}; };
</script> </script>
<style> <style>
......
...@@ -417,7 +417,7 @@ ...@@ -417,7 +417,7 @@
:key="index"></el-option> :key="index"></el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
<span style="color:red">关联提成,请正确填写</span> <span style="color:red">关联提成,请正确填写;美工有单独的配置,请不要配置在助理OP里面。</span>
</td> </td>
<td colspan="2"> <td colspan="2">
<el-form-item label="付款方式"> <el-form-item label="付款方式">
......
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