Commit 5142d800 authored by zhengke's avatar zhengke
parents eba04946 d98f5c8b
...@@ -326,6 +326,7 @@ export default { ...@@ -326,6 +326,7 @@ export default {
platName: this.GetDetail.PlatFormName, platName: this.GetDetail.PlatFormName,
TradeWay: this.GetDetail.OrderTradeWay, TradeWay: this.GetDetail.OrderTradeWay,
PlatformAccount: this.GetDetail.PlatformAccountId, PlatformAccount: this.GetDetail.PlatformAccountId,
blank: 'y',
tab: '平台订单查询' tab: '平台订单查询'
} }
}) })
......
...@@ -2,14 +2,14 @@ ...@@ -2,14 +2,14 @@
<div class="flexOne groupts"> <div class="flexOne groupts">
<div class="enrollTotalSearch"> <div class="enrollTotalSearch">
<ul> <ul>
<li><span><em>{{$t('advmanager.v_line')}}</em> <!-- <li><span><em>{{$t('advmanager.v_line')}}</em>
<el-select class='w200' v-model="msg.LineId" filterable :placeholder="$t('pub.pleaseSel')"> <el-select class='w200' v-model="msg.LineId" filterable :placeholder="$t('pub.pleaseSel')">
<el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option> <el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option>
<el-option v-for="item in LineList" :label='item.LineName' :value='item.LineID' :key='item.LineID'> <el-option v-for="item in LineList" :label='item.LineName' :value='item.LineID' :key='item.LineID'>
</el-option> </el-option>
</el-select> </el-select>
</span> </span>
</li> </li> -->
<li><span><em>{{$t('system.table_company')}}</em> <li><span><em>{{$t('system.table_company')}}</em>
<el-select class='w200' v-model="msg.BranchId" filterable :placeholder="$t('pub.pleaseSel')" @change='linkageDepartment()'> <el-select class='w200' v-model="msg.BranchId" filterable :placeholder="$t('pub.pleaseSel')" @change='linkageDepartment()'>
<el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option> <el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option>
...@@ -48,7 +48,15 @@ ...@@ -48,7 +48,15 @@
<span><em>{{$t('hotel.order_Number')}}</em></span> <span><em>{{$t('hotel.order_Number')}}</em></span>
<el-input class='w200' v-model='msg.tempOrderId'></el-input> <el-input class='w200' v-model='msg.tempOrderId'></el-input>
</li> </li>
<li> <!-- <li>
<span><em>{{$t('hotel.hotel_OrderStates')}}</em></span>
<el-select v-model='msg.OrderState' filterable :placeholder="$t('pub.pleaseSel')" style="width:180px">
<el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option>
<el-option v-for="item in ddztList" :label='item.Name' :value='item.Id' :key='item.Id'>
</el-option>
</el-select>
</li>-->
<li>
<span><em>{{$t('hotel.hotel_OrderStates')}}</em></span> <span><em>{{$t('hotel.hotel_OrderStates')}}</em></span>
<el-select v-model='msg.OrderState' filterable :placeholder="$t('pub.pleaseSel')" style="width:180px"> <el-select v-model='msg.OrderState' filterable :placeholder="$t('pub.pleaseSel')" style="width:180px">
<el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option> <el-option :label="$t('pub.unlimitedSel')" value='-1'></el-option>
...@@ -84,7 +92,20 @@ ...@@ -84,7 +92,20 @@
<el-date-picker v-model='msg.CEndDate' @change="dataDui()" class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker> <el-date-picker v-model='msg.CEndDate' @change="dataDui()" class='w135' value-format="yyyy-MM-dd" type="date"></el-date-picker>
</span> </span>
</li> </li>
<li>
<span><em>交易方式</em></span>
<el-select v-model='msg.TradeWay' filterable :placeholder="$t('pub.pleaseSel')" @change='tradeWayMethods'>
<el-option v-for="item in jyfsList" :label='item.Name' :value='item.Id' :key='item.Id'>
</el-option>
</el-select>
</li>
<li v-if='msg.TradeWay==1 || msg.TradeWay==3'>
<span><em>收款账户</em></span>
<el-select filterable v-model='msg.PlatformAccount' :placeholder="$t('pub.pleaseSel')">
<el-option v-for='item in PlatformAccountList' :label='item.Alias' :value='item.ID' :key='item.ID'>
</el-option>
</el-select>
</li>
<li> <li>
<input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="getList();resetPageIndex()" /> <input type="button" class="hollowFixedBtn" :value="$t('pub.searchBtn')" @click="getList();resetPageIndex()" />
</li> </li>
...@@ -464,6 +485,7 @@ ...@@ -464,6 +485,7 @@
} }
return obj; return obj;
}, },
jyfsList:[],
redBagList:[], redBagList:[],
happy:false, happy:false,
defaultImg: 'this.src="' + require("../../assets/img/litheader.png") + '"', defaultImg: 'this.src="' + require("../../assets/img/litheader.png") + '"',
...@@ -488,8 +510,8 @@ ...@@ -488,8 +510,8 @@
BranchId:'-1', BranchId:'-1',
IsOneDay: '-1', IsOneDay: '-1',
IsCollectMoney:0, IsCollectMoney:0,
tradeWay:'', TradeWay:'',
platformAccount:'', PlatformAccount:'',
}, },
employeeMsg: { employeeMsg: {
RB_Group_id: "0", RB_Group_id: "0",
...@@ -548,10 +570,70 @@ ...@@ -548,10 +570,70 @@
userId:0, userId:0,
//修改订单业务员1-有权限 //修改订单业务员1-有权限
isEditOrderCreate:0, isEditOrderCreate:0,
PlatformAccountList:[],
PlatformAccountList1:[],
PlatformAccountList2:[],
}; };
}, },
methods: { methods: {
tradeWayMethods(val) {
this.msg.PlatformAccount=''
if(val==3){
this.PlatformAccountList=this.PlatformAccountList2;
}
if(val==1){
this.PlatformAccountList=this.PlatformAccountList1;
}
},
getJyfs() {
this.apipost('sellorder_get_GetSellTradeWayEnumList', {}, res => {
if (res.data.resultCode == 1) {
this.jyfsList = res.data.data
}
}, err => {})
},
getPlatformAccount() {
let platBranchId=this.getLocalStorage().RB_Branch_id;
this.apipost('FinancialInstitutions_post_GetALLAccountList', {
TypeId: 12,BranchId:platBranchId
}, res => {
if (res.data.resultCode == 1) {
this.PlatformAccountList1 = res.data.data
if (this.msg.TradeWay==3){
this.PlatformAccountList=this.PlatformAccountList2;
}
if(this.msg.TradeWay==1){
this.PlatformAccountList=this.PlatformAccountList1;
}
}
}, err => {})
},
getPlatformAccountNew() {
this.apipost('Financial_get_GetDiplomacyPlatformList', {}, res => {
if (res.data.resultCode == 1) {
this.PlatformAccountList2= [];
let data=res.data.data;
data.forEach(item=>{
let obj={
Alias:item.Name,
ID:item.ID,
}
this.PlatformAccountList2.push(obj)
})
if (this.msg.TradeWay==3){
this.PlatformAccountList=this.PlatformAccountList2;
}
if(this.msg.TradeWay==1){
this.PlatformAccountList=this.PlatformAccountList1;
}
}
}, err => {})
},
goUrlHappy(item){ goUrlHappy(item){
this.happy=false; this.happy=false;
this.$router.push({ this.$router.push({
...@@ -693,15 +775,15 @@ ...@@ -693,15 +775,15 @@
err => {} err => {}
); );
}, },
getLineList() { // getLineList() {
this.apipost("line_post_GetAllList", {}, res => { // this.apipost("line_post_GetAllList", {}, res => {
if (res.data.resultCode == 1) { // if (res.data.resultCode == 1) {
this.LineList = res.data.data; // this.LineList = res.data.data;
} else { // } else {
this.$message.error(res.data.message); // this.$message.error(res.data.message);
} // }
}); // });
}, // },
//获取公司 //获取公司
getCompany() { getCompany() {
this.apipost('admin_get_BranchGetList', this.getCompanyMsg, res => { this.apipost('admin_get_BranchGetList', this.getCompanyMsg, res => {
...@@ -793,9 +875,13 @@ ...@@ -793,9 +875,13 @@
}, },
}, },
created(){
this.getJyfs();
this.getPlatformAccount();
this.getPlatformAccountNew();
},
mounted() { mounted() {
this.msg.tradeWay = this.$route.query.tradeWay?this.$route.query.tradeWay:'';
this.msg.platformAccount = this.$route.query.platformAccount?this.$route.query.platformAccount:'';
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.userId = userInfo.EmployeeId; this.userId = userInfo.EmployeeId;
this.GetEditOrderCreateByAuth(); this.GetEditOrderCreateByAuth();
...@@ -804,7 +890,7 @@ ...@@ -804,7 +890,7 @@
this.getCtlxList() this.getCtlxList()
this.getEmployee(); this.getEmployee();
this.getLineList(); // this.getLineList();
// this.getDepartment(); // this.getDepartment();
this.getDdztList(); this.getDdztList();
if (this.$route.query.id) { if (this.$route.query.id) {
...@@ -827,7 +913,11 @@ ...@@ -827,7 +913,11 @@
this.msg.QStartDate = ""; this.msg.QStartDate = "";
this.msg.QEndDate = ""; this.msg.QEndDate = "";
} }
this.msg.TradeWay = this.$route.query.TradeWay?this.$route.query.TradeWay:'';
this.msg.PlatformAccount = this.$route.query.PlatformAccount?Number(this.$route.query.PlatformAccount):'';
this.getList(); this.getList();
} }
}; };
......
...@@ -1576,12 +1576,10 @@ ...@@ -1576,12 +1576,10 @@
tradeWayMethods(val) { tradeWayMethods(val) {
if(val==3){ if(val==3){
this.addMsg.TradeWay=='';
this.addMsg.PlatformAccount='' this.addMsg.PlatformAccount=''
this.PlatformAccountList=this.PlatformAccountList2; this.PlatformAccountList=this.PlatformAccountList2;
} }
if(val==1){ if(val==1){
this.addMsg.TradeWay=='';
this.addMsg.PlatformAccount='' this.addMsg.PlatformAccount=''
this.PlatformAccountList=this.PlatformAccountList1; this.PlatformAccountList=this.PlatformAccountList1;
} }
......
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