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

update

parent c1b82cd7
...@@ -1495,6 +1495,7 @@ export default { ...@@ -1495,6 +1495,7 @@ export default {
CostTypeState:false, CostTypeState:false,
LeadState:false, LeadState:false,
huijiShow:false, huijiShow:false,
CapitalPool:false,
} }
}, },
components:{ components:{
...@@ -2520,12 +2521,19 @@ export default { ...@@ -2520,12 +2521,19 @@ export default {
} }
}, err => {}) }, 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(){ //获取账户类型下拉 AccountType_post_GetList(){ //获取账户类型下拉
this.apipost('AccountType_post_GetList',this.queryAccMsg,res=>{ this.apipost('AccountType_post_GetList',this.queryAccMsg,res=>{
if(res.data.resultCode==1){ if(res.data.resultCode==1){
let data=res.data.data; let data=res.data.data;
if(this.RB_Post_Id!=5&&this.userId!=1648){ if(this.CapitalPool || this.userId==1918 || this.userId==2113 || this.userId==2424){
if(this.userId==1918 || this.userId==2113 || this.userId==2424){
this.AccList = res.data.data; this.AccList = res.data.data;
}else{ }else{
data.forEach(item=>{ data.forEach(item=>{
...@@ -2534,10 +2542,19 @@ export default { ...@@ -2534,10 +2542,19 @@ export default {
} }
}) })
} }
}else{ // if(this.RB_Post_Id!=5&&this.userId!=1648){
this.AccList = res.data.data; // if(this.userId==1918 || this.userId==2113 || this.userId==2424){
}
// this.AccList = res.data.data; // 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{ }else{
this.$message.error(res.data.message); this.$message.error(res.data.message);
} }
...@@ -2684,6 +2701,7 @@ export default { ...@@ -2684,6 +2701,7 @@ export default {
if(this.$route.query.Conditon){ if(this.$route.query.Conditon){
this.returnCode = this.$route.query.Conditon; this.returnCode = this.$route.query.Conditon;
} }
this.GetSupperOrderEditAuth();
}, },
watch : { watch : {
'choiceMsg.Status':function(val) { 'choiceMsg.Status':function(val) {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<el-input class="w200" v-model="msg.Title"></el-input> <el-input class="w200" v-model="msg.Title"></el-input>
</span> </span>
</li> </li>
<li v-if="EmployeeId==1 || EmployeeId==5"> <li v-if="EmployeeId==1 || EmployeeId==5 || F_GeneralManager">
<span> <span>
<em>员工</em> <em>员工</em>
</span> </span>
...@@ -47,13 +47,13 @@ ...@@ -47,13 +47,13 @@
@click="getList()" @click="getList()"
> >
<!-- --> <!-- -->
<input v-if="EmployeeId==1 || EmployeeId==5" <input v-if="EmployeeId==1 || EmployeeId==5 || F_GeneralManager"
type="button" type="button"
class="hollowFixedBtn" class="hollowFixedBtn"
value="新增" value="新增"
@click="addRule" @click="addRule"
> >
<input v-if="EmployeeId==1 || EmployeeId==5" <input v-if="EmployeeId==1 || EmployeeId==5 || F_GeneralManager"
type="button" type="button"
class="hollowFixedBtn" class="hollowFixedBtn"
value="制单" value="制单"
...@@ -212,6 +212,7 @@ export default { ...@@ -212,6 +212,7 @@ export default {
name: 'Feedback', name: 'Feedback',
data (){ data (){
return{ return{
F_GeneralManager:false,
total:0, total:0,
msg:{ msg:{
EmployeeId:'', EmployeeId:'',
...@@ -289,6 +290,15 @@ export default { ...@@ -289,6 +290,15 @@ export default {
}, },
methods:{ 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(){ goUrl(){
this.$router.push({ this.$router.push({
name: 'addFinancialDocuments', name: 'addFinancialDocuments',
......
...@@ -576,7 +576,7 @@ tr._item_list td:last-child { ...@@ -576,7 +576,7 @@ tr._item_list td:last-child {
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </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=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-button @click="msg.Is_Open=1,SetTravelClose()" type="danger" size="small" round :loading="btnloading">关闭团队收支</el-button>
</el-col> </el-col>
...@@ -1746,6 +1746,7 @@ export default { ...@@ -1746,6 +1746,7 @@ export default {
BranchStatus:true, BranchStatus:true,
shujuType:false, shujuType:false,
PlaceList:[], PlaceList:[],
F_GeneralManager:false,
}; };
}, },
created() { created() {
...@@ -1835,8 +1836,18 @@ export default { ...@@ -1835,8 +1836,18 @@ export default {
this.getLineList(); this.getLineList();
this.getStartList1(); this.getStartList1();
this.getPageList(); this.getPageList();
this.GetSupperOrderEditAuth();
}, },
methods: { 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){ rowClick(rowIndex,rowData,column){
let path='RegistrationList'; let path='RegistrationList';
if(this.msg.DataType==1 || this.msg.DataType=='1'){ if(this.msg.DataType==1 || this.msg.DataType=='1'){
......
...@@ -361,7 +361,7 @@ ...@@ -361,7 +361,7 @@
<button class="normalBtn" @click="dialogFormVisible2 = true">{{$t('ios.tonggei')}}</button> <button class="normalBtn" @click="dialogFormVisible2 = true">{{$t('ios.tonggei')}}</button>
<button class="hollowFixedBtn" @click="dialogFormVisible = true">{{$t('ios.jujue')}}</button> <button class="hollowFixedBtn" @click="dialogFormVisible = true">{{$t('ios.jujue')}}</button>
</div> </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> <button class="normalBtn" @click="setStatus(2)">{{$t('pub.cancelBtn')}}</button>
</div> </div>
<div class="imd_img_box"> <div class="imd_img_box">
...@@ -489,9 +489,19 @@ export default { ...@@ -489,9 +489,19 @@ export default {
}, },
fujianShow:true, fujianShow:true,
saveMsg: [], saveMsg: [],
F_GeneralManager:false,
}; };
}, },
methods: { 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 () { 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:'修改发票单据'} }) 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 { ...@@ -665,6 +675,7 @@ export default {
this.noDetail = this.$route.query.noDetail ? true : false this.noDetail = this.$route.query.noDetail ? true : false
this.msg.ID = id this.msg.ID = id
this.getDetail(id) this.getDetail(id)
this.GetSupperOrderEditAuth();
} }
}; };
</script> </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