|
@@ -126,8 +126,8 @@ export default {
|
126
|
126
|
},
|
127
|
127
|
created () {
|
128
|
128
|
this.updateSystemInfo().then(() => {
|
129
|
|
- if (this.caseid) {
|
130
|
|
- console.log(this.caseid)
|
|
129
|
+ console.log(this.CaseId)
|
|
130
|
+ if (this.CaseId) {
|
131
|
131
|
this.init()
|
132
|
132
|
}
|
133
|
133
|
})
|
|
@@ -161,6 +161,7 @@ export default {
|
161
|
161
|
return
|
162
|
162
|
}
|
163
|
163
|
clearInterval(this.interval)
|
|
164
|
+ console.log(this.CaseId)
|
164
|
165
|
this.GetOrdersList({ caseid: this.CaseId }).then((res) => {
|
165
|
166
|
for (var n = 0; n < (res.list || []).length; n++) {
|
166
|
167
|
if (res.list[n].IsIntimidate === 0) {
|
|
@@ -182,7 +183,7 @@ export default {
|
182
|
183
|
clearInterval(timer)
|
183
|
184
|
}
|
184
|
185
|
}, 300)
|
185
|
|
- this.getBusinessStatus(this.caseid).then(() => {
|
|
186
|
+ this.getBusinessStatus(this.CaseId).then(() => {
|
186
|
187
|
if (this.businessStatus) {
|
187
|
188
|
this.initWebSocket()
|
188
|
189
|
}
|
|
@@ -277,7 +278,7 @@ export default {
|
277
|
278
|
initWebSocket () {
|
278
|
279
|
console.log('initWebSocket')
|
279
|
280
|
// console.log(this.user)
|
280
|
|
- let caseid = this.caseid
|
|
281
|
+ let caseid = this.CaseId
|
281
|
282
|
let id = this.userInfo.UserId
|
282
|
283
|
const wsPath = this.$api.system.notify.newGoodsOrders.url
|
283
|
284
|
const wsRealPath = replaceURLParams(wsPath, { grps: caseid, id })
|
|
@@ -309,26 +310,26 @@ export default {
|
309
|
310
|
}
|
310
|
311
|
},
|
311
|
312
|
open () {
|
312
|
|
- if (!this.caseid) {
|
|
313
|
+ if (!this.CaseId) {
|
313
|
314
|
this.$message({
|
314
|
315
|
type: 'info',
|
315
|
316
|
message: '请先选择案场'
|
316
|
317
|
})
|
317
|
318
|
return
|
318
|
319
|
}
|
319
|
|
- this.openBusiness(this.caseid).then(() => {
|
|
320
|
+ this.openBusiness(this.CaseId).then(() => {
|
320
|
321
|
this.init()
|
321
|
322
|
})
|
322
|
323
|
},
|
323
|
324
|
close () {
|
324
|
|
- if (!this.caseid) {
|
|
325
|
+ if (!this.CaseId) {
|
325
|
326
|
this.$message({
|
326
|
327
|
type: 'info',
|
327
|
328
|
message: '请先选择案场'
|
328
|
329
|
})
|
329
|
330
|
return
|
330
|
331
|
}
|
331
|
|
- this.closeBusiness(this.caseid)
|
|
332
|
+ this.closeBusiness(this.CaseId)
|
332
|
333
|
}
|
333
|
334
|
}
|
334
|
335
|
}
|