Commit 6b179f03 authored by 黄媛媛's avatar 黄媛媛

update

parent c1b82cd7
......@@ -1495,6 +1495,7 @@ export default {
CostTypeState:false,
LeadState:false,
huijiShow:false,
CapitalPool:false,
}
},
components:{
......@@ -2520,24 +2521,40 @@ export default {
}
}, err => {})
},
GetSupperOrderEditAuth() {
var actionCode = this.$AuthCode.F_PayMoney_CapitalPool;
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.CapitalPool = true;
}
});
},
AccountType_post_GetList(){ //获取账户类型下拉
this.apipost('AccountType_post_GetList',this.queryAccMsg,res=>{
if(res.data.resultCode==1){
let data=res.data.data;
if(this.RB_Post_Id!=5&&this.userId!=1648){
if(this.userId==1918 || this.userId==2113 || this.userId==2424){
this.AccList = res.data.data;
}else{
data.forEach(item=>{
if(item.Name!="公社资金池" && item.Name!="水口资金池" && item.Name!="橡胶资金池" && item.Name!="老挝购物店资金池"){
if(this.CapitalPool || this.userId==1918 || this.userId==2113 || this.userId==2424){
this.AccList = res.data.data;
}else{
data.forEach(item=>{
if(item.Name!="公社资金池" && item.Name!="水口资金池" && item.Name!="橡胶资金池" && item.Name!="老挝购物店资金池"){
this.AccList.push(item);
}
})
}
}else{
this.AccList = res.data.data;
}
// this.AccList = res.data.data;
// if(this.RB_Post_Id!=5&&this.userId!=1648){
// if(this.userId==1918 || this.userId==2113 || this.userId==2424){
// this.AccList = res.data.data;
// }else{
// data.forEach(item=>{
// if(item.Name!="公社资金池" && item.Name!="水口资金池" && item.Name!="橡胶资金池" && item.Name!="老挝购物店资金池"){
// this.AccList.push(item);
// }
// })
// }
// }else{
// this.AccList = res.data.data;
// }
}else{
this.$message.error(res.data.message);
}
......@@ -2684,6 +2701,7 @@ export default {
if(this.$route.query.Conditon){
this.returnCode = this.$route.query.Conditon;
}
this.GetSupperOrderEditAuth();
},
watch : {
'choiceMsg.Status':function(val) {
......
......@@ -8,7 +8,7 @@
<el-input class="w200" v-model="msg.Title"></el-input>
</span>
</li>
<li v-if="EmployeeId==1 || EmployeeId==5">
<li v-if="EmployeeId==1 || EmployeeId==5 || F_GeneralManager">
<span>
<em>员工</em>
</span>
......@@ -47,13 +47,13 @@
@click="getList()"
>
<!-- -->
<input v-if="EmployeeId==1 || EmployeeId==5"
<input v-if="EmployeeId==1 || EmployeeId==5 || F_GeneralManager"
type="button"
class="hollowFixedBtn"
value="新增"
@click="addRule"
>
<input v-if="EmployeeId==1 || EmployeeId==5"
<input v-if="EmployeeId==1 || EmployeeId==5 || F_GeneralManager"
type="button"
class="hollowFixedBtn"
value="制单"
......@@ -212,6 +212,7 @@ export default {
name: 'Feedback',
data (){
return{
F_GeneralManager:false,
total:0,
msg:{
EmployeeId:'',
......@@ -289,6 +290,15 @@ export default {
},
methods:{
GetSupperOrderEditAuth() {
// F_GeneralManager_Special 财务总经理副总经理权限
var actionCode = this.$AuthCode.F_GeneralManager_Special;
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.F_GeneralManager = true;
}
});
},
goUrl(){
this.$router.push({
name: 'addFinancialDocuments',
......
......@@ -576,7 +576,7 @@ tr._item_list td:last-child {
</el-select>
</el-form-item>
</el-col>
<el-col :span="4" v-if="userId==1||userId==5">
<el-col :span="4" v-if="userId==1 || userId==5 || F_GeneralManager">
<el-button @click="msg.Is_Open=0,SetTravelClose()" type="danger" size="small" round :loading="btnloading">开启团队收支</el-button>
<el-button @click="msg.Is_Open=1,SetTravelClose()" type="danger" size="small" round :loading="btnloading">关闭团队收支</el-button>
</el-col>
......@@ -1746,6 +1746,7 @@ export default {
BranchStatus:true,
shujuType:false,
PlaceList:[],
F_GeneralManager:false,
};
},
created() {
......@@ -1835,8 +1836,18 @@ export default {
this.getLineList();
this.getStartList1();
this.getPageList();
this.GetSupperOrderEditAuth();
},
methods: {
GetSupperOrderEditAuth() {
// F_GeneralManager_Special 财务总经理副总经理权限
var actionCode = this.$AuthCode.F_GeneralManager_Special;
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.F_GeneralManager = true;
}
});
},
rowClick(rowIndex,rowData,column){
let path='RegistrationList';
if(this.msg.DataType==1 || this.msg.DataType=='1'){
......
......@@ -361,7 +361,7 @@
<button class="normalBtn" @click="dialogFormVisible2 = true">{{$t('ios.tonggei')}}</button>
<button class="hollowFixedBtn" @click="dialogFormVisible = true">{{$t('ios.jujue')}}</button>
</div>
<div class="iis_save" v-else-if="noDetail && detail.InvoiceApplyState===1 && (EmployeeId === detail.CreateById || EmployeeId === 1)">
<div class="iis_save" v-else-if="noDetail && detail.InvoiceApplyState===1 && (EmployeeId === detail.CreateById || EmployeeId===1 || F_GeneralManager)">
<button class="normalBtn" @click="setStatus(2)">{{$t('pub.cancelBtn')}}</button>
</div>
<div class="imd_img_box">
......@@ -489,9 +489,19 @@ export default {
},
fujianShow:true,
saveMsg: [],
F_GeneralManager:false,
};
},
methods: {
GetSupperOrderEditAuth() {
// F_GeneralManager_Special 财务总经理副总经理权限
var actionCode = this.$AuthCode.F_GeneralManager_Special;
this.CheckUserAuth(actionCode, res => {
if (res.data.resultCode == 1 && res.data.data == 1) {
this.F_GeneralManager = true;
}
});
},
// 修改
goEdit: function () {
this.$router.push({ name: 'invoicesManagerAdd', query:{id: this.detail.ID, OrderId: this.detail.OrderId, TCID: this.detail.TCID, CustomerId: this.detail.CustomerId, edit: 1, blank:'y', tab:'修改发票单据'} })
......@@ -665,6 +675,7 @@ export default {
this.noDetail = this.$route.query.noDetail ? true : false
this.msg.ID = id
this.getDetail(id)
this.GetSupperOrderEditAuth();
}
};
</script>
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