|
|
@@ -181,7 +181,16 @@
|
|
|
<span v-if="waybill.carType">@{{ waybill.carType.name }}<i v-if="waybill.carType.length">(@{{waybill.carType.length}}米)</i></span></span></td>
|
|
|
<td class="td-cool"><span v-if="waybill.warehouse_weight">@{{waybill.warehouse_weight|filterZero}} @{{waybill.warehouse_weight_unit}}</span></td>
|
|
|
<td class="td-cool"><span v-if="waybill.carrier_weight">@{{waybill.carrier_weight|filterZero}} @{{waybill.carrier_weight_unit}}</span></td>
|
|
|
- <td class="td-cool"><span v-if="waybill.warehouse_weight_other">@{{waybill.warehouse_weight_other|filterZero}} @{{waybill.warehouse_weight_unit_other}}</span></td>
|
|
|
+ <td class="td-cool" style="position: relative" @mouseenter="btnRefreshWeightZoomOut(waybill)" @mouseleave="btnRefreshWeightZoomIn(waybill)">
|
|
|
+ <span v-if="waybill.warehouse_weight_other&&waybill.btn_refresh_weight=='zoomIn'"> @{{waybill.warehouse_weight_other}} @{{waybill.warehouse_weight_unit_other}}</span>
|
|
|
+ <button type="button" class="btn btn-sm btn-outline-info" @click="refreshWaveHouseWeight(waybill.wms_bill_number)"
|
|
|
+ :style="[
|
|
|
+ {position:waybill.btn_refresh_weight&&waybill.btn_refresh_weight=='zoomIn'?'absolute':'static'},
|
|
|
+ {transform:waybill.btn_refresh_weight&&waybill.btn_refresh_weight=='zoomIn'?'scale(0.55)':'scale(1)'},
|
|
|
+ {right:waybill.btn_refresh_weight&&waybill.btn_refresh_weight=='zoomIn'?'-10px':'auto'},
|
|
|
+ {bottom:waybill.btn_refresh_weight&&waybill.btn_refresh_weight=='zoomIn'?'-6px':'auto'},
|
|
|
+ ]">刷新</button>
|
|
|
+ </td>
|
|
|
<td class="td-cool"><span v-if="waybill.carrier_weight_other">@{{waybill.carrier_weight_other|filterZero}} @{{waybill.carrier_weight_unit_other}}</span></td>
|
|
|
<td class="td-cool"><span v-if="waybill.amount">@{{waybill.amount}} @{{waybill.amount_unit_name }}</span></td>
|
|
|
<td class="td-cool">@{{waybill.mileage|km}} </td>
|
|
|
@@ -389,6 +398,7 @@
|
|
|
pick_up_fee:'{{$waybill->pick_up_fee}}',other_fee:'{{$waybill->other_fee}}',
|
|
|
collect_fee:'{{$waybill->collect_fee}}', @endcan deliver_at:'{{$waybill->deliver_at}}',dispatch_remark:'{{$waybill->dispatch_remark}}',isBtn:false,
|
|
|
waybillAuditLogs:{!! $waybill->waybillAuditLogs !!},
|
|
|
+ btn_refresh_weight:'zoomIn',
|
|
|
@if($waybill->remark)remark:'{{$waybill->remark}}', @else remark:'', @endif
|
|
|
},
|
|
|
@endforeach
|
|
|
@@ -470,6 +480,12 @@
|
|
|
this.form.init();
|
|
|
},
|
|
|
methods:{
|
|
|
+ btnRefreshWeightZoomIn(waybill){
|
|
|
+ waybill.btn_refresh_weight='zoomIn'
|
|
|
+ },
|
|
|
+ btnRefreshWeightZoomOut(waybill){
|
|
|
+ waybill.btn_refresh_weight='zoomOut'
|
|
|
+ },
|
|
|
lazy(){
|
|
|
//可视区域高度
|
|
|
let height=window.innerHeight;
|
|
|
@@ -912,6 +928,29 @@
|
|
|
let tip = target.parent().find('.toptd');
|
|
|
top.show();
|
|
|
tip.tooltip('hide');
|
|
|
+ },
|
|
|
+ refreshWaveHouseWeight(wms_bill_number) {
|
|
|
+ let _this=this;
|
|
|
+ let url='{{url('waybill/refreshWaveHouseWeight')}}';
|
|
|
+ axios.post(url,{'wms_bill_number':wms_bill_number}).then(function (response) {
|
|
|
+ if(response.data.success){
|
|
|
+ _this.waybills.every(function (waybill) {
|
|
|
+ if (waybill.wms_bill_number==wms_bill_number){
|
|
|
+ waybill.warehouse_weight_other=response.data.warehouseWeight;
|
|
|
+ return false;
|
|
|
+ }
|
|
|
+ return true;
|
|
|
+ });
|
|
|
+ tempTip.setDuration(3000);
|
|
|
+ tempTip.showSuccess('刷新计重成功');
|
|
|
+ }else{
|
|
|
+ tempTip.setDuration(3000);
|
|
|
+ tempTip.show('刷新计重失败!'+response.data.fail_info);
|
|
|
+ }
|
|
|
+ }).catch(function (err) {
|
|
|
+ tempTip.setDuration(3000);
|
|
|
+ tempTip.show('刷新计重失败,网络连接错误!'+err);
|
|
|
+ });
|
|
|
}
|
|
|
},
|
|
|
filters:{
|