修复 模板编号输入框无响应bug

This commit is contained in:
wangsongsole 2022-07-27 10:13:25 +08:00
parent c331d95c92
commit 4a09c9a5bb
2 changed files with 5 additions and 7 deletions

View File

@ -708,16 +708,14 @@ export default class addKnockGold extends Component {
/> />
</FormItem> </FormItem>
{this.state.model.channel == 1 ? ( {this.state.model.channel == 1 ? (
<FormItem <FormItem labelname='卷模板编号' prop='temp_no' id='batch_number'>
labelname='卷模板编号'
prop='temp_no '
id='batch_number'>
<Ipt <Ipt
onChange={(value) => { onChange={(value) => {
this.onHandleChange(value, 'temp_no ') console.log(value)
this.onHandleChange(value, 'temp_no')
}} }}
onClearItem={() => { onClearItem={() => {
this.onHandleChange('', 'temp_no ') this.onHandleChange('', 'temp_no')
}} }}
disabled={this.props?.data?.id ? true : false} disabled={this.props?.data?.id ? true : false}
value={this.state.model.temp_no} value={this.state.model.temp_no}

View File

@ -11,7 +11,7 @@ export default {
} }
], ],
/* 模板编号 */ /* 模板编号 */
templateNumber: [ temp_no: [
{ type: 'required', message: '请输入模板编号' }, { type: 'required', message: '请输入模板编号' },
{ {
type: 'regExp', type: 'regExp',