|
@@ -1,5 +1,6 @@
|
|
|
import { BasicColumn, FormSchema } from '/@/components/Table';
|
|
|
import { requestMagicApi } from '/@/api/magicApi';
|
|
|
+import { h } from 'vue';
|
|
|
export const subscription = {
|
|
|
1: '待发起',
|
|
|
2: '征订中',
|
|
@@ -225,44 +226,84 @@ export const historyTableColumns: BasicColumn[] = [
|
|
|
title: '课程名称',
|
|
|
dataIndex: 'courseSubjectIdCn',
|
|
|
width: 150,
|
|
|
+ customRender({ record, text }) {
|
|
|
+ if (record.alterationType == 2) {
|
|
|
+ return h('span', { style: 'color:red' }, text);
|
|
|
+ }
|
|
|
+ },
|
|
|
align: 'left',
|
|
|
},
|
|
|
{
|
|
|
title: '教材书名',
|
|
|
dataIndex: 'bookName',
|
|
|
align: 'left',
|
|
|
+ customRender({ record, text }) {
|
|
|
+ if (record.alterationType == 2) {
|
|
|
+ return h('span', { style: 'color:red' }, text);
|
|
|
+ }
|
|
|
+ },
|
|
|
width: 150,
|
|
|
},
|
|
|
{
|
|
|
title: '书号(ISSN)',
|
|
|
dataIndex: 'issn',
|
|
|
+ customRender({ record, text }) {
|
|
|
+ if (record.alterationType == 2) {
|
|
|
+ return h('span', { style: 'color:red' }, text);
|
|
|
+ }
|
|
|
+ },
|
|
|
width: 150,
|
|
|
},
|
|
|
{
|
|
|
title: '作者(主编)',
|
|
|
dataIndex: 'editorInChief',
|
|
|
+ customRender({ record, text }) {
|
|
|
+ if (record.alterationType == 2) {
|
|
|
+ return h('span', { style: 'color:red' }, text);
|
|
|
+ }
|
|
|
+ },
|
|
|
width: 100,
|
|
|
align: 'left',
|
|
|
},
|
|
|
{
|
|
|
title: '出版社',
|
|
|
dataIndex: 'publishingHouse',
|
|
|
+ customRender({ record, text }) {
|
|
|
+ if (record.alterationType == 2) {
|
|
|
+ return h('span', { style: 'color:red' }, text);
|
|
|
+ }
|
|
|
+ },
|
|
|
width: 100,
|
|
|
},
|
|
|
{
|
|
|
title: '类型',
|
|
|
dataIndex: 'textbookTypeCn',
|
|
|
+ customRender({ record, text }) {
|
|
|
+ if (record.alterationType == 2) {
|
|
|
+ return h('span', { style: 'color:red' }, text);
|
|
|
+ }
|
|
|
+ },
|
|
|
width: 100,
|
|
|
},
|
|
|
|
|
|
{
|
|
|
title: '学生用书征订数量',
|
|
|
dataIndex: 'studentSubscriptionNumber',
|
|
|
+ customRender({ record, text }) {
|
|
|
+ if (record.alterationType !== 0) {
|
|
|
+ return h('span', { style: 'color:red' }, text);
|
|
|
+ }
|
|
|
+ },
|
|
|
width: 150,
|
|
|
},
|
|
|
{
|
|
|
title: '教师用书征订数量',
|
|
|
dataIndex: 'teacherSubscriptionNumber',
|
|
|
+ customRender({ record, text }) {
|
|
|
+ if (record.alterationType !== 0) {
|
|
|
+ return h('span', { style: 'color:red' }, text);
|
|
|
+ }
|
|
|
+ },
|
|
|
width: 150,
|
|
|
},
|
|
|
{
|
|
@@ -273,6 +314,9 @@ export const historyTableColumns: BasicColumn[] = [
|
|
|
{
|
|
|
title: '征订总数量',
|
|
|
dataIndex: 'subscriptionNumber',
|
|
|
+ customRender: ({ record }) => {
|
|
|
+ return record.studentSubscriptionNumber ? record.teacherSubscriptionNumber : '';
|
|
|
+ },
|
|
|
width: 120,
|
|
|
},
|
|
|
{
|