|
@@ -9,7 +9,8 @@
|
|
<form class="mui-input-group">
|
|
<form class="mui-input-group">
|
|
<div class="mui-input-row">
|
|
<div class="mui-input-row">
|
|
<label><span class="colorfe616c">*</span>请假类型</label>
|
|
<label><span class="colorfe616c">*</span>请假类型</label>
|
|
- <div class="mui-navigate-right" @click="selectType">
|
|
|
|
|
|
+ <!-- <div class="mui-navigate-right" @click="selectType"> -->
|
|
|
|
+ <div class="mui-navigate-right">
|
|
<button class="mui-btn mui-btn-block" type='button' v-text="typeName">请选择</button>
|
|
<button class="mui-btn mui-btn-block" type='button' v-text="typeName">请选择</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
@@ -39,7 +40,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="mui-input-row">
|
|
<div class="mui-input-row">
|
|
<label><span class="colorfe616c"></span>审批人</label>
|
|
<label><span class="colorfe616c"></span>审批人</label>
|
|
- <div class=" " >
|
|
|
|
|
|
+ <div class=" ">
|
|
<span class="mui-btn mui-btn-block" type='button' >{{examinePerson.name}}</span>
|
|
<span class="mui-btn mui-btn-block" type='button' >{{examinePerson.name}}</span>
|
|
|
|
|
|
|
|
|
|
@@ -68,9 +69,9 @@
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="mui-content-padded mui-h6">注:<br/>
|
|
<div class="mui-content-padded mui-h6">注:<br/>
|
|
- 1、病假须上传医院证明。<br/>
|
|
|
|
- 2、请假事由中须写明请假去向。<br/>
|
|
|
|
- <span v-if="tjForm.leaveType==6" style="color:red" >3、丧假事由不需要上传照片,销假只需要上传火化纸质证明。</span><br/>
|
|
|
|
|
|
+ <!-- 1、病假须上传医院证明。<br/> -->
|
|
|
|
+ 1、请假事由中须写明请假去向。<br/>
|
|
|
|
+ <span v-if="tjForm.leaveType==6" style="color:red" >2、丧假事由不需要上传照片,销假只需要上传火化纸质证明。</span><br/>
|
|
</div>
|
|
</div>
|
|
<div class="vongi-btn">
|
|
<div class="vongi-btn">
|
|
<button class="mui-btn " style="width: 50%;" :class="examinePerson.name?'mui-btn-success':'mui-btn-grey'" type="submit" @click="submit(0)">
|
|
<button class="mui-btn " style="width: 50%;" :class="examinePerson.name?'mui-btn-success':'mui-btn-grey'" type="submit" @click="submit(0)">
|
|
@@ -90,6 +91,7 @@
|
|
<script>
|
|
<script>
|
|
import * as API_sp from '@/apis-xsy/xsy'
|
|
import * as API_sp from '@/apis-xsy/xsy'
|
|
require('$project/assets/js/mui.picker.min.js');
|
|
require('$project/assets/js/mui.picker.min.js');
|
|
|
|
+ import * as API_annual from '@/apis/Master/annual'
|
|
import * as API_Leave from '@/apis/Master/leave'
|
|
import * as API_Leave from '@/apis/Master/leave'
|
|
import Common from '$project/components/Common.vue'
|
|
import Common from '$project/components/Common.vue'
|
|
import Loading from '$project/components/Loading.vue'
|
|
import Loading from '$project/components/Loading.vue'
|
|
@@ -120,7 +122,7 @@
|
|
leaveTypeList: [],
|
|
leaveTypeList: [],
|
|
approvedList: [],
|
|
approvedList: [],
|
|
workOverTime:0,
|
|
workOverTime:0,
|
|
- typeName: '请选择',
|
|
|
|
|
|
+ typeName: '年假',
|
|
approvalPersonName: '请选择',
|
|
approvalPersonName: '请选择',
|
|
id:"",
|
|
id:"",
|
|
tjForm: {
|
|
tjForm: {
|
|
@@ -152,7 +154,7 @@
|
|
return
|
|
return
|
|
}
|
|
}
|
|
this.isLoading = true;
|
|
this.isLoading = true;
|
|
- API_Leave.detail({
|
|
|
|
|
|
+ API_annual.detail({
|
|
id: this.id
|
|
id: this.id
|
|
}).then(response => {
|
|
}).then(response => {
|
|
this.tjForm = {
|
|
this.tjForm = {
|
|
@@ -163,7 +165,8 @@
|
|
|
|
|
|
this.tjForm.id=this.id
|
|
this.tjForm.id=this.id
|
|
this.tjForm.leaveType=response.type;
|
|
this.tjForm.leaveType=response.type;
|
|
- this.typeName=response.typeName;
|
|
|
|
|
|
+ // this.typeName=response.typeName;
|
|
|
|
+ this.typeName='年假';
|
|
this.daytime=response.days;
|
|
this.daytime=response.days;
|
|
if(response.imageUrl){
|
|
if(response.imageUrl){
|
|
this.picList=response.imageUrl.split(",")
|
|
this.picList=response.imageUrl.split(",")
|
|
@@ -178,13 +181,14 @@
|
|
getExaminePerson(){
|
|
getExaminePerson(){
|
|
var obj={
|
|
var obj={
|
|
formId:this.tjForm.formId,
|
|
formId:this.tjForm.formId,
|
|
- days:this.daytime
|
|
|
|
|
|
+ // days:this.daytime
|
|
}
|
|
}
|
|
if(this.tjForm.leaveType){
|
|
if(this.tjForm.leaveType){
|
|
obj.leaveType=this.tjForm.leaveType
|
|
obj.leaveType=this.tjForm.leaveType
|
|
}
|
|
}
|
|
API_sp.examinePersonObj(obj).then(response => {
|
|
API_sp.examinePersonObj(obj).then(response => {
|
|
this.examinePerson=response
|
|
this.examinePerson=response
|
|
|
|
+
|
|
}).catch(error => {
|
|
}).catch(error => {
|
|
|
|
|
|
mui.toast(error);
|
|
mui.toast(error);
|
|
@@ -346,10 +350,11 @@
|
|
},
|
|
},
|
|
//表单检测
|
|
//表单检测
|
|
checkFrom() {
|
|
checkFrom() {
|
|
- if (!this.tjForm.leaveType) {
|
|
|
|
- mui.toast('请选择请假类型');
|
|
|
|
- return false;
|
|
|
|
- } else if (false) {
|
|
|
|
|
|
+ // if (!this.tjForm.leaveType) {
|
|
|
|
+ // mui.toast('请选择请假类型');
|
|
|
|
+ // return false;
|
|
|
|
+ // } else
|
|
|
|
+ if (false) {
|
|
mui.toast('请选择审批人');
|
|
mui.toast('请选择审批人');
|
|
return false;
|
|
return false;
|
|
} else if (this.tjForm.startTime== '请选择') {
|
|
} else if (this.tjForm.startTime== '请选择') {
|
|
@@ -402,7 +407,7 @@
|
|
this.tjForm.endTime=this.tjForm.endTime+" 00:00:00"
|
|
this.tjForm.endTime=this.tjForm.endTime+" 00:00:00"
|
|
|
|
|
|
this.tjForm.activityId=this.examinePerson.processActivityId
|
|
this.tjForm.activityId=this.examinePerson.processActivityId
|
|
- API_Leave.save(this.tjForm).then(response => {
|
|
|
|
|
|
+ API_annual.save(this.tjForm).then(response => {
|
|
this.isLoading = false;
|
|
this.isLoading = false;
|
|
|
|
|
|
|
|
|