From c46eb07a9f6e611f03f3c55b639b425d5111daa3 Mon Sep 17 00:00:00 2001
From: zhouwentao <1577701412@qq.com>
Date: Thu, 9 May 2024 11:43:29 +0800
Subject: [PATCH] updates
---
.../YxHistoryScoreControlLine.api.ts | 64 +++
.../YxHistoryScoreControlLine.data.ts | 121 +++++
.../YxHistoryScoreControlLineList.vue | 322 ++++++++++++++
.../YxHistoryScoreControlLineForm.vue | 70 +++
.../YxHistoryScoreControlLineModal.vue | 66 +++
src/views/yx/yxOrder/YxOrder.data.ts | 121 +++--
src/views/yx/yxOrder/YxOrderList.vue | 412 ++++++++++++------
src/views/yx/yxVipCard/YxVipCard.data.ts | 89 ++--
src/views/yx/yxVipCard/YxVipCardList-qq.vue | 280 ++++++++++++
src/views/yx/yxVipCard/YxVipCardList.vue | 84 +++-
.../yx/yxVipCard/components/YxVipCardForm.vue | 212 ++++++---
.../yxVipCard/components/YxVipCardModal.vue | 2 +-
12 files changed, 1550 insertions(+), 293 deletions(-)
create mode 100644 src/views/yx/yxHistoryScoreControlLine/YxHistoryScoreControlLine.api.ts
create mode 100644 src/views/yx/yxHistoryScoreControlLine/YxHistoryScoreControlLine.data.ts
create mode 100644 src/views/yx/yxHistoryScoreControlLine/YxHistoryScoreControlLineList.vue
create mode 100644 src/views/yx/yxHistoryScoreControlLine/components/YxHistoryScoreControlLineForm.vue
create mode 100644 src/views/yx/yxHistoryScoreControlLine/components/YxHistoryScoreControlLineModal.vue
create mode 100644 src/views/yx/yxVipCard/YxVipCardList-qq.vue
diff --git a/src/views/yx/yxHistoryScoreControlLine/YxHistoryScoreControlLine.api.ts b/src/views/yx/yxHistoryScoreControlLine/YxHistoryScoreControlLine.api.ts
new file mode 100644
index 0000000..769ce15
--- /dev/null
+++ b/src/views/yx/yxHistoryScoreControlLine/YxHistoryScoreControlLine.api.ts
@@ -0,0 +1,64 @@
+import {defHttp} from '/@/utils/http/axios';
+import { useMessage } from "/@/hooks/web/useMessage";
+
+const { createConfirm } = useMessage();
+
+enum Api {
+ list = '/yx/yxHistoryScoreControlLine/list',
+ save='/yx/yxHistoryScoreControlLine/add',
+ edit='/yx/yxHistoryScoreControlLine/edit',
+ deleteOne = '/yx/yxHistoryScoreControlLine/delete',
+ deleteBatch = '/yx/yxHistoryScoreControlLine/deleteBatch',
+ importExcel = '/yx/yxHistoryScoreControlLine/importExcel',
+ exportXls = '/yx/yxHistoryScoreControlLine/exportXls',
+}
+/**
+ * 导出api
+ * @param params
+ */
+export const getExportUrl = Api.exportXls;
+/**
+ * 导入api
+ */
+export const getImportUrl = Api.importExcel;
+/**
+ * 列表接口
+ * @param params
+ */
+export const list = (params) =>
+ defHttp.get({url: Api.list, params});
+
+/**
+ * 删除单个
+ */
+export const deleteOne = (params,handleSuccess) => {
+ return defHttp.delete({url: Api.deleteOne, params}, {joinParamsToUrl: true}).then(() => {
+ handleSuccess();
+ });
+}
+/**
+ * 批量删除
+ * @param params
+ */
+export const batchDelete = (params, handleSuccess) => {
+ createConfirm({
+ iconType: 'warning',
+ title: '确认删除',
+ content: '是否删除选中数据',
+ okText: '确认',
+ cancelText: '取消',
+ onOk: () => {
+ return defHttp.delete({url: Api.deleteBatch, data: params}, {joinParamsToUrl: true}).then(() => {
+ handleSuccess();
+ });
+ }
+ });
+}
+/**
+ * 保存或者更新
+ * @param params
+ */
+export const saveOrUpdate = (params, isUpdate) => {
+ let url = isUpdate ? Api.edit : Api.save;
+ return defHttp.post({url: url, params});
+}
diff --git a/src/views/yx/yxHistoryScoreControlLine/YxHistoryScoreControlLine.data.ts b/src/views/yx/yxHistoryScoreControlLine/YxHistoryScoreControlLine.data.ts
new file mode 100644
index 0000000..ab930eb
--- /dev/null
+++ b/src/views/yx/yxHistoryScoreControlLine/YxHistoryScoreControlLine.data.ts
@@ -0,0 +1,121 @@
+import {BasicColumn} from '/@/components/Table';
+import {FormSchema} from '/@/components/Table';
+import { rules} from '/@/utils/helper/validator';
+import { render } from '/@/utils/common/renderUtils';
+//列表数据
+export const columns: BasicColumn[] = [
+ {
+ title: '年份',
+ align:"center",
+ dataIndex: 'year'
+ },
+ {
+ title: '专业类别',
+ align:"center",
+ dataIndex: 'professionalCategory'
+ },
+ {
+ title: '学历层次',
+ align:"center",
+ dataIndex: 'educationalLevel'
+ },
+ {
+ title: '批次',
+ align:"center",
+ dataIndex: 'batch'
+ },
+ {
+ title: '文科/理科',
+ align:"center",
+ dataIndex: 'category'
+ },
+ {
+ title: '文化成绩分数',
+ align:"center",
+ dataIndex: 'culturalScore'
+ },
+ {
+ title: '专业成绩分数',
+ align:"center",
+ dataIndex: 'specialScore'
+ },
+ {
+ title: '文化成绩分数校考',
+ align:"center",
+ dataIndex: 'culturalScoreXk'
+ },
+ {
+ title: '专业成绩分数校考',
+ align:"center",
+ dataIndex: 'specialScoreXk'
+ },
+];
+//查询数据
+export const searchFormSchema: FormSchema[] = [
+];
+//表单数据
+export const formSchema: FormSchema[] = [
+ {
+ label: '年份',
+ field: 'year',
+ component: 'Input',
+ },
+ {
+ label: '专业类别',
+ field: 'professionalCategory',
+ component: 'Input',
+ },
+ {
+ label: '学历层次',
+ field: 'educationalLevel',
+ component: 'Input',
+ },
+ {
+ label: '批次',
+ field: 'batch',
+ component: 'Input',
+ },
+ {
+ label: '文科/理科',
+ field: 'category',
+ component: 'Input',
+ },
+ {
+ label: '文化成绩分数',
+ field: 'culturalScore',
+ component: 'InputNumber',
+ },
+ {
+ label: '专业成绩分数',
+ field: 'specialScore',
+ component: 'InputNumber',
+ },
+ {
+ label: '文化成绩分数校考',
+ field: 'culturalScoreXk',
+ component: 'InputNumber',
+ },
+ {
+ label: '专业成绩分数校考',
+ field: 'specialScoreXk',
+ component: 'InputNumber',
+ },
+ // TODO 主键隐藏字段,目前写死为ID
+ {
+ label: '',
+ field: 'id',
+ component: 'Input',
+ show: false
+ },
+];
+
+
+
+/**
+* 流程表单调用这个方法获取formSchema
+* @param param
+*/
+export function getBpmFormSchema(_formData): FormSchema[]{
+ // 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
+ return formSchema;
+}
\ No newline at end of file
diff --git a/src/views/yx/yxHistoryScoreControlLine/YxHistoryScoreControlLineList.vue b/src/views/yx/yxHistoryScoreControlLine/YxHistoryScoreControlLineList.vue
new file mode 100644
index 0000000..0091685
--- /dev/null
+++ b/src/views/yx/yxHistoryScoreControlLine/YxHistoryScoreControlLineList.vue
@@ -0,0 +1,322 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 请选择
+ 音乐类
+ 表演类
+ 书法类
+ 舞蹈类
+ 体育类
+ 艺术舞蹈类
+ 国际标准舞类
+ 播音与主持类
+ 美术与设计类
+
+
+
+
+
+
+ 请选择
+ 文科
+ 理科
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/yx/yxHistoryScoreControlLine/components/YxHistoryScoreControlLineForm.vue b/src/views/yx/yxHistoryScoreControlLine/components/YxHistoryScoreControlLineForm.vue
new file mode 100644
index 0000000..84a9805
--- /dev/null
+++ b/src/views/yx/yxHistoryScoreControlLine/components/YxHistoryScoreControlLineForm.vue
@@ -0,0 +1,70 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/yx/yxHistoryScoreControlLine/components/YxHistoryScoreControlLineModal.vue b/src/views/yx/yxHistoryScoreControlLine/components/YxHistoryScoreControlLineModal.vue
new file mode 100644
index 0000000..2b9a0db
--- /dev/null
+++ b/src/views/yx/yxHistoryScoreControlLine/components/YxHistoryScoreControlLineModal.vue
@@ -0,0 +1,66 @@
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/views/yx/yxOrder/YxOrder.data.ts b/src/views/yx/yxOrder/YxOrder.data.ts
index 9edecc2..01002b3 100644
--- a/src/views/yx/yxOrder/YxOrder.data.ts
+++ b/src/views/yx/yxOrder/YxOrder.data.ts
@@ -1,43 +1,77 @@
import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
-import { rules} from '/@/utils/helper/validator';
-import { render } from '/@/utils/common/renderUtils';
+import {rules} from '/@/utils/helper/validator';
+import {render} from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
- {
+ {
title: '订单编号(流水号)',
- align:"center",
- dataIndex: 'orderCode'
- },
- {
+ align: "center",
+ dataIndex: 'orderCode',
+ width: 300,
+ },
+ {
title: '总金额',
- align:"center",
- dataIndex: 'totalAmount'
- },
- {
+ align: "center",
+ dataIndex: 'totalAmount',
+ customRender: ({text}) => {
+ if(text){
+ return parseFloat(text)/100
+ }
+ return '未知';
+ },
+ },
+ {
title: '商品编号',
- align:"center",
- dataIndex: 'skuCode'
- },
- {
- title: '支付方式:1借记卡、2信用卡、3微信、4支付宝、5现金',
- align:"center",
- dataIndex: 'paymentType'
- },
- {
- title: '订单状态:1未付款、2已付款、3已发货、4已签收',
- align:"center",
- dataIndex: 'orderStatus'
- },
- {
- title: '购买用户id',
- align:"center",
- dataIndex: 'paymentUserId'
- },
+ align: "center",
+ dataIndex: 'skuCode',
+ customRender: ({text}) => {
+ if (text === '1001') {
+ return '体验卡';
+ }else if(text ==='1002'){
+ return 'VIP';
+ }else if(text ==='9999'){
+ return '管理员';
+ }else{
+ return '未知';
+ }
+ },
+ },
+ {
+ title: '支付方式',
+ //1借记卡、2信用卡、3微信、4支付宝、5现金
+ align: "center",
+ dataIndex: 'paymentType',
+ },
+ {
+ title: '订单状态',//1未付款、2已付款、3已发货、4已签收
+ align: "center",
+ dataIndex: 'orderStatus',
+ },
+ {
+ title: '购买人手机号',
+ align: "center",
+ dataIndex: 'paymentUserId_dictText',//paymentUserId
+ },{
+ title: '下单时间',
+ align: "center",
+ dataIndex: 'createTime',//paymentUserId
+ resizable: true,
+ sorter: {
+ multiple: 2
+ }
+ },{
+ title: '支付时间',
+ align: "center",
+ dataIndex: 'paymentTime',//paymentUserId
+ resizable: true,
+ sorter: {
+ multiple: 2
+ }
+ },
];
//查询数据
-export const searchFormSchema: FormSchema[] = [
-];
+export const searchFormSchema: FormSchema[] = [];
//表单数据
export const formSchema: FormSchema[] = [
{
@@ -70,22 +104,21 @@ export const formSchema: FormSchema[] = [
field: 'paymentUserId',
component: 'Input',
},
- // TODO 主键隐藏字段,目前写死为ID
- {
- label: '',
- field: 'id',
- component: 'Input',
- show: false
- },
+ // TODO 主键隐藏字段,目前写死为ID
+ {
+ label: '',
+ field: 'id',
+ component: 'Input',
+ show: false
+ },
];
-
/**
-* 流程表单调用这个方法获取formSchema
-* @param param
-*/
-export function getBpmFormSchema(_formData): FormSchema[]{
+ * 流程表单调用这个方法获取formSchema
+ * @param param
+ */
+export function getBpmFormSchema(_formData): FormSchema[] {
// 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
return formSchema;
-}
\ No newline at end of file
+}
diff --git a/src/views/yx/yxOrder/YxOrderList.vue b/src/views/yx/yxOrder/YxOrderList.vue
index 101b103..fd810ff 100644
--- a/src/views/yx/yxOrder/YxOrderList.vue
+++ b/src/views/yx/yxOrder/YxOrderList.vue
@@ -1,41 +1,103 @@
+
+
-
-
-
- 新增
- 导出
- 导入
-
-
-
-
-
- 删除
-
-
-
- 批量操作
-
-
+
+
+
+
+
+ 导出
+
+
+
+
+
+ 删除
+
+
+
+ 批量操作
+
+
-
+
+
+
+
+
+ 微信支付
+
+
+
+
+ {{ getStatusText(record.orderStatus) }}
+
+
+
+
+
-
+
-
+
- {{ getAreaTextByCode(text) }}
+ {{ getAreaTextByCode(text) }}
- 无文件
- 下载
+ 无文件
+ 下载
+
@@ -44,130 +106,196 @@
\ No newline at end of file
+
diff --git a/src/views/yx/yxVipCard/YxVipCard.data.ts b/src/views/yx/yxVipCard/YxVipCard.data.ts
index 218ca3c..6ba2815 100644
--- a/src/views/yx/yxVipCard/YxVipCard.data.ts
+++ b/src/views/yx/yxVipCard/YxVipCard.data.ts
@@ -1,48 +1,60 @@
import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
-import { rules} from '/@/utils/helper/validator';
-import { render } from '/@/utils/common/renderUtils';
+import {rules} from '/@/utils/helper/validator';
+import {render} from '/@/utils/common/renderUtils';
//列表数据
export const columns: BasicColumn[] = [
- {
+ {
title: '卡号',
- align:"center",
+ align: "center",
dataIndex: 'cardNum'
- },
+ },
{
title: '有效时长(天)',
dataIndex: 'validTime',
align: 'center',
},
- /*{
- title: '有效日期',
- align:"center",
- dataIndex: 'validDate',
- customRender:({text}) =>{
- return !text?"":(text.length>10?text.substr(0,10):text)
- },
- },*/
- {
- title: '对应商品',
- align:"center",
- dataIndex: 'skuCode_dictText'
- },
- {
- title: '兑换用户id',
- align:"center",
- dataIndex: 'userId'
+ {
+ title: '有效日期至',
+ align: "center",
+ dataIndex: 'validDate'
+ },
+ /*{
+ title: '有效日期',
+ align:"center",
+ dataIndex: 'validDate',
+ customRender:({text}) =>{
+ return !text?"":(text.length>10?text.substr(0,10):text)
},
+ },*/
+ {
+ title: '对应商品',
+ align: "center",
+ dataIndex: 'skuCode_dictText'
+ },
+ {
+ title: '使用日期',
+ align: "center",
+ dataIndex: 'usedTime',
+ sorter: {
+ multiple: 2
+ }
+ },
+ {
+ title: '兑换用户手机号',
+ align: "center",
+ dataIndex: 'userId_dictText',//userId
+ },
];
//查询数据
-export const searchFormSchema: FormSchema[] = [
-];
+export const searchFormSchema: FormSchema[] = [];
//表单数据
export const formSchema: FormSchema[] = [
{
label: '卡号',
field: 'cardNum',
component: 'Input',
- componentProps:{
+ componentProps: {
disabled: true
},
},
@@ -59,13 +71,13 @@ export const formSchema: FormSchema[] = [
{
label: '对应商品',
field: 'skuCode',
- colProps: { sm: 24 },
+ colProps: {sm: 24},
component: 'JSearchSelect',
componentProps: {
dict: 'yx_vip_sku,sku_name,sku_code',
},
dynamicRules: () => {
- return [{ required: true, message: '请选择对应商品!' }];
+ return [{required: true, message: '请选择对应商品!'}];
}
},
/*{
@@ -73,22 +85,21 @@ export const formSchema: FormSchema[] = [
field: 'userId',
component: 'Input',
},*/
- // TODO 主键隐藏字段,目前写死为ID
- {
- label: '',
- field: 'id',
- component: 'Input',
- show: false
- },
+ // TODO 主键隐藏字段,目前写死为ID
+ {
+ label: '',
+ field: 'id',
+ component: 'Input',
+ show: false
+ },
];
-
/**
-* 流程表单调用这个方法获取formSchema
-* @param param
-*/
-export function getBpmFormSchema(_formData): FormSchema[]{
+ * 流程表单调用这个方法获取formSchema
+ * @param param
+ */
+export function getBpmFormSchema(_formData): FormSchema[] {
// 默认和原始表单保持一致 如果流程中配置了权限数据,这里需要单独处理formSchema
return formSchema;
}
diff --git a/src/views/yx/yxVipCard/YxVipCardList-qq.vue b/src/views/yx/yxVipCard/YxVipCardList-qq.vue
new file mode 100644
index 0000000..753cc67
--- /dev/null
+++ b/src/views/yx/yxVipCard/YxVipCardList-qq.vue
@@ -0,0 +1,280 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ 请选择
+ 音乐类
+ 国际标准舞类
+ 播音与主持类
+ 表演类
+ 编导制作类
+ 书法类
+ 艺术舞蹈类
+ 美术与设计类
+ 舞蹈类
+ 体育类
+
+
+
+
+
+
+ 请选择
+ 文科
+ 理科
+
+
+
+
+ 查询
+ 重置
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/yx/yxVipCard/YxVipCardList.vue b/src/views/yx/yxVipCard/YxVipCardList.vue
index 0118853..2c7ad9f 100644
--- a/src/views/yx/yxVipCard/YxVipCardList.vue
+++ b/src/views/yx/yxVipCard/YxVipCardList.vue
@@ -1,16 +1,51 @@
+
+
- 新增
-
+
导出
-
+
@@ -51,7 +86,7 @@
diff --git a/src/views/yx/yxVipCard/components/YxVipCardModal.vue b/src/views/yx/yxVipCard/components/YxVipCardModal.vue
index 41d6a2e..50e3d4f 100644
--- a/src/views/yx/yxVipCard/components/YxVipCardModal.vue
+++ b/src/views/yx/yxVipCard/components/YxVipCardModal.vue
@@ -63,4 +63,4 @@
:deep(.ant-calendar-picker){
width: 100%
}
-
\ No newline at end of file
+