Browse Source

修改表单提示

master
邓宏 2 years ago
parent
commit
1d34d400f7
  1. 4
      pages/massif/add_transaction.vue

4
pages/massif/add_transaction.vue

@ -52,7 +52,7 @@
</view>
</view>
<view class="card">
<u-form class="inline" errorType="toast" :model="formData" ref="form" :rules="rules" labelWidth="auto">
<u-form class="inline" :model="formData" ref="form" :rules="rules" labelWidth="auto">
<d-form label="交易重量" required field="tradeWeight" type="digit" suffix="kg" :value="formData.tradeWeight" @input="formData.tradeWeight=$event"/>
<view style="display:flex;align-items: center;">
<d-form label="规格" required field="specification" type="digit" suffix="kg" :value="formData.specification" @input="formData.specification=$event"/>
@ -93,7 +93,7 @@ export default {
if(!(val>0))call(new Error('交易重量必填!'));
else if(val>this.detail.harvestNum)call(new Error(`交易重量不能大于可交易重量${this.detail.harvestNum}`));
else call()
}},
},trigger:["blur","change"]},
specification:{required:true,message:"规格必填!"},
tradeNum:{required:true,message:"交易数量必填!",type:"number"},
buyerName:{required:true,message:"买方名称必填!"},

Loading…
Cancel
Save