1. 后台交易订单列表改为按时间倒序,并增加订单号,商家账号,用户账号以及订单状态查询
This commit is contained in:
2026-05-21 10:20:33 +08:00
parent 5891895897
commit 99a7918658
3 changed files with 25 additions and 17 deletions

View File

@@ -2,7 +2,7 @@ import request from '@/axios';
export const getList = (current, size, params) => { export const getList = (current, size, params) => {
return request({ return request({
url: '/market/merchant-order/list', url: '/market/merchant-order/page',
method: 'get', method: 'get',
params: { params: {
...params, ...params,

View File

@@ -21,6 +21,7 @@ export default {
editDisplay: false, editDisplay: false,
viewDisplay: false, viewDisplay: false,
overHidden:true, overHidden:true,
search: true,
}, },
{ {
label: "下单用户ID", label: "下单用户ID",
@@ -28,12 +29,26 @@ export default {
type: "input", type: "input",
hide: true, hide: true,
}, },
{
label: "下单账户",
prop: "userAccount",
type: "input",
overHidden:true,
search: true,
},
{ {
label: "商家ID", label: "商家ID",
prop: "sellerId", prop: "sellerId",
type: "input", type: "input",
hide: true, hide: true,
}, },
{
label: "商家账户",
prop: "sellerAccount",
type: "input",
overHidden:true,
search: true,
},
{ {
label: "商品名称", label: "商品名称",
prop: "productName", prop: "productName",
@@ -91,7 +106,7 @@ export default {
type: "input", type: "input",
}, },
{ {
label: "赠品总数量", label: "赠品数量",
prop: "totalGiftAmount", prop: "totalGiftAmount",
type: "input", type: "input",
}, },
@@ -125,7 +140,7 @@ export default {
type: "input", type: "input",
}, },
{ {
label: "收货人手机", label: "联系方式",
prop: "consigneePhone", prop: "consigneePhone",
type: "input", type: "input",
overHidden: true, overHidden: true,
@@ -184,7 +199,7 @@ export default {
addDisplay: false, addDisplay: false,
editDisplay: false, editDisplay: false,
viewDisplay: false, viewDisplay: false,
hide: true, overHidden: true,
}, },
{ {
label: "更新人用户ID", label: "更新人用户ID",

View File

@@ -26,11 +26,11 @@
<!-- v-if="permission.merchantOrder_delete"--> <!-- v-if="permission.merchantOrder_delete"-->
<!-- @click="handleDelete">删 除--> <!-- @click="handleDelete">删 除-->
<!-- </el-button>--> <!-- </el-button>-->
<el-button type="warning" <!-- <el-button type="warning"-->
plain <!-- plain-->
icon="el-icon-download" <!-- icon="el-icon-download"-->
@click="handleExport">导 出 <!-- @click="handleExport">导 出-->
</el-button> <!-- </el-button>-->
</template> </template>
</avue-crud> </avue-crud>
</basic-container> </basic-container>
@@ -202,14 +202,7 @@
}, },
onLoad(page, params = {}) { onLoad(page, params = {}) {
this.loading = true; this.loading = true;
getList(page.currentPage, page.pageSize, Object.assign(params, this.query)).then(res => {
const {
} = this.query;
let values = {
};
getList(page.currentPage, page.pageSize, values).then(res => {
const data = res.data.data; const data = res.data.data;
this.page.total = data.total; this.page.total = data.total;
this.data = data.records; this.data = data.records;