|
@@ -277,9 +277,9 @@ export default {
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
rows.forEach((item) => {
|
|
rows.forEach((item) => {
|
|
- console.log(JSON.parse(item.goodsJson));
|
|
|
|
- const temp = JSON.parse(item.goodsJson);
|
|
|
|
|
|
+ const temp = item.goodsJson ? JSON.parse(item.goodsJson) : {};
|
|
item.goodsJson = item.goodsJson ? temp.orderItemList : [];
|
|
item.goodsJson = item.goodsJson ? temp.orderItemList : [];
|
|
|
|
+ item.orderSn = temp.orderSn;
|
|
});
|
|
});
|
|
this.dataList.push(...rows);
|
|
this.dataList.push(...rows);
|
|
if (params.page >= Math.ceil(result.data.total / params.rows)) {
|
|
if (params.page >= Math.ceil(result.data.total / params.rows)) {
|
|
@@ -312,8 +312,9 @@ export default {
|
|
if (result.code == 200) {
|
|
if (result.code == 200) {
|
|
let rows = result.data.rows;
|
|
let rows = result.data.rows;
|
|
rows.forEach((item) => {
|
|
rows.forEach((item) => {
|
|
- const temp = JSON.parse(item.goodsJson);
|
|
|
|
|
|
+ const temp = item.goodsJson ? JSON.parse(item.goodsJson) : {};
|
|
item.goodsJson = item.goodsJson ? temp.orderItemList : [];
|
|
item.goodsJson = item.goodsJson ? temp.orderItemList : [];
|
|
|
|
+ item.orderSn = temp.orderSn;
|
|
});
|
|
});
|
|
if (result.data.pageNo == 1 && this.dataList2.length > 0) {
|
|
if (result.data.pageNo == 1 && this.dataList2.length > 0) {
|
|
return;
|
|
return;
|
|
@@ -365,7 +366,7 @@ export default {
|
|
async afterPayMent(item) {
|
|
async afterPayMent(item) {
|
|
try {
|
|
try {
|
|
const body = {
|
|
const body = {
|
|
- orderNo: item.orderNo,
|
|
|
|
|
|
+ orderNo: item.orderSn,
|
|
userId: item.userId,
|
|
userId: item.userId,
|
|
};
|
|
};
|
|
const res = await mallGenerateOrder(body);
|
|
const res = await mallGenerateOrder(body);
|