|
@@ -74,7 +74,7 @@ export default {
|
|
|
success: function (result) {
|
|
|
setTimeout(() => {
|
|
|
const { resultStr } = result
|
|
|
- vm.placeNum = resultStr
|
|
|
+ vm.placeNum = resultStr && JSON.parse(resultStr).place_number
|
|
|
}, 1000)
|
|
|
},
|
|
|
fail: err => {
|
|
@@ -88,7 +88,7 @@ export default {
|
|
|
}, function (result) {
|
|
|
const { codeContent } = result
|
|
|
if (codeContent) {
|
|
|
- vm.placeNum = codeContent
|
|
|
+ vm.placeNum = codeContent && JSON.parse(codeContent).place_number
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
@@ -99,6 +99,10 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
onsubmit () {
|
|
|
+ if (!this.placeNum) {
|
|
|
+ Toast('请输入桌号')
|
|
|
+ return
|
|
|
+ }
|
|
|
this.showFlag = false
|
|
|
this.$router.push({ name: 'SellPay' })
|
|
|
}
|