|
@@ -39,11 +39,7 @@
|
|
/>
|
|
/>
|
|
</el-select>
|
|
</el-select>
|
|
</el-form-item>
|
|
</el-form-item>
|
|
- <el-form-item
|
|
|
|
- label="报表年份"
|
|
|
|
- prop="reportYear"
|
|
|
|
- v-if="ruleForm.reportType === 'approvalTable'"
|
|
|
|
- >
|
|
|
|
|
|
+ <el-form-item label="报表年份" prop="reportYear">
|
|
<el-date-picker
|
|
<el-date-picker
|
|
v-model="ruleForm.reportYear"
|
|
v-model="ruleForm.reportYear"
|
|
type="year"
|
|
type="year"
|
|
@@ -362,6 +358,9 @@
|
|
if (editRowId.value) {
|
|
if (editRowId.value) {
|
|
params.id = editRowId.value
|
|
params.id = editRowId.value
|
|
}
|
|
}
|
|
|
|
+ if (ruleForm.value.reportType === 'approvalTable') {
|
|
|
|
+ delete params.reportMonth
|
|
|
|
+ }
|
|
// 校验资产负债表的必填项
|
|
// 校验资产负债表的必填项
|
|
if (ruleForm.value.reportName == 0) {
|
|
if (ruleForm.value.reportName == 0) {
|
|
if (!validateAssetsTable()) {
|
|
if (!validateAssetsTable()) {
|
|
@@ -539,6 +538,8 @@
|
|
if (el == 'reportMonth') {
|
|
if (el == 'reportMonth') {
|
|
ruleForm.value[el] =
|
|
ruleForm.value[el] =
|
|
res.data[el] < 10 ? `0${res.data[el]}` : res.data[el]
|
|
res.data[el] < 10 ? `0${res.data[el]}` : res.data[el]
|
|
|
|
+ } else if (el == 'reportYear') {
|
|
|
|
+ ruleForm.value[el] = `${res.data[el]}`
|
|
} else {
|
|
} else {
|
|
ruleForm.value[el] = res.data[el]
|
|
ruleForm.value[el] = res.data[el]
|
|
}
|
|
}
|