Commit c41a172e authored by youjie's avatar youjie

no message

parent 757bc97c
......@@ -946,6 +946,24 @@ Vue.component("TCStatusport", {
}
}
});
Vue.component("clumpingStatus", {
template: `<span>
<span v-if="rowData.TravelStatus==1" style="color: red;">未结团</span>
<span v-if="rowData.TravelStatus==2" style="color: #47BF8C;">已结团</span>
<span v-if="rowData.TravelStatus==5">待结团审核</span>
</span>`,
props: {
rowData: {
type: Object
},
field: {
type: String
},
index: {
type: Number
}
}
});
Vue.component("Transport", {
// 是否联运团
template: `<span><span v-if="rowData.Is_Transport==='是'" style="color: red;">{{rowData.Is_Transport}}</span><span v-else>{{rowData.Is_Transport}}</span></span>`,
......@@ -1139,6 +1157,16 @@ export default {
isFrozen: true,
componentName: "TCStatusport"
},
{
field: "TravelStatus",
title: "结团状态",
width: 80,
titleAlign: "left",
columnAlign: "left",
isResize: true,
isFrozen: true,
componentName: "clumpingStatus"
},
{
field: "LeaderName",
title: "领队",
......
......@@ -38,6 +38,9 @@
<ul class="_nav clearfix">
<li :class="active==1?'_active':''" @click="active=1, msg.OutGroupAuditState=1, getControlList()">待审批</li>
<li :class="active==2?'_active':''" @click="active=2, msg.OutGroupAuditState=2, getControlList()">已审批</li>
<div style="float: right;" v-if="multipleSelection.length>0">
<button class="hollowFixedBtn" @click="setAudit()">批量审核</button>
</div>
</ul>
<ul style="overflow: initial!important">
......@@ -45,76 +48,107 @@
</li>
</ul>
<table class="singeRowTable" border="0" cellspacing="0" cellpadding="0" v-loading="loading">
<thead>
<tr>
<th width="160">团队编号</th>
<th>系列</th>
<th width="400">团名</th>
<th>OP</th>
<th>团队类型</th>
<th>应收</th>
<th>实收</th>
<th>待收</th>
<th>应付</th>
<th>实付</th>
<th>待付</th>
<th>团队利润</th>
<th v-if="active==1">审批人</th>
<th v-if="active==2">审批结果</th>
<th v-if="active==2">审批信息</th>
<th width="200">操作</th>
</tr>
</thead>
<tbody>
<tr v-for="(item,index) in dataList" :key="index">
<td style="cursor: pointer;text-decoration: underline;" @click="goTravel(item.TCID)">{{item.TCNUM}}({{item.TCID}})</td>
<td>{{item.LtName}}</td>
<td style="padding: 5px;">{{item.Title}}</td>
<td>{{item.OPName}}</td>
<td>{{item.PriceTeamTypeName}}</td>
<td>{{item.ShouldReceive}}</td>
<td>{{item.ActualReceive}}</td>
<td>{{item.WaitRecive}}</td>
<td>{{item.ShouldPay}}</td>
<td>{{item.ActualPay}}</td>
<td>{{item.WaitPay}}</td>
<td>{{item.ActualProfit}}</td>
<td v-if="active==1">{{item.AuditEmpName}}</td>
<td v-if="active==2">
<span v-if="item.OutGroupAuditState == 2" style="color: green;">通过</span>
<span v-if="item.OutGroupAuditState == 3" style="color: red;">拒绝</span>
</td>
<td v-if="active==2">
<div>{{item.AuditEmpName}}</div>
<div>{{item.OutGroupAuditDate}}</div>
</td>
<td class="_icon_btn">
<el-tooltip class="item" effect="dark" content="审核" placement="top" v-if="active==1 && EmployeeId==item.OutGroupAuditEmpId">
<i class="iconfont icon-ico_commodity_defaul" @click="shenhei(item)" v-if="active==1 && EmployeeId==item.OutGroupAuditEmpId"></i>
<el-table
v-loading="loading"
ref="multipleTable"
:data="dataList"
tooltip-effect="dark"
style="width: 100%"
@selection-change="handleSelectionChange"
>
<el-table-column
type="selection"
width="55" :selectable="selectable">
</el-table-column>
<el-table-column
label="团队编号"
width="170">
<template slot-scope="scope">
<span style="cursor: pointer;text-decoration: underline;"
@click="goTravel(scope.row.TCID)">{{scope.row.TCNUM}}({{scope.row.TCID}})</span>
</template>
</el-table-column>
<el-table-column
prop="LtName"
label="系列" show-overflow-tooltip></el-table-column>
<el-table-column
prop="Title"
label="团名"
width="400"
show-overflow-tooltip></el-table-column>
<el-table-column
prop="OPName"
label="OP"></el-table-column>
<el-table-column
prop="PriceTeamTypeName"
label="团队类型"></el-table-column>
<el-table-column
prop="ShouldReceive"
label="应收"></el-table-column>
<el-table-column
prop="ActualReceive"
label="实收"></el-table-column>
<el-table-column
prop="WaitRecive"
label="待收"></el-table-column>
<el-table-column
prop="ShouldPay"
label="应付"></el-table-column>
<el-table-column
prop="ActualPay"
label="实付"></el-table-column>
<el-table-column
prop="WaitPay"
label="待付"></el-table-column>
<el-table-column
prop="ActualProfit"
label="团队利润"></el-table-column>
<el-table-column v-if="active==1"
prop="AuditEmpName"
label="审批人"></el-table-column>
<el-table-column v-if="active==2"
prop=""
label="审批结果">
<template slot-scope="scope">
<span v-if="scope.row.OutGroupAuditState == 2" style="color: green;">通过</span>
<span v-if="scope.row.OutGroupAuditState == 3" style="color: red;">拒绝</span>
</template>
</el-table-column>
<el-table-column v-if="active==2"
prop=""
label="审批信息">
<template slot-scope="scope">
<p>{{scope.row.AuditEmpName}}</p>
<p>{{scope.row.OutGroupAuditDate}}</p>
</template>
</el-table-column>
<el-table-column
prop=""
label="操作"
width="150">
<template slot-scope="scope">
<div class="_icon_btn">
<el-tooltip class="item" effect="dark" content="审核" placement="top" v-if="active==1 && EmployeeId==scope.row.OutGroupAuditEmpId">
<i class="iconfont icon-ico_commodity_defaul" @click="shenhei(scope.row)" v-if="active==1 && EmployeeId==scope.row.OutGroupAuditEmpId"></i>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="驳回" placement="top" v-if="active==1 && EmployeeId==item.OutGroupAuditEmpId">
<i class="iconfont icon-shenhebohui" @click="bohui(item)" v-if="active==1 && EmployeeId==item.OutGroupAuditEmpId"></i>
<el-tooltip class="item" effect="dark" content="驳回" placement="top" v-if="active==1 && EmployeeId==scope.row.OutGroupAuditEmpId">
<i class="iconfont icon-shenhebohui" @click="bohui(scope.row)" v-if="active==1 && EmployeeId==scope.row.OutGroupAuditEmpId"></i>
</el-tooltip>
<el-tooltip class="item" effect="dark" content="收支明细" placement="top">
<i class="iconfont icon-mingxi" @click="goTeamBalance(item.TCID)"></i>
<i class="iconfont icon-mingxi" @click="goTeamBalance(scope.row.TCID)"></i>
</el-tooltip>
</td>
</tr>
</tbody>
<tr v-if="dataList.length==0">
<td :colspan="active==1?14:15" style="text-align:center">暂无数据</td>
</tr>
</table>
</div>
</template>
</el-table-column>
</el-table>
<div style="width: 100%;">
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="msg.pageIndex"
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total">
<el-pagination background
@size-change="handleSizeChange"
@current-change="handleCurrentChange"
:current-page.sync="msg.pageIndex"
layout="sizes,total,prev, pager, next, jumper"
:page-sizes="[5, 10, 20, 30,50,100]"
:page-size="msg.pageSize" :total="total">
</el-pagination>
</div>
......@@ -166,7 +200,7 @@
active: '1',
msg: {
pageIndex: 1,
pageSize: 5,
pageSize: 10,
PriceTeamType: "0",
TCNUM: '',//团号
TCID: '',
......@@ -176,6 +210,8 @@
TeamListArr:[],
total:0,
EmployeeId:0,
multipleSelection: [],
AuditLoading: false
}
},
created() {
......@@ -197,10 +233,44 @@
},
methods: {
selectable(row, index) {
if(this.active==1){
return true
}else{
return false
}
},
setAudit(type){
let ids = this.multipleSelection.map(x=>{ return x.TCID})
if(ids.length==0){
return this.$message.error('请勾选需要批量审核的数据');
}
let that = this;
that.$confirm('是否通过该批量审核数据?', '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
for(let i=0;i<ids.length;i++){
setTimeout(()=>{
this.groupAudit(2,ids[i],'multiple',(i+1)==ids.length?ids.length:0)
},500)
}
}).catch(() => {
});
},
handleSelectionChange(val) {
this.multipleSelection = val;
},
getControlList() {
this.msg.pageIndex = 1;
this.getList()
},
handleSizeChange(e){
this.msg.pageSize = e;
this.getList()
},
handleCurrentChange(e){
this.msg.pageIndex = e;
this.getList()
......@@ -271,16 +341,25 @@
});
},
groupAudit(type,TCID){
groupAudit(type,TCID,name,length){
this.apipost("travel_post_SetOutGroupAuditInfo", {
TCID:TCID,
OutGroupAuditState:type,
OutGroupAuditRemark:this.cancelRemark
}, res => {
if (res.data.resultCode == 1) {
if(!name){
this.cancelOrderDialog = false
this.Success(res.data.message);
this.getList()
}else{
if(length){
this.cancelOrderDialog = false
this.Success(res.data.message);
this.getList()
}
}
} else {
this.Error(res.data.message);
}
......
......@@ -976,6 +976,42 @@
components: {
orderForm: orderForm
},
filters: {
priceFormat(value) {
if (value == null) {
return 0.0;
}
let nStr = value.toFixed(2);
nStr += "";
let x = nStr.split(".");
let x1 = x[0];
let x2 = x.length > 1 ? "." + x[1] : "";
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, "$1" + "," + "$2");
}
return x1 + x2;
},
priceFormat2(value) {
if (value == null) {
return "已包含";
}
let nStr = value.toFixed(2);
nStr += "";
let x = nStr.split(".");
let x1 = x[0];
let x2 = x.length > 1 ? "." + x[1] : "";
var rgx = /(\d+)(\d{3})/;
while (rgx.test(x1)) {
x1 = x1.replace(rgx, "$1" + "," + "$2");
}
let result = x1 + x2;
if (result === "0.00") {
result = "已包含";
}
return result;
},
},
methods: {
//刷新页面
reSearchPage() {
......
<style scoped>
.commonOrderForm { overflow: auto;
.commonOrderForm {
position: fixed;
left: 0;
right: 0;
bottom: 0;
z-index: 2;
overflow: auto;
height: 600px;
border-top: 3px solid #38425d;
background-color: #ffffff;
......@@ -1618,6 +1624,9 @@
(res) => {
if (res.data.resultCode == 1) {
this.joinTypeList = res.data.data;
this.joinTypeList.splice(-1)
this.joinTypeList.splice(-1)
this.joinTypeList.splice(-1)
}
},
);
......
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