Explorar o código

fix: change textbookSubscription

DESKTOP-USV654P\pc hai 3 semanas
pai
achega
381577b891

+ 88 - 21
src/views/educational/textbookSubscription/components/data.config.ts

@@ -239,27 +239,94 @@ export const textbookColumns: BasicColumn[] = [
       default: 'teacherSubscriptionNumber',
     },
   },
-  // {
-  //   title: '定价',
-  //   dataIndex: 'sourcePrice',
-  //   width: 80,
-  // },
-  // {
-  //   title: '折扣',
-  //   dataIndex: 'discount',
-  //   width: 100,
-  //   slots: {
-  //     default: 'discount',
-  //   },
-  // },
-  // {
-  //   title: '价格',
-  //   dataIndex: 'price',
-  //   width: 100,
-  //   slots: {
-  //     default: 'price',
-  //   },
-  // },
+];
+
+export const textbookColumns1: BasicColumn[] = [
+  {
+    title: '课程名称',
+    dataIndex: 'courseName',
+    align: 'left',
+    width: 80,
+  },
+  {
+    title: '教材书名',
+    dataIndex: 'bookName',
+    align: 'left',
+  },
+  {
+    title: '书号(ISSN)',
+    dataIndex: 'issn',
+    width: 150,
+  },
+  {
+    title: '作者(主编)',
+    dataIndex: 'editorInChief',
+    align: 'left',
+    width: 100,
+  },
+  {
+    title: '出版社',
+    dataIndex: 'publishingHouse',
+    width: 90,
+    align: 'left',
+  },
+  {
+    title: '类型',
+    dataIndex: 'textbookTypeCn',
+    width: 80,
+    align: 'left',
+  },
+  {
+    title: '版次',
+    dataIndex: 'version',
+    align: 'left',
+    width: 150,
+  },
+  {
+    title: '使用类型',
+    dataIndex: 'useType',
+    customRender: ({ record }) => {
+      return record.useType ? record.useType + '学期' : '';
+    },
+    width: 80,
+  },
+  {
+    title: '定价',
+    dataIndex: 'price',
+    align: 'left',
+    width: 80,
+  },
+  {
+    title: '折扣',
+    dataIndex: 'discount',
+    align: 'left',
+    width: 120,
+    slots: {
+      default: 'discount',
+    },
+  },
+  {
+    title: '小计',
+    dataIndex: 'subtotal',
+    align: 'left',
+    width: 120,
+  },
+  {
+    title: '学生用书征订数量',
+    dataIndex: 'studentSubscriptionNumber',
+    width: 150,
+    slots: {
+      default: 'studentSubscriptionNumber',
+    },
+  },
+  {
+    title: '教师用书征订数量',
+    dataIndex: 'teacherSubscriptionNumber',
+    width: 150,
+    slots: {
+      default: 'teacherSubscriptionNumber',
+    },
+  },
 ];
 
 export const historyTableColumns: BasicColumn[] = [

+ 2 - 2
src/views/educational/textbookSubscription/components/textBookPop.vue

@@ -4,7 +4,7 @@
   import BasicTable from '/@/components/Table/src/BasicTable.vue';
   import { useTable } from '/@/components/Table';
   import classImportVue from './classImport.vue';
-  import { textbookColumns } from '/@/views/educational/textbookSubscription/components/data.config';
+  import { textbookColumns1 } from '/@/views/educational/textbookSubscription/components/data.config';
   import { postWfTextbookSubscriptionTextbookSubscriptionExportQuery } from '/@/services/apis/WfTextbookSubscriptionController';
   import { reactive } from 'vue';
   import { useMessage } from '/@/hooks/web/useMessage';
@@ -45,7 +45,7 @@
     bordered: true,
     resizeHeightOffset: 60,
     columns: [
-      ...textbookColumns,
+      ...textbookColumns1,
       {
         title: '征订总数量',
         dataIndex: 'subscriptionNumber',