Commit 5bf32518 authored by 黄媛媛's avatar 黄媛媛

quxnain

parent 93f2d59a
...@@ -435,9 +435,11 @@ ...@@ -435,9 +435,11 @@
}, },
linkageDepartment(val) { linkageDepartment(val) {
let userInfo = this.getLocalStorage()
let ParentCompanyId=userInfo.ParentCompanyId;
this.departmentMsg.RB_Branch_Id = this.form.BranchId; this.departmentMsg.RB_Branch_Id = this.form.BranchId;
this.form.DepartmentId = -1; this.form.DepartmentId = -1;
if (this.departmentMsg.RB_Branch_Id == 0) { if (this.departmentMsg.RB_Branch_Id == ParentCompanyId) {
this.stateShow = false; this.stateShow = false;
this.form.EmployeeIdList = []; this.form.EmployeeIdList = [];
this.form.FZLEmployeeIdList = []; this.form.FZLEmployeeIdList = [];
......
...@@ -1134,7 +1134,10 @@ ...@@ -1134,7 +1134,10 @@
this.msg = JSON.parse(JSON.stringify(data)); this.msg = JSON.parse(JSON.stringify(data));
this.msg.ClientType = this.msg.ClientType==0?'':this.msg.ClientType; this.msg.ClientType = this.msg.ClientType==0?'':this.msg.ClientType;
this.msg.ClientID = this.msg.ClientID==0?'':this.msg.ClientID; this.msg.ClientID = this.msg.ClientID==0?'':this.msg.ClientID;
this.msg.RB_Branch_Id = this.msg.RB_Branch_Id==0?this.getLocalStorage().RB_Branch_id:this.msg.RB_Branch_Id; let userInfo = this.getLocalStorage()
let ParentCompanyId=userInfo.ParentCompanyId;
this.msg.RB_Branch_Id = this.msg.RB_Branch_Id==0 || this.msg.RB_Branch_Id==ParentCompanyId?this.getLocalStorage().RB_Branch_id:this.msg.RB_Branch_Id;
if (this.orderObj && this.orderObj.companyIDList && this.orderObj.companyIDList.length>0) { if (this.orderObj && this.orderObj.companyIDList && this.orderObj.companyIDList.length>0) {
this.msg.RB_Branch_Id = this.orderObj.companyIDList[0]; this.msg.RB_Branch_Id = this.orderObj.companyIDList[0];
} else if(this.$route.query.companyID){ } else if(this.$route.query.companyID){
......
...@@ -1203,7 +1203,10 @@ export default { ...@@ -1203,7 +1203,10 @@ export default {
data.IsLeader = 1; data.IsLeader = 1;
this.msg = JSON.parse(JSON.stringify(data)); this.msg = JSON.parse(JSON.stringify(data));
this.msg.ClientType = this.msg.ClientType==0?'':this.msg.ClientType; this.msg.ClientType = this.msg.ClientType==0?'':this.msg.ClientType;
this.msg.RB_Branch_Id = this.msg.RB_Branch_Id==0?this.getLocalStorage().RB_Branch_id:this.msg.RB_Branch_Id; let userInfo = this.getLocalStorage()
let ParentCompanyId=userInfo.ParentCompanyId;
this.msg.RB_Branch_Id = this.msg.RB_Branch_Id==0 || this.msg.RB_Branch_Id==ParentCompanyId?this.getLocalStorage().RB_Branch_id:this.msg.RB_Branch_Id;
if (this.orderObj && this.orderObj.companyIDList && this.orderObj.companyIDList.length>0) { if (this.orderObj && this.orderObj.companyIDList && this.orderObj.companyIDList.length>0) {
this.msg.RB_Branch_Id = this.orderObj.companyIDList[0]; this.msg.RB_Branch_Id = this.orderObj.companyIDList[0];
} else if(this.$route.query.companyID){ } else if(this.$route.query.companyID){
......
...@@ -1359,7 +1359,10 @@ export default { ...@@ -1359,7 +1359,10 @@ export default {
this.msg.BankList.push(obj) this.msg.BankList.push(obj)
this.msg.detailList=[]; this.msg.detailList=[];
this.msg.RB_Branch_Id = this.msg.RB_Branch_Id==0?this.getLocalStorage().RB_Branch_id:this.msg.RB_Branch_Id; let userInfo = this.getLocalStorage()
let ParentCompanyId=userInfo.ParentCompanyId;
this.msg.RB_Branch_Id = this.msg.RB_Branch_Id==0 || this.msg.RB_Branch_Id==ParentCompanyId?this.getLocalStorage().RB_Branch_id:this.msg.RB_Branch_Id;
if (this.orderObj && this.orderObj.companyIDList && this.orderObj.companyIDList.length>0) { if (this.orderObj && this.orderObj.companyIDList && this.orderObj.companyIDList.length>0) {
this.msg.RB_Branch_Id = this.orderObj.companyIDList[0]; this.msg.RB_Branch_Id = this.orderObj.companyIDList[0];
} else if(this.$route.query.companyID){ } else if(this.$route.query.companyID){
......
...@@ -1247,7 +1247,10 @@ ...@@ -1247,7 +1247,10 @@
this.msg.BankList.push(obj) this.msg.BankList.push(obj)
this.msg.detailList=[]; this.msg.detailList=[];
this.msg.RB_Branch_Id = this.msg.RB_Branch_Id==0?this.getLocalStorage().RB_Branch_id:this.msg.RB_Branch_Id; let userInfo = this.getLocalStorage()
let ParentCompanyId=userInfo.ParentCompanyId;
this.msg.RB_Branch_Id = this.msg.RB_Branch_Id==0 || this.msg.RB_Branch_Id==ParentCompanyId?this.getLocalStorage().RB_Branch_id:this.msg.RB_Branch_Id;
if (this.orderObj && this.orderObj.companyIDList && this.orderObj.companyIDList.length>0) { if (this.orderObj && this.orderObj.companyIDList && this.orderObj.companyIDList.length>0) {
this.msg.RB_Branch_Id = this.orderObj.companyIDList[0]; this.msg.RB_Branch_Id = this.orderObj.companyIDList[0];
} else if(this.$route.query.companyID){ } else if(this.$route.query.companyID){
......
...@@ -1805,12 +1805,12 @@ ...@@ -1805,12 +1805,12 @@
<span v-else>{{$t('salesModule.LossReceipt')}}</span> <span v-else>{{$t('salesModule.LossReceipt')}}</span>
</div> </div>
<!-- item.confirmFileList.length>0 && ((item.receivableMoney - item.invoiceApplyTotal) > 0) --> <!-- item.confirmFileList.length>0 && ((item.receivableMoney - item.invoiceApplyTotal) > 0) -->
<div v-if='(item.confirmFileList.length>0||item.contractNum.length>0) && ((item.receivableMoney - item.invoiceApplyTotal) > 0)' <div v-if='(item.confirmFileList.length>0||item.contractNum.length>0) && ((item.receivableMoney - item.invoiceApplyTotal) > 0) && F_InvoiceManagement'
@click='goUrlAdd("invoicesManagerAdd", item.orderId, item.tcid, item.customerId, 1)'>{{$t('salesModule.ApplyInvoice')}}</div> @click='goUrlAdd("invoicesManagerAdd", item.orderId, item.tcid, item.customerId, 1)'>{{$t('salesModule.ApplyInvoice')}}</div>
<div <div
@click='Discount(item.tcid),SOMsg.OrderId = item.orderId,SOMsg.OrderUnitPrice = item.unit_Price'> @click='Discount(item.tcid),SOMsg.OrderId = item.orderId,SOMsg.OrderUnitPrice = item.unit_Price'>
{{$t('pub.ApplyYH')}}</div> {{$t('pub.ApplyYH')}}</div>
<div <div v-if="qjGroupId==userInfo.RB_Group_id || F_Finance_Create"
@click='ShenQingPhoto(item)'> @click='ShenQingPhoto(item)'>
{{$t('salesModule.ApplyPhoto')}}</div> {{$t('salesModule.ApplyPhoto')}}</div>
<div v-if="item.isOrder=='1'&&(item.orderState=='1'||item.orderState=='2'||item.orderState=='3') && item.isCanClear==0" <div v-if="item.isOrder=='1'&&(item.orderState=='1'||item.orderState=='2'||item.orderState=='3') && item.isCanClear==0"
...@@ -1828,8 +1828,8 @@ ...@@ -1828,8 +1828,8 @@
</el-popover> </el-popover>
</el-tooltip> </el-tooltip>
</el-button-group> </el-button-group>
<payurlItem v-if="item.commissionSharePeople !== userId&&item.airConfirm!=2" :item="item" :showID="showID" :photoF="item.photoNum>0" <payurlItem v-if="item.commissionSharePeople !== userId && item.airConfirm!=2" :item="item" :showID="showID" :photoF="item.photoNum>0"
v-show="item.orderState!='4'&&item.orderState!='3'" v-on:childByValue="childByValue"></payurlItem> v-show="item.orderState!='4'&&item.orderState!='3' && (qjGroupId==userInfo.RB_Group_id || F_Finance_Create)" v-on:childByValue="childByValue"></payurlItem>
</td> </td>
</tr> </tr>
<tr style="height:20px"> <tr style="height:20px">
...@@ -2362,7 +2362,10 @@ ...@@ -2362,7 +2362,10 @@
SQguestList: [], SQguestList: [],
SQcheckdAll: true, SQcheckdAll: true,
SQPhotoNum: '', SQPhotoNum: '',
SQOrderId: '' SQOrderId: '',
F_InvoiceManagement:false,//发票权限
qjGroupId:-1,
F_Finance_Create:false,//制单权限
} }
}, },
components: { components: {
...@@ -2390,6 +2393,22 @@ ...@@ -2390,6 +2393,22 @@
} }
}, },
methods: { methods: {
GetSupperOrderEditAuth() {
var actionCode = this.$AuthCode.F_InvoiceManagement;
var actionCodeNew = this.$AuthCode.F_Finance_Create;
// 发票
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.F_InvoiceManagement = true;
}
});
// 制单权限
this.CheckUserAuth(actionCodeNew, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.F_Finance_Create = true;
}
});
},
SpecialAppPost(){ SpecialAppPost(){
if (this.SpecialAppMsg.ApplyReason === '') { if (this.SpecialAppMsg.ApplyReason === '') {
return this.$message.error('请填写申请说明') return this.$message.error('请填写申请说明')
...@@ -4258,6 +4277,7 @@ ...@@ -4258,6 +4277,7 @@
}, },
}, },
mounted() { mounted() {
this.qjGroupId=this.qjGroupId();
this.GetEditOrderCreateByAuth(); this.GetEditOrderCreateByAuth();
let userInfo=this.getLocalStorage(); let userInfo=this.getLocalStorage();
let userMenuCode = ',' + userInfo.ActionMenuCode + ','; let userMenuCode = ',' + userInfo.ActionMenuCode + ',';
...@@ -4279,6 +4299,7 @@ ...@@ -4279,6 +4299,7 @@
this.getDdztList() this.getDdztList()
this.getJyfs() this.getJyfs()
this.getFylx() this.getFylx()
this.GetSupperOrderEditAuth();
}, },
......
...@@ -1924,7 +1924,7 @@ ...@@ -1924,7 +1924,7 @@
<div v-if="item.orderState==2" <div v-if="item.orderState==2"
@click='Discount(item.tcid),SOMsg.OrderId = item.orderId,SOMsg.OrderUnitPrice = item.unit_Price'> @click='Discount(item.tcid),SOMsg.OrderId = item.orderId,SOMsg.OrderUnitPrice = item.unit_Price'>
申请优惠</div> 申请优惠</div>
<div @click='ShenQingPhoto(item)'> <div v-if="qjGroupId==userInfo.RB_Group_id || F_Finance_Create" @click='ShenQingPhoto(item)'>
申请照片</div> 申请照片</div>
<div <div
v-if="item.isOrder=='1'&&(item.orderState=='1'||item.orderState=='2'||item.orderState=='3')&& item.isCanClear==0" v-if="item.isOrder=='1'&&(item.orderState=='1'||item.orderState=='2'||item.orderState=='3')&& item.isCanClear==0"
...@@ -1944,7 +1944,7 @@ ...@@ -1944,7 +1944,7 @@
</el-tooltip> </el-tooltip>
</el-button-group> </el-button-group>
<payurlItem v-if='item.isOwn==1&&item.airConfirm!=2' :item="item" :showID="showID" <payurlItem v-if='item.isOwn==1&&item.airConfirm!=2' :item="item" :showID="showID"
:photoF="item.photoNum>0" v-show="item.orderState!='4'&&item.orderState!='3'" :photoF="item.photoNum>0" v-show="item.orderState!='4'&&item.orderState!='3' && (qjGroupId==userInfo.RB_Group_id || F_Finance_Create)"
v-on:childByValue="childByValue"></payurlItem> v-on:childByValue="childByValue"></payurlItem>
</td> </td>
</tr> </tr>
...@@ -2567,6 +2567,8 @@ ...@@ -2567,6 +2567,8 @@
export default { export default {
data() { data() {
return { return {
qjGroupId:-1,
F_Finance_Create:false,//制单权限
IsSupperOrderEdit:false,//获取总经理副总经理超级修改权限 IsSupperOrderEdit:false,//获取总经理副总经理超级修改权限
IsLookOrder:false,//出纳查看订单权限 IsLookOrder:false,//出纳查看订单权限
//修改业务员权限,1-有 //修改业务员权限,1-有
...@@ -5027,11 +5029,17 @@ ...@@ -5027,11 +5029,17 @@
// 获取总经理副总经理超级修改权限 // 获取总经理副总经理超级修改权限
GetSupperOrderEditAuth() { GetSupperOrderEditAuth() {
var actionCode = this.$AuthCode.SupperOrderEdit; var actionCode = this.$AuthCode.SupperOrderEdit;
var actionCodeNew = this.$AuthCode.F_Finance_Create;
this.CheckUserAuth(actionCode, res => { this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) { if (res.data.resultCode == 1 && res.data.data == 1) {
this.IsSupperOrderEdit = true; this.IsSupperOrderEdit = true;
} }
}); });
this.CheckUserAuth(actionCodeNew, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.F_Finance_Create = true;
}
});
}, },
// 出纳查看订单权限 // 出纳查看订单权限
GetLookOrderAuth() { GetLookOrderAuth() {
...@@ -5044,6 +5052,7 @@ ...@@ -5044,6 +5052,7 @@
}, },
}, },
mounted() { mounted() {
this.qjGroupId=this.qjGroupId();
this.GetLookOrderAuth(); this.GetLookOrderAuth();
this.GetSupperOrderEditAuth(); this.GetSupperOrderEditAuth();
this.GetEditOrderCreateByAuth(); this.GetEditOrderCreateByAuth();
......
...@@ -1306,7 +1306,7 @@ ...@@ -1306,7 +1306,7 @@
</el-popover> </el-popover>
</el-tooltip> </el-tooltip>
</el-button-group> </el-button-group>
<payurlItem v-if="item.commissionSharePeople !== userId" :item="item" :showID="showID" v-show="item.orderState!='4'&&item.orderState!='3'&&!(item.tradeWay=='1'&&item.platformOrder=='')" v-on:childByValue="childByValue"></payurlItem> <payurlItem v-if="item.commissionSharePeople !== userId" :item="item" :showID="showID" v-show="item.orderState!='4'&&item.orderState!='3'&&!(item.tradeWay=='1'&&item.platformOrder=='') && (qjGroupId==userInfo.RB_Group_id || F_Finance_Create)" v-on:childByValue="childByValue"></payurlItem>
</td> </td>
</tr> </tr>
<tr> <tr>
...@@ -1401,6 +1401,9 @@ import payURL1 from "../commonPage/payURL1.vue"; ...@@ -1401,6 +1401,9 @@ import payURL1 from "../commonPage/payURL1.vue";
export default { export default {
data() { data() {
return { return {
userInfo:{},
qjGroupId:-1,
F_Finance_Create:false,//制单
pickerOptions0: { pickerOptions0: {
disabledDate: time => { disabledDate: time => {
let starTime = new Date(this.starTime); let starTime = new Date(this.starTime);
...@@ -1608,7 +1611,7 @@ export default { ...@@ -1608,7 +1611,7 @@ export default {
OldTCNUM: '', OldTCNUM: '',
TCNUM: '' TCNUM: ''
} }
} },
}; };
}, },
components: { components: {
...@@ -1630,6 +1633,15 @@ export default { ...@@ -1630,6 +1633,15 @@ export default {
} }
}, },
methods: { methods: {
GetSupperOrderEditAuth() {
var actionCodeNew = this.$AuthCode.F_Finance_Create;
// 制单权限
this.CheckUserAuth(actionCodeNew, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.F_Finance_Create = true;
}
});
},
// 订单转团 // 订单转团
transfer: function (item) { transfer: function (item) {
this.transferData.info.OrderId = item.orderId this.transferData.info.OrderId = item.orderId
...@@ -2585,11 +2597,15 @@ export default { ...@@ -2585,11 +2597,15 @@ export default {
} }
}, },
mounted() { mounted() {
this.qjGroupId=this.qjGroupId();
this.userInfo=this.getLocalStorage();
this.userId = this.getLocalStorage().EmployeeId; this.userId = this.getLocalStorage().EmployeeId;
if (this.$route.query.id) { if (this.$route.query.id) {
this.msg.tempOrderId = this.$route.query.id; this.msg.tempOrderId = this.$route.query.id;
} }
this.msg.QStartDate=new Date().Format('yyyy-MM-dd'); this.msg.QStartDate=new Date().Format('yyyy-MM-dd');
this.GetSupperOrderEditAuth();
this.getEmployee(); this.getEmployee();
this.getList(); this.getList();
this.getLineList(); this.getLineList();
...@@ -2600,6 +2616,7 @@ export default { ...@@ -2600,6 +2616,7 @@ export default {
this.getDdztList(); this.getDdztList();
this.getJyfs(); this.getJyfs();
this.getFylx(); this.getFylx();
} }
}; };
</script> </script>
......
...@@ -171,7 +171,7 @@ ...@@ -171,7 +171,7 @@
<el-button v-show='item.visaManagementId>0' type="primary" style='background:#00a1f1; border-color:#00a1f1' @click='goUrlT(item)' icon="iconfont icon-bumen"></el-button> <el-button v-show='item.visaManagementId>0' type="primary" style='background:#00a1f1; border-color:#00a1f1' @click='goUrlT(item)' icon="iconfont icon-bumen"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip effect="dark" :content="$t('salesModule.ApplyInvoice')" placement="top-start"> <el-tooltip effect="dark" :content="$t('salesModule.ApplyInvoice')" placement="top-start">
<el-button type="primary" style='background:#607D8B; border-color:#607D8B' @click='goUrlAdd("invoicesManagerAdd", item.id, item.visaId, item.CustomerId, 2)' icon="iconfont icon-rizhi1"></el-button> <el-button v-if="F_InvoiceManagement" type="primary" style='background:#607D8B; border-color:#607D8B' @click='goUrlAdd("invoicesManagerAdd", item.id, item.visaId, item.CustomerId, 2)' icon="iconfont icon-rizhi1"></el-button>
</el-tooltip> </el-tooltip>
<el-tooltip v-if="item.income<=0&&(item.visaOrderStatus==1||item.visaOrderStatus==3)" class="item" effect="dark" :content="$t('pub.cancelBtn')" placement="top-start"> <el-tooltip v-if="item.income<=0&&(item.visaOrderStatus==1||item.visaOrderStatus==3)" class="item" effect="dark" :content="$t('pub.cancelBtn')" placement="top-start">
<el-button type="primary" style='background:#E95252; border-color:#E95252;' icon="iconfont icon-xingzhuangkaobei" @click='cancelOrder(item)'></el-button> <el-button type="primary" style='background:#E95252; border-color:#E95252;' icon="iconfont icon-xingzhuangkaobei" @click='cancelOrder(item)'></el-button>
...@@ -377,6 +377,7 @@ ...@@ -377,6 +377,7 @@
export default { export default {
data(){ data(){
return{ return{
F_InvoiceManagement:false,
// pickerOptions: { // pickerOptions: {
// disabledDate: (time) => { // disabledDate: (time) => {
// let endTime=new Date(this.SendStartDate) // let endTime=new Date(this.SendStartDate)
...@@ -439,6 +440,14 @@ export default { ...@@ -439,6 +440,14 @@ export default {
currentPage: 1, currentPage: 1,
} }
},methods:{ },methods:{
GetSupperOrderEditAuth() {
var actionCode = this.$AuthCode.F_InvoiceManagement;
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.F_InvoiceManagement = true;
}
});
},
goUrlFinance(name, path, id, tcmun) { goUrlFinance(name, path, id, tcmun) {
this.$router.push({ name: path, query: { id: id, tcmun: tcmun, blank: 'y', tab: name} }); this.$router.push({ name: path, query: { id: id, tcmun: tcmun, blank: 'y', tab: name} });
}, },
...@@ -688,7 +697,8 @@ export default { ...@@ -688,7 +697,8 @@ export default {
},mounted(){ },mounted(){
this.getList() this.getList()
this.getChinaAirportList() this.getChinaAirportList()
this.getJapanAirportList() this.getJapanAirportList()
this.GetSupperOrderEditAuth();
} }
} }
</script> </script>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<table v-loading="loading" class="singeRowTable" border="0" cellspacing="0" cellpadding="0"> <table v-loading="loading" class="singeRowTable" border="0" cellspacing="0" cellpadding="0">
<tr> <tr>
<th>期数</th> <th>期数</th>
<th v-if="userInfo.RB_Branch_id==0 || userInfo.RB_Branch_id==49">提成总金额</th> <th v-if="userInfo.RB_Branch_id==0 || userInfo.RB_Branch_id==49 || userInfo.RB_Branch_id==userInfo.ParentCompanyId">提成总金额</th>
<th>{{$t('admin.admin_czPerson')}}</th> <th>{{$t('admin.admin_czPerson')}}</th>
<th>所属公司提成</th> <th>所属公司提成</th>
<th>财务单据</th> <th>财务单据</th>
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
</tr> </tr>
<tr v-for="(item,index) in dataList" :key="index"> <tr v-for="(item,index) in dataList" :key="index">
<td>{{item.periods}}</td> <td>{{item.periods}}</td>
<td v-if="userInfo.RB_Branch_id==0 || userInfo.RB_Branch_id==49">{{item.sumPrice.toFixed(2)}}</td> <td v-if="userInfo.RB_Branch_id==0 || userInfo.RB_Branch_id==49 || userInfo.RB_Branch_id==userInfo.ParentCompanyId">{{item.sumPrice.toFixed(2)}}</td>
<td>{{item.createByStr}}</td> <td>{{item.createByStr}}</td>
<td>{{item.branchMoney.toFixed(2)}}</td> <td>{{item.branchMoney.toFixed(2)}}</td>
<td> <td>
...@@ -164,7 +164,7 @@ ...@@ -164,7 +164,7 @@
IsUploadPic: 1, IsUploadPic: 1,
orderObj: JSON.stringify(obj) orderObj: JSON.stringify(obj)
} }
if (this.userInfo.RB_Branch_id == 0) { if (this.userInfo.RB_Branch_id == 0 || this.userInfo.RB_Branch_id ==this.userInfo.ParentCompanyId) {
query.id = 28 query.id = 28
query.Name = "总部销售提成单" query.Name = "总部销售提成单"
} else { } else {
......
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