Commit 36010514 authored by youjie's avatar youjie

ChoiceAddFinancialDocuments 制单流程 bigShow showYes

parent e1010132
...@@ -39,7 +39,8 @@ ...@@ -39,7 +39,8 @@
<el-input v-model="searchVal" placeholder="请输入内容" style="width:200px"></el-input> <el-input v-model="searchVal" placeholder="请输入内容" style="width:200px"></el-input>
</div> </div>
<ul class="_conten"> <ul class="_conten">
<li v-for="(item,index) in NewItems" v-if="(item.IsShow === 1 || item.showYes) && item.bigShow"> <li v-for="(item,index) in NewItems">
<template v-if="(item.IsShow === 1 || item.showYes) && item.bigShow">
<div class="_left"> <div class="_left">
<span class="_Icon">{{item.Name.substring(0,1)}}</span> <span class="_Icon">{{item.Name.substring(0,1)}}</span>
<div> <div>
...@@ -63,10 +64,11 @@ ...@@ -63,10 +64,11 @@
</el-popover> </el-popover>
</el-tooltip> </el-tooltip>
<el-tooltip class="item" effect="dark" :content="$t('pub.addBtn')" placement="top"> <el-tooltip class="item" effect="dark" :content="$t('pub.addBtn')" placement="top">
<i class="edit el-icon-circle-plus-outline" <i class="edit el-icon-circle-plus-outline"
@click="goUrl('addFinancialDocuments',item.Id,item.Name+$t('visa.v_dan'),item.Type,item.IsUploadPic)"></i> @click="goUrl('addFinancialDocuments',item.Id,item.Name+$t('visa.v_dan'),item.Type,item.IsUploadPic)"></i>
</el-tooltip> </el-tooltip>
</div> </div>
</template>
</li> </li>
</ul> </ul>
<div class="noData" v-show="noData"> <div class="noData" v-show="noData">
...@@ -136,7 +138,7 @@ ...@@ -136,7 +138,7 @@
}else{ }else{
// crm自动登陆传过来的参数 // crm自动登陆传过来的参数
if(this.crmOrderObj){ if(this.crmOrderObj){
this.$router.push({ this.$router.push({
name: "addReceivablesDocuments", name: "addReceivablesDocuments",
query:{ query:{
"tradeWay":this.tradeWay, "tradeWay":this.tradeWay,
...@@ -156,7 +158,7 @@ ...@@ -156,7 +158,7 @@
}) })
}// 同业制单 }// 同业制单
else if(this.$route.query.tradeObj){ else if(this.$route.query.tradeObj){
this.$router.push({ this.$router.push({
name: "addReceivablesDocuments", name: "addReceivablesDocuments",
query:{ query:{
"tradeWay":this.tradeWay, "tradeWay":this.tradeWay,
...@@ -175,7 +177,7 @@ ...@@ -175,7 +177,7 @@
} }
}) })
}else{ }else{
this.$router.push({ this.$router.push({
name: "addReceivablesDocuments", name: "addReceivablesDocuments",
query:{ query:{
"tradeWay":this.tradeWay, "tradeWay":this.tradeWay,
...@@ -203,7 +205,7 @@ ...@@ -203,7 +205,7 @@
}else{ }else{
// crm自动登陆传过来的参数 // crm自动登陆传过来的参数
if(this.crmOrderObj){ if(this.crmOrderObj){
this.$router.push({ this.$router.push({
name: path, name: path,
query:{ query:{
"id":id, "id":id,
...@@ -220,7 +222,7 @@ ...@@ -220,7 +222,7 @@
} }
}) })
}else if(this.commissionObj){//印象提成制单 }else if(this.commissionObj){//印象提成制单
this.$router.push({ this.$router.push({
name: path, name: path,
query:{ query:{
"id":id, "id":id,
...@@ -233,7 +235,7 @@ ...@@ -233,7 +235,7 @@
} }
}) })
}else if(this.tradeObj){//同业制单 }else if(this.tradeObj){//同业制单
this.$router.push({ this.$router.push({
name: path, name: path,
query:{ query:{
"id":id, "id":id,
...@@ -246,7 +248,7 @@ ...@@ -246,7 +248,7 @@
} }
}) })
} else{ } else{
this.$router.push({ this.$router.push({
name: path, name: path,
query:{ query:{
"id":id, "id":id,
...@@ -262,13 +264,13 @@ ...@@ -262,13 +264,13 @@
} }
}) })
} }
} }
}else if(this.active==4){ }else if(this.active==4){
this.$router.push({ name: path,query:{"id":id,"Name":Name,"Type":2,"orderObj":this.orderObj,'path':this.$route.query.path,'IsUploadPic':IsUploadPic,'Cmd':this.$route.query.Cmd,'companyID':this.$route.query.companyID,blank:'y',tab:'新增付款单'}}) this.$router.push({ name: path,query:{"id":id,"Name":Name,"Type":2,"orderObj":this.orderObj,'path':this.$route.query.path,'IsUploadPic':IsUploadPic,'Cmd':this.$route.query.Cmd,'companyID':this.$route.query.companyID,blank:'y',tab:'新增付款单'}})
}else { }else {
if(this.tradeObj&&this.tradeObj.OtherType){ if(this.tradeObj&&this.tradeObj.OtherType){
this.$router.push({ this.$router.push({
name: "addFinancialGZDocuments", name: "addFinancialGZDocuments",
query:{ query:{
"id":id, "id":id,
...@@ -285,7 +287,7 @@ ...@@ -285,7 +287,7 @@
}else { }else {
this.$router.push({ name: "addFinancialGZDocuments",query:{"id":id,"Name":Name,"Type":Type,"orderObj":this.orderObj,'path':this.$route.query.path,'IsUploadPic':IsUploadPic,'Cmd':this.$route.query.Cmd,'companyID':this.$route.query.companyID,blank:'y',tab:'新增挂账单'}}) this.$router.push({ name: "addFinancialGZDocuments",query:{"id":id,"Name":Name,"Type":Type,"orderObj":this.orderObj,'path':this.$route.query.path,'IsUploadPic':IsUploadPic,'Cmd':this.$route.query.Cmd,'companyID':this.$route.query.companyID,blank:'y',tab:'新增挂账单'}})
} }
} }
}, },
getFlowChart(id){ //获取流程图 getFlowChart(id){ //获取流程图
...@@ -356,24 +358,26 @@ ...@@ -356,24 +358,26 @@
// } else { // } else {
// 5-5 仅茈、而巳。 14:32:06 // 5-5 仅茈、而巳。 14:32:06
// 部门id = 242 或者 240 就展示出 templeteId=33 的流程, 流程名字叫做 公司佣金收款 // 部门id = 242 或者 240 就展示出 templeteId=33 的流程, 流程名字叫做 公司佣金收款
if (x.Id === 33 || x.Id === 48) { // if (x.Id === 33 || x.Id === 48) {
if (x.Id === 33) { // if (x.Id === 33) {
if (this.DepartID === 242 || this.DepartID === 240) { // if (this.DepartID === 242 || this.DepartID === 240) {
x.bigShow = true // x.bigShow = true
} else { // } else {
x.bigShow = false // x.bigShow = false
} // }
} else if (x.Id === 48 ) { //76 77 稽核单据|| x.Id === 76 || x.Id === 77 // } else if (x.Id === 48 ) { //76 77 稽核单据|| x.Id === 76 || x.Id === 77
// if (this.EmployeeId === 1725) { // if (this.EmployeeId === 1725) {
x.bigShow = true // x.bigShow = true
// } else { // } else {
// x.bigShow = false // x.bigShow = false
// } // }
} // }
} else { // } else {
x.bigShow = true // x.bigShow = true
} // }
// } // }
x.bigShow = true
x.showYes = true
if(x.Type==1){ if(x.Type==1){
this.collectList.push(x); this.collectList.push(x);
}else if (x.Type==2){ }else if (x.Type==2){
...@@ -417,7 +421,7 @@ ...@@ -417,7 +421,7 @@
this.showTab = this.$route.query.Type?this.$route.query.Type:0; this.showTab = this.$route.query.Type?this.$route.query.Type:0;
this.active = parseInt(this.$route.query.Type)?parseInt(this.$route.query.Type):1; this.active = parseInt(this.$route.query.Type)?parseInt(this.$route.query.Type):1;
} }
if(this.getLocalStorage()){ if(this.getLocalStorage()){
let userInfo = this.getLocalStorage(); let userInfo = this.getLocalStorage();
this.DepartID = userInfo.RB_Department_Id; this.DepartID = userInfo.RB_Department_Id;
this.EmployeeId = userInfo.EmployeeId; this.EmployeeId = userInfo.EmployeeId;
......
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