|
|
@@ -171,6 +171,12 @@ export default {
|
|
|
return 0;
|
|
|
}
|
|
|
return parseInt(item.price);
|
|
|
+ },
|
|
|
+ isClientAddressInvalid() {
|
|
|
+ return this.$util.isEmpty(this.receiverInfo.long) || this.$util.isEmpty(this.receiverInfo.lat) || this.$util.isEmpty(this.receiverInfo.address)
|
|
|
+ },
|
|
|
+ isSenderAddressInvalid() {
|
|
|
+ return this.$util.isEmpty(this.senderInfo.long) || this.$util.isEmpty(this.senderInfo.lat) || this.$util.isEmpty(this.senderInfo.address)
|
|
|
}
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
@@ -275,6 +281,17 @@ export default {
|
|
|
});
|
|
|
},
|
|
|
loadDeliveryList() {
|
|
|
+ //客户地址不完善
|
|
|
+ if (this.isClientAddressInvalid) {
|
|
|
+ //this.$msg('客户地址不完善,无法获取运力');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ //门店
|
|
|
+ if (this.isSenderAddressInvalid) {
|
|
|
+ //this.$msg('门店地址不完善,无法获取运力');
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
// 设置加载状态
|
|
|
this.isLoadingDelivery = true;
|
|
|
|