|
@@ -104,6 +104,7 @@
|
|
|
workOverTime:0,
|
|
|
typeName: '请选择',
|
|
|
approvalPersonName: '请选择',
|
|
|
+ //selectIndex:0,
|
|
|
tjForm: {
|
|
|
startTime: '请选择',
|
|
|
endTime: '请选择',
|
|
@@ -161,40 +162,23 @@
|
|
|
mod.value=mod.id
|
|
|
this.leaveTypeList.push(mod)
|
|
|
}
|
|
|
- }).catch(error => {
|
|
|
- mui.toast(error);
|
|
|
- })
|
|
|
- },
|
|
|
- //获取审核人列表
|
|
|
- getPsersonList() {
|
|
|
- this.isLoading = true;
|
|
|
- //补卡1,外出2,出差3 ,请假4
|
|
|
- var p={type:4};
|
|
|
-
|
|
|
- API_Leave.approvedList(p).then(response => {
|
|
|
- this.workOverTime=response.workOverTime;
|
|
|
- var sz=[];
|
|
|
- for (var i in response.data) {
|
|
|
- var mod = response.data[i]
|
|
|
- mod.text = mod.personName
|
|
|
- mod.value = mod.id;
|
|
|
- sz.push(mod)
|
|
|
- }
|
|
|
- this.approvedList=sz;
|
|
|
|
|
|
- if(this.approvedList.length==1){
|
|
|
- this.tjForm.approvedPersonPopedomId = this.approvedList[0].value;
|
|
|
- this.approvalPersonName = this.approvedList[0].text;
|
|
|
+ if( this.$route.query.select!=null){
|
|
|
+ try{
|
|
|
+ var selectItems =this.leaveTypeList[this.$route.query.select];
|
|
|
+ this.tjForm.docType = selectItems.value;
|
|
|
+ this.tjForm.typeName= selectItems.text;
|
|
|
+ this.typeName = selectItems.text;
|
|
|
+
|
|
|
+ }catch(e){
|
|
|
+
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
- this.isLoading = false;
|
|
|
- //设置默认审核人
|
|
|
- this.setDefaultExaminePerson();
|
|
|
}).catch(error => {
|
|
|
- this.isLoading = false;
|
|
|
mui.toast(error);
|
|
|
})
|
|
|
},
|
|
|
+
|
|
|
//微信选择图片
|
|
|
chooseImage() {
|
|
|
WxJsApi.chooseImage().then(res => {
|
|
@@ -331,7 +315,7 @@
|
|
|
mounted() {
|
|
|
//获取微信配置
|
|
|
WxJsApi.getWxConfig();
|
|
|
- //this.getPsersonList();
|
|
|
+
|
|
|
|
|
|
this.getLeaveTypeList();
|
|
|
|