feat:
update user order
This commit is contained in:
@@ -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: '/user-order/order/list',
|
url: '/user-order/order/page',
|
||||||
method: 'get',
|
method: 'get',
|
||||||
params: {
|
params: {
|
||||||
...params,
|
...params,
|
||||||
|
|||||||
@@ -6,27 +6,31 @@ export default {
|
|||||||
searchMenuSpan: 6,
|
searchMenuSpan: 6,
|
||||||
border: true,
|
border: true,
|
||||||
index: true,
|
index: true,
|
||||||
viewBtn: true,
|
addBtn: false,
|
||||||
|
editBtn: false,
|
||||||
|
delBtn: false,
|
||||||
|
viewBtn: false,
|
||||||
selection: true,
|
selection: true,
|
||||||
dialogClickModal: false,
|
dialogClickModal: false,
|
||||||
column: [
|
column: [
|
||||||
{
|
{
|
||||||
label: "编号",
|
label: "订单号",
|
||||||
prop: "id",
|
prop: "id",
|
||||||
type: "input",
|
type: "input",
|
||||||
addDisplay: false,
|
search: true,
|
||||||
editDisplay: false,
|
overHidden: true,
|
||||||
viewDisplay: false,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "用户id",
|
label: "下单账号",
|
||||||
prop: "userId",
|
prop: "account",
|
||||||
type: "input",
|
type: "input",
|
||||||
|
overHidden: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "手机号",
|
label: "电话",
|
||||||
prop: "consigneePhone",
|
prop: "consigneePhone",
|
||||||
type: "input",
|
type: "input",
|
||||||
|
overHidden: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "收件人",
|
label: "收件人",
|
||||||
@@ -42,16 +46,25 @@ export default {
|
|||||||
label: "商品编号",
|
label: "商品编号",
|
||||||
prop: "itemCode",
|
prop: "itemCode",
|
||||||
type: "input",
|
type: "input",
|
||||||
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "商品名称",
|
label: "商品名称",
|
||||||
prop: "itemName",
|
prop: "itemName",
|
||||||
type: "input",
|
type: "input",
|
||||||
|
overHidden: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "图片",
|
label: "图片",
|
||||||
prop: "imageUrl",
|
prop: "imageUrl",
|
||||||
type: "input",
|
type: "upload",
|
||||||
|
listType: 'picture-img',
|
||||||
|
dataType: 'string',
|
||||||
|
action: '/blade-resource/oss/endpoint/put-file',
|
||||||
|
propsHttp: {
|
||||||
|
res: 'data',
|
||||||
|
url: 'link'
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "数量",
|
label: "数量",
|
||||||
@@ -62,6 +75,7 @@ export default {
|
|||||||
label: "收货地址",
|
label: "收货地址",
|
||||||
prop: "deliveryAddress",
|
prop: "deliveryAddress",
|
||||||
type: "input",
|
type: "input",
|
||||||
|
overHidden: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "快递公司",
|
label: "快递公司",
|
||||||
@@ -76,8 +90,15 @@ export default {
|
|||||||
{
|
{
|
||||||
label: "订单状态",
|
label: "订单状态",
|
||||||
prop: "orderStatus",
|
prop: "orderStatus",
|
||||||
type: "input",
|
type: 'radio',
|
||||||
|
dicUrl: '/blade-system/dict/dictionary?code=app_order_status',
|
||||||
|
props: {
|
||||||
|
label: 'dictValue',
|
||||||
|
value: 'dictKey'
|
||||||
},
|
},
|
||||||
|
dataType: 'number',
|
||||||
|
search: true, },
|
||||||
|
|
||||||
{
|
{
|
||||||
label: "订单金额",
|
label: "订单金额",
|
||||||
prop: "totalAmount",
|
prop: "totalAmount",
|
||||||
@@ -103,11 +124,6 @@ export default {
|
|||||||
prop: "paymentStatus",
|
prop: "paymentStatus",
|
||||||
type: "input",
|
type: "input",
|
||||||
},
|
},
|
||||||
{
|
|
||||||
label: "支付凭证",
|
|
||||||
prop: "paymentTrack",
|
|
||||||
type: "input",
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
label: "创建人",
|
label: "创建人",
|
||||||
prop: "createUser",
|
prop: "createUser",
|
||||||
@@ -118,22 +134,10 @@ export default {
|
|||||||
hide: true,
|
hide: true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "创建部门",
|
label: "下单时间",
|
||||||
prop: "createDept",
|
|
||||||
type: "input",
|
|
||||||
addDisplay: false,
|
|
||||||
editDisplay: false,
|
|
||||||
viewDisplay: false,
|
|
||||||
hide: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "创建时间",
|
|
||||||
prop: "createTime",
|
prop: "createTime",
|
||||||
type: "input",
|
type: "input",
|
||||||
addDisplay: false,
|
overHidden: true,
|
||||||
editDisplay: false,
|
|
||||||
viewDisplay: false,
|
|
||||||
hide: true,
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "修改人",
|
label: "修改人",
|
||||||
@@ -152,24 +156,6 @@ export default {
|
|||||||
editDisplay: false,
|
editDisplay: false,
|
||||||
viewDisplay: false,
|
viewDisplay: false,
|
||||||
hide: true,
|
hide: true,
|
||||||
},
|
}
|
||||||
{
|
|
||||||
label: "状态",
|
|
||||||
prop: "status",
|
|
||||||
type: "input",
|
|
||||||
addDisplay: false,
|
|
||||||
editDisplay: false,
|
|
||||||
viewDisplay: false,
|
|
||||||
hide: true,
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "",
|
|
||||||
prop: "isDeleted",
|
|
||||||
type: "input",
|
|
||||||
addDisplay: false,
|
|
||||||
editDisplay: false,
|
|
||||||
viewDisplay: false,
|
|
||||||
hide: true,
|
|
||||||
},
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,17 +20,17 @@
|
|||||||
@refresh-change="refreshChange"
|
@refresh-change="refreshChange"
|
||||||
@on-load="onLoad">
|
@on-load="onLoad">
|
||||||
<template #menu-left>
|
<template #menu-left>
|
||||||
<el-button type="danger"
|
<!-- <el-button type="danger"-->
|
||||||
icon="el-icon-delete"
|
<!-- icon="el-icon-delete"-->
|
||||||
plain
|
<!-- plain-->
|
||||||
v-if="permission.order_delete"
|
<!-- v-if="permission.order_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;
|
||||||
|
|||||||
Reference in New Issue
Block a user