|
@@ -290,17 +290,20 @@
|
|
|
source_bill:'{{$waybill->source_bill}}',
|
|
source_bill:'{{$waybill->source_bill}}',
|
|
|
wms_bill_number:'{{$waybill->wms_bill_number}}',
|
|
wms_bill_number:'{{$waybill->wms_bill_number}}',
|
|
|
origination:'{{$waybill->origination}}',
|
|
origination:'{{$waybill->origination}}',
|
|
|
- destination:'{{$waybill->destination}}',
|
|
|
|
|
|
|
+ destination:'{{$waybill->destination_city_id}}'?
|
|
|
|
|
+ (('{{$waybill->destination}}'.indexOf('{{$waybill->destinationCity->name}}')===-1 &&
|
|
|
|
|
+ '{{$waybill->destination}}'.indexOf('{{$waybill->destinationCity->province->name}}')===-1)?
|
|
|
|
|
+ '{{($waybill->destinationCity->province->name).($waybill->destinationCity->name).($waybill->destination)}}'
|
|
|
|
|
+ :'{{$waybill->destination}}')
|
|
|
|
|
+ :'{{$waybill->destination}}',
|
|
|
recipient:'{{$waybill->recipient}}',
|
|
recipient:'{{$waybill->recipient}}',
|
|
|
recipient_mobile:'{{$waybill->recipient_mobile}}',
|
|
recipient_mobile:'{{$waybill->recipient_mobile}}',
|
|
|
charge:'{{$waybill->charge}}',
|
|
charge:'{{$waybill->charge}}',
|
|
|
ordering_remark:'{{preg_replace("/[\n\s]/",' ',($waybill->ordering_remark??""))}}',
|
|
ordering_remark:'{{preg_replace("/[\n\s]/",' ',($waybill->ordering_remark??""))}}',
|
|
|
carrier:'{{$waybill->logistic ? $waybill->logistic->name : ''}}',
|
|
carrier:'{{$waybill->logistic ? $waybill->logistic->name : ''}}',
|
|
|
carrier_bill:'{{$waybill->carrier_bill}}',
|
|
carrier_bill:'{{$waybill->carrier_bill}}',
|
|
|
- origination_city:'{{$waybill->origination_city ? $waybill->origination_city->name : ''}}',
|
|
|
|
|
- destination_city:'{{$waybill->destination_city ? $waybill->destination_city->name : ''}}',
|
|
|
|
|
|
|
+ destination_city:'{{$waybill->destinationCity ? $waybill->destinationCity->name : ''}}',
|
|
|
warehouse_weight:'{{$waybill->warehouse_weight}}',
|
|
warehouse_weight:'{{$waybill->warehouse_weight}}',
|
|
|
- destination_province_name:'{{$waybill->destination_city ? ($waybill->destination_city->province ? $waybill->destination_city->province->name : '') : ''}}',
|
|
|
|
|
warehouse_weight_unit:'{{$waybill->warehouse_weight_unit ? $waybill->warehouse_weight_unit->name : ''}}',
|
|
warehouse_weight_unit:'{{$waybill->warehouse_weight_unit ? $waybill->warehouse_weight_unit->name : ''}}',
|
|
|
carrier_weight:'{{$waybill->carrier_weight}}',
|
|
carrier_weight:'{{$waybill->carrier_weight}}',
|
|
|
carrier_weight_unit:'{{$waybill->carrier_weight_unit ? $waybill->carrier_weight_unit->name : ''}}',
|
|
carrier_weight_unit:'{{$waybill->carrier_weight_unit ? $waybill->carrier_weight_unit->name : ''}}',
|
|
@@ -953,7 +956,7 @@
|
|
|
refreshWaveHouseWeight(wms_bill_number) {
|
|
refreshWaveHouseWeight(wms_bill_number) {
|
|
|
let _this=this;
|
|
let _this=this;
|
|
|
let url='{{url('waybill/refreshWaveHouseWeight')}}';
|
|
let url='{{url('waybill/refreshWaveHouseWeight')}}';
|
|
|
- axios.post(url,{'wms_bill_number':wms_bill_number}).then(function (response) {
|
|
|
|
|
|
|
+ window.axios.post(url,{'wms_bill_number':wms_bill_number}).then(function (response) {
|
|
|
if(response.data.success){
|
|
if(response.data.success){
|
|
|
_this.waybills.every(function (waybill) {
|
|
_this.waybills.every(function (waybill) {
|
|
|
if (waybill.wms_bill_number==wms_bill_number){
|
|
if (waybill.wms_bill_number==wms_bill_number){
|
|
@@ -962,15 +965,15 @@
|
|
|
}
|
|
}
|
|
|
return true;
|
|
return true;
|
|
|
});
|
|
});
|
|
|
- tempTip.setDuration(3000);
|
|
|
|
|
- tempTip.showSuccess('刷新计重成功');
|
|
|
|
|
|
|
+ window.tempTip.setDuration(3000);
|
|
|
|
|
+ window.tempTip.showSuccess('刷新计重成功');
|
|
|
}else{
|
|
}else{
|
|
|
- tempTip.setDuration(3000);
|
|
|
|
|
- tempTip.show('刷新计重失败!'+response.data.fail_info);
|
|
|
|
|
|
|
+ window.tempTip.setDuration(3000);
|
|
|
|
|
+ window.tempTip.show('刷新计重失败!'+response.data.fail_info);
|
|
|
}
|
|
}
|
|
|
}).catch(function (err) {
|
|
}).catch(function (err) {
|
|
|
- tempTip.setDuration(3000);
|
|
|
|
|
- tempTip.show('刷新计重失败,网络连接错误!'+err);
|
|
|
|
|
|
|
+ window.tempTip.setDuration(3000);
|
|
|
|
|
+ window.tempTip.show('刷新计重失败,网络连接错误!'+err);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
//选择文件
|
|
//选择文件
|
|
@@ -1062,7 +1065,7 @@
|
|
|
return parseInt(val/1024)+"MB";
|
|
return parseInt(val/1024)+"MB";
|
|
|
}
|
|
}
|
|
|
return val+"KB";
|
|
return val+"KB";
|
|
|
- }
|
|
|
|
|
|
|
+ },
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
// modal 隐藏时修改 input 为空
|
|
// modal 隐藏时修改 input 为空
|