|
@@ -14,7 +14,7 @@
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
<el-tabs type="border-card">
|
|
<el-tabs type="border-card">
|
|
<el-tab-pane label="订单">
|
|
<el-tab-pane label="订单">
|
|
- <data-table :fields="orderfields" @query="search" :data="orderList" :usePage="false"> </data-table>
|
|
|
|
|
|
+ <data-table :fields="orderfields" @query="search" :data="orderList" :usePage="false" rowKey="key"> </data-table>
|
|
</el-tab-pane>
|
|
</el-tab-pane>
|
|
<el-tab-pane label="售后单">
|
|
<el-tab-pane label="售后单">
|
|
<data-table :fields="afterSalefields" @query="search" :data="afterSaleList" :usePage="false"> </data-table>
|
|
<data-table :fields="afterSalefields" @query="search" :data="afterSaleList" :usePage="false"> </data-table>
|
|
@@ -81,6 +81,7 @@ export default {
|
|
delete condition.buy_time;
|
|
delete condition.buy_time;
|
|
let res = await this.query({ skip, limit, ...condition, ...info, shop: this.user.shop.id });
|
|
let res = await this.query({ skip, limit, ...condition, ...info, shop: this.user.shop.id });
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
|
|
+ const orderList = res.data.orderList.map((i) => ({ ...i, key: `${i.no}-${i.spec_id}` }));
|
|
this.$set(this, 'info', res.data);
|
|
this.$set(this, 'info', res.data);
|
|
this.$set(this, 'afterSaleList', res.data.afterSaleList);
|
|
this.$set(this, 'afterSaleList', res.data.afterSaleList);
|
|
this.$set(this, 'orderList', res.data.orderList);
|
|
this.$set(this, 'orderList', res.data.orderList);
|