Browse Source

选择客户

shish 6 months ago
parent
commit
dfa9e36448

+ 1 - 1
ghsPad/src/pages/home/cash.vue

@@ -75,7 +75,7 @@ export default {
 			selectItem: {},
 			selectItemUser: {},
 			isLogin: 2,
-			custom: {}, // 当前选中的客户
+			custom: {long:'',lat:'',address:'',name:'',showAddress:''}, // 当前选中的客户
 			customId: 0,
 			customName: '',
 			currentJobType: 'bill',

+ 9 - 3
ghsPad/src/pages/home/components/settlePop.vue

@@ -674,9 +674,15 @@ export default {
                 }
             }
 
-            if(this.form.sendType == 2 && this.form.hasPay == 0 && this.form.callErrand == 1){
-                this.$msg('扫码付款,暂不支持马上发跑腿')
-                return false
+            if(this.form.callErrand == 1){
+                if(this.form.sendType == 2 && this.form.hasPay == 0){
+                    this.$msg('扫码付款,暂不支持马上发跑腿')
+                    return false
+                }
+                if(this.$util.isEmpty(this.custom.long) || this.$util.isEmpty(this.custom.lat) || this.$util.isEmpty(this.custom.address)){
+                    this.$msg('客户地址不完整,请选择先不要叫跑腿')
+                    return false
+                }
             }
 
             this.$emit('settleCommit',this.form)

+ 1 - 1
hdPad/src/pages/home/cash.vue

@@ -73,7 +73,7 @@ export default {
 			selectItem: {},
 			selectItemUser:{},
 			isLogin:2,
-			custom: {}, // 当前选中的客户
+			custom: {long:'',lat:'',address:'',name:'',showAddress:''}, // 当前选中的客户
 			customId:0,
 			customName:'',
 			balance:0,

+ 9 - 3
hdPad/src/pages/home/components/settlePop.vue

@@ -854,9 +854,15 @@ export default {
                 }
             }
 
-            if(this.form.sendType == 2 && this.form.hasPay == 0 && this.form.callErrand == 1){
-                this.$msg('扫码付款,暂不支持马上发跑腿')
-                return false
+            if(this.form.callErrand == 1){
+                if(this.form.sendType == 2 && this.form.hasPay == 0){
+                    this.$msg('扫码付款,暂不支持马上发跑腿')
+                    return false
+                }
+                if(this.$util.isEmpty(this.custom.long) || this.$util.isEmpty(this.custom.lat) || this.$util.isEmpty(this.custom.address)){
+                    this.$msg('客户地址不完整,请选择先不要叫跑腿')
+                    return false
+                }
             }
 
             this.$emit('settleCommit',this.form)