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