|
@@ -332,51 +332,6 @@ export default {
|
332
|
332
|
}).catch(() => {
|
333
|
333
|
this.ajaxOff = true
|
334
|
334
|
})
|
335
|
|
-
|
336
|
|
-
|
337
|
|
- // this.postData.info.OrgId = this.orgId
|
338
|
|
- // this.postData.info.UserId = this.userInfo.CustomerId
|
339
|
|
- // this.postData.info.UserName = this.userInfo.customer.CustomerName
|
340
|
|
- // this.postData.info.PayType = 'sys user'
|
341
|
|
- // this.postData.info.Remark = Remark
|
342
|
|
- // this.postData.from = sessionStorage.getItem('from') ? sessionStorage.getItem('from') : ''
|
343
|
|
- // var orderInfo = this.selGoods
|
344
|
|
- // this.postData.detail = []
|
345
|
|
- // var amount = 0
|
346
|
|
- // var num = 0
|
347
|
|
- // for (var n = 0; n < orderInfo.length; n++) {
|
348
|
|
- // this.postData.detail.push({
|
349
|
|
- // GoodsId: orderInfo[n].id,
|
350
|
|
- // GoodsName: orderInfo[n].name,
|
351
|
|
- // SpecId: orderInfo[n].spec,
|
352
|
|
- // SpecName: orderInfo[n].specname,
|
353
|
|
- // Number: orderInfo[n].num - 0,
|
354
|
|
- // Price: String(orderInfo[n].price - 0),
|
355
|
|
- // })
|
356
|
|
- // amount += (orderInfo[n].price - 0) * orderInfo[n].num
|
357
|
|
- // num += orderInfo[n].num - 0
|
358
|
|
- // }
|
359
|
|
- // this.postData.info.Amount = String(amount)
|
360
|
|
- // this.postData.info.OrdersNum = num
|
361
|
|
- // // console.log(JSON.stringify(this.postData))
|
362
|
|
- // this.toPay({
|
363
|
|
- // info: JSON.stringify(this.postData.info),
|
364
|
|
- // detail: JSON.stringify(this.postData.detail),
|
365
|
|
- // customercouponid: '',
|
366
|
|
- // from: this.postData.from
|
367
|
|
- // }).then((res) => {
|
368
|
|
- // this.ajaxOff = true
|
369
|
|
- // this.showCalcMenu = false
|
370
|
|
- // this.showSuccessPopup = true
|
371
|
|
- // // this.$dialog.alert({
|
372
|
|
- // // message: '下单成功!',
|
373
|
|
- // // confirmButtonText: '返回等待'
|
374
|
|
- // // }).then(() => {
|
375
|
|
-
|
376
|
|
- // // })
|
377
|
|
- // }).catch(() => {
|
378
|
|
- // this.ajaxOff = true
|
379
|
|
- // })
|
380
|
335
|
}
|
381
|
336
|
},
|
382
|
337
|
popBack () {
|