|
@@ -5,10 +5,7 @@
|
|
import BasicTable from '/@/components/Table/src/BasicTable.vue';
|
|
import BasicTable from '/@/components/Table/src/BasicTable.vue';
|
|
import changeHistoryVue from './changeHistory.vue';
|
|
import changeHistoryVue from './changeHistory.vue';
|
|
import changeTextBookVue from './changeTextBook.vue';
|
|
import changeTextBookVue from './changeTextBook.vue';
|
|
- import {
|
|
|
|
- ClassColumns,
|
|
|
|
- historyTableColumns,
|
|
|
|
- } from '/@/views/educational/textbookSubscription/components/data.config';
|
|
|
|
|
|
+ import { ClassColumns, historySchema, historyTableColumns } from './data.config';
|
|
import {
|
|
import {
|
|
getWfTextbookSubscriptionBaseclassPage,
|
|
getWfTextbookSubscriptionBaseclassPage,
|
|
getWfTextbookSubscriptionInfo,
|
|
getWfTextbookSubscriptionInfo,
|
|
@@ -16,16 +13,18 @@
|
|
} from '/@/services/apis/WfTextbookSubscriptionController';
|
|
} from '/@/services/apis/WfTextbookSubscriptionController';
|
|
import { nextTick, ref } from 'vue';
|
|
import { nextTick, ref } from 'vue';
|
|
import { Modal } from 'ant-design-vue';
|
|
import { Modal } from 'ant-design-vue';
|
|
- import { getDataOption } from '/@/api/system/dic';
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
import { useMessage } from '/@/hooks/web/useMessage';
|
|
import { downloadByData } from '/@/utils/file/download';
|
|
import { downloadByData } from '/@/utils/file/download';
|
|
import { formatToDate } from '/@/utils/dateUtil';
|
|
import { formatToDate } from '/@/utils/dateUtil';
|
|
const visible = ref(false);
|
|
const visible = ref(false);
|
|
const dataInfo = ref<any>({});
|
|
const dataInfo = ref<any>({});
|
|
const itemId = ref<any>(null);
|
|
const itemId = ref<any>(null);
|
|
|
|
+ const status = ref<any>(null);
|
|
const [viewReg] = useModalInner(async (data) => {
|
|
const [viewReg] = useModalInner(async (data) => {
|
|
dataInfo.value = await getWfTextbookSubscriptionInfo({ id: data.id });
|
|
dataInfo.value = await getWfTextbookSubscriptionInfo({ id: data.id });
|
|
itemId.value = data.id;
|
|
itemId.value = data.id;
|
|
|
|
+ status.value = data.status;
|
|
|
|
+ console.log(data);
|
|
await reloadHistory();
|
|
await reloadHistory();
|
|
});
|
|
});
|
|
const [changeHistoryRef, { openModal: openChangeHistory }] = useModal();
|
|
const [changeHistoryRef, { openModal: openChangeHistory }] = useModal();
|
|
@@ -37,38 +36,7 @@
|
|
useSearchForm: true,
|
|
useSearchForm: true,
|
|
formConfig: {
|
|
formConfig: {
|
|
labelWidth: 120,
|
|
labelWidth: 120,
|
|
- schemas: [
|
|
|
|
- {
|
|
|
|
- field: 'textbookType',
|
|
|
|
- label: '教材类型',
|
|
|
|
- component: 'ApiSelect',
|
|
|
|
- componentProps: {
|
|
|
|
- api: getDataOption,
|
|
|
|
- params: {
|
|
|
|
- code: 'textbook_type',
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- colProps: {
|
|
|
|
- span: 8,
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- field: 'bookName',
|
|
|
|
- label: '教材书名',
|
|
|
|
- component: 'Input',
|
|
|
|
- colProps: {
|
|
|
|
- span: 8,
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- {
|
|
|
|
- field: 'courseName',
|
|
|
|
- label: '课程名称',
|
|
|
|
- component: 'Input',
|
|
|
|
- colProps: {
|
|
|
|
- span: 8,
|
|
|
|
- },
|
|
|
|
- },
|
|
|
|
- ],
|
|
|
|
|
|
+ schemas: historySchema,
|
|
},
|
|
},
|
|
immediate: false,
|
|
immediate: false,
|
|
rowKey: 'id',
|
|
rowKey: 'id',
|
|
@@ -157,7 +125,10 @@
|
|
<a-button type="primary" @click="handleExport">导出</a-button>
|
|
<a-button type="primary" @click="handleExport">导出</a-button>
|
|
</template>
|
|
</template>
|
|
<template #action="{ record }">
|
|
<template #action="{ record }">
|
|
- <a-button type="link" @click="openModal(true, record)" :disabled="record.inStockroomNum"
|
|
|
|
|
|
+ <a-button
|
|
|
|
+ type="link"
|
|
|
|
+ @click="openModal(true, record)"
|
|
|
|
+ :disabled="record.inStockroomNum || status === 4"
|
|
>变更</a-button
|
|
>变更</a-button
|
|
>
|
|
>
|
|
</template>
|
|
</template>
|