8fbb6b15 by lihua

fix: 估值模型

1 parent c6a967a9
......@@ -586,11 +586,11 @@ const visibleChange = (visible, row) => {
}
const panelChange = (scope, row) => {
if (row.field == 'baseDate' || row.field == 'investYear') {
if (row.field == 'evaluateBaseDate' || row.field == 'baseDate' || row.field == 'investYear') {
const date = new Date();
const year = date.getFullYear();
const datePopperNextBtn = document.querySelector('.date-month-popper .d-arrow-right');
if (row.field == 'baseDate') {
if (row.field == 'baseDate' || row.field == 'evaluateBaseDate') {
const currentYear = scope.date.getFullYear();
if (currentYear >= year) {
datePopperNextBtn.setAttribute("disabled", '');
......@@ -1463,8 +1463,8 @@ const panelChange = (scope, row) => {
@panel-change="(date, mode) => panelChange({ date, mode }, item)"
@visible-change="(vis) => visibleChange(vis, item)" />
<el-date-picker :class="[item.col, { is_block: item.block }]" v-else-if="item.type == 'date-month'"
v-model="formInline[item.field]" type="month" format="YYYY-MM" value-format="YYYY-MM"
:placeholder="item.placeholder" :unlink-panels="item.unlink ?? false" :shortcuts="item.shortcuts ?? []"
v-model="formInline[item.field]" type="month" :format="item.format ?? 'YYYY-MM'" :value-format="item.valueFormat ?? 'YYYY-MM'"
:placeholder="item.placeholder" :unlink-panels="item.unlink ?? false" :shortcuts="item.shortcuts ?? []" :clearable="item.clearable ?? true"
:default-value="item.defaultDate" :disabled="item.disabled ?? false" :disabled-date="item.disabledDate"
:popper-class="item.popperClass" @change="(val) => inputChange(val, item)"
@panel-change="(date, mode) => panelChange({ date, mode }, item)"
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!