导体提交磅差精准一位小数,叉车盘重默认为0,去除长度,盘号字段
 
	
	
	
	
	
	
	
	
	
	
	
	
	
 |  |  | 
 |  |  |         }); | 
 |  |  |       } | 
 |  |  |       // 使用正确的字段名suppliedQuantity,而不是voltage | 
 |  |  |       const magnetic = | 
 |  |  |       const magnetic =( | 
 |  |  |         Number(this.modalList.verificationWeight) - | 
 |  |  |         Number(this.modalList.forkliftWeight) - | 
 |  |  |         grossWeightSum; | 
 |  |  |         grossWeightSum).toFixed(1); | 
 |  |  |       this.form.verificationWeight = this.modalList.verificationWeight; | 
 |  |  |       this.form.forkliftWeight = this.modalList.forkliftWeight; | 
 |  |  |       switch (this.form.productType) { | 
 |  |  | 
 |  |  |         .catch(() => { | 
 |  |  |           uni.hideLoading(); | 
 |  |  |           this.$refs.saveForm.cancel(); | 
 |  |  |           this.$u.toast("网络异常,请重试"); | 
 |  |  |           uni.showModal({ | 
 |  |  |             title: "提示", | 
 |  |  |             content: err.message || "网络异常,请重试", | 
 |  |  |             showCancel: true, | 
 |  |  |             success: function (res) {}, | 
 |  |  |           }); | 
 |  |  |         }); | 
 |  |  |     }, | 
 |  |  |     // 提交按钮 | 
 
 |  |  | 
 |  |  |               <u-input class="item-one item-two" v-model="form.forkliftWeight" /> | 
 |  |  |             </view> | 
 |  |  |           </view> | 
 |  |  |           <view class="packing-registration-param-item param-extra"> | 
 |  |  |           <!-- <view class="packing-registration-param-item param-extra"> | 
 |  |  |             <view class="packing-registration-param-item-left"> | 
 |  |  |               <text class="item-one">长度</text> | 
 |  |  |             </view> | 
 |  |  |             <view class="packing-registration-param-item-right"> | 
 |  |  |               <u-input class="item-one item-two" v-model="form.originalLength" disabled /> | 
 |  |  |             </view> | 
 |  |  |           </view> | 
 |  |  |           <view class="packing-registration-param-item param-extra"> | 
 |  |  |           </view> --> | 
 |  |  |           <!-- <view class="packing-registration-param-item param-extra"> | 
 |  |  |             <view class="packing-registration-param-item-left"> | 
 |  |  |               <text class="item-one">盘号</text> | 
 |  |  |             </view> | 
 |  |  |             <view class="packing-registration-param-item-right"> | 
 |  |  |               <u-input class="item-one item-two" v-model="form.palletNo" disabled /> | 
 |  |  |             </view> | 
 |  |  |           </view> | 
 |  |  |           </view> --> | 
 |  |  |         </view> | 
 |  |  |       </scroll-view> | 
 |  |  |     </view> | 
 |  |  | 
 |  |  |   data() { | 
 |  |  |     return { | 
 |  |  |       show: false, | 
 |  |  |       form: {}, | 
 |  |  |       form: { | 
 |  |  |         forkliftWeight: '0', | 
 |  |  |       }, | 
 |  |  |     }; | 
 |  |  |   }, | 
 |  |  |   methods: { | 
 |  |  | 
 |  |  |     }, | 
 |  |  |     open(val) { | 
 |  |  |       this.show = true; | 
 |  |  |       this.form = val; | 
 |  |  |     this.form = { | 
 |  |  |       ...val,  | 
 |  |  |       forkliftWeight: val.forkliftWeight !== undefined ? val.forkliftWeight : 0  | 
 |  |  |     }; | 
 |  |  |     }, | 
 |  |  |   }, | 
 |  |  | }; |