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

update

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