|
@@ -23,12 +23,12 @@
|
|
<a-select v-model="formState.type" @change="changeType">
|
|
<a-select v-model="formState.type" @change="changeType">
|
|
<a-select-option value="加班工资单">加班工资单</a-select-option>
|
|
<a-select-option value="加班工资单">加班工资单</a-select-option>
|
|
<a-select-option value="年休工资单">年休工资单</a-select-option>
|
|
<a-select-option value="年休工资单">年休工资单</a-select-option>
|
|
- <a-select-option value="月度工资">月度工资</a-select-option>
|
|
|
|
|
|
+ <a-select-option value="月度工资单">月度工资单</a-select-option>
|
|
</a-select>
|
|
</a-select>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
<a-col :md="24" >
|
|
<a-col :md="24" >
|
|
- <a-form-model-item label="计算月份" prop="yearWithMonth" :labelCol="{offset:1}" v-if="formState.type=='加班工资单'||formState.type=='月度工资'">
|
|
|
|
|
|
+ <a-form-model-item label="计算月份" prop="yearWithMonth" :labelCol="{offset:1}" v-if="formState.type=='加班工资单'||formState.type=='月度工资单'">
|
|
<a-month-picker placeholder="请选择" v-model="formState.yearWithMonth" style="width:100% !important"/>
|
|
<a-month-picker placeholder="请选择" v-model="formState.yearWithMonth" style="width:100% !important"/>
|
|
</a-form-model-item>
|
|
</a-form-model-item>
|
|
</a-col>
|
|
</a-col>
|
|
@@ -73,7 +73,7 @@
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
formState:{
|
|
formState:{
|
|
- type:'月度工资',
|
|
|
|
|
|
+ type:'月度工资单',
|
|
yearWithMonth:moment().subtract(1, 'months'),
|
|
yearWithMonth:moment().subtract(1, 'months'),
|
|
DateTime:[],
|
|
DateTime:[],
|
|
yearWith:''
|
|
yearWith:''
|
|
@@ -101,15 +101,15 @@
|
|
handleCancel(){
|
|
handleCancel(){
|
|
this.visible = false
|
|
this.visible = false
|
|
this.formState={
|
|
this.formState={
|
|
- type:'月度工资',
|
|
|
|
|
|
+ type:'月度工资单',
|
|
yearWithMonth:moment().subtract(1, 'months')
|
|
yearWithMonth:moment().subtract(1, 'months')
|
|
}
|
|
}
|
|
// this.DateTime = []
|
|
// this.DateTime = []
|
|
},
|
|
},
|
|
changeType(data){
|
|
changeType(data){
|
|
- if(data=='月度工资'){
|
|
|
|
|
|
+ if(data=='月度工资单'){
|
|
this.formState={
|
|
this.formState={
|
|
- type:'月度工资',
|
|
|
|
|
|
+ type:'月度工资单',
|
|
yearWithMonth:moment().subtract(1, 'months')
|
|
yearWithMonth:moment().subtract(1, 'months')
|
|
}
|
|
}
|
|
}else if(data=='加班工资单'){
|
|
}else if(data=='加班工资单'){
|
|
@@ -134,7 +134,7 @@
|
|
this.formState.endMonth = moment(this.formState.DateTime[1]).format('YYYY-MM')
|
|
this.formState.endMonth = moment(this.formState.DateTime[1]).format('YYYY-MM')
|
|
delete this.formState.DateTime
|
|
delete this.formState.DateTime
|
|
}
|
|
}
|
|
- if(this.formState.type=='加班工资单'||this.formState.type=='月度工资'){
|
|
|
|
|
|
+ if(this.formState.type=='加班工资单'||this.formState.type=='月度工资单'){
|
|
this.formState.yearWithMonth = moment(this.formState.yearWithMonth).format('YYYY-MM')
|
|
this.formState.yearWithMonth = moment(this.formState.yearWithMonth).format('YYYY-MM')
|
|
}
|
|
}
|
|
if(this.formState.type=='年休工资单'){
|
|
if(this.formState.type=='年休工资单'){
|