From 5dcda80717b7e42d7497e8bac1e47bca0fd897ae Mon Sep 17 00:00:00 2001 From: zhangpeng <690927457@qq.com> Date: Mon, 28 Apr 2025 11:19:47 +0800 Subject: [PATCH] =?UTF-8?q?feat(order):=20=E9=87=8D=E6=9E=84=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E9=A1=B5=E9=9D=A2-=20=E6=96=B0=E5=A2=9E=20config.js?= =?UTF-8?q?=20=E6=96=87=E4=BB=B6=EF=BC=8C=E5=AE=9A=E4=B9=89=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E6=90=9C=E7=B4=A2=E5=92=8C=E8=A1=A8=E6=A0=BC=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=20-=20=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E8=A1=A8=E5=8D=95=E5=92=8C=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=20-=20=E4=BC=98=E5=8C=96=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E5=88=97=E8=A1=A8=E9=A1=B5=E9=9D=A2=E5=B8=83=E5=B1=80=E5=92=8C?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=20-=20=E5=AE=9E=E7=8E=B0=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E6=A0=87=E7=AD=BE=E5=92=8C=E6=93=8D=E4=BD=9C?= =?UTF-8?q?=E6=8C=89=E9=92=AE=E7=9A=84=E8=87=AA=E5=AE=9A=E4=B9=89=E6=B8=B2?= =?UTF-8?q?=E6=9F=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/content/index.vue | 287 ++++++++++++++++++++++++++++ src/components/searchForm/index.vue | 182 ++++++++++++++++++ src/config.js | 80 ++++++++ src/view/order/order/index.vue | 152 ++++++++------- 4 files changed, 637 insertions(+), 64 deletions(-) create mode 100644 src/components/content/index.vue create mode 100644 src/components/searchForm/index.vue create mode 100644 src/config.js diff --git a/src/components/content/index.vue b/src/components/content/index.vue new file mode 100644 index 0000000..d7be8ff --- /dev/null +++ b/src/components/content/index.vue @@ -0,0 +1,287 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/searchForm/index.vue b/src/components/searchForm/index.vue new file mode 100644 index 0000000..71a902a --- /dev/null +++ b/src/components/searchForm/index.vue @@ -0,0 +1,182 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + diff --git a/src/config.js b/src/config.js new file mode 100644 index 0000000..c1d01e4 --- /dev/null +++ b/src/config.js @@ -0,0 +1,80 @@ +export const ORDER_SEARCH_CONFIG = [ + { + type: 'input', + prop:'orderId', + label: '订单号', + placeholder: '请输入', + }, + { + type: 'daterange', + prop: 'times', + label: '申请时间', + valueFormat: 'YYYY-MM-DD', + placeholder: '请选择申请时间', + startPlaceholder: '开始日期', + endPlaceholder: '结束日期', + rangeSeparator: '-' + }, +] +// 经费申请列表 +export const ORDER_TABLE_CONFIG = { + index: true, + schemes: [ + { + attrs: { + label: '订单号', + prop: 'order_no', + align: 'center' + } + }, + { + attrs: { + label: '商品名称', + prop: 'name', + align: 'center' + } + }, + { + attrs: { + label: '价格', + align: 'center', + prop: 'price' + } + }, + { + attrs: { + label: '类型', + align: 'center', + prop: 'order_type' + } + }, + { + attrs: { + label: '状态', + prop: 'status', + align: 'center' + }, + slot: 'status' + },{ + attrs: { + label: '创建时间', + prop: 'CreatedAt', + align: 'center' + }, + },{ + attrs: { + label: '更新时间', + prop: 'UpdatedAt', + align: 'center' + }, + }, + { + attrs: { + label: '操作', + prop: 'operate', + align: 'center' + }, + slot: 'operate' + } + ] +} diff --git a/src/view/order/order/index.vue b/src/view/order/order/index.vue index b8e0fe2..0d29592 100644 --- a/src/view/order/order/index.vue +++ b/src/view/order/order/index.vue @@ -1,92 +1,116 @@ - - - - - - - - - - 查询 - 重置 - - - + + + - - - - - - - - - - - - - 删除 - - - + + + + + + + + + + + + + + + + + + + {{ tag(row.status).label }} + + + 详情 + 删除 + + + \ No newline at end of file +