|
@@ -645,8 +645,10 @@
|
|
<p>1. {{ $t('other.download') }}
|
|
<p>1. {{ $t('other.download') }}
|
|
<el-link type="primary" style="margin-left:5px;" :underline="false" href="./upload/薪资导入模板.xlsx" :download="$t('salaryTemplate')+'.xlsx'">{{$t('salaryTemplate')}}.xlsx</el-link>
|
|
<el-link type="primary" style="margin-left:5px;" :underline="false" href="./upload/薪资导入模板.xlsx" :download="$t('salaryTemplate')+'.xlsx'">{{$t('salaryTemplate')}}.xlsx</el-link>
|
|
</p>
|
|
</p>
|
|
- <p>2. {{ $t('Selectmonth') }}
|
|
|
|
|
|
+ <p>2.
|
|
|
|
+ {{ $t('Selectmonth') }}
|
|
<el-date-picker v-model="ymonth" type="month" :placeholder="$t('Selectmonth')" format="yyyy-MM" value-format="yyyy-MM"></el-date-picker>
|
|
<el-date-picker v-model="ymonth" type="month" :placeholder="$t('Selectmonth')" format="yyyy-MM" value-format="yyyy-MM"></el-date-picker>
|
|
|
|
+ <br/><span style="margin-left:10px;margin-top:8px;color:#999;">({{$t('Recalculatereportedcostsforthemonth')}})</span>
|
|
</p>
|
|
</p>
|
|
<p>3. {{ $t('exceltemplateanduploadit') }}。</p>
|
|
<p>3. {{ $t('exceltemplateanduploadit') }}。</p>
|
|
<p style="display: flex;justify-content: center;padding-bottom:1em;">
|
|
<p style="display: flex;justify-content: center;padding-bottom:1em;">
|
|
@@ -749,6 +751,7 @@ export default {
|
|
},
|
|
},
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
|
|
+ syncHistoryReport: true,
|
|
ymonth: null,
|
|
ymonth: null,
|
|
importingSalaryData: false,
|
|
importingSalaryData: false,
|
|
translation: '1', // 1、文字, 2、部门, 3、人员
|
|
translation: '1', // 1、文字, 2、部门, 3、人员
|
|
@@ -2044,13 +2047,6 @@ export default {
|
|
type: "error",
|
|
type: "error",
|
|
});
|
|
});
|
|
} else {
|
|
} else {
|
|
- if (!this.ymonth) {
|
|
|
|
- this.$message({
|
|
|
|
- message: this.$t('Selectmonth'),
|
|
|
|
- type: "error",
|
|
|
|
- });
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
let formData = new FormData();
|
|
let formData = new FormData();
|
|
formData.append("file", item.file);
|
|
formData.append("file", item.file);
|
|
formData.append("ymonth", this.ymonth);
|
|
formData.append("ymonth", this.ymonth);
|