| | |
| | | <text class="item-one">净重</text> |
| | | </view> |
| | | <view class="packing-registration-param-item-right"> |
| | | <u-input class="item-one item-two" v-model="form.netWeight" /> |
| | | <u-input class="item-one item-two" v-model="form.netWeight" disabled /> |
| | | </view> |
| | | </view> |
| | | <view class="packing-registration-param-item param-extra"> |
| | |
| | | loading: false |
| | | }; |
| | | }, |
| | | watch: { |
| | | 'form.grossWeight'(val) { |
| | | if (val === '') { |
| | | this.form.netWeight = ''; |
| | | } else if (this.form.reelWeight) { |
| | | this.form.netWeight = (parseFloat(val) - parseFloat(this.form.reelWeight)); |
| | | } |
| | | }, |
| | | 'form.reelWeight'(val) { |
| | | if (this.form.grossWeight && val) { |
| | | this.form.netWeight = (parseFloat(this.form.grossWeight) - parseFloat(val)); |
| | | } |
| | | } |
| | | }, |
| | | methods: { |
| | | confirm() { |
| | | if (this.loading) return; |