@blur.native.capture ="changeNum"
多选框
<a-col :span="24/2">
<a-form-item :labelCol="labelCol" :wrapperCol="wrapperCol" label="入库仓库">
<a-select placeholder="请选择入库仓库" v-decorator="[ 'name',{ rules: [{ required: true, message: '请选择验收人员!' }] } ]" :dropdownMatchSelectWidth="false" @blur.native.capture ="changeNum">
<a-select-option v-for="(item,index) in depotList" :key="index" :value="item.name">
{{ item.name }}
</a-select-option>
</a-select>
</a-form-item>
</a-col>
文本框
<a-form-item label="数量" name="num">
<a-input
v-decorator="['num', { rules: [{ required: true, message: '请输入数量!' }] }]" placeholder="请输入数量"
v-model:value="paramV3.num" @blur.native.capture ="changeNum"/>
</a-form-item>
changeNum(){
this.form2.validateFields((err, values) => {
// 这里做逻辑处理
this.form2.setFieldsValue({
currentNumber: 2,
})
})
},