vue ant 两个文本框联动一个文本框输入内容 另外一个文本框 内容也变动

@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,
        })
      })
    },
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值