Commit 8a674765 authored by 黄奎's avatar 黄奎
parents 72c2b183 099d032e
...@@ -65,15 +65,15 @@ ...@@ -65,15 +65,15 @@
</el-select> </el-select>
</el-form-item> </el-form-item>
</div> </div>
<!-- <div class="MyEditForm-item" > <div class="MyEditForm-item" >
<el-form-item label="权限" class="label-pad-left form-check"> <el-form-item label="权限" class="label-pad-left form-check">
<div class="pad-left-10"> <div class="pad-left-10">
<el-radio v-model="form.IsRead" :label="1">只读</el-radio> <el-radio v-model="form.IsRead" :label="1">只读</el-radio>
<el-radio v-model="form.IsRead" :label="0">读写</el-radio> <el-radio v-model="form.IsRead" :label="0">读写</el-radio>
</div> </div>
</el-form-item> </el-form-item>
</div> --> </div>
<div class="MyEditForm-item"> <!-- <div class="MyEditForm-item">
<el-form-item label="同时添加至" class="label-pad-left form-check"> <el-form-item label="同时添加至" class="label-pad-left form-check">
<div class="pad-left-10"> <div class="pad-left-10">
<el-checkbox-group v-model="TransferOther"> <el-checkbox-group v-model="TransferOther">
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
</el-checkbox-group> </el-checkbox-group>
</div> </div>
</el-form-item> </el-form-item>
</div> </div> -->
</el-form> </el-form>
</div> </div>
<div slot="footer" class="dialog-footer"> <div slot="footer" class="dialog-footer">
...@@ -134,13 +134,13 @@ ...@@ -134,13 +134,13 @@
}); });
this.form.EmpIds = str.substring(0, str.length - 1); this.form.EmpIds = str.substring(0, str.length - 1);
} }
if (this.TransferOther.length < 1) { // if (this.TransferOther.length < 1) {
let str2 = ""; // let str2 = "";
this.TransferOther.map((x, i) => { // this.TransferOther.map((x, i) => {
str2 = str2 + x + ","; // str2 = str2 + x + ",";
}); // });
this.form.TransferOther = str2.substring(0, str2.length - 1); // this.form.TransferOther = str2.substring(0, str2.length - 1);
} // }
this.loading = true this.loading = true
this.crmapipost("/api/Customer/AddTeamMembers", this.form, (res) => { this.crmapipost("/api/Customer/AddTeamMembers", this.form, (res) => {
if (res.data.resultCode == 1) { if (res.data.resultCode == 1) {
...@@ -194,7 +194,7 @@ ...@@ -194,7 +194,7 @@
CustomerId: 0, CustomerId: 0,
EmpIds: [], EmpIds: [],
IsRead: 0, IsRead: 0,
TransferOther: [], TransferOther: '',
}; };
this.$refs[formName].resetFields(); this.$refs[formName].resetFields();
}, },
......
...@@ -293,228 +293,235 @@ ...@@ -293,228 +293,235 @@
<button class="hollowFixedBtn" @click="getList()">查询</button> <button class="hollowFixedBtn" @click="getList()">查询</button>
<!-- <button class="normalBtn" v-show="!buttonshow" @click="cancelEdit(),addShow=true" v-if="msg.isFinacial==1">添加</button> --> <!-- <button class="normalBtn" v-show="!buttonshow" @click="cancelEdit(),addShow=true" v-if="msg.isFinacial==1">添加</button> -->
<button class="normalBtn" @click="AddVisaProduct" v-if="msg.isFinacial==1">添加</button> <button class="normalBtn" @click="AddVisaProduct" v-if="msg.isFinacial==1">添加</button>
</li> </li>
</ul> </ul>
</div> </div>
<el-table
ref="multipleTable"
:data="dataList"
tooltip-effect="dark"
style="width: 100%"
>
<el-table-column label="公司" prop="BranchName"></el-table-column>
<el-table-column label="产品名称" prop="Name"></el-table-column>
<el-table-column label="签证类型" prop="">
<template slot-scope="scope">
<span v-if="scope.row.VisaType==1" class="geqian">个签</span>
<span v-else class="tuanqian">团签</span>
</template>
</el-table-column>
<el-table-column label="价格有效日期" prop="" width="200">
<template slot-scope="scope">
<p>
结束日期:<span class="fbold">{{scope.row.SendVisaDate}}</span>
</p>
<p>
开始日期:<span class="fbold">{{scope.row.EffectiveStartDate}}</span>
</p>
</template>
</el-table-column>
<el-table-column label="成本价" prop="">
<template slot-scope="scope">
<span class="totalPrice fbold" style="color: #47BF8C;">{{moneyFormat(scope.row.CostPrice)}}</span>
</template>
</el-table-column>
<el-table-column label="同业价" prop="">
<template slot-scope="scope">
<span class="totalPrice fbold" style="color: #f90;">{{moneyFormat(scope.row.VisaPrice)}}</span>
</template>
</el-table-column>
<el-table-column label="直客价" prop="">
<template slot-scope="scope">
<span class="totalPrice fbold" style="color: #f90;">{{moneyFormat(scope.row.VisaB2CPrice)}}</span>
</template>
</el-table-column>
<el-table-column label="状态" prop="">
<template slot-scope="scope">
<i v-if="scope.row.VisaStatus==1" class="iconfont icon-shangjia" style="color:#4BCA81;"></i>
<i v-else class="iconfont icon-xiajia" style="color:#4BCA81;"></i>
{{scope.row.VisaStatus==1?"上架":"下架"}}
</template>
</el-table-column>
<el-table-column label="订单数" prop="">
<template slot-scope="scope">
<span class="orderNum" @click="goUrl(scope.row)">{{scope.row.OrderNum}}</span>
</template>
</el-table-column>
<!-- <el-table-column label="总人数(剩余人数)" prop="">
<template slot-scope="scope">
<span class="peopleNum">{{scope.row.PeopleNum}}(<span class="surplusNum">{{scope.row.SurplusNum}}</span>)</span>
</template>
</el-table-column> -->
<el-table-column label="创建者" prop="">
<template slot-scope="scope">
<!-- <img v-if="!scope.row.CreatePhoto" src="../../assets/img/litheader.png">
<img v-if="scope.row.CreatePhoto" :onerror="defaultImg" :src="scope.row.CreatePhoto"> -->
<span class="createName">{{scope.row.CreateName}}</span>
</template>
</el-table-column>
<el-table-column label="广告图" prop="">
<template slot-scope="scope">
<p v-for="(item2, index2) in scope.row.AdvertisingFileList" :key="index2">
<span
style="cursor:pointer;text-decoration: underline;"
@click="downloadFile(item2)"
>{{item2.Name}}</span>
<i
class="iconfont icon-Close"
style="font-size:12px;cursor:pointer;"
@click="delUnpload(scope.row.Id,item2,'广告图',1)"
></i>
</p>
<el-upload
:http-request="uploadImg"
:data="scope.row"
ref="upload"
:multiple="false"
:show-file-list="false"
action
>
<span style="color:#00C6FF;cursor:pointer;" @click="saveitem(scope.row.Id,1)">上传广告图</span>
</el-upload>
</template>
</el-table-column>
<el-table-column label="申请表" prop="">
<template slot-scope="scope">
<p v-for="(item2, index2) in scope.row.ApplyForCounterfoilList" :key="index2+100">
<span
style="cursor:pointer;text-decoration: underline;"
@click="downloadFile(item2)"
>{{item2.Name}}</span>
<i
class="iconfont icon-Close"
style="font-size:12px;cursor:pointer;"
@click="delUnpload(scope.row.Id,item2,'申请表',2)"
></i>
</p>
<el-upload
:http-request="uploadImg"
:data="scope.row"
ref="upload"
:multiple="false"
:show-file-list="false"
action
>
<span style="color:#00C6FF;cursor:pointer;" @click="saveitem(scope.row.Id,2)">上传申请表</span>
</el-upload>
</template>
</el-table-column>
<el-table-column label="操作">
<template slot-scope="scope">
<el-button-group>
<!-- <el-tooltip
class="item"
effect="dark"
content="修改"
placement="top-start"
v-if="scope.row.SendVisaStatus==1&&msg.isFinacial==1"
>
<el-button v-show="!buttonshow"
type="primary"
style="background:#409EFF; border-color:#409EFF"
icon="iconfont icon-img_bianji_small"
@click="getDetail(scope.row)"
></el-button>
</el-tooltip> -->
<div style="display:inline-block">
<el-tooltip
class="item"
effect="dark"
content="修改"
placement="top-start"
v-if="scope.row.SendVisaStatus==1&&msg.isFinacial==1"
>
<el-button
type="primary"
style="background:#409EFF; border-color:#409EFF"
icon="iconfont icon-img_bianji_small"
@click="EditVisaProduct(scope.row)"
></el-button>
</el-tooltip>
<el-tooltip
class="item"
effect="dark"
content="查看详情"
placement="top-start"
v-else
>
<el-button
style="background:#E95252; border-color:#E95252;color:#fff"
icon="iconfont icon-chakan"
@click="ChaKan(scope.row)"
></el-button>
</el-tooltip>
</div>
<table class="VisaProductTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading"> <el-tooltip effect="dark" content="查看报名单" placement="top-start" v-if="msg.isFinacial==1">
<tr> <el-button
<th width="5%">公司</th> type="primary"
<th width="10%">产品名称</th> style="background:#25C1C3; border-color:#25C1C3"
<th width="5%">签证类型</th> @click="goUrl(scope.row)"
<th width="12%">价格有效日期</th> icon="iconfont icon-img_cz"
<th width="8%">成本价</th> ></el-button>
<th width="7%">同业价</th> </el-tooltip>
<th width="8%">直客价</th>
<th width="6%">状态</th>
<th width="6%">订单数</th>
<!-- <th width="12%">总人数(剩余人数)</th> -->
<th width="8%">创建者</th>
<th width="8%">广告图</th>
<th width="7%">申请表</th>
<th width="14%">操作</th>
</tr>
<tr v-for="item in dataList">
<td>{{item.BranchName}}</td>
<td>{{item.Name}}</td>
<td>
<span v-if="item.VisaType==1" class="geqian">个签</span>
<span v-else class="tuanqian">团签</span>
</td>
<td>
<p>
结束日期:<span class="fbold">{{item.SendVisaDate}}</span>
</p>
<p>
开始日期:<span class="fbold">{{item.EffectiveStartDate}}</span>
</p>
</td>
<td>
<span class="totalPrice fbold" style="color: #47BF8C;">{{moneyFormat(item.CostPrice)}}</span>
</td>
<td>
<span class="totalPrice fbold" style="color: #f90;">{{moneyFormat(item.VisaPrice)}}</span>
</td>
<td>
<span class="totalPrice fbold" style="color: #f90;">{{moneyFormat(item.VisaB2CPrice)}}</span>
</td>
<td>
<i v-if="item.VisaStatus==1" class="iconfont icon-shangjia" style="color:#4BCA81;"></i>
<i v-else class="iconfont icon-xiajia" style="color:#4BCA81;"></i>
{{item.VisaStatus==1?"上架":"下架"}}
</td>
<td>
<span class="orderNum" @click="goUrl(item)">{{item.OrderNum}}</span>
</td>
<!-- <td>
<span class="peopleNum">{{item.PeopleNum}}(<span class="surplusNum">{{item.SurplusNum}}</span>)</span>
</td>-->
<td>
<img v-if="!item.CreatePhoto" src="../../assets/img/litheader.png">
<img v-if="item.CreatePhoto" :onerror="defaultImg" :src="item.CreatePhoto">
<span class="createName">{{item.CreateName}}</span>
</td>
<td>
<p v-for="(item2, index2) in item.AdvertisingFileList" :key="index2">
<span
style="cursor:pointer;text-decoration: underline;"
@click="downloadFile(item2)"
>{{item2.Name}}</span>
<i
class="iconfont icon-Close"
style="font-size:12px;cursor:pointer;"
@click="delUnpload(item.Id,item2,'广告图',1)"
></i>
</p>
<el-upload
:http-request="uploadImg"
:data="item"
ref="upload"
:multiple="false"
:show-file-list="false"
action
>
<span style="color:#00C6FF;cursor:pointer;" @click="saveitem(item.Id,1)">上传广告图</span>
</el-upload>
</td>
<td>
<p v-for="(item2, index2) in item.ApplyForCounterfoilList" :key="index2+100">
<span
style="cursor:pointer;text-decoration: underline;"
@click="downloadFile(item2)"
>{{item2.Name}}</span>
<i
class="iconfont icon-Close"
style="font-size:12px;cursor:pointer;"
@click="delUnpload(item.Id,item2,'申请表',2)"
></i>
</p>
<el-upload
:http-request="uploadImg"
:data="item"
ref="upload"
:multiple="false"
:show-file-list="false"
action
>
<span style="color:#00C6FF;cursor:pointer;" @click="saveitem(item.Id,2)">上传申请表</span>
</el-upload>
</td>
<td class="groupTourOrderIcon">
<el-button-group>
<!-- <el-tooltip
class="item"
effect="dark"
content="修改"
placement="top-start"
v-if="item.SendVisaStatus==1&&msg.isFinacial==1"
>
<el-button v-show="!buttonshow"
type="primary"
style="background:#409EFF; border-color:#409EFF"
icon="iconfont icon-img_bianji_small"
@click="getDetail(item)"
></el-button>
</el-tooltip> -->
<div style="display:inline-block">
<el-tooltip <el-tooltip
class="item"
effect="dark" effect="dark"
content="修改" content="签证列表"
placement="top-start" placement="top-start"
v-if="item.SendVisaStatus==1&&msg.isFinacial==1" v-if="scope.row.VisaManagementId>0"
> >
<el-button <el-button
type="primary" type="primary"
style="background:#409EFF; border-color:#409EFF" @click="goUrlVisaList(scope.row)"
icon="iconfont icon-img_bianji_small" style="background:#47BF8C; border-color:#47BF8C"
@click="EditVisaProduct(item)" icon="iconfont icon-biaoge"
></el-button> ></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip <el-tooltip
class="item" v-if="scope.row.OrderNum>0&&msg.isFinacial==1"
effect="dark" effect="dark"
content="查看详情" content="结算"
placement="top-start" placement="top-start"
v-else >
> <el-button
<el-button type="primary"
style="background:#E95252; border-color:#E95252;color:#fff" @click="goUrlJS(scope.row)"
icon="iconfont icon-chakan" style="background:#5EBB64; border-color:#5EBB64"
@click="ChaKan(item)" icon="iconfont icon-qian"
></el-button> ></el-button>
</el-tooltip> </el-tooltip>
</div> <el-tooltip
v-if="scope.row.VisaStatus==1&&msg.isFinacial==1"
<el-tooltip effect="dark" content="查看报名单" placement="top-start" v-if="msg.isFinacial==1"> effect="dark"
<el-button content="下架"
type="primary" placement="top-start"
style="background:#25C1C3; border-color:#25C1C3" >
@click="goUrl(item)" <el-button
icon="iconfont icon-img_cz" type="primary"
></el-button> style="background:#F0A748; border-color:#F0A748"
</el-tooltip> icon="iconfont icon-xiajia1"
<el-tooltip @click="updateVisaStatus(scope.row)"
effect="dark" ></el-button>
content="签证列表" </el-tooltip>
placement="top-start" <el-tooltip
v-if="item.VisaManagementId>0" v-if="scope.row.VisaStatus==2&&scope.row.SendVisaStatus==1&&msg.isFinacial==1"
> effect="dark"
<el-button content="上架"
type="primary" placement="top-start"
@click="goUrlVisaList(item)" >
style="background:#47BF8C; border-color:#47BF8C" <el-button
icon="iconfont icon-biaoge" type="primary"
></el-button> style="background:#F0A748; border-color:#F0A748"
</el-tooltip> icon="iconfont icon-shangjia1"
<el-tooltip @click="updateVisaStatus(scope.row)"
v-if="item.OrderNum>0&&msg.isFinacial==1" ></el-button>
effect="dark" </el-tooltip>
content="结算"
placement="top-start" </el-button-group>
> </template>
<el-button </el-table-column>
type="primary" </el-table>
@click="goUrlJS(item)"
style="background:#5EBB64; border-color:#5EBB64"
icon="iconfont icon-qian"
></el-button>
</el-tooltip>
<el-tooltip
v-if="item.VisaStatus==1&&msg.isFinacial==1"
effect="dark"
content="下架"
placement="top-start"
>
<el-button
type="primary"
style="background:#F0A748; border-color:#F0A748"
icon="iconfont icon-xiajia1"
@click="updateVisaStatus(item)"
></el-button>
</el-tooltip>
<el-tooltip
v-if="item.VisaStatus==2&&item.SendVisaStatus==1&&msg.isFinacial==1"
effect="dark"
content="上架"
placement="top-start"
>
<el-button
type="primary"
style="background:#F0A748; border-color:#F0A748"
icon="iconfont icon-shangjia1"
@click="updateVisaStatus(item)"
></el-button>
</el-tooltip>
</el-button-group>
</td>
</tr>
<tr v-show="dataList.length==0">
<td v-show="dataList.length==0" colspan="10" align="center">暂无数据</td>
</tr>
</table>
<el-pagination <el-pagination
background background
...@@ -558,7 +565,7 @@ ...@@ -558,7 +565,7 @@
<!-- <el-col :span="4"> <!-- <el-col :span="4">
<el-form-item label="人数" prop="PeopleNum"> <el-form-item label="人数" prop="PeopleNum">
<el-input @keyup.native="checkInteger(addMsg,'PeopleNum')" v-model="addMsg.PeopleNum" placeholder="请输入" maxlength="20"></el-input> <el-input @keyup.native="checkInteger(addMsg,'PeopleNum')" v-model="addMsg.PeopleNum" placeholder="请输入" maxlength="20"></el-input>
</el-form-item> </el-form-item>
</el-col>--> </el-col>-->
<el-col :span="5"> <el-col :span="5">
<el-form-item label="成本价" prop="CostPrice"> <el-form-item label="成本价" prop="CostPrice">
...@@ -628,7 +635,7 @@ export default { ...@@ -628,7 +635,7 @@ export default {
ProductID: 0, ProductID: 0,
VisaStatus: "-1", VisaStatus: "-1",
isFinacial: 1, isFinacial: 1,
BranchId: "-1" BranchId: "-1",
}, },
addMsg: { addMsg: {
Id: 0, Id: 0,
...@@ -692,6 +699,7 @@ export default { ...@@ -692,6 +699,7 @@ export default {
VisaManagementList: [], VisaManagementList: [],
// buttonshow:false, // buttonshow:false,
Type:0, Type:0,
}; };
}, },
created(){ created(){
...@@ -699,7 +707,7 @@ export default { ...@@ -699,7 +707,7 @@ export default {
// if (locationName.indexOf('viitto') !== -1 || locationName.indexOf('www') !== -1){ // if (locationName.indexOf('viitto') !== -1 || locationName.indexOf('www') !== -1){
// this.buttonshow=true; // this.buttonshow=true;
// } // }
}, },
methods: { methods: {
// 只能查看,不能修改 // 只能查看,不能修改
......
...@@ -644,6 +644,7 @@ ...@@ -644,6 +644,7 @@
.VisaProductTable tr { .VisaProductTable tr {
background: #fff; background: #fff;
text-align: left; text-align: left;
border: 1px solid #cccccc;
} }
.VisaProductTable tr td { .VisaProductTable tr td {
...@@ -840,6 +841,15 @@ ...@@ -840,6 +841,15 @@
<el-option label="待付款" value="3" key='3'></el-option> <el-option label="待付款" value="3" key='3'></el-option>
</el-select> </el-select>
</span></li> </span></li>
<li>
<span>
<em>完结状态</em>
<el-select v-model='msg.IsFinish'>
<el-option label="不限" value="0" key='0'></el-option>
<el-option label="已完结" value="1" key='1'></el-option>
<el-option label="未完结" value="2" key='2'></el-option>
</el-select>
</span></li>
<li><span><em>报入日期</em> <li><span><em>报入日期</em>
<el-date-picker v-model='msg.StartTime' class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker> <el-date-picker v-model='msg.StartTime' class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker>
- -
...@@ -852,7 +862,8 @@ ...@@ -852,7 +862,8 @@
<li> <li>
<button class="hollowFixedBtn" @click="getList()">查询</button> <button class="hollowFixedBtn" @click="getList()">查询</button>
<button class="hollowFixedBtn" @click="goUrlCb">查看成本</button> <button class="hollowFixedBtn" @click="goUrlCb">查看成本</button>
<el-button v-if="IsSupperOrderEdit" class="hollowFixedBtn" @click="setCompleted"
:loading="CompletedLoading">一键完结</el-button>
</li> </li>
</ul> </ul>
</div> </div>
...@@ -871,230 +882,261 @@ ...@@ -871,230 +882,261 @@
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
<span>成本:{{moneyFormat(CostMoney)}}</span> <span>成本:{{moneyFormat(CostMoney)}}</span>
</div> </div>
<table class="VisaProductTable" border="0" cellspacing="0" cellpadding="0" v-loading='loading'> <el-table v-loading='loading'
<tr> ref="multipleTable"
<th width="11%">单号</th> :data="dataList"
<th width="6%">业务员</th> tooltip-effect="dark"
<th width="6%">公司</th> style="width: 100%"
<th width="4%">人数</th> row-key="Id"
<th width="7%">出发日期</th> @selection-change="handleSelectionChange"
<th width="7%">报名日期</th> >
<th width="7%">应收总额</th> <el-table-column
type="selection"
<th width="7%">实收</th> :selectable="selectable"
<th width="5%">退款</th> :reserve-selection="true" v-if="IsSupperOrderEdit"/>
<th width="5%">平台税金</th> </el-table-column>
<th width="7%">成本</th> <el-table-column :label="IsSupperOrderEdit?'全选':''">
<th width="5%">优惠</th> <template slot-scope="scope">
<th width="5%">待收</th> <table class="VisaProductTable" border="0" cellspacing="0" cellpadding="0">
<th width="5%">在途</th> <tr>
<th width="4%">订单状态</th> <th width="11%">单号</th>
<th width="5%">状态</th> <th width="6%">业务员</th>
<th width="14%">操作</th> <th width="6%">公司</th>
</tr> <th width="4%">人数</th>
<tbody v-for='(item,index) in dataList'> <th width="7%">出发日期</th>
<tr> <th width="7%">报名日期</th>
<td> <th width="7%">应收总额</th>
<span class="fz16">{{item.VisaTCNUM}}({{item.Id}})</span>
</td> <th width="7%">实收</th>
<td><img v-if='!item.CreatePhoto' src="../../assets/img/litheader.png" /> <th width="5%">退款</th>
<img v-if='item.CreatePhoto' :onerror="defaultImg" :src='item.CreatePhoto' /> <th width="5%">平台税金</th>
<span class="VO_createName">{{item.CreateName}}</span></td> <th width="7%">成本</th>
<td>{{item.OutBranchName}}</td> <th width="5%">优惠</th>
<td class="fz16"> <th width="5%">待收</th>
<span class="fz16">{{item.PeopleNum}}</span> <th width="5%">在途</th>
</td> <th width="4%">订单状态</th>
<td> <th width="5%">状态</th>
<span class="fz16">{{item.DepartDate}}</span> <th width="4%">完结状态</th>
</td> <th width="10%">操作</th>
<td> </tr>
<span class="fz16">{{item.CreateTime}}</span> <tbody>
</td> <tr>
<td> <td>
<span class="totalPrice">{{moneyFormat(item.TotalPrice)}}</span> <span class="fz16">{{scope.row.VisaTCNUM}}({{scope.row.Id}})</span>
</td> </td>
<td> <td><img v-if='!scope.row.CreatePhoto' src="../../assets/img/litheader.png" />
<span class="income">{{moneyFormat(item.Income)}}</span> <img v-if='scope.row.CreatePhoto' :onerror="defaultImg" :src='scope.row.CreatePhoto' />
</td> <span class="VO_createName">{{scope.row.CreateName}}</span></td>
<td> <td>{{scope.row.OutBranchName}}</td>
<span>{{moneyFormat(item.RefundMoney)}}</span> <td class="fz16">
</td> <span class="fz16">{{scope.row.PeopleNum}}</span>
<td> </td>
<span>{{moneyFormat(item.PlatformTax)}}</span> <td>
</td> <span class="fz16">{{scope.row.DepartDate}}</span>
<td> </td>
<span>{{moneyFormat(item.CostMoney)}}</span> <td>
</td> <span class="fz16">{{scope.row.CreateTime}}</span>
<td> </td>
<span>{{moneyFormat(item.DiscountMoney)}}</span> <td>
</td> <span class="totalPrice">{{moneyFormat(scope.row.TotalPrice)}}</span>
<td> </td>
<span>{{moneyFormat(item.DueInMoney)}}</span> <td>
</td> <span class="income">{{moneyFormat(scope.row.Income)}}</span>
<td> </td>
<span>{{moneyFormat(item.ZaiTu)}}</span> <td>
</td> <span>{{moneyFormat(scope.row.RefundMoney)}}</span>
<td> </td>
<span v-if="item.VisaOrderStatus==1">正常</span> <td>
<span v-if="item.VisaOrderStatus==2">取消</span> <span>{{moneyFormat(scope.row.PlatformTax)}}</span>
<span v-if="item.VisaOrderStatus==3">待付款</span> </td>
<span class="fz12" v-if="item.VisaOrderStatus==2">操作:{{item.UpdateName}}</span> <td>
</td> <span>{{moneyFormat(scope.row.CostMoney)}}</span>
<td> </td>
<span> <td>
<i v-if="item.IsCommission==1" class="iconfont icon-yiqueren" style="color:#4BCA81;"></i> <span>{{moneyFormat(scope.row.DiscountMoney)}}</span>
<i v-else class="iconfont icon-yiquxiao" style="color:#E95252;"></i> </td>
{{item.IsCommission==1?"已提成":"未提成"}} <td>
</span> <span>{{moneyFormat(scope.row.DueInMoney)}}</span>
</td> </td>
<td class="groupTourOrderIcon"> <td>
<span>{{moneyFormat(scope.row.ZaiTu)}}</span>
<el-tooltip effect="dark" content="签证详情" placement="top-start" v-if="item.VisaPlanIdStr !=''"> </td>
<el-button type="primary" @click="goUrlVisaList(item)" style='background:#00C6FF; border-color:#00C6FF' <td>
icon="iconfont icon-sousuo"></el-button> <span v-if="scope.row.VisaOrderStatus==1">正常</span>
</el-tooltip> <span v-if="scope.row.VisaOrderStatus==2">取消</span>
<el-tooltip v-if="item.Income<=0&&item.VisaOrderStatus==1&&item.UpdateStatus==1" class="item" effect="dark" <span v-if="scope.row.VisaOrderStatus==3">待付款</span>
content="取消" placement="top-start"> <span class="fz12" v-if="scope.row.VisaOrderStatus==2">操作:{{scope.row.UpdateName}}</span>
<el-button type="primary" style='background:#E95252; border-color:#E95252;' </td>
icon="iconfont icon-xingzhuangkaobei" @click='cancelOrder(item)'></el-button> <td>
</el-tooltip> <span>
<i v-if="scope.row.IsCommission==1" class="iconfont icon-yiqueren" style="color:#4BCA81;"></i>
<!-- 订单拆分 --> <i v-else class="iconfont icon-yiquxiao" style="color:#E95252;"></i>
<el-tooltip v-if="item.PeopleNum==item.GuestList.length" class="item" effect="dark" content="订单拆分" {{scope.row.IsCommission==1?"已提成":"未提成"}}
placement="top-start">
<el-button type="primary" style='background:#47BF8C; border-color:#47BF8C;' icon="el-icon-edit"
@click="goUrl2('OrderSplitting',item.Id,'订单拆分')"></el-button>
</el-tooltip>
<!-- 修改金额 -->
<el-tooltip v-if="IsSupperOrderEdit&& item.VisaType==1" class="item" effect="dark" content="修改金额"
placement="top-start">
<el-button type="primary" style='background:#E95252; border-color:#E95252;padding:5px' icon="el-icon-edit"
@click='Edit(item)'></el-button>
</el-tooltip>
</td>
</tr>
<tr>
<td colspan="17" class="RL_Order" style="height:40px;">
<span class="VO-remarkTitle">名单:</span>
<span class="VO-redType VO-remarkCon" v-if="item.GuestList.length>0" style="cursor:pointer">
<span v-for="(childItem) in item.GuestList" style="margin-right:10px;"
@click="goUrl2('VisapassengerList',item.Id,'旅客名单')">{{childItem.userName}}</span>
</span>
<span class="VO-redType VO-remarkCon" v-else>
<span>暂无名单</span>
</span>
</td>
</tr>
<tr>
<td colspan="8" class="groupTourOrder_remarks" style="height: 40px;">
<div>
<div>
<span class="VO-remarkTitle">备注:</span>
<span class="VO-redType VO-remarkCon">{{item.Remark}}</span>
</div>
</div>
</td>
<td colspan="9" class="groupTourOrder_tickets2" style="height: 40px;">
<div>
<div class="row justify-sb wrap mr">
<div class="row relative" style="margin-top: 5px;">
<span>收款单据:</span>
<span class="cursor-pointer radius5 mr mb px5"
: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}" v-for="(x, i) in item.FinanceList"
@click="goUrl2('FinancialDocumentsDetail',x.FrID,'财务单据')">{{ x.FrID }}</span>
<span v-if="item.FinanceList&&item.FinanceList.length == 0" class="c9e fz12 mr">
暂无
</span> </span>
<div class="item right20 top0"> </td>
<el-tooltip v-if="item.visaOrderStatus!=2" class="" effect="dark" content="制单" <td>
placement="top"> <span :class="{ cF1416C: scope.row.IsFinish == 0,c20C997: scope.row.IsFinish == 1 }">
<i class="el-icon-circle-plus cursor-pointer c059FF6" <template v-if="scope.row.IsFinish==1">
@click="makeAdocument(item, index, 1)"></i> 已完结 / {{scope.row.FinishTime}}
</el-tooltip> </template>
</div> <template v-else>
</div> 未完结
<div class="row relative" style="margin-top: 5px;"> </template>
<span>退款单据:</span>
<span class="cursor-pointer radius5 mr mb px5"
: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}" v-for="(x, i) in item.RefundFinanceList"
@click="goUrl2('FinancialDocumentsDetail',x.FrID,'财务单据')">{{ x.FrID }}</span>
<span v-if="item.RefundFinanceList&&item.RefundFinanceList.length == 0" class="c9e fz12 mr">
暂无
</span> </span>
<div class="item right20 top0"> </td>
<el-tooltip v-if="item.visaOrderStatus!=2" class="" effect="dark" content="制单" <td class="groupTourOrderIcon">
placement="top">
<i class="el-icon-circle-plus cursor-pointer c059FF6" <el-tooltip effect="dark" content="签证详情" placement="top-start" v-if="scope.row.VisaPlanIdStr !=''">
@click="makeAdocument(item, index, 2)"></i> <el-button type="primary" @click="goUrlVisaList(scope.row)" style='background:#00C6FF; border-color:#00C6FF'
icon="iconfont icon-sousuo"></el-button>
</el-tooltip> </el-tooltip>
</div> <el-tooltip v-if="scope.row.Income<=0&&scope.row.VisaOrderStatus==1&&scope.row.UpdateStatus==1" class="item" effect="dark"
</div> content="取消" placement="top-start">
<div class="row relative" style="margin-top: 5px;"> <el-button type="primary" style='background:#E95252; border-color:#E95252;'
<span>成本单据:</span> icon="iconfont icon-xingzhuangkaobei" @click='cancelOrder(scope.row)'></el-button>
<span class="cursor-pointer radius5 mr mb px5"
: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}" v-for="(x, i) in item.CostFinanceList"
@click="goUrl2('FinancialDocumentsDetail',x.FrID,'财务单据')">{{ x.FrID }}</span>
<span v-if="item.CostFinanceList&&item.CostFinanceList.length == 0" class="c9e fz12 mr">
暂无
</span>
<div class="item right20 top0" v-if="item.visaOrderStatus!=2">
<el-tooltip class="" effect="dark" content="制单"
placement="top">
<i class="el-icon-circle-plus cursor-pointer c059FF6"
@click="makeAdocument(item, index, 3)"></i>
</el-tooltip> </el-tooltip>
<el-tooltip class="" effect="dark" content="冲抵" placement="top">
<i class="el-icon-circle-plus cursor-pointer c3FC4FF" <!-- 订单拆分 -->
@click="isOffset(item, index, 3)"></i> <el-tooltip v-if="scope.row.PeopleNum==scope.row.GuestList.length" class="item" effect="dark" content="订单拆分"
</el-tooltip> placement="top-start">
<el-button type="primary" style='background:#47BF8C; border-color:#47BF8C;' icon="el-icon-edit"
@click="goUrl2('OrderSplitting',scope.row.Id,'订单拆分')"></el-button>
</el-tooltip>
<!-- 修改金额 -->
<el-tooltip v-if="IsSupperOrderEdit&& scope.row.VisaType==1" class="item" effect="dark" content="修改金额"
placement="top-start">
<el-button type="primary" style='background:#E95252; border-color:#E95252;padding:5px' icon="el-icon-edit"
@click='Edit(scope.row)'></el-button>
</el-tooltip>
<!-- 完结 -->
<el-tooltip v-if="IsSupperOrderEdit&&scope.row.IsFinish!=1
&&scope.row.Income>0&&scope.row.DueInMoney==0" class="item" effect="dark" content="完结"
placement="top-start">
<el-button type="primary" style='background:#E95252; border-color:#E95252;padding:5px'
icon="el-icon-check"
@click='setCompleted(scope.row.Id,scope.row)' :loading="scope.row.loading"></el-button>
</el-tooltip>
</td>
</tr>
<tr>
<td colspan="18" class="RL_Order" style="height:40px;">
<span class="VO-remarkTitle">名单:</span>
<span class="VO-redType VO-remarkCon" v-if="scope.row.GuestList.length>0" style="cursor:pointer">
<span v-for="(childItem) in scope.row.GuestList" style="margin-right:10px;"
@click="goUrl2('VisapassengerList',scope.row.Id,'旅客名单')">{{childItem.userName}}</span>
</span>
<span class="VO-redType VO-remarkCon" v-else>
<span>暂无名单</span>
</span>
</td>
</tr>
<tr>
<td colspan="9" class="groupTourOrder_remarks" style="height: 40px;">
<div>
<div>
<span class="VO-remarkTitle">备注:</span>
<span class="VO-redType VO-remarkCon">{{scope.row.Remark}}</span>
</div>
</div> </div>
</div> </td>
<td colspan="9" class="groupTourOrder_tickets2" style="height: 40px;">
<!-- <span v-for="(item2,index2) in item.FinanceList" :key="index2" <div>
style="margin-right:10px;cursor:pointer;"> <div class="row justify-sb wrap mr">
<span v-if="item2.ColorState===1" class="groupTourOrder_tickets_blue" <div class="row relative" style="margin-top: 5px;">
@click="goUrl2('FinancialDocumentsDetail',item2.FrID,'财务单据')">{{item2.FrID}}</span> <span>收款单据:</span>
<span v-else-if="item2.ColorState===2" class="groupTourOrder_tickets_green" <span class="cursor-pointer radius5 mr mb px5"
@click="goUrl2('FinancialDocumentsDetail',item2.FrID,'财务单据')">{{item2.FrID}}</span> :class="{'bgD9F3FF':x.Status==1,'bgFAEAED':x.Status==2,'bjFFF3E0':x.Status==3,
<span v-else-if="item2.ColorState===3" class="groupTourOrder_tickets_red" 'c3FC4FF':x.Status==1,'cF1416C':x.Status==2,'cff9800':x.Status==3}" v-for="(x, i) in scope.row.FinanceList"
@click="goUrl2('FinancialDocumentsDetail',item2.FrID,'财务单据')">{{item2.FrID}}</span> @click="goUrl2('FinancialDocumentsDetail',x.FrID,'财务单据')">{{ x.FrID }}</span>
<span v-else-if="item2.ColorState===4" class="groupTourOrder_tickets_black" <span v-if="scope.row.FinanceList&&scope.row.FinanceList.length == 0" class="c9e fz12 mr">
@click="goUrl2('FinancialDocumentsDetail',item2.FrID,'财务单据')">{{item2.FrID}}</span> 暂无
</span> </span>
<span v-if="item.FinanceList.length===0" style="cursor: default;">暂无数据</span> --> <div class="item right20 top0">
</div> <el-tooltip v-if="scope.row.visaOrderStatus!=2" class="" effect="dark" content="制单"
<div style="margin-top: 5px;"> placement="top">
<span>{{$t('salesModule.Invoice')}}</span> <i class="el-icon-circle-plus cursor-pointer c059FF6"
<span v-for="(item2,index2) in item.invoiceApplyList" :key="index2" @click="makeAdocument(scope.row, index, 1)"></i>
style="margin-right:10px;cursor:pointer;"> </el-tooltip>
<span v-if="item2.invoiceApplyState === 6" class="groupTourOrder_tickets_blue" </div>
@click="goIisDetail(item2.id)">{{item2.id}}</span> </div>
<span <div class="row relative" style="margin-top: 5px;">
v-else-if="item2.invoiceApplyState === 1 || item2.invoiceApplyState === 3 || item2.invoiceApplyState === 6" <span>退款单据:</span>
class="groupTourOrder_tickets_green" @click="goIisDetail(item2.id)">{{item2.id}}</span> <span class="cursor-pointer radius5 mr mb px5"
<span v-else-if="item2.invoiceApplyState === 5 || item2.invoiceApplyState === 4 " :class="{'bgD9F3FF':x.Status==1,'bgFAEAED':x.Status==2,'bjFFF3E0':x.Status==3,
class="groupTourOrder_tickets_red" @click="goIisDetail(item2.id)">{{item2.id}}</span> 'c3FC4FF':x.Status==1,'cF1416C':x.Status==2,'cff9800':x.Status==3}" v-for="(x, i) in scope.row.RefundFinanceList"
<span v-else-if="item2.invoiceApplyState === 2" class="groupTourOrder_tickets_black" @click="goUrl2('FinancialDocumentsDetail',x.FrID,'财务单据')">{{ x.FrID }}</span>
@click="goIisDetail(item2.id)">{{item2.id}}</span> <span v-if="scope.row.RefundFinanceList&&scope.row.RefundFinanceList.length == 0" class="c9e fz12 mr">
</span> 暂无
<span v-if="item.InvoiceApplyList.length===0" </span>
style="cursor: default;">{{$t('system.content_noData')}}</span> <div class="item right20 top0">
</div> <el-tooltip v-if="scope.row.visaOrderStatus!=2" class="" effect="dark" content="制单"
</div> placement="top">
</td> <i class="el-icon-circle-plus cursor-pointer c059FF6"
</tr> @click="makeAdocument(scope.row, index, 2)"></i>
<tr> </el-tooltip>
<td colspan="18" style="height: 1px;magrin:0;padding: 0;background-color: #000;"></td> </div>
</tr> </div>
</tbody> <div class="row relative" style="margin-top: 5px;">
<tr v-show="dataList.length==0"> <span>成本单据:</span>
<td colspan="18" align="center">暂无数据</td> <span class="cursor-pointer radius5 mr mb px5"
</tr> :class="{'bgD9F3FF':x.Status==1,'bgFAEAED':x.Status==2,'bjFFF3E0':x.Status==3,
</table> 'c3FC4FF':x.Status==1,'cF1416C':x.Status==2,'cff9800':x.Status==3}" v-for="(x, i) in scope.row.CostFinanceList"
@click="goUrl2('FinancialDocumentsDetail',x.FrID,'财务单据')">{{ x.FrID }}</span>
<span v-if="scope.row.CostFinanceList&&scope.row.CostFinanceList.length == 0" class="c9e fz12 mr">
暂无
</span>
<div class="item right20 top0" v-if="scope.row.visaOrderStatus!=2">
<el-tooltip class="" effect="dark" content="制单"
placement="top">
<i class="el-icon-circle-plus cursor-pointer c059FF6"
@click="makeAdocument(scope.row, index, 3)"></i>
</el-tooltip>
<el-tooltip class="" effect="dark" content="冲抵" placement="top">
<i class="el-icon-circle-plus cursor-pointer c3FC4FF"
@click="isOffset(scope.row, index, 3)"></i>
</el-tooltip>
</div>
</div>
<!-- <span v-for="(item2,index2) in item.FinanceList" :key="index2"
style="margin-right:10px;cursor:pointer;">
<span v-if="item2.ColorState===1" class="groupTourOrder_tickets_blue"
@click="goUrl2('FinancialDocumentsDetail',item2.FrID,'财务单据')">{{item2.FrID}}</span>
<span v-else-if="item2.ColorState===2" class="groupTourOrder_tickets_green"
@click="goUrl2('FinancialDocumentsDetail',item2.FrID,'财务单据')">{{item2.FrID}}</span>
<span v-else-if="item2.ColorState===3" class="groupTourOrder_tickets_red"
@click="goUrl2('FinancialDocumentsDetail',item2.FrID,'财务单据')">{{item2.FrID}}</span>
<span v-else-if="item2.ColorState===4" class="groupTourOrder_tickets_black"
@click="goUrl2('FinancialDocumentsDetail',item2.FrID,'财务单据')">{{item2.FrID}}</span>
</span>
<span v-if="item.FinanceList.length===0" style="cursor: default;">暂无数据</span> -->
</div>
<div style="margin-top: 5px;">
<span>{{$t('salesModule.Invoice')}}:</span>
<span v-for="(item2,index2) in scope.row.invoiceApplyList" :key="index2"
style="margin-right:10px;cursor:pointer;">
<span v-if="item2.invoiceApplyState === 6" class="groupTourOrder_tickets_blue"
@click="goIisDetail(item2.id)">{{item2.id}}</span>
<span
v-else-if="item2.invoiceApplyState === 1 || item2.invoiceApplyState === 3 || item2.invoiceApplyState === 6"
class="groupTourOrder_tickets_green" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState === 5 || item2.invoiceApplyState === 4 "
class="groupTourOrder_tickets_red" @click="goIisDetail(item2.id)">{{item2.id}}</span>
<span v-else-if="item2.invoiceApplyState === 2" class="groupTourOrder_tickets_black"
@click="goIisDetail(item2.id)">{{item2.id}}</span>
</span>
<span v-if="scope.row.InvoiceApplyList.length===0"
style="cursor: default;">{{$t('system.content_noData')}}</span>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</template>
</el-table-column>
</el-table>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" layout="total" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" layout="total"
:page-size="this.msg.pageSize" :total="total"> :page-size="this.msg.pageSize" :total="total">
</el-pagination> </el-pagination>
...@@ -1130,6 +1172,7 @@ ...@@ -1130,6 +1172,7 @@
EmId: '-1', EmId: '-1',
VisaOrderStatus: "0", VisaOrderStatus: "0",
OrderId: '', OrderId: '',
IsFinish: '0'
}, },
dataList: [], dataList: [],
EmployeeList: [], EmployeeList: [],
...@@ -1148,9 +1191,68 @@ ...@@ -1148,9 +1191,68 @@
TotalPrice: 0, TotalPrice: 0,
}, },
cbId: 0, cbId: 0,
CompletedLoading: false,
multipleSelection: [],
} }
}, },
methods: { methods: {
selectable(row, index){
if (this.dataList[index].IsFinish!=1&&this.dataList[index].Income>0&&this.dataList[index].DueInMoney==0) {
return true;
} else {
return false;
}
},
handleSelectionChange(val) {
this.multipleSelection = val.map(x=>{ return x.Id});
},
setCompleted(id,row){
let ids = ''
if(id>0){
ids = id
}else{
if(this.multipleSelection.length==0) return this.$message.error('请勾选需要完结的数据')
ids = this.multipleSelection.join(',')
}
if(ids == '') {
this.$message.error('请勾选需要完结的数据')
}
this.$confirm('是否确认完结?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
if(id>0){
row.loading = true
}else{
this.CompletedLoading = true
}
this.apipost('dmc_post_SetVisaOrderFinish', {
VisaOrderIds: ids
}, res => {
if (res.data.resultCode == 1) {
if(id>0){
row.loading = false
}else{
this.CompletedLoading = false
}
this.multipleSelection = []
this.$message.success('操作成功!');
this.getList()
} else {
if(id>0){
row.loading = false
}else{
this.CompletedLoading = false
}
this.$message.error(res.data.message);
}
}, err => {})
}).catch(() => {
this.$message.info('已取消!');
});
},
isOffset(row, index, num){ isOffset(row, index, num){
this.makeAdocument(row, index, num,'Offset') this.makeAdocument(row, index, num,'Offset')
}, },
...@@ -1304,6 +1406,12 @@ ...@@ -1304,6 +1406,12 @@
this.loading = false; this.loading = false;
this.dataList = [] this.dataList = []
} else { } else {
let arrList = function(list){
list.forEach(x => {
x.loading = false
});
}
arrList(res.data.data.pageData)
this.dataList = res.data.data.pageData; this.dataList = res.data.data.pageData;
this.total = res.data.data.count; this.total = res.data.data.count;
this.loading = false; this.loading = false;
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
width: 100%; width: 100%;
margin-top: 20px; margin-top: 20px;
} }
.page_MyCustomer ._mc_addbox>li { .page_MyCustomer ._mc_addbox>li {
float: left; float: left;
width: 116px; width: 116px;
...@@ -16,19 +16,19 @@ ...@@ -16,19 +16,19 @@
background: #E9E9E9; background: #E9E9E9;
cursor: pointer; cursor: pointer;
} }
.page_MyCustomer ._mc_addbox>li.active { .page_MyCustomer ._mc_addbox>li.active {
background: #fff; background: #fff;
color: #333; color: #333;
} }
.page_MyCustomer ._mc_addbox .divActive { .page_MyCustomer ._mc_addbox .divActive {
margin: -3px auto; margin: -3px auto;
width: 26px; width: 26px;
height: 3px; height: 3px;
background: #E95252; background: #E95252;
} }
.page_MyCustomer ._mc_edit { .page_MyCustomer ._mc_edit {
overflow: auto; overflow: auto;
display: none; display: none;
...@@ -42,36 +42,36 @@ ...@@ -42,36 +42,36 @@
width: 100%; width: 100%;
min-width: 1146px; min-width: 1146px;
} }
.page_MyCustomer .edHeight { .page_MyCustomer .edHeight {
display: block; display: block;
height: 291px; height: 291px;
} }
.page_MyCustomer ._mc_list { .page_MyCustomer ._mc_list {
overflow-x: auto; overflow-x: auto;
background: #fff; background: #fff;
padding-top: 20px; padding-top: 20px;
padding-left: 15px; padding-left: 15px;
} }
.page_MyCustomer ._scrollbar::-webkit-scrollbar { .page_MyCustomer ._scrollbar::-webkit-scrollbar {
width: 4px; width: 4px;
height: 8px; height: 8px;
} }
.page_MyCustomer ._scrollbar::-webkit-scrollbar-thumb { .page_MyCustomer ._scrollbar::-webkit-scrollbar-thumb {
border-radius: 4px; border-radius: 4px;
-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2); -webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
background: #c9c9c9; background: #c9c9c9;
} }
.page_MyCustomer ._scrollbar::-webkit-scrollbar-track { .page_MyCustomer ._scrollbar::-webkit-scrollbar-track {
-webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2); -webkit-box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.2);
border-radius: 4px; border-radius: 4px;
background: #EDEDED; background: #EDEDED;
} }
.page_MyCustomer ._mc_edit ._tit { .page_MyCustomer ._mc_edit ._tit {
padding-left: 10px; padding-left: 10px;
border-left: 3px solid #E95252; border-left: 3px solid #E95252;
...@@ -79,55 +79,55 @@ ...@@ -79,55 +79,55 @@
font-family: 'PingFangSc-Fine'; font-family: 'PingFangSc-Fine';
color: #000000 color: #000000
} }
.page_MyCustomer ._mc_edit ._info_box ul._form li { .page_MyCustomer ._mc_edit ._info_box ul._form li {
float: left; float: left;
} }
.page_MyCustomer ._check_list { .page_MyCustomer ._check_list {
padding-left: 120px; padding-left: 120px;
margin-bottom: 20px; margin-bottom: 20px;
} }
.page_MyCustomer ._check_box .el-form-item { .page_MyCustomer ._check_box .el-form-item {
margin-bottom: 0 margin-bottom: 0
} }
.page_MyCustomer ._info_box .el-form-item__label { .page_MyCustomer ._info_box .el-form-item__label {
font-size: 12px; font-size: 12px;
color: #666; color: #666;
} }
._remark textarea { ._remark textarea {
resize: none; resize: none;
width: 646px; width: 646px;
height: 100px height: 100px
} }
.page_MyCustomer .avatar { .page_MyCustomer .avatar {
width: 148px; width: 148px;
height: 148px; height: 148px;
display: block; display: block;
} }
.page_MyCustomerSearch { .page_MyCustomerSearch {
width: 100%; width: 100%;
min-height: auto; min-height: auto;
overflow: hidden; overflow: hidden;
padding: 0 0 20px 0; padding: 0 0 20px 0;
} }
.page_MyCustomerSearch li { .page_MyCustomerSearch li {
float: left; float: left;
font-size: 12px; font-size: 12px;
color: #666; color: #666;
margin: 20px 0 0px 0; margin: 20px 0 0px 0;
} }
.page_MyCustomerSearch li>span { .page_MyCustomerSearch li>span {
display: inline-block; display: inline-block;
} }
.page_MyCustomerSearch li span>em { .page_MyCustomerSearch li span>em {
display: inline-block; display: inline-block;
min-width: 60px; min-width: 60px;
...@@ -135,18 +135,18 @@ ...@@ -135,18 +135,18 @@
font-style: normal; font-style: normal;
margin: 0 12px 0 0; margin: 0 12px 0 0;
} }
.page_MyCustomerSearch li:last-child { .page_MyCustomerSearch li:last-child {
float: right; float: right;
} }
.VisaProductTable { .VisaProductTable {
width: 100%; width: 100%;
font-size: 14px; font-size: 14px;
color: #333; color: #333;
border-collapse: collapse; border-collapse: collapse;
} }
.VisaProductTable tr th { .VisaProductTable tr th {
background: #E6E6E6; background: #E6E6E6;
height: 30px; height: 30px;
...@@ -154,12 +154,12 @@ ...@@ -154,12 +154,12 @@
text-align: left; text-align: left;
text-indent: 25px; text-indent: 25px;
} }
.VisaProductTable tr { .VisaProductTable tr {
background: #fff; background: #fff;
text-align: left; text-align: left;
} }
.VisaProductTable tr td { .VisaProductTable tr td {
height: 60px; height: 60px;
padding-left: 25px; padding-left: 25px;
...@@ -167,7 +167,7 @@ ...@@ -167,7 +167,7 @@
font-size: 14px; font-size: 14px;
color: #333; color: #333;
} }
.VisaProductTable tr td>img { .VisaProductTable tr td>img {
width: 24px; width: 24px;
height: 24px; height: 24px;
...@@ -175,7 +175,7 @@ ...@@ -175,7 +175,7 @@
float: left; float: left;
margin-right: 5px; margin-right: 5px;
} }
.VisaProductTable tr td .tuanqian { .VisaProductTable tr td .tuanqian {
vertical-align: middle; vertical-align: middle;
font-weight: 400; font-weight: 400;
...@@ -187,7 +187,7 @@ ...@@ -187,7 +187,7 @@
color: #FFFFFF; color: #FFFFFF;
background: #2AAEF2; background: #2AAEF2;
} }
.VisaProductTable tr td .geqian { .VisaProductTable tr td .geqian {
vertical-align: middle; vertical-align: middle;
font-weight: 400; font-weight: 400;
...@@ -199,29 +199,29 @@ ...@@ -199,29 +199,29 @@
color: #FFFFFF; color: #FFFFFF;
background: #FF9000; background: #FF9000;
} }
.VisaProductTable tr td .totalPrice { .VisaProductTable tr td .totalPrice {
color: #FF9000; color: #FF9000;
font-weight: 400; font-weight: 400;
font-size: 16px; font-size: 16px;
} }
.VisaProductTable tr td .sendVisaDate { .VisaProductTable tr td .sendVisaDate {
font-weight: bold; font-weight: bold;
} }
.page_MyCustomer ._edHeight { .page_MyCustomer ._edHeight {
height: 340px; height: 340px;
} }
.dateClass { .dateClass {
width: 171px !important; width: 171px !important;
} }
.surplusNum { .surplusNum {
color: #E95252 !important; color: #E95252 !important;
} }
.peopleNum { .peopleNum {
height: 15px; height: 15px;
font-size: 16px; font-size: 16px;
...@@ -229,7 +229,7 @@ ...@@ -229,7 +229,7 @@
color: rgba(51, 51, 51, 1); color: rgba(51, 51, 51, 1);
line-height: 24px; line-height: 24px;
} }
.Visa_income { .Visa_income {
width: 18px; width: 18px;
height: 16px; height: 16px;
...@@ -238,7 +238,7 @@ ...@@ -238,7 +238,7 @@
line-height: 24px; line-height: 24px;
color: RGBA(71, 191, 140, 1); color: RGBA(71, 191, 140, 1);
} }
.VisaProductTable tr td .createName { .VisaProductTable tr td .createName {
vertical-align: middle; vertical-align: middle;
display: table-cell; display: table-cell;
...@@ -246,39 +246,39 @@ ...@@ -246,39 +246,39 @@
width: 50px; width: 50px;
height: 21px; height: 21px;
} }
.groupTourOrderIcon button { .groupTourOrderIcon button {
width: 28px; width: 28px;
height: 28px; height: 28px;
border-radius: 4px; border-radius: 4px;
} }
.groupTourOrderIcon .el-button--primary { .groupTourOrderIcon .el-button--primary {
padding: 5px; padding: 5px;
margin: 0; margin: 0;
font-size: 14px !important; font-size: 14px !important;
} }
.groupTourOrder_tickets_red { .groupTourOrder_tickets_red {
color: #ff0000; color: #ff0000;
text-decoration: underline; text-decoration: underline;
} }
.groupTourOrder_tickets_blue { .groupTourOrder_tickets_blue {
color: #0000ff; color: #0000ff;
text-decoration: underline; text-decoration: underline;
} }
.groupTourOrder_tickets_green { .groupTourOrder_tickets_green {
color: #008000; color: #008000;
text-decoration: underline; text-decoration: underline;
} }
.groupTourOrder_tickets_black { .groupTourOrder_tickets_black {
color: #000000; color: #000000;
text-decoration: underline; text-decoration: underline;
} }
.VD-remarkTitle { .VD-remarkTitle {
display: inline-block; display: inline-block;
float: left; float: left;
...@@ -286,18 +286,18 @@ ...@@ -286,18 +286,18 @@
white-space: nowrap; white-space: nowrap;
font-size: 14px; font-size: 14px;
} }
.VD-remarkCon { .VD-remarkCon {
float: left; float: left;
display: inline-block; display: inline-block;
width: 94%; width: 94%;
font-size: 14px; font-size: 14px;
} }
.VD-redType { .VD-redType {
color: red; color: red;
} }
</style> </style>
<template> <template>
<div class="page_MyCustomer"> <div class="page_MyCustomer">
...@@ -336,6 +336,15 @@ ...@@ -336,6 +336,15 @@
<el-option label="待付款" value="3" key='3'></el-option> <el-option label="待付款" value="3" key='3'></el-option>
</el-select> </el-select>
</span></li> </span></li>
<li>
<span>
<em>完结状态</em>
<el-select v-model='msg.IsFinish'>
<el-option label="不限" value="0" key='0'></el-option>
<el-option label="已完结" value="1" key='1'></el-option>
<el-option label="未完结" value="2" key='2'></el-option>
</el-select>
</span></li>
<li v-if="pagesTitle!='销售'"> <li v-if="pagesTitle!='销售'">
<span> <span>
<em>业务员</em> <em>业务员</em>
...@@ -382,7 +391,7 @@ ...@@ -382,7 +391,7 @@
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage" <el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="this.msg.pageSize" :total="total"> layout="total,prev, pager, next, jumper" :page-size="this.msg.pageSize" :total="total">
</el-pagination> </el-pagination>
<div class="_mc_edit _scrollbar" :class="addShow==true?'edHeight':''"> <div class="_mc_edit _scrollbar" :class="addShow==true?'edHeight':''">
<p class="_tit">{{$t('salesModule.UpOrder')}} <p class="_tit">{{$t('salesModule.UpOrder')}}
<span class="fr"> <span class="fr">
...@@ -505,7 +514,7 @@ ...@@ -505,7 +514,7 @@
userInfo: {}, userInfo: {},
qjGroupId: -1, qjGroupId: -1,
F_InvoiceManagement: false, F_InvoiceManagement: false,
F_Finance_Create: false, F_Finance_Create: false,
msg: { msg: {
pageIndex: 1, pageIndex: 1,
pageSize: 12, pageSize: 12,
...@@ -518,7 +527,8 @@ ...@@ -518,7 +527,8 @@
VisaOrderStatus: '0', VisaOrderStatus: '0',
CreateBy: 0, CreateBy: 0,
RB_Branch_Id: -1, RB_Branch_Id: -1,
OrderId: 0 OrderId: 0,
IsFinish: '0',
}, },
addMsg: { addMsg: {
Id: 0, Id: 0,
...@@ -621,7 +631,7 @@ ...@@ -621,7 +631,7 @@
this.F_Finance_Create = true; this.F_Finance_Create = true;
} }
}); });
}, },
goUrlFinance(name, path, id, tcmun) { goUrlFinance(name, path, id, tcmun) {
this.$router.push({ this.$router.push({
...@@ -759,7 +769,7 @@ ...@@ -759,7 +769,7 @@
} }
}); });
}, },
cancelOrder(obj) { cancelOrder(obj) {
this.$confirm('是否取消?', '提示', { this.$confirm('是否取消?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
...@@ -791,8 +801,15 @@ ...@@ -791,8 +801,15 @@
this.apipost(url, this.msg, res => { this.apipost(url, this.msg, res => {
if (res.data.resultCode == 0) { if (res.data.resultCode == 0) {
this.loading = false; this.loading = false;
this.dataList = [] this.dataList = []
} else { } else {
let arrList = function(list){
list.forEach(x => {
x.loading = false
});
}
arrList(res.data.data.pageData)
this.dataList = res.data.data.pageData; this.dataList = res.data.data.pageData;
this.total = res.data.data.count; this.total = res.data.data.count;
this.loading = false; this.loading = false;
...@@ -826,15 +843,15 @@ ...@@ -826,15 +843,15 @@
this.addMsg.EnterCountryFlight = x[0].EnterCountryFlight this.addMsg.EnterCountryFlight = x[0].EnterCountryFlight
this.addMsg.LeaveCountryFlight = x[0].LeaveCountryFlight this.addMsg.LeaveCountryFlight = x[0].LeaveCountryFlight
this.addMsg.VisaPlanId = x[0].VisaPlanId this.addMsg.VisaPlanId = x[0].VisaPlanId
//this.addMsg.DepartDate=x[0].DepartDate //this.addMsg.DepartDate=x[0].DepartDate
this.addMsg.ClientType = x[0].ClientType.toString() this.addMsg.ClientType = x[0].ClientType.toString()
} }
}, err => {}) }, err => {})
}, },
saveVisa() { // 保存 saveVisa() { // 保存
this.$refs['addMsg'].validate((valid) => { this.$refs['addMsg'].validate((valid) => {
...@@ -906,6 +923,5 @@ ...@@ -906,6 +923,5 @@
this.GetSupperOrderEditAuth(); this.GetSupperOrderEditAuth();
} }
} }
</script> </script>
\ No newline at end of file
...@@ -484,7 +484,7 @@ ...@@ -484,7 +484,7 @@
} }
/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 {
...@@ -503,254 +503,288 @@ ...@@ -503,254 +503,288 @@
<template> <template>
<div> <div>
<div v-for="(item, index) in OrderList" class="column bgf radius5 px15 mb20"> <div style="text-align: right;position: fixed;top: 62px; right: 89px;">
<div class="row-c justify-sb align-c py"> <el-button class="hollowFixedBtn" v-if="IsSupperOrderEdit&&pagesTitle!='销售'" @click="setCompleted"
<div class="row-c"> :loading="CompletedLoading">一键完结</el-button>
<div> </div>
<div class="orderType cf fz12" :class="{ active: item.visaOrderStatus == 1,activeNo: item.visaOrderStatus == 2 }"> <el-table
<template v-if="item.visaOrderStatus == 1">正常</template> ref="multipleTable"
<template v-else-if="item.visaOrderStatus == 3">待付款</template> :data="OrderList"
<template v-else-if="item.visaOrderStatus == 2">取消</template> tooltip-effect="dark"
</div> style="width: 100%"
</div> row-key="id"
<div class="c9e fz12"> @selection-change="handleSelectionChange"
<span>{{$t('fnc.danhao')}}:</span> >
<span>{{item.visaTCNUM}}({{item.id}})</span> <el-table-column
<span class="copy cblack cursor-pointer" v-if="copyId != item.id" @click="CopyHandler(item)">复制</span> type="selection"
<span class="copy c059FF6 bgD9F3FF cursor-pointer" v-else><i class="el-icon-check mr"></i>已复制</span> :selectable="selectable"
</div> :reserve-selection="true" v-if="pagesTitle!='销售'"/>
</div>
<div class="row c9e fz12">
<div class="row-c">
<span class="mr" v-if="item.lureEmpName">引流人:{{ item.lureEmpName }}</span>
<template v-if="item.createName">
<span class="mr">创建人:</span>
<span class="mr">{{ item.createName }}</span>
<el-image class="mr" v-if="item.createPhoto"
style="width: 20px; height: 20px;border-radius: 50%;"
:src="item.createPhoto"
:preview-src-list="[item.createPhoto]">
</el-image>
</template>
</div>
<span>下单时间:</span>
<span>{{ item.createTime }}</span>
</div>
</div>
<div class="mb">
<el-table :data="[item]" style="width:100%" border>
<el-table-column label="公司" min-width="100" style="background:#EAEAEA">
<template slot-scope="scope">
<template>
{{ scope.row.outBranchName }}
</template>
</template>
</el-table-column>
<el-table-column label="产品名称" min-width="100" style="background:#EAEAEA">
<template slot-scope="scope">
<template>
{{ scope.row.name }}
</template>
</template>
</el-table-column>
<el-table-column label="出发日期" min-width="100" style="background:#EAEAEA">
<template slot-scope="scope">
<template>
{{ scope.row.departDate?scope.row.departDate:'-' }}
</template>
</template>
</el-table-column>
<el-table-column label="截止日期" min-width="100" style="background:#EAEAEA">
<template slot-scope="scope">
<template>
{{ scope.row.sendStartDate }}
</template>
</template>
</el-table-column>
<el-table-column label="人数" style="background:#EAEAEA">
<template slot-scope="scope">
{{ scope.row.peopleNum }}
</template>
</el-table-column>
<el-table-column label="应收" style="background:#EAEAEA">
<template slot-scope="scope">
<span class="fz15 fbold">{{ moneyFormat(scope.row.totalPrice) }}</span>
</template>
</el-table-column>
<el-table-column label="实收" style="background:#EAEAEA">
<template slot-scope="scope">
<span class="fz15 fbold">{{ moneyFormat(scope.row.income) }}</span>
</template>
</el-table-column>
<el-table-column label="成本" min-width="100">
<template slot-scope="scope">
<span class="fz15 fbold">{{ moneyFormat(scope.row.costMoney) }}</span>
</template>
</el-table-column>
<el-table-column label="退款" style="background:#EAEAEA">
<template slot-scope="scope">
<span class="fz15 fbold">{{ moneyFormat(scope.row.refundMoney) }}</span>
</template>
</el-table-column>
<el-table-column label="平台税金" style="background:#EAEAEA">
<template slot-scope="scope">
<span class="fz15 fbold">{{ moneyFormat(scope.row.platformTax) }}</span>
</template>
</el-table-column>
<el-table-column label="优惠" style="background:#EAEAEA">
<template slot-scope="scope">
<span class="fz15 fbold">{{ moneyFormat(scope.row.discountMoney) }}</span>
</template>
</el-table-column>
<el-table-column label="待收" style="background:#EAEAEA">
<template slot-scope="scope">
<span :class="{'cF1416C':scope.row.dueInMoney>0}">
<span class="fz15 fbold">{{ moneyFormat(scope.row.dueInMoney) }}</span>
</span>
</template>
</el-table-column> </el-table-column>
<el-table-column label="提成" style="background:#EAEAEA" <el-table-column
v-if="(item.commissionMoney&&item.commissionMoney>0)||(item.opCommission&&item.opCommission>0)"> :label="pagesTitle!='销售'?'全选':''">
<template slot-scope="scope"> <template slot-scope="scope">
<div class="width100-float-l" v-if="item.commissionMoney&&item.commissionMoney>0"> <div class="row-c justify-sb align-c py">
<span class="float-l">销售:<span class="cF1416C"></span></span> <div class="row-c">
<commissionDialog :objNew="scope.row" :OP="0"></commissionDialog> <div>
</div> <div class="orderType cf fz12" :class="{ active: scope.row.visaOrderStatus == 1,activeNo: scope.row.visaOrderStatus == 2 }">
<div class="width100-float-l" v-if="item.opCommission&&item.opCommission>0"> <template v-if="scope.row.visaOrderStatus == 1">正常</template>
<span class="float-l">OP:<span class="cF1416C"></span></span> <template v-else-if="scope.row.visaOrderStatus == 3">待付款</template>
<commissionDialog :objNew="scope.row" :OP="1"></commissionDialog> <template v-else-if="scope.row.visaOrderStatus == 2">取消</template>
</div> </div>
</template>
</el-table-column>
<template slot="append" >
<div class="row justify-sb" style="padding:10px;">
<div class="cF1416C flex-g" style="min-width: 300px;" >
<div class="row flex-wrap mb"v-if="item.guestList&&item.guestList.length>0">
<span class="flex-s">旅客名单:</span>
<div class="row wrap orderNo fz12 ml">
<span class="cursor-pointer radius5 mr px5 bgf5 c3FC4FF" style="margin: 3px;" v-for="(x, i) in item.guestList"
@click="goUrl2('VisapassengerList',item.id,'旅客名单')">{{ x.userName }}</span>
</div>
</div>
<!-- v-if="(pagesTitle=='OP'&&!item.remark)||item.remark" -->
<div>
{{$t('pub.pubRemark')}}{{ item.remark?item.remark:'-' }}
<!-- v-if="pagesTitle=='OP'" -->
<el-tooltip class="item" effect="dark" :content="$t('salesModule.UpRemarks')"
placement="top-start">
<i class="el-icon-edit cursor-pointer c059FF6 mx" @click='getDetail(item,true)'></i>
</el-tooltip>
</div>
</div>
<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">
<div class="fz12 flex-s">收款单据</div>
<div class="row wrap orderNo fz12 ml">
<span class="cursor-pointer radius5 mr mb px5" style="margin: 3px;"
: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}" v-for="(x, i) in item.financeList"
@click="openDetails(x)">{{ x.frID }}</span>
<span v-if="item.financeList&&item.financeList.length == 0" class="c9e fz12 mr">
暂无
</span>
</div> </div>
</div> <div class="cblack fz14 mr" :class="{ cF1416C: scope.row.isFinish == 0,c20C997: scope.row.isFinish == 1 }">
<el-tooltip v-if="item.visaOrderStatus!=2" class="item" effect="dark" content="制单" placement="top"> <template v-if="scope.row.isFinish == 1">
<i class="el-icon-circle-plus cursor-pointer c059FF6" 已完结 / {{scope.row.finishTime}}
@click="makeAdocument(item, index, 1)"></i> </template>
</el-tooltip> <template v-else>
</div> 未完结
<div class="row-c justify-sb px15 bgf5 radius5 ml flex-g pa relative" style="min-width: 200px;max-width: 400px;"> </template>
<div class="row-c">
<div class="fz12 flex-s">退款单据</div>
<div class="row wrap orderNo fz12 ml">
<span class="cursor-pointer radius5 mr mb px5" style="margin: 3px;"
: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}" v-for="(x, i) in item.refundFinanceList"
@click="openDetails(x)">{{ x.frID }}</span>
<span v-if="item.refundFinanceList&&item.refundFinanceList.length == 0" class="c9e fz12 mr">
暂无
</span>
</div> </div>
</div> <div class="c9e fz12">
<el-tooltip v-if="item.visaOrderStatus!=2" class="item" effect="dark" content="制单" placement="top"> <span>{{$t('fnc.danhao')}}:</span>
<i class="el-icon-circle-plus cursor-pointer c059FF6" <span>{{scope.row.visaTCNUM}}({{scope.row.id}})</span>
@click="makeAdocument(item, index, 2)"></i> <span class="copy cblack cursor-pointer" v-if="copyId != scope.row.id" @click="CopyHandler(scope.row)">复制</span>
</el-tooltip> <span class="copy c059FF6 bgD9F3FF cursor-pointer" v-else><i class="el-icon-check mr"></i>已复制</span>
</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">
<div class="fz12 flex-s">成本单据</div>
<div class="row wrap orderNo fz12 ml">
<span class="cursor-pointer radius5 mr mb px5" style="margin: 3px;"
: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}" v-for="(x, i) in item.costFinanceList"
@click="openDetails(x)">{{ x.frID }}</span>
<span v-if="item.costFinanceList&&item.costFinanceList.length == 0" class="c9e fz12 mr">
暂无
</span>
</div> </div>
</div> </div>
<div class="item" v-if="item.visaOrderStatus!=2&& pagesTitle != '销售'"> <div class="row c9e fz12">
<el-tooltip class="" effect="dark" content="制单" <div class="row-c">
placement="top"> <span class="mr" v-if="scope.row.lureEmpName">引流人:{{ scope.row.lureEmpName }}</span>
<i class="el-icon-circle-plus cursor-pointer c059FF6" <template v-if="scope.row.createName">
@click="makeAdocument(item, index, 3)"></i> <span class="mr">创建人:</span>
</el-tooltip> <span class="mr">{{ scope.row.createName }}</span>
<el-tooltip class="" effect="dark" content="冲抵" placement="top"> <el-image class="mr" v-if="scope.row.createPhoto"
<i class="el-icon-circle-plus cursor-pointer c3FC4FF" style="width: 20px; height: 20px;border-radius: 50%;"
@click="isOffset(item, index, 3)"></i> :src="scope.row.createPhoto"
</el-tooltip> :preview-src-list="[scope.row.createPhoto]">
</el-image>
</template>
</div> </div>
</div>
<div <span>下单时间:</span>
class="row wrap px15 bgE8F5E9 radius5 ml fz12 orderop" style="min-width: 150px;"> <span>{{ scope.row.createTime }}</span>
<div class="row-c cursor-pointer radius5 change py5" @click="goUrlVisaList(item)"
v-if="item.VisaPlanIdStr!=''&&pagesTitle!='销售'">
<span class="c059FF6">签证详情</span>
</div>
<div class="row-c cursor-pointer radius5 change py5" @click="getDetail(item,false)"
v-if="item.income<=0&&(item.visaOrderStatus==1||item.visaOrderStatus==3)&&item.visaStatus==1&&pagesTitle=='销售'">
<span class="c059FF6">{{$t('system.table_edit')}}订单</span>
</div>
<div class="row-c cursor-pointer radius5 cancel py5" @click='cancelOrder(item)'
v-if="item.income<=0&&(item.visaOrderStatus==1||item.visaOrderStatus==3)">
<span class="cF1416C">{{ $t('pub.cancelBtn') }}</span>
</div>
<div class="row-c cursor-pointer radius5 change py5" @click='goUrlT(item)'
v-if="(item.visaOrderStatus==1||item.visaOrderStatus==3)&&item.visaStatus==1&&pagesTitle=='销售'">
<span class="c059FF6">{{ $t('salesModule.LKMD') }}</span>
</div>
<div class="row-c cursor-pointer radius5 change1 py5"
@click='goUrlAdd("invoicesManagerAdd", item.id, item.visaId, item.customerId, 2)'
v-if="(qjGroupId==userInfo.RB_Group_id || F_InvoiceManagement)&&pagesTitle=='销售'">
<span class="c20C997">{{ $t('salesModule.ApplyInvoice') }}</span>
</div>
<template v-if="pagesTitle!='销售'">
<div class="row-c cursor-pointer radius5 cancel py5" @click="goUrl2('OrderSplitting',item.id,'订单拆分')"
v-if="item.peopleNum==item.guestList.length">
<span class="cF1416C">订单拆分</span>
</div>
<div class="row-c cursor-pointer radius5 change py5"
@click='Edit(item)'
v-if="IsSupperOrderEdit">
<span class="c059FF6">修改金额</span>
</div>
</template>
</div> </div>
</div> </div>
</div> <div class="mb">
<el-table :data="[scope.row]" style="width:100%" border>
<el-table-column label="公司" min-width="100" style="background:#EAEAEA">
</template> <template slot-scope="scope">
</el-table> <template>
</div> {{ scope.row.outBranchName }}
</template>
</template>
</el-table-column>
<el-table-column label="产品名称" min-width="100" style="background:#EAEAEA">
<template slot-scope="scope">
<template>
{{ scope.row.name }}
</template>
</template>
</el-table-column>
<el-table-column label="出发日期" min-width="100" style="background:#EAEAEA">
<template slot-scope="scope">
<template>
{{ scope.row.departDate?scope.row.departDate:'-' }}
</template>
</template>
</el-table-column>
<el-table-column label="截止日期" min-width="100" style="background:#EAEAEA">
<template slot-scope="scope">
<template>
{{ scope.row.sendStartDate }}
</template>
</template>
</el-table-column>
<el-table-column label="人数" style="background:#EAEAEA">
<template slot-scope="scope">
{{ scope.row.peopleNum }}
</template>
</el-table-column>
<el-table-column label="应收" style="background:#EAEAEA">
<template slot-scope="scope">
<span class="fz15 fbold">{{ moneyFormat(scope.row.totalPrice) }}</span>
</template>
</el-table-column>
<el-table-column label="实收" style="background:#EAEAEA">
<template slot-scope="scope">
<span class="fz15 fbold">{{ moneyFormat(scope.row.income) }}</span>
</template>
</el-table-column>
<el-table-column label="成本" min-width="100">
<template slot-scope="scope">
<span class="fz15 fbold">{{ moneyFormat(scope.row.costMoney) }}</span>
</template>
</el-table-column>
<el-table-column label="退款" style="background:#EAEAEA">
<template slot-scope="scope">
<span class="fz15 fbold">{{ moneyFormat(scope.row.refundMoney) }}</span>
</template>
</el-table-column>
<el-table-column label="平台税金" style="background:#EAEAEA">
<template slot-scope="scope">
<span class="fz15 fbold">{{ moneyFormat(scope.row.platformTax) }}</span>
</template>
</el-table-column>
<el-table-column label="优惠" style="background:#EAEAEA">
<template slot-scope="scope">
<span class="fz15 fbold">{{ moneyFormat(scope.row.discountMoney) }}</span>
</template>
</el-table-column>
<el-table-column label="待收" style="background:#EAEAEA">
<template slot-scope="scope">
<span :class="{'cF1416C':scope.row.dueInMoney>0}">
<span class="fz15 fbold">{{ moneyFormat(scope.row.dueInMoney) }}</span>
</span>
</template>
</el-table-column>
<el-table-column label="提成" style="background:#EAEAEA"
v-if="(scope.row.commissionMoney&&scope.row.commissionMoney>0)||(scope.row.opCommission&&scope.row.opCommission>0)">
<template slot-scope="scope">
<div class="width100-float-l" v-if="scope.row.commissionMoney&&scope.row.commissionMoney>0">
<span class="float-l">销售:<span class="cF1416C"></span></span>
<commissionDialog :objNew="scope.row" :OP="0"></commissionDialog>
</div>
<div class="width100-float-l" v-if="scope.row.opCommission&&item.opCommission>0">
<span class="float-l">OP:<span class="cF1416C"></span></span>
<commissionDialog :objNew="scope.row" :OP="1"></commissionDialog>
</div>
</template>
</el-table-column>
<template slot="append" >
<div class="row justify-sb" style="padding:10px;">
<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">
<span class="flex-s">旅客名单:</span>
<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"
@click="goUrl2('VisapassengerList',scope.row.id,'旅客名单')">{{ x.userName }}</span>
</div>
</div>
<!-- v-if="(pagesTitle=='OP'&&!scope.row.remark)||scope.row.remark" -->
<div>
{{$t('pub.pubRemark')}}{{ scope.row.remark?scope.row.remark:'-' }}
<!-- v-if="pagesTitle=='OP'" -->
<el-tooltip class="item" effect="dark" :content="$t('salesModule.UpRemarks')"
placement="top-start">
<i class="el-icon-edit cursor-pointer c059FF6 mx" @click='getDetail(scope.row,true)'></i>
</el-tooltip>
</div>
</div>
<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">
<div class="fz12 flex-s">收款单据</div>
<div class="row wrap orderNo fz12 ml">
<span class="cursor-pointer radius5 mr mb px5" style="margin: 3px;"
: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}" v-for="(x, i) in scope.row.financeList"
@click="openDetails(x)">{{ x.frID }}</span>
<span v-if="scope.row.financeList&&scope.row.financeList.length == 0" class="c9e fz12 mr">
暂无
</span>
</div>
</div>
<el-tooltip v-if="scope.row.visaOrderStatus!=2" class="item" effect="dark" content="制单" placement="top">
<i class="el-icon-circle-plus cursor-pointer c059FF6"
@click="makeAdocument(scope.row, index, 1)"></i>
</el-tooltip>
</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">
<div class="fz12 flex-s">退款单据</div>
<div class="row wrap orderNo fz12 ml">
<span class="cursor-pointer radius5 mr mb px5" style="margin: 3px;"
: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}" v-for="(x, i) in scope.row.refundFinanceList"
@click="openDetails(x)">{{ x.frID }}</span>
<span v-if="scope.row.refundFinanceList&&scope.row.refundFinanceList.length == 0" class="c9e fz12 mr">
暂无
</span>
</div>
</div>
<el-tooltip v-if="scope.row.visaOrderStatus!=2" class="item" effect="dark" content="制单" placement="top">
<i class="el-icon-circle-plus cursor-pointer c059FF6"
@click="makeAdocument(scope.row, index, 2)"></i>
</el-tooltip>
</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">
<div class="fz12 flex-s">成本单据</div>
<div class="row wrap orderNo fz12 ml">
<span class="cursor-pointer radius5 mr mb px5" style="margin: 3px;"
: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}" v-for="(x, i) in scope.row.costFinanceList"
@click="openDetails(x)">{{ x.frID }}</span>
<span v-if="scope.row.costFinanceList&&scope.row.costFinanceList.length == 0" class="c9e fz12 mr">
暂无
</span>
</div>
</div>
<div class="item" v-if="scope.row.visaOrderStatus!=2&& pagesTitle != '销售'">
<el-tooltip class="" effect="dark" content="制单"
placement="top">
<i class="el-icon-circle-plus cursor-pointer c059FF6"
@click="makeAdocument(scope.row, index, 3)"></i>
</el-tooltip>
<el-tooltip class="" effect="dark" content="冲抵" placement="top">
<i class="el-icon-circle-plus cursor-pointer c3FC4FF"
@click="isOffset(scope.row, index, 3)"></i>
</el-tooltip>
</div>
</div>
<div
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)"
v-if="scope.row.VisaPlanIdStr!=''&&pagesTitle!='销售'">
<span class="c059FF6">签证详情</span>
</div>
<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=='销售'">
<span class="c059FF6">{{$t('system.table_edit')}}订单</span>
</div>
<div class="row-c cursor-pointer radius5 cancel py5" @click='cancelOrder(scope.row)'
v-if="scope.row.income<=0&&(scope.row.visaOrderStatus==1||scope.row.visaOrderStatus==3)">
<span class="cF1416C">{{ $t('pub.cancelBtn') }}</span>
</div>
<div class="row-c cursor-pointer radius5 change py5" @click='goUrlT(scope.row)'
v-if="(scope.row.visaOrderStatus==1||scope.row.visaOrderStatus==3)&&scope.row.visaStatus==1&&pagesTitle=='销售'">
<span class="c059FF6">{{ $t('salesModule.LKMD') }}</span>
</div>
<div class="row-c cursor-pointer radius5 change1 py5"
@click='goUrlAdd("invoicesManagerAdd", scope.row.id, scope.row.visaId, scope.row.customerId, 2)'
v-if="(qjGroupId==userInfo.RB_Group_id || F_InvoiceManagement)&&pagesTitle=='销售'">
<span class="c20C997">{{ $t('salesModule.ApplyInvoice') }}</span>
</div>
<template v-if="pagesTitle!='销售'">
<div class="row-c cursor-pointer radius5 cancel py5" @click="goUrl2('OrderSplitting',scope.row.id,'订单拆分')"
v-if="scope.row.peopleNum==scope.row.guestList.length">
<span class="cF1416C">订单拆分</span>
</div>
<div class="row-c cursor-pointer radius5 change py5"
@click='Edit(scope.row)'
v-if="IsSupperOrderEdit">
<span class="c059FF6">修改金额</span>
</div>
<div v-if="IsSupperOrderEdit&&pagesTitle!='销售'&&scope.row.isFinish!=1
&&scope.row.income>0&&scope.row.dueInMoney==0"
class="row-c cursor-pointer radius5 change py5"
@click='setCompleted(scope.row.id,scope.row)' v-loading="scope.row.loading">
<span class="c059FF6">完结</span>
</div>
</template>
</div>
</div>
</div>
</div> </template>
</el-table>
</div>
</template>
</el-table-column>
</el-table>
<div class="_mc_edit _scrollbar" :class="addShow==true?'edHeight':''"> <div class="_mc_edit _scrollbar" :class="addShow==true?'edHeight':''">
<p class="_tit">{{$t('salesModule.UpOrder')}} <p class="_tit">{{$t('salesModule.UpOrder')}}
<span class="fr"> <span class="fr">
...@@ -883,6 +917,8 @@ export default { ...@@ -883,6 +917,8 @@ export default {
props: ["OrderList", "pagesTitle"], props: ["OrderList", "pagesTitle"],
data() { data() {
return { return {
CompletedLoading: false,
multipleSelection: [],
isCommissionDialog: false, isCommissionDialog: false,
objNew:{}, objNew:{},
queryObj:null, queryObj:null,
...@@ -1194,7 +1230,62 @@ export default { ...@@ -1194,7 +1230,62 @@ export default {
} }
}); });
}, },
selectable(row, index){
if (this.OrderList[index].isFinish!=1&&this.OrderList[index].income>0&&this.OrderList[index].dueInMoney==0) {
return true;
} else {
return false;
}
},
handleSelectionChange(val) {
this.multipleSelection = val.map(x=>{ return x.id});
},
setCompleted(id,row){
let ids = ''
if(id>0){
ids = id
}else{
if(this.multipleSelection.length==0) return this.$message.error('请勾选需要完结的数据')
ids = this.multipleSelection.join(',')
}
if(ids == '') {
this.$message.error('请勾选需要完结的数据')
}
this.$confirm('是否确认完结?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
if(id>0){
row.loading = true
}else{
this.CompletedLoading = true
}
this.apipost('dmc_post_SetVisaOrderFinish', {
VisaOrderIds: ids
}, res => {
if (res.data.resultCode == 1) {
if(id>0){
row.loading = false
}else{
this.CompletedLoading = false
}
this.multipleSelection = []
this.$message.success('操作成功!');
this.$emit('success')
} else {
if(id>0){
row.loading = false
}else{
this.CompletedLoading = false
}
this.$message.error(res.data.message);
}
}, err => {})
}).catch(() => {
this.$message.info('已取消!');
});
},
cancelOrder(obj) { cancelOrder(obj) {
this.$confirm('是否取消?', '提示', { this.$confirm('是否取消?', '提示', {
confirmButtonText: '确定', confirmButtonText: '确定',
......
...@@ -527,6 +527,7 @@ ...@@ -527,6 +527,7 @@
1.以上制度公司会因市场变动与业务实际情况及公司规模採取适当因应或调整,敬请注意!!</br> 1.以上制度公司会因市场变动与业务实际情况及公司规模採取适当因应或调整,敬请注意!!</br>
2.购物佣金不计入OP毛利奖金</br> 2.购物佣金不计入OP毛利奖金</br>
3.如果小包团、落地散团出现利润亏损,需其他团分摊亏损的利润</br> 3.如果小包团、落地散团出现利润亏损,需其他团分摊亏损的利润</br>
4.签证订单 需OP点完结后方可参与提成。</br>
</div> </div>
<div style="display: none; padding: 10px 0 0 0;color: #E95252;line-height: 30px;width: 50%;white-space: wrap;"> <div style="display: none; padding: 10px 0 0 0;color: #E95252;line-height: 30px;width: 50%;white-space: wrap;">
<p style="font-weight: bold;">关于提成发放流程的补充通知:</p> <p style="font-weight: bold;">关于提成发放流程的补充通知:</p>
...@@ -538,8 +539,7 @@ ...@@ -538,8 +539,7 @@
2.未在规定时间内改价平账订单,违反提成规则,该订单报名当事人提成金额为0。</br> 2.未在规定时间内改价平账订单,违反提成规则,该订单报名当事人提成金额为0。</br>
3.未平账订单继续追溯至下个月,直到全部帐平为止,再放发上月其他订单提成</br> 3.未平账订单继续追溯至下个月,直到全部帐平为止,再放发上月其他订单提成</br>
4.未结团团期或成本遗漏补录等原因,造成团队利润变动,销售提成会在次月再次验证此团利润,多退少补;</br> 4.未结团团期或成本遗漏补录等原因,造成团队利润变动,销售提成会在次月再次验证此团利润,多退少补;</br>
5.签证订单 需OP点完结后方可参与提成。</br> 5.提成工作环环相扣,请所有人员务必有公德心,同时遵守工作流程,尊重他人。</br>
6.提成工作环环相扣,请所有人员务必有公德心,同时遵守工作流程,尊重他人。</br>
</div> </div>
</div> </div>
......
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