|
@@ -403,8 +403,6 @@
|
|
|
this.dataObj.loadingDateStart = '随时'
|
|
|
this.dataObj.loadingDateEnd = '随时'
|
|
|
this.dataObj.taskValidity = '长期'
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
computed: {
|
|
|
...mapState(['hasLogin', 'userInfo']),
|
|
@@ -466,14 +464,28 @@
|
|
|
if (uni.$u.test.isEmpty(this.dataObj.sendArea)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
- message: "发货地区不能为空!",
|
|
|
+ message: "请选择发货地区!",
|
|
|
+ })
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ if (uni.$u.test.isEmpty(this.dataObj.sendDetailedAddress)) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "发货详细地址不能为空!",
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
|
if (uni.$u.test.isEmpty(this.dataObj.unloadArea)) {
|
|
|
this.$refs.uToast.show({
|
|
|
type: 'error',
|
|
|
- message: "收货地区不能为空!",
|
|
|
+ message: "请选择收货地区!",
|
|
|
+ })
|
|
|
+ return true
|
|
|
+ }
|
|
|
+ if (uni.$u.test.isEmpty(this.dataObj.unloadDetailedAddress)) {
|
|
|
+ this.$refs.uToast.show({
|
|
|
+ type: 'error',
|
|
|
+ message: "收货详细地址不能为空!",
|
|
|
})
|
|
|
return true
|
|
|
}
|
|
@@ -873,7 +885,9 @@
|
|
|
console.log('change', e);
|
|
|
},
|
|
|
back() {
|
|
|
- uni.navigateBack()
|
|
|
+ uni.navigateBack({
|
|
|
+ delta:1
|
|
|
+ })
|
|
|
},
|
|
|
goToRecord() {
|
|
|
uni.$u.route('/pages/release/record');
|