Commit f654874c authored by 黄奎's avatar 黄奎

前端调整

parent a57312e0
<template>
<div class="domesticCommissionRule">
<div class="query-box">
<ul>
<li>
<span>
<em>{{$t('fnc.gzmingcheng')}}</em>
<el-input type="text" v-model="msg.RuleName" @keyup.native.enter="handleCurrentChange(1)">
</el-input>
</span>
</li>
<li>
<span style="display: flex;align-items: center;">
<em>{{$t('advmanager.v_line')}}</em>
<el-select v-model="msg.LineId" size="mini" @change="handleCurrentChange(1)">
<el-option :label="$t('pub.pleaseSel')" :value="0"></el-option>
<el-option v-for="(item,index) in LineList" :key="item.index" :label="item.LineName" :value="item.LineID">
</el-option>
</el-select>
</span>
</li>
<div class="domesticCommissionRule">
<div class="query-box">
<ul>
<li>
<span>
<em>{{$t('fnc.gzmingcheng')}}</em>
<el-input type="text" v-model="msg.RuleName" @keyup.native.enter="handleCurrentChange(1)">
</el-input>
</span>
</li>
<li>
<span style="display: flex;align-items: center;">
<em>{{$t('advmanager.v_line')}}</em>
<el-select v-model="msg.LineId" size="mini" @change="handleCurrentChange(1)">
<el-option :label="$t('pub.pleaseSel')" :value="0"></el-option>
<el-option v-for="(item,index) in LineList" :key="item.index" :label="item.LineName" :value="item.LineID">
</el-option>
</el-select>
</span>
</li>
<li>
<input type="button" class="normalBtn" :value="$t('pub.addBtn')" @click="addNew">
</li>
</ul>
</div>
<div class="commonContent">
<table v-loading="loading" class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th>{{$t('fnc.gzmingcheng')}}</th>
<th>{{$t('advmanager.v_line')}}</th>
<!-- <th>{{$t('advmanager.v_type')}}</th> -->
<!-- <th>{{$t('salesModule.Laiyuan')}}</th> -->
<!-- <th>{{$t('objFill.v101.FinancialModule.tuandlxmc')}}</th> -->
<!-- <th>{{$t('advmanager.v_type')}}</th> -->
<th>{{$t('objFill.v101.FinancialModule.jinebil')}}</th>
<th>{{$t('objFill.v101.FinancialModule.jietuanshr')}}</th>
<th>{{$t('objFill.v101.administrative.xiugairen')}}</th>
<th>{{$t('system.table_operation')}}</th>
</tr>
</thead>
<template v-for="(item,index) in DataList">
<tr>
<td>{{item.RuleName}}</td>
<td>
<el-tag style="margin: 0 3px;" size="mini" v-for="(x,i) in item.LineNameList" :key="i">{{x}}</el-tag>
</td>
<td>
<div class="tdOne">{{$t('visaT.sale')}}<span style="color: red;">{{item.SellRate}}</span>%</div>
<div class="tdTwo">OP:<span style="color: red;">{{item.OPRate}}</span>%</div>
</td>
<td>{{item.AuditEmpName}}</td>
<td>
<div>{{item.UpdateBy}}</div>
<div>{{item.UpdateDate}}</div>
</td>
<td>
<el-button-group size='mini'>
<el-tooltip class="item" effect="dark" :content="$t('system.table_edit')" placement="top-start">
<el-button type="primary" icon="el-icon-edit"
@click="isShowDIv = true,divTitle=$t('objFill.v101.FinancialModule.xiugtcgz'),getEdit(item)">
</el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('system.table_delete')" placement="top-start">
<el-button type="danger" icon="el-icon-delete" @click="DeleteRules(item.Id)">
</el-button>
</el-tooltip>
</el-button-group>
</td>
</tr>
</template>
<tr v-if="DataList.length==0">
<td colspan="10" align="center">{{$t('system.content_noData')}}</td>
<li>
<input type="button" class="normalBtn" :value="$t('pub.addBtn')" @click="addNew">
</li>
</ul>
</div>
<div class="commonContent">
<table v-loading="loading" class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
<thead>
<tr>
<th>{{$t('fnc.gzmingcheng')}}</th>
<th>{{$t('advmanager.v_line')}}</th>
<!-- <th>{{$t('advmanager.v_type')}}</th> -->
<!-- <th>{{$t('salesModule.Laiyuan')}}</th> -->
<!-- <th>{{$t('objFill.v101.FinancialModule.tuandlxmc')}}</th> -->
<!-- <th>{{$t('advmanager.v_type')}}</th> -->
<th>{{$t('objFill.v101.FinancialModule.jinebil')}}</th>
<th>{{$t('objFill.v101.FinancialModule.jietuanshr')}}</th>
<th>{{$t('objFill.v101.administrative.xiugairen')}}</th>
<th>{{$t('system.table_operation')}}</th>
</tr>
</thead>
<template v-for="(item,index) in DataList">
<tr>
<td>{{item.RuleName}}</td>
<td>
<el-tag style="margin: 0 3px;" size="mini" v-for="(x,i) in item.LineNameList" :key="i">{{x}}</el-tag>
</td>
<td>
<div class="tdOne">{{$t('visaT.sale')}}<span style="color: red;">{{item.SellRate}}</span>%</div>
<div class="tdTwo">OP:<span style="color: red;">{{item.OPRate}}</span>%</div>
</td>
<td>{{item.AuditEmpName}}</td>
<td>
<div>{{item.UpdateBy}}</div>
<div>{{item.UpdateDate}}</div>
</td>
<td>
<el-button-group size='mini'>
<el-tooltip class="item" effect="dark" :content="$t('system.table_edit')" placement="top-start">
<el-button type="primary" icon="el-icon-edit"
@click="isShowDIv = true,divTitle=$t('objFill.v101.FinancialModule.xiugtcgz'),getEdit(item)">
</el-button>
</el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('system.table_delete')" placement="top-start">
<el-button type="danger" icon="el-icon-delete" @click="DeleteRules(item.Id)">
</el-button>
</el-tooltip>
</el-button-group>
</td>
</tr>
<tfoot>
<tr>
<td colspan="10">
<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>
</td>
</tr>
</tfoot>
</template>
<tr v-if="DataList.length==0">
<td colspan="10" align="center">{{$t('system.content_noData')}}</td>
</tr>
<tfoot>
<tr>
<td colspan="10">
<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>
</td>
</tr>
</tfoot>
</table>
</div>
<el-dialog :title="$t('objFill.v101.FinancialModule.danxianfwtcgz')" :visible.sync="ruleVisible" width="800px">
<el-form ref="addMsg" :model="addMsg" :rules="rules" label-width="110px">
<el-form-item :label="$t('fnc.gzmingcheng')" prop="RuleName">
<el-input type="text" v-model="addMsg.RuleName"></el-input>
</el-form-item>
<el-form-item :label="$t('advmanager.v_line')" prop="LineIds">
<el-select v-model="addMsg.LineIds" multiple style="width: 100%;">
<el-option v-for="(item,index) in LineList" :key="index" :label="item.LineName" :value="item.LineID">
</el-option>
</el-select>
</el-form-item>
<el-form-item prop="SellRate" :label="$t('visaT.sale')">
<el-input style="width: 170px;" type="Number" v-model="addMsg.SellRate"
</table>
</div>
<el-dialog :title="$t('objFill.v101.FinancialModule.danxianfwtcgz')" :visible.sync="ruleVisible" width="800px">
<el-form ref="addMsg" :model="addMsg" :rules="rules" label-width="110px">
<el-form-item :label="$t('fnc.gzmingcheng')" prop="RuleName">
<el-input type="text" v-model="addMsg.RuleName"></el-input>
</el-form-item>
<el-form-item :label="$t('advmanager.v_line')" prop="LineIds">
<el-select v-model="addMsg.LineIds" multiple style="width: 100%;">
<el-option v-for="(item,index) in LineList" :key="index" :label="item.LineName" :value="item.LineID">
</el-option>
</el-select>
</el-form-item>
<el-form-item prop="SellRate" :label="$t('visaT.sale')">
<el-input style="width: 170px;" type="Number" v-model="addMsg.SellRate"
@keyup.native="checkPrice(addMsg,'SellRate',true)">
<template slot="append">%</template>
</el-input>
</el-input>
</el-form-item>
<el-form-item prop="OPRate" label="OP">
<el-input style="width: 170px;" type="Number" v-model="addMsg.OPRate"
<el-input style="width: 170px;" type="Number" v-model="addMsg.OPRate"
@keyup.native="checkPrice(addMsg,'OPRate',true)">
<template slot="append">%</template>
</el-input>
</el-input>
</el-form-item>
<el-form-item :label="$t('objFill.v101.FinancialModule.jietuanshr')" prop="AuditEmpId" >
<el-select
v-model="addMsg.AuditEmpId"
filterable
remote
reserve-keyword
:placeholder="$t('pub.pleaseImport')"
:remote-method="remoteMethod"
@change="getpersonnel"
>
<el-option
v-for="item in searchList"
:key="item.empId"
:label="item.name"
:value="item.empId">
<span style="float: left">{{ item.name }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.postName }}</span>
</el-option>
</el-select>
<el-form-item :label="$t('objFill.v101.FinancialModule.jietuanshr')" prop="AuditEmpId">
<el-select v-model="addMsg.AuditEmpId" filterable remote reserve-keyword :placeholder="$t('pub.pleaseImport')"
:remote-method="remoteMethod" @change="getpersonnel">
<el-option v-for="item in searchList" :key="item.empId" :label="item.name" :value="item.empId">
<span style="float: left">{{ item.name }}</span>
<span style="float: right; color: #8492a6; font-size: 13px">{{ item.postName }}</span>
</el-option>
</el-select>
</el-form-item>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="ruleVisible = false,resetForm('addMsg')">{{$t('pub.cancelBtn')}}</el-button>
<el-button size="small" type="danger" @click="RulesOk('addMsg')">{{$t('pub.sureBtn')}}</el-button>
</span>
</el-dialog>
</el-form>
<span slot="footer" class="dialog-footer">
<el-button size="small" @click="ruleVisible = false,resetForm('addMsg')">{{$t('pub.cancelBtn')}}</el-button>
<el-button size="small" type="danger" @click="RulesOk('addMsg')">{{$t('pub.sureBtn')}}</el-button>
</span>
</el-dialog>
</div>
</template>
<script>
import Vue from "vue";
const addobj = {
Id: 0,
RuleName: '',
LineIds: [],
SellRate: '',
OPRate: '',
AuditEmpId: ''
}
export default {
data() {
var checkVariable = (rule, value, callback) => {
if (value == null || value.length == 0) {
return callback(new Error(this.$t('objFill.v101.FinancialModule.ticblbnwk')));
}
let a = parseFloat(value);
if (isNaN(a)) {
callback(new Error(this.$t('objFill.v101.FinancialModule.ticblbxszs')));
} else {
callback();
}
};
return {
msg: {
pageIndex: 1,
pageSize: 10,
// RuleName: '',
// LineId: 0,
},
searchList:[],//人员
loading: false, //加载层
DataList: [],
total: 0,
TeamListArr: [], //团队类型
LineList: [], //线路
ruleVisible: false, //弹窗的显示
addMsg: Object.assign({}, addobj),
rules: {
RuleName: [{
required: true,
message: this.$t('rule.qsrgzmingcheng'),
trigger: 'change'
}],
LineIds: [{
required: true,
message: this.$t('objFill.v101.dmc.qingxzlx'),
trigger: 'change'
}],
SellRate: [{
required: true,
message: this.$t('objFill.v101.FinancialModule.qingsrxstcbl'),
trigger: 'blur'
}],
OPRate: [{
required: true,
message: this.$t('objFill.v101.FinancialModule.qingsroptcbl'),
trigger: 'blur'
}],
AuditEmpId: [{
required: true,
message: this.$t('objFill.v101.FinancialModule.qingxzjtshr'),
trigger: 'change'
}],
</div>
</template>
<script>
import Vue from "vue";
const addobj = {
Id: 0,
RuleName: '',
LineIds: [],
SellRate: '',
OPRate: '',
AuditEmpId: ''
}
export default {
data() {
var checkVariable = (rule, value, callback) => {
if (value == null || value.length == 0) {
return callback(new Error(this.$t('objFill.v101.FinancialModule.ticblbnwk')));
}
let a = parseFloat(value);
if (isNaN(a)) {
callback(new Error(this.$t('objFill.v101.FinancialModule.ticblbxszs')));
} else {
callback();
}
};
return {
msg: {
pageIndex: 1,
pageSize: 10,
// RuleName: '',
// LineId: 0,
},
searchList: [], //人员
loading: false, //加载层
DataList: [],
total: 0,
TeamListArr: [], //团队类型
LineList: [], //线路
ruleVisible: false, //弹窗的显示
addMsg: Object.assign({}, addobj),
rules: {
RuleName: [{
required: true,
message: this.$t('rule.qsrgzmingcheng'),
trigger: 'change'
}],
LineIds: [{
required: true,
message: this.$t('objFill.v101.dmc.qingxzlx'),
trigger: 'change'
}],
SellRate: [{
required: true,
message: this.$t('objFill.v101.FinancialModule.qingsrxstcbl'),
trigger: 'blur'
}],
OPRate: [{
required: true,
message: this.$t('objFill.v101.FinancialModule.qingsroptcbl'),
trigger: 'blur'
}],
AuditEmpId: [{
required: true,
message: this.$t('objFill.v101.FinancialModule.qingxzjtshr'),
trigger: 'change'
}],
},
};
},
created() {
this.getList()
this.getTeamList()
this.getLineList()
},
methods: {
handleCurrentChange(val) {
//翻页功能按钮
this.msg.pageIndex = val;
this.getList();
},
getList() {
this.loading = true;
this.apipost(
"sellcommission_GetDxCommissionRuleList",
this.msg,
res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.DataList = res.data.data.pageData;
this.total = res.data.data.count;
}
},
};
err => {}
);
},
created() {
this.getList()
this.getTeamList()
this.getLineList()
//获取线路列表
getLineList() {
this.apipost(
"line_post_GetAllList", {},
res => {
if (res.data.resultCode == 1) {
this.LineList = res.data.data;
}
}
);
},
methods: {
handleCurrentChange(val) {
//翻页功能按钮
this.msg.pageIndex = val;
this.getList();
},
getList() {
this.loading = true;
this.apipost(
"sellcommission_GetDxCommissionRuleList",
this.msg,
res => {
this.loading = false;
if (res.data.resultCode == 1) {
this.DataList = res.data.data.pageData;
this.total = res.data.data.count;
}
},
err => {}
);
},
//获取线路列表
getLineList() {
this.apipost(
"line_post_GetAllList", {},
res => {
if (res.data.resultCode == 1) {
this.LineList = res.data.data;
}
getTeamList() { //获取团队类型的列表
this.apipost("travel_get_GetTravelPriceTeamTypeList", {}, res => {
if (res.data.resultCode == 1) {
this.TeamListArr = res.data.data;
this.TeamListArr.forEach(x => {
x.disabled = false
})
} else {
this.Error(res.data.message);
}
);
},
getTeamList() { //获取团队类型的列表
this.apipost("travel_get_GetTravelPriceTeamTypeList", {}, res => {
},
err => {}
);
},
getEdit(row) { //修改规则
let data = JSON.parse(JSON.stringify(row))
this.addMsg = Object.assign({}, addobj)
this.addMsg.Id = data.Id;
this.addMsg.RuleName = data.RuleName;
this.addMsg.LineIds = data.LineIds.split(',').map(Number);
this.addMsg.SellRate = data.SellRate;
this.addMsg.OPRate = data.OPRate;
this.addMsg.AuditEmpId = data.AuditEmpId;
this.ruleVisible = true;
this.remoteMethod(data.AuditEmpName)
},
DeleteRules(ID) { //删除规则
this.$confirm(this.$t('tips.shifoushanchu'), this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: "warning"
})
.then(() => {
this.apipost('sellcommission_DelDxCommissionRule', {
RuleId: ID
}, res => {
if (res.data.resultCode == 1) {
this.TeamListArr = res.data.data;
this.TeamListArr.forEach(x => {
x.disabled = false
})
this.Success(res.data.message)
this.getList()
} else {
this.Error(res.data.message);
this.Error(res.data.message)
}
},
err => {}
);
},
getEdit(row) { //修改规则
let data = JSON.parse(JSON.stringify(row))
this.addMsg = Object.assign({}, addobj)
this.addMsg.Id = data.Id;
this.addMsg.RuleName = data.RuleName;
this.addMsg.LineIds = data.LineIds.split(',').map(Number);
this.addMsg.SellRate = data.SellRate;
this.addMsg.OPRate = data.OPRate;
this.addMsg.AuditEmpId = data.AuditEmpId;
this.ruleVisible = true;
this.remoteMethod(data.AuditEmpName)
},
DeleteRules(ID) { //删除规则
this.$confirm(this.$t('tips.shifoushanchu'), this.$t('tips.tips'), {
confirmButtonText: this.$t('pub.sureBtn'),
cancelButtonText: this.$t('pub.cancelBtn'),
type: "warning"
})
.then(() => {
this.apipost('sellcommission_DelDxCommissionRule', {
RuleId: ID
}, res => {
})
.catch(() => {});
},
resetForm(formName) {
this.$refs[formName].resetFields();
},
addNew() { //新增
this.addMsg = {
Id: 0,
RuleName: '',
LineIds: [],
SellRate: '',
OPRate: '',
AuditEmpId: ''
}
this.ruleVisible = true;
this.resetForm('addMsg')
},
RulesOk(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
let LineIds = JSON.parse(JSON.stringify(this.addMsg.LineIds))
this.addMsg.LineIds = this.addMsg.LineIds.join(',')
this.apipost(
'sellcommission_SetDxCommissionRule', this.addMsg,
res => {
if (res.data.resultCode == 1) {
this.getList();
this.ruleVisible = false;
this.Success(res.data.message)
this.getList()
} else {
this.Error(res.data.message)
}
})
})
.catch(() => {});
},
resetForm(formName) {
this.$refs[formName].resetFields();
},
addNew() { //新增
this.addMsg = {
Id: 0,
RuleName: '',
LineIds: [],
SellRate: '',
OPRate: '',
AuditEmpId: ''
},
err => {}
)
}
this.ruleVisible = true;
this.resetForm('addMsg')
},
RulesOk(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {
let LineIds = JSON.parse(JSON.stringify(this.addMsg.LineIds))
this.addMsg.LineIds = this.addMsg.LineIds.join(',')
this.apipost(
'sellcommission_SetDxCommissionRule', this.addMsg,
res => {
if (res.data.resultCode == 1) {
this.getList();
this.ruleVisible = false;
this.Success(res.data.message)
} else {
this.Error(res.data.message)
}
},
err => {}
)
}
});
},
remoteMethod(query) { // 审核人模糊查询
if (query !== '') {
this.apipost("admin_Get_Chat_All_SelectEmpName",{ EmName:query },res => {
if (res.data.resultCode == 1) {
this.searchList = res.data.data;
}
},err => {});
} else {
this.searchList = [];
}
},
getpersonnel(){
for(let i = 0;i<this.searchList.length;i++){
// let x = this.searchList[i]
// if(x.empId == this.addMsg.AuditEmpId){
// this.addMsg.TempTypeList[y].Name = x.name;
// break
// }
});
},
remoteMethod(query) { // 审核人模糊查询
if (query !== '') {
this.apipost("admin_Get_Chat_All_SelectEmpName", {
EmName: query
}, res => {
if (res.data.resultCode == 1) {
this.searchList = res.data.data;
}
}
}, err => {});
} else {
this.searchList = [];
}
},
mounted() {
getpersonnel() {
for (let i = 0; i < this.searchList.length; i++) {
// let x = this.searchList[i]
// if(x.empId == this.addMsg.AuditEmpId){
// this.addMsg.TempTypeList[y].Name = x.name;
// break
// }
}
}
};
</script>
<style scoped>
/* .rule-box .el-select__tags{
},
mounted() {
}
};
</script>
<style scoped>
/* .rule-box .el-select__tags{
top: 100%;
} */
.domesticCommissionRule .query-box input {
height: 34px !important;
}
.tdOne{
border-bottom: 1px solid #eeeeee;
line-height: 25px;
}
.tdTwo{
line-height: 25px;
}
.domesticCommissionRule .query-box input {
height: 34px !important;
}
.tdOne {
border-bottom: 1px solid #eeeeee;
line-height: 25px;
}
.tdTwo {
line-height: 25px;
}
</style>
</style>
......@@ -233,6 +233,7 @@
</div>
</div>
<el-dialog :title="commonTitle" :visible.sync="isShowDialog" width="1000px">
{{currentEditItem}}
<!--视频-->
<plugvideodialog v-if="currentEditItem.Id=='white_label_video'" :plugData="currentEditItemData"></plugvideodialog>
<!--轮播图-->
......
......@@ -19,7 +19,6 @@
<el-input v-model='msg.CategoryName' class="permiss-input" :placeholder="$t('fnc.qsrneirong')"></el-input>
</span>
</li>
<li>
<span><em>{{$t('objFill.cengji')}}</em>
<el-select v-model="msg.Level" :placeholder="$t('pub.pleaseSel')">
......@@ -43,12 +42,11 @@
<input type="button" class="hollowFixedBtn" name="" id="" :value="$t('pub.searchBtn')"
@click="resetPageIndex(),getList()" />
<input type="button"
@click="outerVisible = true,dialogTitle=$t('objFill.v101.xinzengfl'),clearMessage(),getLineList(),getAllAreaTreeList(0),getLineTeamList();"
@click="outerVisible = true,dialogTitle=$t('objFill.v101.xinzengfl'),clearMessage() ,getAllAreaTreeList(0),getLineTeamList();"
class="normalBtn" :value="$t('pub.addBtn')" />
</li>
</ul>
</div>
<el-table :data="DataList" style="width:100%" v-loading='loading'>
<el-table-column fixed :label="$t('ground.fenleimc')">
<template slot-scope="scope">
......@@ -85,23 +83,21 @@
<template slot-scope="scope">
<template v-if="scope.row.AreaList&&scope.row.AreaList.length>0">
<div>
<span v-for="(file,fIndex) in scope.row.AreaList">
<span v-for="(file,fIndex) in scope.row.AreaList" :key="`d_`+scope.row.Id+`_a_`+fIndex">
{{file.Name}}{{(fIndex== (scope.row.AreaList.length-1)&&scope.row.AreaList.length>1)?"":","}}
</span>
</div>
</template>
<template v-if="scope.row.LineList&&scope.row.LineList.length>0">
<div>
<span v-for="(file,fIndex) in scope.row.LineList">
<span v-for="(file,fIndex) in scope.row.LineList" :key="`d_`+scope.row.Id+`_l_`+fIndex">
{{file.Name}}{{(fIndex== (scope.row.LineList.length-1)&&scope.row.LineList.length>1)?"":","}}
</span>
</div>
</template>
<template v-if="scope.row.SeriesList&&scope.row.SeriesList.length>0">
<div>
<span v-for="(file,fIndex) in scope.row.SeriesList">
<span v-for="(file,fIndex) in scope.row.SeriesList" :key="`d_`+scope.row.Id+`_s_`+fIndex">
{{file.Name}}{{(fIndex== (scope.row.SeriesList.length-1)&&scope.row.SeriesList.length>1)?"":","}}
</span>
</div>
......@@ -116,7 +112,6 @@
</el-table-column>
<el-table-column fixed :label="$t('objFill.v101.activity.col6.t8')">
<template slot-scope="scope">
<!-- style="width: 100px; height: 100px" -->
<el-image class="icon" :src="scope.row.Icon" :preview-src-list="[scope.row.Icon]"> </el-image>
</template>
</el-table-column>
......@@ -124,7 +119,6 @@
<template slot-scope="scope">
<el-image class="icon" :src="scope.row.BackgroundImage" :preview-src-list="[scope.row.BackgroundImage]">
</el-image>
</template>
</el-table-column>
<el-table-column fixed :label="$t('admin.admin_status')">
......@@ -149,11 +143,11 @@
</el-table>
<el-pagination background @current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size=msg.pageSize :total='total'>
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total='total'>
</el-pagination>
<el-dialog :title="dialogTitle" :visible.sync="outerVisible" center width="1000px"
:before-close="closeChangeMachie">
:before-close="closeChangeMachie" append-to-body>
<el-form :model="addMsg" :rules="rules" ref="addMsg" label-width="120px">
<el-row>
<el-col :span="12">
......@@ -216,7 +210,7 @@
<template v-if="addMsg.Level==1">
<el-form-item :label="$t('system.table_ssLine')">
<el-select :disabled="addMsg.IsLock === 1" v-model="addMsg.LineIdList" multiple collapse-tags
:placeholder="$t('pub.pleaseSel')">
:placeholder="$t('pub.pleaseSel')" filterable>
<el-option :label="$t('pub.unlimitedSel')" :value="queryCommonData.SelectDefaultValue"></el-option>
<el-option v-for="item in queryCommonData.LineList" :label="item.LineName" :value="item.LineID"
:key="item.LineID"></el-option>
......@@ -226,8 +220,8 @@
<template v-else>
<el-form-item :label="$t('active.ad_xlmc')">
<el-select :disabled="addMsg.IsLock === 1" v-model="addMsg.SeriesIdList" multiple collapse-tags
:placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" :value=queryCommonData.SelectDefaultValue></el-option>
:placeholder="$t('pub.pleaseSel')" filterable>
<el-option :label="$t('pub.unlimitedSel')" :value="queryCommonData.SelectDefaultValue"></el-option>
<el-option v-for="item in queryCommonData.LineTeamList" :label="item.LtName" :value="item.LtID"
:key="item.LtID"></el-option>
</el-select>
......@@ -248,7 +242,6 @@
</template>
</el-col>
</el-row>
<el-row>
<el-col :span="12">
<el-form-item :label="$t('objFill.v101.activity.col6.t8')">
......@@ -261,15 +254,12 @@
</el-form-item>
</el-col>
</el-row>
</el-form>
<div slot="footer" class="dialog-footer">
<button class="normalBtn" type="primary" @click="submitForm('addMsg')">{{$t('pub.saveBtn')}}</button> &nbsp;
<button class="hollowFixedBtn" @click="outerVisible = false">{{$t('pub.cancelBtn')}}</button>
</div>
</el-dialog>
</div>
</template>
......@@ -329,6 +319,7 @@
LineIdList: [],
SeriesIdList: [],
IsSelfGuidedTour: 0,
LinkUrl:"",//页面地址
},
rules: {
CategoryName: [{
......@@ -345,6 +336,7 @@
}
},
mounted() {
this.getLineList();
this.getList();
},
methods: {
......@@ -373,12 +365,8 @@
this.chooseCategroyArray = arr;
this.showCategoryName = arrLabel;
},
getLineList() { //获取线路列表
this.apipost(
"line_post_GetList", {
LineDirection: 2
},
this.apipost("line_post_GetAllList", {},
res => {
if (res.data.resultCode == 1) {
this.queryCommonData.LineList = res.data.data;
......@@ -457,7 +445,6 @@
this.addMsg.AreaIdList = [];
} else {
this.getCateGoryList();
}
},
changeSelfGuidedTour() {
......@@ -476,7 +463,6 @@
lineIds = this.cateGoryList[index].LineIds;
}
this.getLineTeamList(lineIds);
}
},
getCateGoryList() {
......@@ -500,7 +486,6 @@
this.$message.error(this.$t('objFill.v101.qingxzfujifl'));
return
}
let params = {
...this.addMsg
}
......@@ -519,9 +504,7 @@
})
}
params.AreaIds = tempCategory.substring(0, tempCategory.lastIndexOf(','));
// if(params.AreaList&&params.AreaList.length>0){
// params.AreaIds=params.AreaList.toString();
// }
this.apipost('ws_post_SetCategory', params, res => {
if (res.data.resultCode == 1) {
this.outerVisible = false;
......@@ -536,7 +519,6 @@
updateData({
Id
}) { //修改
this.getLineList();
this.apipost('ws_post_GetCategory', {
Id
......@@ -607,7 +589,6 @@
.ImageList.length > 0) {
this.$refs.BackgroundImage.ImageList = []
}
//this.$refs.tree.setCheckedKeys([]);
},
resetPageIndex() {
this.msg.pageIndex = 1
......@@ -630,7 +611,6 @@
this.$refs[formName].resetFields();
}
}
}
</script>
......@@ -300,6 +300,9 @@
if (chooseMenuObj) {
this.clickItem.SubName = chooseMenuObj.MenuName;
this.clickItem.LinkUrl = chooseMenuObj.MenuUrl;
if (chooseMenuObj.ImgUrl && chooseMenuObj.ImgUrl != '') {
this.clickItem.FileUrl = chooseMenuObj.ImgUrl;
}
}
this.$refs.chooseMenu.initMenuCheck();
},
......
......@@ -309,6 +309,9 @@
if (chooseMenuObj) {
this.clickItem.SubName = chooseMenuObj.MenuName;
this.clickItem.LinkUrl = chooseMenuObj.MenuUrl;
if (chooseMenuObj.ImgUrl && chooseMenuObj.ImgUrl != '') {
this.clickItem.FileUrl = chooseMenuObj.ImgUrl;
}
}
this.$refs.chooseMenu.initMenuCheck();
},
......
<style scoped>
.groupTourOrder_count{
.groupTourOrder_count {
display: flex;
flex-wrap: wrap;
}
.groupTourOrder_count>div{
.groupTourOrder_count>div {
margin-right: 20px;
}
.groupTourOrder_count>div:last-child{
.groupTourOrder_count>div:last-child {
margin-right: 0;
}
.groupTourOrder_count_item{
.groupTourOrder_count_item {
max-width: 500px;
}
.groupTourOrder_count_item>p>span{
.groupTourOrder_count_item>p>span {
margin: 0;
}
.color_red_order{
.color_red_order {
color: red;
}
.HT_total{
.HT_total {
display: flex;
flex-direction: column;
margin: 5px 0;
}
.HT_total p{
.HT_total p {
width: 100%;
display: block;
}
.HT_total p>span{
.HT_total p>span {
float: left;
display: inline-block;
/* width: 25%; */
margin-right: 20px;
}
.HT_total p>span:last-child{
.HT_total p>span:last-child {
margin-right: 0;
}
.TC_leftSearch>div{
padding: 5px 0;
}
.groupTourOrderByTuan_ico{
margin-left: 5px;
}
.groupTourOrderByTuan_ico>i{
display: inline-block;
margin: 0 5px 0 0;
width: 8px;
height: 8px;
border-radius: 2px;
vertical-align: middle;
}
.HotelWorkList .has-gutter tr th,
.el-table th.is-leaf {
background-color: #EAEAEA !important;
}
.HotelWorkList .HW_hotelDialog {
width: 900px;
}
.TC_leftSearch>div {
padding: 5px 0;
}
.HotelWorkList .Hw_tableOne {
width: 100%;
height: 40px;
background-color: #EAEAEA;
}
.groupTourOrderByTuan_ico {
margin-left: 5px;
}
.HotelWorkList .Hw_tableOne th {
text-align: center;
}
.groupTourOrderByTuan_ico>i {
display: inline-block;
margin: 0 5px 0 0;
width: 8px;
height: 8px;
border-radius: 2px;
vertical-align: middle;
}
.HotelWorkList .HotelWorkInput .el-input {
width: 223px;
}
.HotelWorkList .has-gutter tr th,
.el-table th.is-leaf {
background-color: #EAEAEA !important;
}
.HotelWorkList .HworkInput .el-input {
width: 210px;
}
/deep/.query-box li span>em{
min-width: 60px;
}
.HotelWorkList .HW_hotelDialog {
width: 900px;
}
.HotelWorkList .Hw_tableOne {
width: 100%;
height: 40px;
background-color: #EAEAEA;
}
.HotelWorkList .Hw_tableOne th {
text-align: center;
}
.HotelWorkList .HotelWorkInput .el-input {
width: 223px;
}
</style>
<template>
<div class="HotelWorkList">
<div class="query-box HotelWorkInput" style="border-bottom: none;">
<ul>
<li v-if="Title=='审核'">
<span>
<em>{{$t('fnc.shzhuangtai')}}</em>
<el-select v-model='msg2.TicketStatus' class="w200" @change="msg2.papageIndex==1,GetList()">
<!-- <el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option> -->
<el-option v-for='item in TicketStatusList2'
:label='item.Name'
:value='item.Id'
:key='item.Id'>
</el-option>
</el-select>
</span>
</li>
<li v-if="Title=='查看'">
<span>
<em>{{$t('fnc.shzhuangtai')}}</em>
<el-select v-model='msg2.TicketStatus' class="w200" @change="msg2.papageIndex==1,GetList()">
<!-- <el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option> -->
<el-option v-for='item in TicketStatusList3'
:label='item.Name'
:value='item.Id'
:key='item.Id'>
</el-option>
</el-select>
</span>
</li>
<li v-if="Title=='申请'">
<span>
<em>{{$t('salesModule.ApplyStatus')}}</em>
<el-select v-model='msg.TicketStatus' class="w200">
<!-- <el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option> -->
<el-option v-for='item in TicketStatusList'
:label='item.Name'
:value='item.Id'
:key='item.Id'>
</el-option>
</el-select>
</span>
</li>
<li v-if="Title!='申请'&&Title!='审核'&&Title!='查看'">
<span><em>{{$t('MarketingActi.commName')}}</em>
<el-input clearable type="" v-model="msg.ProductName" :placeholder="$t('ground.qingsrspmc')" class="w200"/>
</span>
</li>
<li v-if="Title!='申请'&&Title!='审核'&&Title!='查看'">
<span><em>{{$t('objFill.orderid')}}</em>
<el-input clearable type="Number" @keyup.native="checkInteger(msg2,'OrderId')" v-model="msg.OrderId" :placeholder="$t('objFill.v101.myOrdersAllType.qingsrddid')" class="w200"/>
</span>
</li>
<li v-if="Title=='审核'">
<span><em>{{$t('objFill.orderid')}}</em>
<el-input clearable type="Number" @keyup.native="checkInteger(msg2,'OrderId')" v-model="msg2.OrderId" :placeholder="$t('objFill.v101.myOrdersAllType.qingsrddid')" class="w200"/>
</span>
</li>
<li v-if="Title!='申请'&&Title!='审核'&&Title!='查看'">
<span><em>{{$t('visa.v_tuanhao')}}</em>
<el-input clearable type="" v-model="msg.TCNUM" :placeholder="$t('visa.v_shurutuanhao')" class="w200"/>
</span>
</li>
<template v-if="Title=='审核'||Title=='查看'">
<li>
<span>
<em>{{$t('sm.company')}}</em>
<el-select filterable v-model='msg2.RB_Branch_Id' class="w200">
<el-option value="-1" :label="$t('pub.unlimitedSel')"></el-option>
<el-option
v-for="item in companyList"
:label='item.BName'
:value='item.Id'
:key='item.Id'
></el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>{{$t('visa.v_yewuyuan')}}</em>
<el-select filterable v-model='msg2.EnterId' class="w200">
<el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in EmployeeList'
:label='item.EmName'
:value='item.EmployeeId'
:key='item.EmployeeId'>
</el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>{{$t('Airticket.Air_StartTime')}}</em>
<!-- <el-date-picker
.HotelWorkList .HworkInput .el-input {
width: 210px;
}
/deep/.query-box li span>em {
min-width: 60px;
}
</style>
<template>
<div class="HotelWorkList">
<div class="query-box HotelWorkInput" style="border-bottom: none;">
<ul>
<li v-if="Title=='审核'">
<span>
<em>{{$t('fnc.shzhuangtai')}}</em>
<el-select v-model='msg2.TicketStatus' class="w200" @change="msg2.papageIndex==1,GetList()">
<!-- <el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option> -->
<el-option v-for='item in TicketStatusList2' :label='item.Name' :value='item.Id' :key='item.Id'>
</el-option>
</el-select>
</span>
</li>
<li v-if="Title=='查看'">
<span>
<em>{{$t('fnc.shzhuangtai')}}</em>
<el-select v-model='msg2.TicketStatus' class="w200" @change="msg2.papageIndex==1,GetList()">
<!-- <el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option> -->
<el-option v-for='item in TicketStatusList3' :label='item.Name' :value='item.Id' :key='item.Id'>
</el-option>
</el-select>
</span>
</li>
<li v-if="Title=='申请'">
<span>
<em>{{$t('salesModule.ApplyStatus')}}</em>
<el-select v-model='msg.TicketStatus' class="w200">
<!-- <el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option> -->
<el-option v-for='item in TicketStatusList' :label='item.Name' :value='item.Id' :key='item.Id'>
</el-option>
</el-select>
</span>
</li>
<li v-if="Title!='申请'&&Title!='审核'&&Title!='查看'">
<span><em>{{$t('MarketingActi.commName')}}</em>
<el-input clearable type="" v-model="msg.ProductName" :placeholder="$t('ground.qingsrspmc')" class="w200" />
</span>
</li>
<li v-if="Title!='申请'&&Title!='审核'&&Title!='查看'">
<span><em>{{$t('objFill.orderid')}}</em>
<el-input clearable type="Number" @keyup.native="checkInteger(msg2,'OrderId')" v-model="msg.OrderId"
:placeholder="$t('objFill.v101.myOrdersAllType.qingsrddid')" class="w200" />
</span>
</li>
<li v-if="Title=='审核'">
<span><em>{{$t('objFill.orderid')}}</em>
<el-input clearable type="Number" @keyup.native="checkInteger(msg2,'OrderId')" v-model="msg2.OrderId"
:placeholder="$t('objFill.v101.myOrdersAllType.qingsrddid')" class="w200" />
</span>
</li>
<li v-if="Title!='申请'&&Title!='审核'&&Title!='查看'">
<span><em>{{$t('visa.v_tuanhao')}}</em>
<el-input clearable type="" v-model="msg.TCNUM" :placeholder="$t('visa.v_shurutuanhao')" class="w200" />
</span>
</li>
<template v-if="Title=='审核'||Title=='查看'">
<li>
<span>
<em>{{$t('sm.company')}}</em>
<el-select filterable v-model='msg2.RB_Branch_Id' class="w200">
<el-option value="-1" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for="item in companyList" :label='item.BName' :value='item.Id' :key='item.Id'></el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>{{$t('visa.v_yewuyuan')}}</em>
<el-select filterable v-model='msg2.EnterId' class="w200">
<el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in EmployeeList' :label='item.EmName' :value='item.EmployeeId'
:key='item.EmployeeId'>
</el-option>
</el-select>
</span>
</li>
<li>
<span>
<em>{{$t('Airticket.Air_StartTime')}}</em>
<!-- <el-date-picker
style="height: 34px;"
value-format="yyyy-MM-dd"
v-model="DatelistUse"
......@@ -186,77 +186,69 @@
:start-placeholder="$t('OrderList.star')"
:end-placeholder="$t('OrderList.end')" @change="getDatesUse">
</el-date-picker> -->
<StartDateLimit :clearable="false" :dateTime="DatelistUse" @change="(startDate,endDate)=>{DatelistUse=[startDate,endDate],getDatesUse()}" style="width: 210px;"></StartDateLimit>
</span>
</li>
</template>
<li v-if="Title=='OP'">
<span>
<em>{{$t('visa.v_yewuyuan')}}</em>
<el-select filterable v-model='msg.EnterId' class="w200" clearable>
<el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in EmployeeList'
:label='item.EmName'
:value='item.EmployeeId'
:key='item.EmployeeId'>
</el-option>
</el-select>
</span>
</li>
<li v-if="Title!='销售'&&Title!='申请'&&Title!='审核'&&Title!='查看'">
<span>
<em>{{$t('objFill.yinliuren')}}</em>
<el-select filterable v-model='msg.LureEmpId' class="w200" clearable>
<el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in EmployeeList'
:label='item.EmName'
:value='item.EmployeeId'
:key='item.EmployeeId'>
</el-option>
</el-select>
</span>
</li>
<li v-if="Title!='审核'&&Title!='查看'">
<span>
<em>{{$t('active.cl_orderType')}}</em>
<el-select v-model="msg.OrderType" class="w200 HworkInput">
<el-option v-for="item in OrderTypeList" :key="item.Id" :label="item.Name" :value="item.Id"></el-option>
</el-select>
</span>
</li>
<li v-if="Title!='申请'&&Title!='审核'&&Title!='查看'">
<span>
<em>{{$t('hotel.hotel_OrderStates')}}</em>
<el-select v-model='msg.OrderState' class="w200">
<!-- <el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option> -->
<el-option v-for='item in OrderStatusList'
:label='item.Name'
:value='item.Id'
:key='item.Id'>
</el-option>
</el-select>
</span>
</li>
<li v-if="Title!='申请'&&Title!='审核'&&Title!='查看'">
<span>
<em>{{$t('salesModule.PaymentStatus')}}</em>
<el-select v-model='msg.Q_IsCollect' class="w200">
<el-option v-for='item in QIsCollectList'
:label='item.Name'
:value='item.Id'
:key='item.Id'>
</el-option>
</el-select>
</span>
</li>
<li v-if="Title!='申请'&&Title!='审核'&&Title!='查看'">
<span>
<em>{{$t('objFill.baomingshijian')}}</em>
<!-- <el-date-picker
<StartDateLimit :clearable="false" :dateTime="DatelistUse"
@change="(startDate,endDate)=>{DatelistUse=[startDate,endDate],getDatesUse()}" style="width: 210px;">
</StartDateLimit>
</span>
</li>
</template>
<li v-if="Title=='OP'">
<span>
<em>{{$t('visa.v_yewuyuan')}}</em>
<el-select filterable v-model='msg.EnterId' class="w200" clearable>
<el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in EmployeeList' :label='item.EmName' :value='item.EmployeeId'
:key='item.EmployeeId'>
</el-option>
</el-select>
</span>
</li>
<li v-if="Title!='销售'&&Title!='申请'&&Title!='审核'&&Title!='查看'">
<span>
<em>{{$t('objFill.yinliuren')}}</em>
<el-select filterable v-model='msg.LureEmpId' class="w200" clearable>
<el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in EmployeeList' :label='item.EmName' :value='item.EmployeeId'
:key='item.EmployeeId'>
</el-option>
</el-select>
</span>
</li>
<li v-if="Title!='审核'&&Title!='查看'">
<span>
<em>{{$t('active.cl_orderType')}}</em>
<el-select v-model="msg.OrderType" class="w200 HworkInput">
<el-option v-for="item in OrderTypeList" :key="item.Id" :label="item.Name" :value="item.Id"></el-option>
</el-select>
</span>
</li>
<li v-if="Title!='申请'&&Title!='审核'&&Title!='查看'">
<span>
<em>{{$t('hotel.hotel_OrderStates')}}</em>
<el-select v-model='msg.OrderState' class="w200">
<!-- <el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option> -->
<el-option v-for='item in OrderStatusList' :label='item.Name' :value='item.Id' :key='item.Id'>
</el-option>
</el-select>
</span>
</li>
<li v-if="Title!='申请'&&Title!='审核'&&Title!='查看'">
<span>
<em>{{$t('salesModule.PaymentStatus')}}</em>
<el-select v-model='msg.Q_IsCollect' class="w200">
<el-option v-for='item in QIsCollectList' :label='item.Name' :value='item.Id' :key='item.Id'>
</el-option>
</el-select>
</span>
</li>
<li v-if="Title!='申请'&&Title!='审核'&&Title!='查看'">
<span>
<em>{{$t('objFill.baomingshijian')}}</em>
<!-- <el-date-picker
style="height: 34px;"
value-format="yyyy-MM-dd"
v-model="DatelistBM"
......@@ -265,13 +257,14 @@
:start-placeholder="$t('OrderList.star')"
:end-placeholder="$t('OrderList.end')" @change="getDatesBM">
</el-date-picker> -->
<StartDateLimit :clearable="false" :dateTime="DatelistBM" @change="(startDate,endDate)=>{msg.StartTime=startDate,msg.EndTime=endDate}"></StartDateLimit>
</span>
</li>
<li v-if="Title=='申请'">
<span>
<em>{{$t('Airticket.Air_StartTime')}}</em>
<!-- <el-date-picker
<StartDateLimit :clearable="false" :dateTime="DatelistBM"
@change="(startDate,endDate)=>{msg.StartTime=startDate,msg.EndTime=endDate}"></StartDateLimit>
</span>
</li>
<li v-if="Title=='申请'">
<span>
<em>{{$t('Airticket.Air_StartTime')}}</em>
<!-- <el-date-picker
style="height: 34px;"
value-format="yyyy-MM-dd"
v-model="DatelistUse"
......@@ -280,34 +273,32 @@
:start-placeholder="$t('OrderList.star')"
:end-placeholder="$t('OrderList.end')" @change="getDatesUse">
</el-date-picker> -->
<StartDateLimit :clearable="false" :dateTime="DatelistUse" @change="(startDate,endDate)=>{DatelistUse=[startDate,endDate],getDatesUse()}"></StartDateLimit>
</span>
</li>
<li style="line-height: 30px; padding-left: 30px;" v-if="Title!='申请'&&Title!='审核'&&Title!='查看'">
<el-popover width="350" trigger="click">
<div class="groupSuperSearchLayer">
<p style="padding-bottom: 10px;">{{$t('objFill.v101.myOrdersAllType.dindgjcx')}}</p>
</div>
<table class="groupSuperSearchLayerTable" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding: 5px 0">
<span style="width: 100px;display: inline-block;">{{$t('advmanager.v_line')}}</span>
<el-select v-model='msg.LineId' style="width: 210px;">
<el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in LineList'
:label='item.LineName'
:value='item.LineID'
:key='item.LineID'>
</el-option>
</el-select>
</td>
</tr>
<tr>
<td style="padding: 5px 0">
<span style="width: 100px;display: inline-block;">{{$t('hotel.hotel_StarDate')}}</span>
<!-- <el-date-picker
<StartDateLimit :clearable="false" :dateTime="DatelistUse"
@change="(startDate,endDate)=>{DatelistUse=[startDate,endDate],getDatesUse()}"></StartDateLimit>
</span>
</li>
<li style="line-height: 30px; padding-left: 30px;" v-if="Title!='申请'&&Title!='审核'&&Title!='查看'">
<el-popover width="350" trigger="click">
<div class="groupSuperSearchLayer">
<p style="padding-bottom: 10px;">{{$t('objFill.v101.myOrdersAllType.dindgjcx')}}</p>
</div>
<table class="groupSuperSearchLayerTable" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="padding: 5px 0">
<span style="width: 100px;display: inline-block;">{{$t('advmanager.v_line')}}</span>
<el-select v-model='msg.LineId' style="width: 210px;">
<el-option :value="0" :label="$t('pub.unlimitedSel')"></el-option>
<el-option v-for='item in LineList' :label='item.LineName' :value='item.LineID' :key='item.LineID'>
</el-option>
</el-select>
</td>
</tr>
<tr>
<td style="padding: 5px 0">
<span style="width: 100px;display: inline-block;">{{$t('hotel.hotel_StarDate')}}</span>
<!-- <el-date-picker
style="height: 34px;width: 210px;"
value-format="yyyy-MM-dd"
v-model="DatelistUse"
......@@ -316,14 +307,16 @@
:start-placeholder="$t('OrderList.star')"
:end-placeholder="$t('OrderList.end')" @change="getDatesUse">
</el-date-picker> -->
<StartDateLimit :clearable="false" :dateTime="DatelistUse" @change="(startDate,endDate)=>{DatelistUse=[startDate,endDate],getDatesUse()}" style="width: 210px;"></StartDateLimit>
</td>
</tr>
<tr>
<td style="padding: 5px 0">
<span style="width: 100px;display: inline-block;">{{$t('objFill.wanjierq')}}</span>
<!-- <el-date-picker
<StartDateLimit :clearable="false" :dateTime="DatelistUse"
@change="(startDate,endDate)=>{DatelistUse=[startDate,endDate],getDatesUse()}"
style="width: 210px;"></StartDateLimit>
</td>
</tr>
<tr>
<td style="padding: 5px 0">
<span style="width: 100px;display: inline-block;">{{$t('objFill.wanjierq')}}</span>
<!-- <el-date-picker
style="height: 34px;width: 210px;"
value-format="yyyy-MM-dd"
v-model="Datelist"
......@@ -332,324 +325,402 @@
:start-placeholder="$t('OrderList.star')"
:end-placeholder="$t('OrderList.end')" @change="getDates">
</el-date-picker> -->
<StartDateLimit :clearable="false" :dateTime="Datelist" @change="(startDate,endDate)=>{Datelist=[startDate,endDate],getDates()}" style="width: 210px;"></StartDateLimit>
</td>
</tr>
<tr>
<td style="padding: 5px 0">
<span style="width: 100px;display: inline-block;">{{$t('objFill.tichenglx')}}</span>
<el-select v-model='msg.CommissionType' style="width: 210px;">
<el-option v-for='item in CommissionTypeList'
:label='item.Name'
:value='item.Id'
:key='item.Id'>
</el-option>
</el-select>
</td>
</tr>
<tr>
<td colspan="4">
<input type="button" class="normalBtn" :value="$t('pub.searchBtn')"
@click="msg.pageIndex=1,currentPage=1,GetList();showWarningSearch=false" style="width: 310px!important;" />
</td>
</tr>
</table>
<span slot="reference" style="cursor: pointer;">{{$t('visa.v_gjchaxun')}}<i
class="el-icon-caret-bottom"></i></span>
</el-popover>
</li>
<li>
<StartDateLimit :clearable="false" :dateTime="Datelist"
@change="(startDate,endDate)=>{Datelist=[startDate,endDate],getDates()}" style="width: 210px;">
</StartDateLimit>
</td>
</tr>
<tr>
<td style="padding: 5px 0">
<span style="width: 100px;display: inline-block;">{{$t('objFill.tichenglx')}}</span>
<el-select v-model='msg.CommissionType' style="width: 210px;">
<el-option v-for='item in CommissionTypeList' :label='item.Name' :value='item.Id' :key='item.Id'>
</el-option>
</el-select>
</td>
</tr>
<tr>
<td colspan="4">
<input type="button" class="normalBtn" :value="$t('pub.searchBtn')"
@click.stop="search" />
<input v-if="pagesTitle=='销售'||pagesTitle=='OP'" type="button" class="hollowFixedBtn" :value="$t('visa.v_daochu')" @click="exportExcel">
</li>
</ul>
<span v-if="Title=='申请'" style="font-size:12px; color:red;padding:15px 0px 0px 0px;display:inline-block;">{{$t('objFill.v101.myOrdersAllType.zaicilbjzwp')}}</span>
</div>
<!-- 统计版块 -->
<div class="groupTourOrder_count" v-if="pagesTitle=='销售'||pagesTitle=='OP'">
<div class="groupTourOrder_count_item HT_total" v-for="(item,index) in SummaryList">
<div>
<span>{{item.CurrencyName}}</span>
</div>
<p>
<!-- groupTourOrder_count_green -->
<span>{{$t('fnc.yingshou')}}:
{{item.Money.toFixed(2)}}
</span>
<span>{{$t('fnc.shishou')}}:
{{item.Income.toFixed(2)}}
</span>
<span>{{$t('fnc.tuikuan')}}:
{{item.Refund.toFixed(2)}}
</span>
<span>{{$t('fnc.shouxufei')}}:
{{item.PlatformTax.toFixed(2)}}
</span>
<span>{{$t('objFill.yingshouxf')}}:
{{item.PreferTipAmount.toFixed(2)}}
</span>
<span>{{$t('objFill.shishouxf')}}:
{{item.IncomeTipAmount.toFixed(2)}}
</span>
<span>{{$t('hotel.hotel_cost')}}:
{{item.CostMoney.toFixed(2)}}
</span>
<span>{{$t('op.Tocollected')}}:
<span :style="{'color': item.DueInMoney>0?'red':''}">{{item.DueInMoney.toFixed(2)}}</span>
</span>
<span>{{$t('objFill.yuqilirun')}}:
<span :style="{'color': item.OrderProfit>0?'red':''}">{{item.OrderProfit.toFixed(2)}}</span>
</span>
<span>{{$t('objFill.yuqixiaose')}}:
{{item.OrderSalesMoney.toFixed(2)}}
</span>
<span>{{$t('objFill.baomingshu')}}:
<span style="color:#3a7cf7">{{item.GuestNum}}{{$t('hotel.hotel_people')}}</span>
</span>
</p>
</div>
</div>
<OrderList :pagesTitle="Title" :OrderList="OrderList"
:msgObj="msg"
:changePriceOuterVisible="changePriceOuterVisible"
v-loading="loading"
@success="msg.pageIndex=1,msg2.pageIndex=1,GetList()"> </OrderList>
<div v-if="OrderList&&OrderList.length==0" style="text-align: center;padding: 100px;">{{$t('system.content_noData')}}</div>
<el-pagination v-if="OrderList&&OrderList.length>0&&pagesTitle!='审核'&&pagesTitle!='查看'" background
@current-change="handleCurrentChange" :current-page.sync="currentPage"
layout="total,prev, pager, next, jumper" :page-size="msg.pageSize" :total="total">
</el-pagination>
<el-pagination v-if="OrderList&&OrderList.length>0&&(pagesTitle=='审核'||pagesTitle=='查看')" background
@current-change="handleCurrentChange2" :current-page.sync="currentPage2"
layout="total,prev, pager, next, jumper" :page-size="msg2.pageSize" :total=total2>
</el-pagination>
@click="msg.pageIndex=1,currentPage=1,GetList();showWarningSearch=false"
style="width: 310px!important;" />
</td>
</tr>
</table>
<span slot="reference" style="cursor: pointer;">{{$t('visa.v_gjchaxun')}}<i
class="el-icon-caret-bottom"></i></span>
</el-popover>
</li>
<li>
<input type="button" class="normalBtn" :value="$t('pub.searchBtn')" @click.stop="search" />
<input v-if="pagesTitle=='销售'||pagesTitle=='OP'" type="button" class="hollowFixedBtn"
:value="$t('visa.v_daochu')" @click="exportExcel">
</li>
</ul>
<span v-if="Title=='申请'"
style="font-size:12px; color:red;padding:15px 0px 0px 0px;display:inline-block;">{{$t('objFill.v101.myOrdersAllType.zaicilbjzwp')}}</span>
</div>
<!-- 统计版块 -->
<div class="groupTourOrder_count" v-if="pagesTitle=='销售'||pagesTitle=='OP'">
<div class="groupTourOrder_count_item HT_total" v-for="(item,index) in SummaryList">
<div>
<span>{{item.CurrencyName}}</span>
</div>
<p>
<!-- groupTourOrder_count_green -->
<span>{{$t('fnc.yingshou')}}:
{{item.Money.toFixed(2)}}
</span>
<span>{{$t('fnc.shishou')}}:
{{item.Income.toFixed(2)}}
</span>
<span>{{$t('fnc.tuikuan')}}:
{{item.Refund.toFixed(2)}}
</span>
<span>{{$t('fnc.shouxufei')}}:
{{item.PlatformTax.toFixed(2)}}
</span>
<span>{{$t('objFill.yingshouxf')}}:
{{item.PreferTipAmount.toFixed(2)}}
</span>
<span>{{$t('objFill.shishouxf')}}:
{{item.IncomeTipAmount.toFixed(2)}}
</span>
<span>{{$t('hotel.hotel_cost')}}:
{{item.CostMoney.toFixed(2)}}
</span>
<span>{{$t('op.Tocollected')}}:
<span :style="{'color': item.DueInMoney>0?'red':''}">{{item.DueInMoney.toFixed(2)}}</span>
</span>
<span>{{$t('objFill.yuqilirun')}}:
<span :style="{'color': item.OrderProfit>0?'red':''}">{{item.OrderProfit.toFixed(2)}}</span>
</span>
<span>{{$t('objFill.yuqixiaose')}}:
{{item.OrderSalesMoney.toFixed(2)}}
</span>
<span>{{$t('objFill.baomingshu')}}:
<span style="color:#3a7cf7">{{item.GuestNum}}{{$t('hotel.hotel_people')}}</span>
</span>
</p>
</div>
</template>
<script>
import OrderList from './OrderList.vue';
import StartDateLimit from '../../public/StartDateLimit.vue';
export default {
props:['pagesTitle','dataObj'],
components: { OrderList,StartDateLimit },
data() {
return {
companyList:[],
getCompanyMsg:{
RB_Group_Id:'0',
Status:'0',
},
total2:0,
currentPage2: 1,
msg2:{
Q_IsCollect: '2',//收款状态
DepartSTime: '', //出发时间
DepartETime: '',
EnterId: 0,//销售
RB_Branch_Id: '-1',//公司
OrderId: '',
TicketStatus: '1',//审核状态
OrderType: '0',
pageIndex: 1,
pageSize: 15,
IsSelectAll: 0,
},
CommissionTypeList:[
{Name: this.$t('pub.unlimitedSel'),Id:'-1'},
{Name: this.$t('objFill.chujingtc'),Id:'1'},
{Name: this.$t('objFill.guoneitc'),Id:'2'},
],
showWarningSearch: false,
TotalMsg: null,
MultipleChoiceList: [ //多选项目
{
Name: this.$t('active.cl_jipiao'),
Id: '1'
}, {
Name: this.$t('active.cl_qianzheng'),
Id: '2'
}, {
Name: this.$t('objFill.dijie'),
Id: '3'
}, {
Name: this.$t('restaurant.res_package'),
Id: '4'
}, {
Name: this.$t('active.cl_qita'),
Id: '5'
}
],
userInfo: {},
HotelList: [],
loading: false,
isShow: false,
outerVisible: false,
//订单列表
OrderList: [],
//默认高度
tableHeight: 0,
msg: {
pageIndex: 1,
pageSize: 15,
OrderId: "", //订单id
GuestId: 0, //客人id
EnterId: 0, //业务员id
OrderState: '1', //订单状态
Q_IsCollect: "0", //收款状态
StartTime: "",//报名开始日期
EndTime: "",//报名结束日期
FinishSTime: "",//完结开始时间
FinishETime: "",//完结结束时间
DepartSTime: "",//出发开始
DepartETime: "",//出发结束
TCNUM: "",//团号
ProductName: "",//商品名称
CustomerName: "",//客户名称
LureEmpId: 0,//引流人员
LineId: 0,//线路
TravelType: 0,//跟团类型 1跟团 2当地游
OrderType: "0",//订单类型
IsSelectCRM: 0,//1来源crm
IsMyOrder: 1,//1我的订单
CommissionType: '-1',//提成类型 1出境 2国内
TicketStatus: '0',//申请状态
},
total: 0,
currentPage: 1,
OrderTypeList:[],
OrderStateType:[
{Name: this.$t('objFill.pickup'),ID:'1'},
{Name: this.$t('objFill.send'),ID:'2'},
{Name: this.$t('objFill.baoche'),ID:'3'},
],
orderType:[
{Name: this.$t('OrderList.orderType.tour'),ID:'1'},
{Name: this.$t('OrderList.orderType.guest'),ID:'2'},
],
Datelist:'',
DatelistUse:'',
DatelistBM: [],
Title:'',
EmployeeList:[],
employeeMsg:{ // 员工
GroupId:'',
BranchId:-1,
DepartmentId:0,
PostId:0,
IsLeave:0,
},
OrderStatusList: [
{ Name: this.$t('pub.unlimitedSel'), Id: "0" },
{ Name: this.$t('pub.normalSel'), Id: "1" },
{ Name: this.$t('pub.cancelBtn'), Id: "2" },
],
QIsCollectList: [
{ Name: this.$t('pub.unlimitedSel'), Id: "0" },
{ Name: this.$t('objFill.yishouqian'), Id: "1" },
{ Name: this.$t('salesModule.NoCollect'), Id: "2" },
],
ticketingStatusList: [],
VisaList: [
{ Name: this.$t('pub.unlimitedSel'), Id: "0" },
{ Name: this.$t('objFill.weichuqian'), Id: "1" },
{ Name: this.$t('objFill.yichuqian'), Id: "2" },
],
LineList: [],
SummaryList: [],
TicketStatusList2: [
{ Name: this.$t('pub.unlimitedSel'), Id: "0" },
{ Name: this.$t('objFill.dsh'), Id: "1" },
{ Name: this.$t('fnc.ytongguo'), Id: "2" },
{ Name: this.$t('objFill.yibohui'), Id: "3" },
],
TicketStatusList3: [
{ Name: this.$t('pub.unlimitedSel'), Id: "5" },
{ Name: this.$t('objFill.dsh'), Id: "1" },
{ Name: this.$t('fnc.ytongguo'), Id: "2" },
{ Name: this.$t('objFill.yibohui'), Id: "3" },
],
TicketStatusList: [
{ Name: this.$t('pub.unlimitedSel'), Id: "0" },
{ Name: this.$t('objFill.daishenhe'), Id: "1" },
{ Name: this.$t('objFill.yishenqing'), Id: "2" },
// { Name: this.$t('objFill.yibohui'), Id: "3" },
],
changePriceOuterVisible: true,
};
</div>
<OrderList :pagesTitle="Title" :OrderList="OrderList" :msgObj="msg"
:changePriceOuterVisible="changePriceOuterVisible" v-loading="loading"
@success="msg.pageIndex=1,msg2.pageIndex=1,GetList()"> </OrderList>
<div v-if="OrderList&&OrderList.length==0" style="text-align: center;padding: 100px;">
{{$t('system.content_noData')}}</div>
<el-pagination v-if="OrderList&&OrderList.length>0&&pagesTitle!='审核'&&pagesTitle!='查看'" background
@current-change="handleCurrentChange" :current-page.sync="currentPage" layout="total,prev, pager, next, jumper"
:page-size="msg.pageSize" :total="total">
</el-pagination>
<el-pagination v-if="OrderList&&OrderList.length>0&&(pagesTitle=='审核'||pagesTitle=='查看')" background
@current-change="handleCurrentChange2" :current-page.sync="currentPage2" layout="total,prev, pager, next, jumper"
:page-size="msg2.pageSize" :total=total2>
</el-pagination>
</div>
</template>
<script>
import OrderList from './OrderList.vue';
import StartDateLimit from '../../public/StartDateLimit.vue';
export default {
props: ['pagesTitle', 'dataObj'],
components: {
OrderList,
StartDateLimit
},
data() {
return {
companyList: [],
getCompanyMsg: {
RB_Group_Id: '0',
Status: '0',
},
watch: {
pagesTitle(val,oldval){
this.Title = val
total2: 0,
currentPage2: 1,
msg2: {
Q_IsCollect: '2', //收款状态
DepartSTime: '', //出发时间
DepartETime: '',
EnterId: 0, //销售
RB_Branch_Id: '-1', //公司
OrderId: '',
TicketStatus: '1', //审核状态
OrderType: '0',
pageIndex: 1,
pageSize: 15,
IsSelectAll: 0,
},
CommissionTypeList: [{
Name: this.$t('pub.unlimitedSel'),
Id: '-1'
},
dataObj:{
handler(val, oldVal) {
this.msg.OrderType = String(val.tab)
this.msg.OrderId = val.OrderId
this.msg2.OrderType = String(val.tab)
this.msg2.OrderId = val.OrderId
if(val.DepartSTime&&val.DepartSTime){
this.msg.DepartSTime = val.DepartSTime;
this.msg.DepartETime = val.DepartSTime;
this.msg2.DepartSTime = val.DepartSTime;
this.msg2.DepartETime = val.DepartSTime;
this.DatelistUse = [this.msg.DepartSTime,this.msg.DepartETime]
}
this.GetList()
},
deep: true,
{
Name: this.$t('objFill.chujingtc'),
Id: '1'
},
{
Name: this.$t('objFill.guoneitc'),
Id: '2'
},
],
showWarningSearch: false,
TotalMsg: null,
MultipleChoiceList: [ //多选项目
{
Name: this.$t('active.cl_jipiao'),
Id: '1'
}, {
Name: this.$t('active.cl_qianzheng'),
Id: '2'
}, {
Name: this.$t('objFill.dijie'),
Id: '3'
}, {
Name: this.$t('restaurant.res_package'),
Id: '4'
}, {
Name: this.$t('active.cl_qita'),
Id: '5'
}
],
userInfo: {},
HotelList: [],
loading: false,
isShow: false,
outerVisible: false,
//订单列表
OrderList: [],
//默认高度
tableHeight: 0,
msg: {
pageIndex: 1,
pageSize: 15,
OrderId: "", //订单id
GuestId: 0, //客人id
EnterId: 0, //业务员id
OrderState: '1', //订单状态
Q_IsCollect: "0", //收款状态
StartTime: "", //报名开始日期
EndTime: "", //报名结束日期
FinishSTime: "", //完结开始时间
FinishETime: "", //完结结束时间
DepartSTime: "", //出发开始
DepartETime: "", //出发结束
TCNUM: "", //团号
ProductName: "", //商品名称
CustomerName: "", //客户名称
LureEmpId: 0, //引流人员
LineId: 0, //线路
TravelType: 0, //跟团类型 1跟团 2当地游
OrderType: "0", //订单类型
IsSelectCRM: 0, //1来源crm
IsMyOrder: 1, //1我的订单
CommissionType: '-1', //提成类型 1出境 2国内
TicketStatus: '0', //申请状态
},
methods: {
search(){
this.changePriceOuterVisible = false
if(this.dataObj&&this.dataObj.OrderId&&this.dataObj.DepartSTime&&this.dataObj.DepartETime){
this.msg.OrderId = 0
this.msg2.OrderId = 0
this.msg2.OrderType = '0'
}
this.msg.pageIndex=1,
this.currentPage=1,
this.msg2.pageIndex=1,
this.currentPage2=1,
this.GetList()
total: 0,
currentPage: 1,
OrderTypeList: [],
OrderStateType: [{
Name: this.$t('objFill.pickup'),
ID: '1'
},
// 公司
getCompany(){
this.apipost('admin_get_BranchGetList',{},res=>{
if(res.data.resultCode==1){
this.companyList=res.data.data;
}else{}
},err=>{})
},
exportExcel() { //导出
if (!this.msg.StartTime || !this.msg.EndTime) {
this.$message.info(this.$t('objFill.qingxzksjssj'))
return;
}
let msg = JSON.parse(JSON.stringify(this.msg))
let userInfo = this.getLocalStorage();
msg.uid = userInfo.EmployeeId
var fileName = this.$t('objFill.dingdantjb')+".xls";
this.GetLocalFile("GuestOrder_post_GetDownLodGuestOrderStatisticsList", msg, fileName);
{
Name: this.$t('objFill.send'),
ID: '2'
},
GetOrderTypeEnumList() {
this.apipost("CarSingle_post_GetOrderTypeEnumList", {}, (res) => {
if (res.data.resultCode == 1) {
this.OrderTypeList = res.data.data;
let textName = this.$t('pub.unlimitedSel')
let data = {
Name: textName,
Id: "0",
};
this.OrderTypeList.unshift(data);
} else {
this.$message.error(res.data.message);
}
});
{
Name: this.$t('objFill.baoche'),
ID: '3'
},
],
orderType: [{
Name: this.$t('OrderList.orderType.tour'),
ID: '1'
},
{
Name: this.$t('OrderList.orderType.guest'),
ID: '2'
},
],
Datelist: '',
DatelistUse: '',
DatelistBM: [],
Title: '',
EmployeeList: [],
employeeMsg: { // 员工
GroupId: '',
BranchId: -1,
DepartmentId: 0,
PostId: 0,
IsLeave: 0,
},
OrderStatusList: [{
Name: this.$t('pub.unlimitedSel'),
Id: "0"
},
{
Name: this.$t('pub.normalSel'),
Id: "1"
},
{
Name: this.$t('pub.cancelBtn'),
Id: "2"
},
],
QIsCollectList: [{
Name: this.$t('pub.unlimitedSel'),
Id: "0"
},
{
Name: this.$t('objFill.yishouqian'),
Id: "1"
},
{
Name: this.$t('salesModule.NoCollect'),
Id: "2"
},
],
ticketingStatusList: [],
VisaList: [{
Name: this.$t('pub.unlimitedSel'),
Id: "0"
},
{
Name: this.$t('objFill.weichuqian'),
Id: "1"
},
{
Name: this.$t('objFill.yichuqian'),
Id: "2"
},
],
LineList: [],
SummaryList: [],
TicketStatusList2: [{
Name: this.$t('pub.unlimitedSel'),
Id: "0"
},
{
Name: this.$t('objFill.dsh'),
Id: "1"
},
{
Name: this.$t('fnc.ytongguo'),
Id: "2"
},
{
Name: this.$t('objFill.yibohui'),
Id: "3"
},
],
TicketStatusList3: [{
Name: this.$t('pub.unlimitedSel'),
Id: "5"
},
{
Name: this.$t('objFill.dsh'),
Id: "1"
},
{
Name: this.$t('fnc.ytongguo'),
Id: "2"
},
{
Name: this.$t('objFill.yibohui'),
Id: "3"
},
],
TicketStatusList: [{
Name: this.$t('pub.unlimitedSel'),
Id: "0"
},
{
Name: this.$t('objFill.daishenhe'),
Id: "1"
},
{
Name: this.$t('objFill.yishenqing'),
Id: "2"
},
// { Name: this.$t('objFill.yibohui'), Id: "3" },
],
changePriceOuterVisible: true,
};
},
watch: {
pagesTitle(val, oldval) {
this.Title = val
},
dataObj: {
handler(val, oldVal) {
this.msg.OrderType = String(val.tab)
this.msg.OrderId = val.OrderId
this.msg2.OrderType = String(val.tab)
this.msg2.OrderId = val.OrderId
if (val.DepartSTime && val.DepartSTime) {
this.msg.DepartSTime = val.DepartSTime;
this.msg.DepartETime = val.DepartSTime;
this.msg2.DepartSTime = val.DepartSTime;
this.msg2.DepartETime = val.DepartSTime;
this.DatelistUse = [this.msg.DepartSTime, this.msg.DepartETime]
}
this.GetList()
},
getLineList() {
deep: true,
}
},
methods: {
search() {
this.changePriceOuterVisible = false
if (this.dataObj && this.dataObj.OrderId && this.dataObj.DepartSTime && this.dataObj.DepartETime) {
this.msg.OrderId = 0
this.msg2.OrderId = 0
this.msg2.OrderType = '0'
}
this.msg.pageIndex = 1,
this.currentPage = 1,
this.msg2.pageIndex = 1,
this.currentPage2 = 1,
this.GetList()
},
// 公司
getCompany() {
this.apipost('admin_get_BranchGetList', {}, res => {
if (res.data.resultCode == 1) {
this.companyList = res.data.data;
} else {}
}, err => {})
},
exportExcel() { //导出
if (!this.msg.StartTime || !this.msg.EndTime) {
this.$message.info(this.$t('objFill.qingxzksjssj'))
return;
}
let msg = JSON.parse(JSON.stringify(this.msg))
let userInfo = this.getLocalStorage();
msg.uid = userInfo.EmployeeId
var fileName = this.$t('objFill.dingdantjb') + ".xls";
this.GetLocalFile("GuestOrder_post_GetDownLodGuestOrderStatisticsList", msg, fileName);
},
GetOrderTypeEnumList() {
this.apipost("CarSingle_post_GetOrderTypeEnumList", {}, (res) => {
if (res.data.resultCode == 1) {
this.OrderTypeList = res.data.data;
let textName = this.$t('pub.unlimitedSel')
let data = {
Name: textName,
Id: "0",
};
this.OrderTypeList.unshift(data);
} else {
this.$message.error(res.data.message);
}
});
},
getLineList() {
this.apipost(
"line_post_GetAllList", {
LineDirection: 0,
......@@ -663,7 +734,7 @@
}
);
},
// 获取出票状态枚举
// 获取出票状态枚举
GetTicketStatusEnumList() {
this.crmapipost("/api/Order/GetTicketStatusEnumList", {}, (res) => {
if (res.data.resultCode == 1) {
......@@ -673,7 +744,7 @@
}
});
},
// 获取订单状态枚举
// 获取订单状态枚举
GetOrderStatusEnumList() {
this.crmapipost("/api/Order/GetOrderStatusEnumList", {}, (res) => {
if (res.data.resultCode == 1) {
......@@ -683,229 +754,234 @@
}
});
},
getEmployee() { //员工
this.apipost('admin_get_EmployeeGetList', this.employeeMsg, res => {
if(res.data.resultCode == 1) {
this.EmployeeList = res.data.data;
}
}, err => {})
},
getDatesBM(){
if(this.DatelistBM){
this.msg.StartTime = this.DatelistBM[0]?this.DatelistBM[0]:''
this.msg.EndTime = this.DatelistBM[1]?this.DatelistBM[1]:''
}if(!this.DatelistBM){
this.msg.StartTime = ''
this.msg.EndTime = ''
}
},
getDatesUse(){
if(this.DatelistUse){
this.msg.DepartSTime = this.DatelistUse[0]?this.DatelistUse[0]:''
this.msg.DepartETime = this.DatelistUse[1]?this.DatelistUse[1] :''
this.msg2.DepartSTime = this.DatelistUse[0]?this.DatelistUse[0] :''
this.msg2.DepartETime = this.DatelistUse[1]?this.DatelistUse[1] :''
}if(!this.DatelistUse){
this.msg.DepartSTime = ''
this.msg.DepartETime = ''
this.msg2.DepartSTime = ''
this.msg2.DepartETime = ''
}
},
getDates(){
if(this.Datelist){
this.msg.FinishSTime = this.Datelist[0]?this.Datelist[0]:''
this.msg.FinishETime = this.Datelist[1]?this.Datelist[1]:''
}if(!this.Datelist){
this.msg.FinishSTime = ''
this.msg.FinishETime = ''
}
},
setEdate() {
return this.addMoth(new Date().Format("yyyy-MM-dd"), 1)
},
addMoth(d, m) {
let ds = d.split('-'),
_d = ds[2] - 0;
let nextM = new Date(ds[0], ds[1] - 1 + m + 1, 0);
let max = nextM.getDate();
d = new Date(ds[0], ds[1] - 1 + m, _d > max ? max : _d);
return d.toLocaleDateString().match(/\d+/g).join('-')
},
getyMDOne(){
let myDate = new Date()
let myYear = myDate.getFullYear();//获取完整的年份(4位,1970-????)
let myMonth = myDate.getMonth()+ 1;//获取当前月份(0-11,8代表1月)
let myToday = myDate.getDate(); //获取当前日(1-31)
myMonth = myMonth > 9 ? myMonth : '0'+ myMonth
myToday = myToday > 9 ? myToday : '0'+ myToday
let nowDate = myYear +'-'+ myMonth +'-01'
return nowDate
},
getyMDTwo(){
let myDate = new Date()
let myYear = myDate.getFullYear();//获取完整的年份(4位,1970-????)
let myMonth = myDate.getMonth()+ 1;//获取当前月份(0-11,8代表1月)
let myToday = myDate.getDate(); //获取当前日(1-31)
myMonth = myMonth > 9 ? myMonth : '0'+ myMonth
myToday = myToday > 9 ? myToday : '0'+ myToday
let nowDate = myYear +'-'+ myMonth +'-'+ myToday
return nowDate
},
//获取酒店订单列表
GetList() {
this.loading = true
let msgObj
let url = "CarSingle_post_GetGuestOrderStatisticsPageList"
// 销售 OP
if(this.pagesTitle=='销售'){
this.msg.IsMyOrder = '1'
this.msg.TicketStatus = ''
}else if(this.pagesTitle=='申请'){
url = "CarSingle_post_GetChangePriceOrderPageList"
this.msg.IsMyOrder = '1'
this.msg.Q_IsCollect = '2'
}else if(this.pagesTitle=='审核'||this.pagesTitle=='查看'){
url = "CarSingle_post_GetExaminePriceOrderPageList"
} else{
this.msg.TicketStatus = ''
this.msg.IsMyOrder = '0'
}
msgObj = (this.pagesTitle=='审核'||this.pagesTitle=='查看')?this.msg2:this.msg
// if(this.pagesTitle=='查看'){
// msgObj.TicketStatus=5;
// }
this.apipost(url, msgObj,
res => {
if (res.data.resultCode == 1) {
this.changePriceOuterVisible = true
// 数据统计
if(this.pagesTitle=='销售'||this.pagesTitle=='OP'){
this.getSummaryData()
}
let data = res.data.data.pageData
this.OrderList = data;
if(this.pagesTitle=='审核'||this.Title=='查看'){
this.total2 = res.data.data.count;
}else{
this.total = res.data.data.count;
}
// this.TotalMsg = res.data.data.StatModel
}else {
this.Error(res.data.message);
}
this.loading = false
},
err => {this.loading = false}
);
},
getSummaryData(){
this.apipost(
"CarSingle_post_GetGuestOrderStatistics",
this.msg,
(res) => {
if (res.data.resultCode == 1) {
let data = res.data.data;
this.SummaryList = data
} else {
this.$message.error(res.data.message);
}
getEmployee() { //员工
this.apipost('admin_get_EmployeeGetList', this.employeeMsg, res => {
if (res.data.resultCode == 1) {
this.EmployeeList = res.data.data;
}
}, err => {})
},
getDatesBM() {
if (this.DatelistBM) {
this.msg.StartTime = this.DatelistBM[0] ? this.DatelistBM[0] : ''
this.msg.EndTime = this.DatelistBM[1] ? this.DatelistBM[1] : ''
}
if (!this.DatelistBM) {
this.msg.StartTime = ''
this.msg.EndTime = ''
}
},
getDatesUse() {
if (this.DatelistUse) {
this.msg.DepartSTime = this.DatelistUse[0] ? this.DatelistUse[0] : ''
this.msg.DepartETime = this.DatelistUse[1] ? this.DatelistUse[1] : ''
this.msg2.DepartSTime = this.DatelistUse[0] ? this.DatelistUse[0] : ''
this.msg2.DepartETime = this.DatelistUse[1] ? this.DatelistUse[1] : ''
}
if (!this.DatelistUse) {
this.msg.DepartSTime = ''
this.msg.DepartETime = ''
this.msg2.DepartSTime = ''
this.msg2.DepartETime = ''
}
},
getDates() {
if (this.Datelist) {
this.msg.FinishSTime = this.Datelist[0] ? this.Datelist[0] : ''
this.msg.FinishETime = this.Datelist[1] ? this.Datelist[1] : ''
}
if (!this.Datelist) {
this.msg.FinishSTime = ''
this.msg.FinishETime = ''
}
},
setEdate() {
return this.addMoth(new Date().Format("yyyy-MM-dd"), 1)
},
addMoth(d, m) {
let ds = d.split('-'),
_d = ds[2] - 0;
let nextM = new Date(ds[0], ds[1] - 1 + m + 1, 0);
let max = nextM.getDate();
d = new Date(ds[0], ds[1] - 1 + m, _d > max ? max : _d);
return d.toLocaleDateString().match(/\d+/g).join('-')
},
getyMDOne() {
let myDate = new Date()
let myYear = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
let myMonth = myDate.getMonth() + 1; //获取当前月份(0-11,8代表1月)
let myToday = myDate.getDate(); //获取当前日(1-31)
myMonth = myMonth > 9 ? myMonth : '0' + myMonth
myToday = myToday > 9 ? myToday : '0' + myToday
let nowDate = myYear + '-' + myMonth + '-01'
return nowDate
},
getyMDTwo() {
let myDate = new Date()
let myYear = myDate.getFullYear(); //获取完整的年份(4位,1970-????)
let myMonth = myDate.getMonth() + 1; //获取当前月份(0-11,8代表1月)
let myToday = myDate.getDate(); //获取当前日(1-31)
myMonth = myMonth > 9 ? myMonth : '0' + myMonth
myToday = myToday > 9 ? myToday : '0' + myToday
let nowDate = myYear + '-' + myMonth + '-' + myToday
return nowDate
},
//获取酒店订单列表
GetList() {
this.loading = true
let msgObj
let url = "CarSingle_post_GetGuestOrderStatisticsPageList"
// 销售 OP
if (this.pagesTitle == '销售') {
this.msg.IsMyOrder = '1'
this.msg.TicketStatus = ''
} else if (this.pagesTitle == '申请') {
url = "CarSingle_post_GetChangePriceOrderPageList"
this.msg.IsMyOrder = '1'
this.msg.Q_IsCollect = '2'
} else if (this.pagesTitle == '审核' || this.pagesTitle == '查看') {
url = "CarSingle_post_GetExaminePriceOrderPageList"
} else {
this.msg.TicketStatus = ''
this.msg.IsMyOrder = '0'
}
msgObj = (this.pagesTitle == '审核' || this.pagesTitle == '查看') ? this.msg2 : this.msg
// if(this.pagesTitle=='查看'){
// msgObj.TicketStatus=5;
// }
this.apipost(url, msgObj,
res => {
if (res.data.resultCode == 1) {
this.changePriceOuterVisible = true
// 数据统计
if (this.pagesTitle == '销售' || this.pagesTitle == 'OP') {
this.getSummaryData()
}
);
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.GetList();
},
handleCurrentChange2(val) {
this.msg2.pageIndex = val;
this.GetList();
},
com_onresize() {
//clientHeight的值由DIV内容的实际高度和CSS中的padding值决定,
var contentsHeight = document.body.clientHeight;
var h = contentsHeight - 50 - 180 - 40;
if (h < 110) {
return;
let data = res.data.data.pageData
this.OrderList = data;
if (this.pagesTitle == '审核' || this.Title == '查看') {
this.total2 = res.data.data.count;
} else {
this.total = res.data.data.count;
}
// this.TotalMsg = res.data.data.StatModel
} else {
this.Error(res.data.message);
}
//设置table的行高
this.tableHeight = h;
this.loading = false
},
},
created() {
let userInfo=this.getLocalStorage();
this.employeeMsg.GroupId = userInfo.RB_Group_id; //集团ID
this.msg.EnterId = this.$route.query.EnterId?Number(this.$route.query.EnterId):0//userInfo.EmployeeId;
this.msg.LureEmpId = this.$route.query.LureEmpId?Number(this.$route.query.LureEmpId):0
if(this.pagesTitle=='销售'||this.pagesTitle=='OP'){
this.msg.StartTime = this.getBeforeDate(0, new Date())
this.msg.EndTime = this.getBeforeDate(0, new Date())
this.DatelistBM = [new Date(this.msg.StartTime),new Date()]
}else{
var now = new Date();
var month = now.getMonth()+1;//js获取到的是月份是 0-11 所以要加1
var year = now.getFullYear();
var nextMonthFirstDay = new Date([year,month ,1].join('-')).getTime();
var oneDay = 1000 * 24 * 60 * 60;
var monthLast = new Date(nextMonthFirstDay - oneDay).getDate()
if(!this.$route.query.DepartSTime&&!this.$route.query.DepartSTime){
this.msg.DepartSTime = '2023-04-01';
this.msg.DepartETime = [year,month,monthLast].join('-');
this.msg2.DepartSTime = '2023-04-01';
this.msg2.DepartETime = [year,month,monthLast].join('-');
}
this.DatelistUse = [this.msg.DepartSTime,this.msg.DepartETime]
this.msg.Q_IsCollect = '2'
}
if(this.$route.query.OrderId){
this.msg.OrderId=this.$route.query.OrderId
this.msg.StartTime = ''
this.msg.EndTime = ''
this.DatelistBM = []
this.msg.OrderState = '0'
}
if(this.$route.query.DepartSTime){
this.msg.DepartSTime=this.$route.query.DepartSTime
this.msg.DepartETime=this.$route.query.DepartETime
this.msg2.DepartSTime=this.$route.query.DepartSTime
this.msg2.DepartETime=this.$route.query.DepartETime
this.msg.CommissionType = this.$route.query.CommissionType
this.msg.StartTime = ''
this.msg.EndTime = ''
this.DatelistBM = []
this.DatelistUse = [this.msg.DepartSTime,this.msg.DepartETime]
this.msg.OrderState = '0'
err => {
this.loading = false
}
},
mounted() {
this.Title = this.pagesTitle
if(this.Title=='OP'||this.Title=='审核'||this.Title=='查看'){
this.getEmployee()
if(this.Title=='审核'||this.Title=='查看'){
this.getCompany()
);
},
getSummaryData() {
this.apipost(
"CarSingle_post_GetGuestOrderStatistics",
this.msg,
(res) => {
if (res.data.resultCode == 1) {
let data = res.data.data;
this.SummaryList = data
} else {
this.$message.error(res.data.message);
}
}
if(this.Title=='查看'){
this.msg2.TicketStatus = '5'
this.msg2.IsSelectAll = 1
}
// this.GetOrderStatusEnumList()//订单状态
// this.GetTicketStatusEnumList()//出票状态
this.GetOrderTypeEnumList()
this.getLineList()
this.Datelist = this.getyMDOne()
this.userInfo = this.getLocalStorage();
this.GetList();
//自适应高度调节
this.com_onresize();
window.onresize = () => {
this.com_onresize();
}
},
};
);
},
handleCurrentChange(val) {
this.msg.pageIndex = val;
this.GetList();
},
handleCurrentChange2(val) {
this.msg2.pageIndex = val;
this.GetList();
},
com_onresize() {
//clientHeight的值由DIV内容的实际高度和CSS中的padding值决定,
var contentsHeight = document.body.clientHeight;
var h = contentsHeight - 50 - 180 - 40;
if (h < 110) {
return;
}
//设置table的行高
this.tableHeight = h;
},
},
created() {
let userInfo = this.getLocalStorage();
this.employeeMsg.GroupId = userInfo.RB_Group_id; //集团ID
this.msg.EnterId = this.$route.query.EnterId ? Number(this.$route.query.EnterId) : 0 //userInfo.EmployeeId;
this.msg.LureEmpId = this.$route.query.LureEmpId ? Number(this.$route.query.LureEmpId) : 0
if (this.pagesTitle == '销售' || this.pagesTitle == 'OP') {
this.msg.StartTime = this.getBeforeDate(0, new Date())
this.msg.EndTime = this.getBeforeDate(0, new Date())
this.DatelistBM = [new Date(this.msg.StartTime), new Date()]
} else {
var now = new Date();
var month = now.getMonth() + 1; //js获取到的是月份是 0-11 所以要加1
var year = now.getFullYear();
var nextMonthFirstDay = new Date([year, month, 1].join('-')).getTime();
var oneDay = 1000 * 24 * 60 * 60;
var monthLast = new Date(nextMonthFirstDay - oneDay).getDate()
if (!this.$route.query.DepartSTime && !this.$route.query.DepartSTime) {
this.msg.DepartSTime = '2023-04-01';
this.msg.DepartETime = [year, month, monthLast].join('-');
this.msg2.DepartSTime = '2023-04-01';
this.msg2.DepartETime = [year, month, monthLast].join('-');
}
this.DatelistUse = [this.msg.DepartSTime, this.msg.DepartETime]
this.msg.Q_IsCollect = '2'
}
if (this.$route.query.OrderId) {
this.msg.OrderId = this.$route.query.OrderId
this.msg.StartTime = ''
this.msg.EndTime = ''
this.DatelistBM = []
this.msg.OrderState = '0'
}
if (this.$route.query.DepartSTime) {
this.msg.DepartSTime = this.$route.query.DepartSTime
this.msg.DepartETime = this.$route.query.DepartETime
this.msg2.DepartSTime = this.$route.query.DepartSTime
this.msg2.DepartETime = this.$route.query.DepartETime
this.msg.CommissionType = this.$route.query.CommissionType
this.msg.StartTime = ''
this.msg.EndTime = ''
this.DatelistBM = []
this.DatelistUse = [this.msg.DepartSTime, this.msg.DepartETime]
this.msg.OrderState = '0'
}
},
mounted() {
this.Title = this.pagesTitle
if (this.Title == 'OP' || this.Title == '审核' || this.Title == '查看') {
this.getEmployee()
if (this.Title == '审核' || this.Title == '查看') {
this.getCompany()
}
}
if (this.Title == '查看') {
this.msg2.TicketStatus = '5'
this.msg2.IsSelectAll = 1
}
// this.GetOrderStatusEnumList()//订单状态
// this.GetTicketStatusEnumList()//出票状态
this.GetOrderTypeEnumList()
this.getLineList()
this.Datelist = this.getyMDOne()
this.userInfo = this.getLocalStorage();
this.GetList();
//自适应高度调节
this.com_onresize();
window.onresize = () => {
this.com_onresize();
}
},
};
</script>
</script>
......@@ -5915,7 +5915,7 @@ export default {
{
path: '/Classification',
name: 'Classification',
component: resolve => require(['@/components/WebSet/Classification'], resolve),
component: resolve => require(['@/components/WebSet/classification'], resolve),
meta: {
title: '分类管理'
},
......
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