|
@@ -28,10 +28,14 @@
|
|
|
|
|
|
<div class="mui-input-row mui-checkbox mui-left" v-for="item,i in recordList">
|
|
<div class="mui-input-row mui-checkbox mui-left" v-for="item,i in recordList">
|
|
|
|
|
|
- <router-link :to="{name:'XsyApprovalInfoSp',query:{id:item.id,procinstActUserId:item.procinstActUserId,formId:mymod.formId}}" class="mui-media-body">
|
|
|
|
|
|
+ <router-link :to="{name:'XsyApprovalInfoSp',query:{id:item.id,procinstActUserId:item.procinstActUserId,formId:listmod[item.procinstType].formId}}" class="mui-media-body">
|
|
|
|
|
|
- <h4 class="flew-sp margin10">{{item[mymod.name?mymod.name:'name']}}{{mymod.text1}}申请<span class="color999 mui-h5">{{item.createTime}}</span></h4>
|
|
|
|
|
|
+ <h4 class="flew-sp margin10">{{item[mymod.name?mymod.name:'name']}}{{formId=='Need'?'的'+item.procinstTypeName:mymod.text1}}申请
|
|
|
|
+ <span class="color999 mui-h5" v-if="formId!='Need'">{{item.createTime}}</span>
|
|
|
|
+ <span class=" mui-h5" style="color: #1677FF;font-size: 14px;" v-if="formId=='Need'">{{item.procinstTypeName}}</span>
|
|
|
|
+ </h4>
|
|
<h5 class='mui-ellipsis color999'>{{mymod.text2}}:{{item[mymod.param]}}</h5>
|
|
<h5 class='mui-ellipsis color999'>{{mymod.text2}}:{{item[mymod.param]}}</h5>
|
|
|
|
+
|
|
</router-link>
|
|
</router-link>
|
|
<input name="checkbox" v-model="ids" :value="item.procinstActUserId" type="checkbox" >
|
|
<input name="checkbox" v-model="ids" :value="item.procinstActUserId" type="checkbox" >
|
|
</div>
|
|
</div>
|
|
@@ -46,11 +50,21 @@
|
|
<div class="mui-scroll">
|
|
<div class="mui-scroll">
|
|
<ul class="mui-table-view mui-table-view-chevron">
|
|
<ul class="mui-table-view mui-table-view-chevron">
|
|
<li class="mui-table-view-cell mui-media" v-for="item,i in recordList2">
|
|
<li class="mui-table-view-cell mui-media" v-for="item,i in recordList2">
|
|
- <router-link :to="{name:'XsyApprovalInfo',query:{id:item.id,formId:mymod.formId}}" class="mui-media-body">
|
|
|
|
|
|
+ <router-link :to="{name:'XsyApprovalInfo',query:{id:item.id,formId:listmod[item.procinstType].formId}}" class="mui-media-body">
|
|
|
|
|
|
- <h4 class="flew-sp margin10">{{item.name}}的{{mymod.text}}申请<span class="color999 mui-h5">{{item.createTime}}</span></h4>
|
|
|
|
- <h5 class='mui-ellipsis color999 flew-sp flew-items'>{{mymod.text}}日期:{{item[mymod.param]}}
|
|
|
|
- <button class="mui-btn mui-btn-outlined" :class="{'mui-btn-primary':item.action==0,
|
|
|
|
|
|
+ <h4 class="flew-sp margin10">{{item.name}}{{formId=='Need'?'的'+item.procinstTypeName:mymod.text1}}申请
|
|
|
|
+
|
|
|
|
+ <span class="color999 mui-h5" v-if="formId!='Need'">{{item.createTime}}</span>
|
|
|
|
+ <span class="color999 mui-h5" v-if="formId=='Need'">
|
|
|
|
+
|
|
|
|
+ <button class="mui-btn mui-btn-outlined" style="padding: 2px 10px;" :class="{'mui-btn-primary':item.action==0,
|
|
|
|
+ 'mui-btn-danger':item.action==2||item.action==3,
|
|
|
|
+ 'mui-btn-success':item.action==1||item.action==4}" >{{item.actionName}}</button>
|
|
|
|
+ </span>
|
|
|
|
+ </h4>
|
|
|
|
+
|
|
|
|
+ <h5 class='mui-ellipsis color999 flew-sp flew-items'>{{mymod.text2}}:{{item[mymod.param]}}
|
|
|
|
+ <button v-if="formId!='Need'" class="mui-btn mui-btn-outlined" style="padding: 2px 10px;" :class="{'mui-btn-primary':item.action==0,
|
|
'mui-btn-danger':item.action==2||item.action==3,
|
|
'mui-btn-danger':item.action==2||item.action==3,
|
|
'mui-btn-success':item.action==1||item.action==4}" >{{item.actionName}}</button>
|
|
'mui-btn-success':item.action==1||item.action==4}" >{{item.actionName}}</button>
|
|
|
|
|
|
@@ -129,7 +143,14 @@
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
mymod:{},
|
|
mymod:{},
|
|
- listmod:[{},{
|
|
|
|
|
|
+ listmod:[{
|
|
|
|
+ title:"待办事项",
|
|
|
|
+ text1:"",
|
|
|
|
+ text2:"申请时间",
|
|
|
|
+ formId:"",
|
|
|
|
+
|
|
|
|
+ param:"createTime"
|
|
|
|
+ },{
|
|
title:"调班审核",
|
|
title:"调班审核",
|
|
text1:"的调班",
|
|
text1:"的调班",
|
|
text2:"调班日期",
|
|
text2:"调班日期",
|
|
@@ -223,10 +244,24 @@
|
|
},
|
|
},
|
|
}
|
|
}
|
|
},
|
|
},
|
|
- created() {
|
|
|
|
- this.listForm.procinstType=this.formId;
|
|
|
|
- this.listForm2.procinstType=this.formId;
|
|
|
|
|
|
+ created() {
|
|
|
|
+ if(this.formId=="key"){
|
|
|
|
+ var formId= this.$route.query.formId;
|
|
|
|
+ for(var i in this.listmod){
|
|
|
|
+ if(this.listmod[i].formId==formId){
|
|
|
|
+ this.formId=i;
|
|
|
|
+ break
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ this.listForm.procinstType=this.formId;
|
|
|
|
+ this.listForm2.procinstType=this.formId;
|
|
|
|
+ if(this.formId=="Need"){
|
|
|
|
+ this.listForm.procinstType="";
|
|
|
|
+ this.listForm2.procinstType="";
|
|
|
|
+ }
|
|
},
|
|
},
|
|
methods: {
|
|
methods: {
|
|
leaveItem(detail){
|
|
leaveItem(detail){
|
|
@@ -243,6 +278,10 @@
|
|
if(this.formId=="6"||this.formId=="7"){
|
|
if(this.formId=="6"||this.formId=="7"){
|
|
detail.supplementDate=detail.startTime+" "+detail.hours+"小时"
|
|
detail.supplementDate=detail.startTime+" "+detail.hours+"小时"
|
|
}
|
|
}
|
|
|
|
+ if(!detail.procinstType){
|
|
|
|
+ detail.procinstType=this.formId;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
},
|
|
},
|
|
mySwitchTab(bl){
|
|
mySwitchTab(bl){
|
|
@@ -316,6 +355,8 @@
|
|
API.alreadyExamineShiftList(this.listForm2).then(response => {
|
|
API.alreadyExamineShiftList(this.listForm2).then(response => {
|
|
if (response) {
|
|
if (response) {
|
|
for(var i in response.data){
|
|
for(var i in response.data){
|
|
|
|
+
|
|
|
|
+
|
|
this.leaveItem(response.data[i])
|
|
this.leaveItem(response.data[i])
|
|
}
|
|
}
|
|
if (this.listForm2.pageIndex == 1) {
|
|
if (this.listForm2.pageIndex == 1) {
|
|
@@ -394,7 +435,12 @@
|
|
|
|
|
|
},
|
|
},
|
|
mounted() {
|
|
mounted() {
|
|
- this.mymod=this.listmod[this.formId];
|
|
|
|
|
|
+ if(this.formId=="Need"){
|
|
|
|
+ this.mymod=this.listmod[0];
|
|
|
|
+ }else{
|
|
|
|
+ this.mymod=this.listmod[this.formId];
|
|
|
|
+ }
|
|
|
|
+
|
|
if(this.switchTab){
|
|
if(this.switchTab){
|
|
this.getList();
|
|
this.getList();
|
|
}else{
|
|
}else{
|