Ver código fonte

refactor(businessManagement): 优化课程管理和订单管理相关功能

- 修改 ApiSelect 组件属性,提升用户体验
- 优化课程管理中的表单配置
- 调整体育馆套餐相关设置
- 更新订单管理中的表格列配置
zhangtao 1 semana atrás
pai
commit
0ecb797be0

+ 2 - 0
src/components/Form/src/components/ApiSelect.vue

@@ -109,6 +109,8 @@
         // update-end--author:liaozhiyang---date:20231017---for:【issues/5467】ApiSelect修复覆盖了用户传递的方法
         return obj;
       });
+      console.log(attrs_, 'attrs_');
+
       // update-begin--author:liaozhiyang---date:20230830---for:【QQYUN-6308】解决警告
       const getOptions = computed(() => {
         const { labelField, valueField, numberToString } = props;

+ 2 - 1
src/views/businessManagement/courses/courses.data.ts

@@ -124,8 +124,9 @@ export const formSchema: FormSchema[] = [
       api: getProject,
       labelField: 'name',
       valueField: 'id',
-      mode: 'tags',
+      mode: 'multiple',
       resultField: 'records',
+      showSearch: false,
     },
   },
   {

+ 4 - 0
src/views/businessManagement/gymnasiumBag/index.vue

@@ -153,6 +153,8 @@
         addonBefore: '开场前',
         addonAfter: '分钟可退',
         disabled: !getIsMerchant.value,
+        min: 1,
+        precision: 0,
       },
       labelWidth: 120,
       colProps: {
@@ -171,6 +173,8 @@
         addonBefore: '每笔订单最多可选择',
         addonAfter: '场',
         disabled: !getIsMerchant.value,
+        min: 1,
+        precision: 0,
       },
       labelWidth: 120,
       colProps: {

+ 2 - 2
src/views/businessManagement/gymnasiumNoFixed/gymnasiumNoFixed.data.ts

@@ -37,7 +37,7 @@ export const columns: BasicColumn[] = [
     dataIndex: 'refundType',
     width: 100,
     customRender: ({ record }) => {
-      return record.refundType === 1 ? '随时退,过期自动退' : '不支持退款';
+      return record.refundType === 1 ? '随时退,过期自动退' : record.refundType === 2 ? '不支持退款' : '可退';
     },
   },
 ];
@@ -115,7 +115,7 @@ export const dataRuleFormSchema: FormSchema[] = [
     componentProps: {
       options: [
         { label: '随时退·过期自动退', value: 1 },
-        { label: '不支持退款', value: 0 },
+        { label: '不支持退款', value: 2 },
       ],
     },
   },

+ 9 - 0
src/views/orderManagement/order/order.data.ts

@@ -330,6 +330,7 @@ export const verificationRecordColumns: TableColumnType[] = [
     dataIndex: 'familyUserName',
     title: '上课时间',
     align: 'center',
+    width: 220,
     customRender: ({ record }) => {
       return `${dayjs(record.coursesStartTime).format('YYYY-MM-DD HH:mm')} ${dayjs(record.coursesEndTime).format('HH:mm')}`;
     },
@@ -338,16 +339,20 @@ export const verificationRecordColumns: TableColumnType[] = [
     dataIndex: 'coursesName',
     title: '课时名称',
     align: 'center',
+    width: 420,
   },
   {
     dataIndex: 'useUserName',
     title: '使用人',
     align: 'center',
+    width: 180,
   },
   {
     dataIndex: 'verifyStatus',
     title: '核销状态',
     align: 'left',
+    width: 180,
+
     customRender: ({ text, record }) => {
       const Viewtext = h('div', { class: 'mr2' }, text == 1 ? '已核销' : '未核销');
       return record.orPostpone == 0 ? Viewtext : h('div', { class: 'flex items-center' }, [Viewtext, h(Tag, { color: 'green' }, () => '已延课')]);
@@ -357,11 +362,14 @@ export const verificationRecordColumns: TableColumnType[] = [
     dataIndex: 'verifyUserName',
     title: '核验人',
     align: 'center',
+    width: 180,
   },
   {
     dataIndex: 'isinCode',
     title: '核验照片',
     align: 'center',
+    width: 180,
+
     customRender: ({ record }) => {
       return record.verifyImage ? h(Image, { src: record.verifyImage, width: 100, height: 100 }) : '';
     },
@@ -370,6 +378,7 @@ export const verificationRecordColumns: TableColumnType[] = [
     dataIndex: 'verifyTime',
     title: '核验时间',
     align: 'center',
+    width: 280,
   },
 ];