Commit b0c54e53 authored by 黄媛媛's avatar 黄媛媛

update

parent e0bb1b38
......@@ -129,7 +129,10 @@
<li><span>待审金额:</span><span :class="{color_red:(allMoneyP-shiMoneyP)!==allMoneyP}">{{moneyFormat(allMoneyP-shiMoneyP)}}</span></li>
</ul>
</div>
<p class="sfd_tit clearfix">收款单 <input type="button" value="增加签证财务单据" class="normalBtn" @click="OpenOrder(1)"> <input type="button" value="增加保险财务单据" class="normalBtn" @click="OpenOrder2(1)"></p>
<p class="sfd_tit clearfix">收款单
<input v-if="qjGroupId==userInfo.RB_Group_id || F_Finance_Create" type="button" value="增加签证财务单据" class="normalBtn" @click="OpenOrder(1)">
<input v-if="qjGroupId==userInfo.RB_Group_id || F_Finance_Create" type="button" value="增加保险财务单据" class="normalBtn" @click="OpenOrder2(1)">
</p>
<table border="0" cellspacing="1" cellpadding="0" class="teamRevenueExpenditureTable">
<tr>
<th width="100">单号</th>
......@@ -229,7 +232,9 @@
</td>
</tr>
</table>
<p class="sfd_tit clearfix">付款单 <input type="button" value="增加签证财务单据" class="normalBtn" @click="OpenOrder(2)"><input type="button" value="增加保险财务单据" class="normalBtn" @click="OpenOrder2(2)"></p>
<p class="sfd_tit clearfix">付款单
<input type="button" v-if="qjGroupId==userInfo.RB_Group_id || F_Finance_Create" value="增加签证财务单据" class="normalBtn" @click="OpenOrder(2)">
<input type="button" v-if="qjGroupId==userInfo.RB_Group_id || F_Finance_Create" value="增加保险财务单据" class="normalBtn" @click="OpenOrder2(2)"></p>
<table border="0" cellspacing="1" cellpadding="0" class="teamRevenueExpenditureTable">
<tr>
<th width="100">单号</th>
......@@ -364,7 +369,9 @@
export default {
data() {
return {
qjGroupId:-1,
F_Finance_Create:false,//制单权限
userInfo:{},
dialogVisible:false,
orderId: 0,
dataList: [],
......@@ -428,6 +435,16 @@ export default {
}
},
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;
}
});
},
checkThis(){ // 单选
if(this.checkList.length==this.checkListAll.length){
this.checkd = true
......@@ -590,6 +607,9 @@ export default {
},
}, mounted() {
this.userInfo=this.getLocalStorage();
this.GetSupperOrderEditAuth();
this.qjGroupId=this.QjGroupId();
this.userId = this.getLocalStorage().EmployeeId;
this.tcid= this.$route.query.TCID;
......
......@@ -164,7 +164,7 @@
<el-tooltip v-else class="item" effect="dark" :content="$t('salesModule.UpRemarks')" placement="top-start">
<el-button type="primary" style='background:#409EFF; border-color:#409EFF' icon="iconfont icon-img_bianji_small" @click='getDetail(item,true)'></el-button>
</el-tooltip>
<el-tooltip v-if="item.visaOrderStatus==1||item.visaOrderStatus==3" effect="dark" :content="$t('salesModule.SFK')" placement="top-start">
<el-tooltip v-if="(item.visaOrderStatus==1||item.visaOrderStatus==3) && qjGroupId==userInfo.RB_Group_id || F_Finance_Create" effect="dark" :content="$t('salesModule.SFK')" placement="top-start">
<el-button type="primary" style='background:#5EBB64; border-color:#5EBB64' @click='goUrl(item)' icon="iconfont icon-qian"></el-button>
</el-tooltip>
<el-tooltip v-if="(item.visaOrderStatus==1||item.visaOrderStatus==3)&&item.visaStatus==1" effect="dark" :content="$t('salesModule.LKMD')" placement="top-start">
......@@ -380,6 +380,7 @@ export default {
userInfo:{},
qjGroupId:-1,
F_InvoiceManagement:false,
F_Finance_Create:false,
// pickerOptions: {
// disabledDate: (time) => {
// let endTime=new Date(this.SendStartDate)
......@@ -449,6 +450,13 @@ export default {
this.F_InvoiceManagement = true;
}
});
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;
}
});
},
goUrlFinance(name, path, id, tcmun) {
this.$router.push({ name: path, query: { id: id, tcmun: tcmun, blank: 'y', tab: name} });
......
......@@ -235,14 +235,16 @@ export default {
// LineIDList:{},
this.apipost('dict_get_GetVisaLineList',{},res=>{
if(res.data.resultCode==1){
console.log("res",res.data.data);
this.LineIDList=res.data.data;
// 在集合里
if(this.LineIDList.indexOf(this.LineID)>-1){
console.log("this",this.LineIDList);
if(this.LineIDList.indexOf(Number(this.LineID))>-1){
this.LineIDState=1;
}else{
this.LineIDState=2;
}
console.log("this.LineIDState",this.LineIDState);
console.log("this.LineID",this.LineID);
}else{
this.$message.error(res.data.message)
}
......@@ -250,6 +252,7 @@ export default {
},err=>{})
},
bindVisa(command){ //绑定签证类型
console.log("command.id",command.id)
if(command.id>0&&this.LineIDState==2){
this.$message.error(this.$t('visaT.qxzzzdqzlx'))
return;
......
......@@ -487,7 +487,10 @@ export default {
this.VisaManagementList = res.data.data;
if(this.VisaManagementList.length>0){
this.actieID = this.VisaManagementList[0].Id;
this.msg.CountryType=this.actieID;
this.getList()
}
}else{
this.$message.error(res.data.message)
}
......@@ -512,8 +515,9 @@ export default {
})
}
},mounted(){
this.getList()
this.getVisaManagementList()
}
}
</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