|
@@ -438,8 +438,8 @@ export default {
|
438
|
438
|
},
|
439
|
439
|
locationMapping () {
|
440
|
440
|
let that = this
|
441
|
|
- that.topCaseInfoData.caseName = that.CaseList[0].CaseName
|
442
|
|
- that.topCaseInfoData.caseId = that.CaseList[0].CaseId
|
|
441
|
+ // that.topCaseInfoData.caseName = that.CaseList[0].CaseName
|
|
442
|
+ // that.topCaseInfoData.caseId = that.CaseList[0].CaseId
|
443
|
443
|
if (this.userInfo.customer.MapUser !== '') {
|
444
|
444
|
this.topCaseInfoData.caseId = this.userInfo.customer.BelongCaseId
|
445
|
445
|
for (let i = 0; i < this.CaseList.length; i++) {
|
|
@@ -500,10 +500,15 @@ export default {
|
500
|
500
|
}
|
501
|
501
|
},
|
502
|
502
|
toOrders (subItem, item) {
|
503
|
|
-
|
504
|
|
-
|
505
|
|
-
|
506
|
|
- this.$router.push({name: 'placeOrder', query: { tableid: encodeURI(subItem.TableId), tableno: encodeURI(subItem.TableNo), caseid: encodeURI(subItem.CaseId), casename: encodeURI(this.topCaseInfoData.caseName), areaid: encodeURI(subItem.AreaId), areaname: encodeURI(item.AreaName)}})
|
|
503
|
+ const _that = this
|
|
504
|
+ this.getCaseConf({caseid: subItem.CaseId}).then(res => {
|
|
505
|
+ if (res.Status === 1) {
|
|
506
|
+ this.$router.push({name: 'placeOrder', query: { tableid: encodeURI(subItem.TableId), tableno: encodeURI(subItem.TableNo), caseid: encodeURI(subItem.CaseId), casename: encodeURI(_that.topCaseInfoData.caseName), areaid: encodeURI(subItem.AreaId), areaname: encodeURI(item.AreaName)}})
|
|
507
|
+ } else {
|
|
508
|
+ _that.$toast('当前案场已歇业!')
|
|
509
|
+ return
|
|
510
|
+ }
|
|
511
|
+ })
|
507
|
512
|
},
|
508
|
513
|
}
|
509
|
514
|
}
|