|
|
@@ -23,6 +23,12 @@
|
|
|
</a-select>
|
|
|
</a-form-model-item>
|
|
|
</a-col>
|
|
|
+
|
|
|
+ <a-col :md="24" v-if="formState.type =='福利现金'">
|
|
|
+ <a-form-model-item label="年月" prop="yearMonth ">
|
|
|
+ <a-month-picker placeholder="请选择" :allowClear="false" format="YYYY-MM" v-model="formState.yearWith" @change="onChange" style="width:100% !important"/>
|
|
|
+ </a-form-model-item>
|
|
|
+ </a-col>
|
|
|
<a-col :md="24" >
|
|
|
<a-form-model-item label="方式" prop="id ">
|
|
|
<a-checkbox v-model:checked="checked">覆盖上传</a-checkbox>
|
|
|
@@ -30,7 +36,7 @@
|
|
|
</a-col>
|
|
|
<a-col :md="24">
|
|
|
<a-form-model-item label="文件" >
|
|
|
- <a-upload name="file" :multiple="false" :showUploadList="showUploadList" action="/jeecg-boot/salary/salaryAttendance/importExcelFlNz" :before-upload="beforeUpload" @change="handleUploadChange" :data="{'type':formState.type,'id':this.checked}" :headers="tokenHeader" >
|
|
|
+ <a-upload name="file" :multiple="false" :showUploadList="showUploadList" action="/jeecg-boot/salary/salaryAttendance/importExcelFlNz" :before-upload="beforeUpload" @change="handleUploadChange" :data="{'type':formState.type,'id':this.checked,'yearWithMonth':formState.yearWithMonth}" :headers="tokenHeader" >
|
|
|
<!-- <a-upload name="file" :multiple="false" :showUploadList="showUploadList" action="/jeecg-boot/salary/salaryManagement/importExcel" :before-upload="beforeUpload" @change="handleUploadChange" :data="{'type':formState.type,'id':this.checked}" :headers="tokenHeader" > -->
|
|
|
<a-button> <a-icon type="upload" /> 上 传 </a-button>
|
|
|
</a-upload>
|
|
|
@@ -60,7 +66,9 @@
|
|
|
checked: ref(false),
|
|
|
formState:{
|
|
|
type:'福利现金',
|
|
|
- yearWithMonth:moment().subtract(1, 'months')
|
|
|
+ // yearWithMonth:moment().subtract(1, 'months')
|
|
|
+ yearWithMonth:'',
|
|
|
+ yearWith:moment().subtract(0, 'months')
|
|
|
},
|
|
|
dataSource: [{}],
|
|
|
fileList:[],
|
|
|
@@ -82,13 +90,16 @@
|
|
|
this.visible = false
|
|
|
this.formState={
|
|
|
type:'福利现金',
|
|
|
- yearWithMonth:moment().subtract(1, 'months')
|
|
|
+ yearWithMonth:'',
|
|
|
+ // yearWithMonth:moment().subtract(1, 'months')
|
|
|
+ yearWith:moment().subtract(0, 'months')
|
|
|
}
|
|
|
},
|
|
|
handleOk(){
|
|
|
|
|
|
},
|
|
|
onChange(data){
|
|
|
+ this.formState.yearWithMonth = moment(data).format('YYYY-MM');
|
|
|
},
|
|
|
beforeUpload(){
|
|
|
|