Browse Source

批次回显问题

hella_online_20240829
zhang_li 5 months ago
parent
commit
1b9b8cdc7b
  1. 22
      src/components/TableForm/src/TableForm.vue

22
src/components/TableForm/src/TableForm.vue

@ -91,7 +91,7 @@
" "
:disabled="disabledInput(headerItem, row)" :disabled="disabledInput(headerItem, row)"
style="flex: 1" style="flex: 1"
@blur.stop="inputStringBlur(headerItem, row[headerItem.field], row, index)" @blur="inputStringBlur(headerItem, row[headerItem.field], row, index)"
/> />
<Icon <Icon
icon="ep:circle-close" icon="ep:circle-close"
@ -101,12 +101,12 @@
headerItem?.tableForm?.clearable headerItem?.tableForm?.clearable
" "
style="position: absolute; right: 50px; cursor: pointer" style="position: absolute; right: 50px; cursor: pointer"
@click.stop="clearInput(headerItem.field, row, index)" @click="clearInput(headerItem.field, row, index)"
/> />
<el-button <el-button
:key="headerItem.field + $index + 'button'" :key="headerItem.field + $index + 'button'"
v-if="headerItem?.tableForm?.isInpuFocusShow" v-if="headerItem?.tableForm?.isInpuFocusShow"
@click.stop="inpuFocus(headerItem, row, index)" @click="inpuFocus(headerItem, row, index)"
><Icon icon="ep:search" size="14" ><Icon icon="ep:search" size="14"
/></el-button> /></el-button>
</el-form-item> </el-form-item>
@ -123,9 +123,7 @@
:placeholder="headerItem?.tableForm?.placeholder || '请输入' + headerItem.label" :placeholder="headerItem?.tableForm?.placeholder || '请输入' + headerItem.label"
:disabled="itemIsDisabled(headerItem, row)" :disabled="itemIsDisabled(headerItem, row)"
style="width: 100%" style="width: 100%"
@input.stop="row[headerItem.field] = row[headerItem.field].replace(/[^\d\.-]/g, '')" @input="row[headerItem.field] = row[headerItem.field].replace(/[^\d\.-]/g, '')"
@click.stop=""
@focus.stop=""
/> />
</el-form-item> </el-form-item>
<!-- 数字输入框 --> <!-- 数字输入框 -->
@ -141,7 +139,7 @@
:min="headerItem?.tableForm?.min" :min="headerItem?.tableForm?.min"
:precision="headerItem?.tableForm?.precision" :precision="headerItem?.tableForm?.precision"
:disabled="itemIsDisabled(headerItem, row)" :disabled="itemIsDisabled(headerItem, row)"
@change.stop=" @change="
(e) => { (e) => {
inputNumberChange(headerItem.field, $index, row, e) inputNumberChange(headerItem.field, $index, row, e)
} }
@ -164,8 +162,8 @@
:allow-create="headerItem?.tableForm.allowCreate" :allow-create="headerItem?.tableForm.allowCreate"
style="width: 100%" style="width: 100%"
:placeholder="headerItem?.tableForm?.placeholder || '请选择' + headerItem.label" :placeholder="headerItem?.tableForm?.placeholder || '请选择' + headerItem.label"
@change.stop="formSelectChange(headerItem.field, $event, row)" @change="formSelectChange(headerItem.field, $event, row)"
@blur.stop="tableFormSelectOnBlur(headerItem.field, $event, row, $index)" @blur="tableFormSelectOnBlur(headerItem.field, $event, row, $index)"
> >
<el-option <el-option
v-for="op in initSelectOptions(headerItem)" v-for="op in initSelectOptions(headerItem)"
@ -194,8 +192,8 @@
:allow-create="headerItem?.tableForm.allowCreate" :allow-create="headerItem?.tableForm.allowCreate"
style="width: 100%" style="width: 100%"
:placeholder="headerItem?.tableForm?.placeholder || '请选择' + headerItem.label" :placeholder="headerItem?.tableForm?.placeholder || '请选择' + headerItem.label"
@change.stop="formSelectChange(headerItem.field, $event, row)" @change="formSelectChange(headerItem.field, $event, row)"
@blur.stop="tableFormSelectOnBlur(headerItem.field, $event, row, $index)" @blur="tableFormSelectOnBlur(headerItem.field, $event, row, $index)"
> >
<el-option-group <el-option-group
v-for="group in initSelectOptions(headerItem)" v-for="group in initSelectOptions(headerItem)"
@ -235,7 +233,7 @@
:placeholder="headerItem?.tableForm?.placeholder || '选择日期'" :placeholder="headerItem?.tableForm?.placeholder || '选择日期'"
:format="headerItem?.tableForm?.format || 'YYYY-MM-DD'" :format="headerItem?.tableForm?.format || 'YYYY-MM-DD'"
:value-format="headerItem?.tableForm?.valueFormat || 'YYYY-MM-DD'" :value-format="headerItem?.tableForm?.valueFormat || 'YYYY-MM-DD'"
@change.stop="formFormDateChange(headerItem.field, $event, row, $index)" @change="formFormDateChange(headerItem.field, $event, row, $index)"
/> />
</el-form-item> </el-form-item>
<!-- 日期时间选择器 --> <!-- 日期时间选择器 -->

Loading…
Cancel
Save