|
|
@@ -767,37 +767,6 @@ var _default = {
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
- // if (this.echoSku.length) {
|
|
|
- // this.echoSkuList.forEach(res => {
|
|
|
- // if (res.skuMessage == this.skuMessage) {
|
|
|
- // this.isEchoSku = res
|
|
|
- // }
|
|
|
- // })
|
|
|
- // if (JSON.stringify(this.isEchoSku) != "{}") {
|
|
|
- // let data = {
|
|
|
- // orderGoodsId: this.isEchoSku.id,
|
|
|
- // type: 1,
|
|
|
- // num: this.value,
|
|
|
- // shopId: this.shopId,
|
|
|
- // }
|
|
|
-
|
|
|
- // this.$Request.get("/app/order/updateGoodsNum", data).then(res => {
|
|
|
- // if (res.code == 0) {
|
|
|
- // // setTimeout(function() {
|
|
|
- // this.$queue.showToast('添加成功');
|
|
|
-
|
|
|
- // this.skuShow = false
|
|
|
- // this.getOrderList()
|
|
|
- // // },1000)
|
|
|
- // } else {
|
|
|
- // this.$queue.showToast(res.msg);
|
|
|
- // }
|
|
|
- // });
|
|
|
- // return
|
|
|
- // }
|
|
|
- // }
|
|
|
-
|
|
|
var data = {
|
|
|
goodsId: this.goodsDet.goodsId,
|
|
|
skuMessage: this.skuMessage,
|
|
|
@@ -805,12 +774,13 @@ var _default = {
|
|
|
num: this.value,
|
|
|
shopId: this.shopId
|
|
|
};
|
|
|
- var url = '';
|
|
|
- if (this.types == 1) {
|
|
|
- url = '/app/order/joinOrder';
|
|
|
- } else {
|
|
|
- url = '/app/order/insertOrder';
|
|
|
- }
|
|
|
+ // let url = ''
|
|
|
+ // if (this.types == 1) {
|
|
|
+ // url = '/app/order/joinOrder'
|
|
|
+ // } else {
|
|
|
+ // url = '/app/order/insertOrder'
|
|
|
+ // }
|
|
|
+ // console.log(data, '参数')
|
|
|
this.$Request.post('/app/order/insertOrder', data).then(function (res) {
|
|
|
if (res.code == 0) {
|
|
|
_this9.$queue.showToast('添加成功');
|
|
|
@@ -917,6 +887,8 @@ var _default = {
|
|
|
this.$Request.get('/app/order/selectAllOrderList', data).then(function (res) {
|
|
|
if (res.code == 0 && res.data.pageUtils.list.length) {
|
|
|
_this13.goodsList = res.data.pageUtils.list[0];
|
|
|
+ // console.log(this.goodsList, '888')
|
|
|
+
|
|
|
if (_this13.goodsList && _this13.goodsList.orderGoodsList && _this13.goodsList.orderGoodsList[0]) {
|
|
|
_this13.totalPrice = res.data.money;
|
|
|
_this13.goodsNum = 0;
|