|
@@ -6,22 +6,23 @@
|
|
import changeHistoryVue from './changeHistory.vue';
|
|
import changeHistoryVue from './changeHistory.vue';
|
|
import changeTextBookVue from './changeTextBook.vue';
|
|
import changeTextBookVue from './changeTextBook.vue';
|
|
import { ClassColumns, historySchema, historyTableColumns } from './data.config';
|
|
import { ClassColumns, historySchema, historyTableColumns } from './data.config';
|
|
- import {
|
|
|
|
- getWfTextbookSubscriptionInfo,
|
|
|
|
- postWfTextbookSubscriptionTextbookSubscriptionExportQuery,
|
|
|
|
- } from '/@/services/apis/WfTextbookSubscriptionController';
|
|
|
|
|
|
+ import { postWfTextbookSubscriptionTextbookSubscriptionExportQuery } 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 { 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';
|
|
- import { getTextbookSubscriptionBaseclassPage } from '/@/services/apis/TextbookSubscriptionController';
|
|
|
|
|
|
+ import {
|
|
|
|
+ getTextbookSubscriptionBaseclassPage,
|
|
|
|
+ getTextbookSubscriptionDetail,
|
|
|
|
+ getTextbookSubscriptionItemPage,
|
|
|
|
+ } from '/@/services/apis/TextbookSubscriptionController';
|
|
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 status = ref<any>(null);
|
|
const [viewReg] = useModalInner(async (data) => {
|
|
const [viewReg] = useModalInner(async (data) => {
|
|
- dataInfo.value = await getWfTextbookSubscriptionInfo({ id: data.id });
|
|
|
|
|
|
+ dataInfo.value = await getTextbookSubscriptionDetail({ id: data.id });
|
|
itemId.value = data.id;
|
|
itemId.value = data.id;
|
|
status.value = data.status;
|
|
status.value = data.status;
|
|
console.log(data);
|
|
console.log(data);
|
|
@@ -44,12 +45,10 @@
|
|
pagination: false,
|
|
pagination: false,
|
|
resizeHeightOffset: 100,
|
|
resizeHeightOffset: 100,
|
|
api: async (params) => {
|
|
api: async (params) => {
|
|
- return (
|
|
|
|
- await getWfTextbookSubscriptionInfo({
|
|
|
|
- id: itemId.value,
|
|
|
|
- ...params,
|
|
|
|
- })
|
|
|
|
- ).wfTextbookSubscriptionItemList;
|
|
|
|
|
|
+ return await getTextbookSubscriptionItemPage({
|
|
|
|
+ textbookSubscriptionId: itemId.value,
|
|
|
|
+ ...params,
|
|
|
|
+ });
|
|
},
|
|
},
|
|
});
|
|
});
|
|
const [viewTableReg, { reload }] = useTable({
|
|
const [viewTableReg, { reload }] = useTable({
|
|
@@ -58,7 +57,7 @@
|
|
beforeFetch: (params) => {
|
|
beforeFetch: (params) => {
|
|
return {
|
|
return {
|
|
...params,
|
|
...params,
|
|
- classIds: dataInfo.value.classIds,
|
|
|
|
|
|
+ id: itemId.value,
|
|
};
|
|
};
|
|
},
|
|
},
|
|
immediate: false,
|
|
immediate: false,
|
|
@@ -76,7 +75,7 @@
|
|
const handleExport = async () => {
|
|
const handleExport = async () => {
|
|
try {
|
|
try {
|
|
const data: any = await postWfTextbookSubscriptionTextbookSubscriptionExportQuery({
|
|
const data: any = await postWfTextbookSubscriptionTextbookSubscriptionExportQuery({
|
|
- wfTextbookSubscriptionId: itemId.value,
|
|
|
|
|
|
+ textbookSubscriptionId: itemId.value,
|
|
});
|
|
});
|
|
downloadByData(
|
|
downloadByData(
|
|
data.data,
|
|
data.data,
|
|
@@ -102,11 +101,11 @@
|
|
<div class="flex flex-row justify-between">
|
|
<div class="flex flex-row justify-between">
|
|
<div class="flex flex-col justify-center">
|
|
<div class="flex flex-col justify-center">
|
|
<span>学生用书征订数量</span>
|
|
<span>学生用书征订数量</span>
|
|
- <span class="mt-[6px] font-bold">{{ dataInfo?.studentSubscriptionNumberSum }}</span>
|
|
|
|
|
|
+ <span class="mt-[6px] font-bold">{{ dataInfo?.studentTatolNum }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="flex flex-col justify-center">
|
|
<div class="flex flex-col justify-center">
|
|
<span>教师用书征订数量</span>
|
|
<span>教师用书征订数量</span>
|
|
- <span class="mt-[6px] font-bold"> {{ dataInfo?.teacherSubscriptionNumberSum }}</span>
|
|
|
|
|
|
+ <span class="mt-[6px] font-bold"> {{ dataInfo?.teacherTatolNum }}</span>
|
|
</div>
|
|
</div>
|
|
<div class="flex flex-col justify-center">
|
|
<div class="flex flex-col justify-center">
|
|
<span>总征订数量</span>
|
|
<span>总征订数量</span>
|
|
@@ -122,15 +121,16 @@
|
|
<BasicTable @register="tableReg">
|
|
<BasicTable @register="tableReg">
|
|
<template #toolbar>
|
|
<template #toolbar>
|
|
<a-button type="primary" @click="openChangeHistory(true, itemId)">变更记录</a-button>
|
|
<a-button type="primary" @click="openChangeHistory(true, itemId)">变更记录</a-button>
|
|
- <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
|
|
<a-button
|
|
type="link"
|
|
type="link"
|
|
@click="openModal(true, record)"
|
|
@click="openModal(true, record)"
|
|
:disabled="record.inStockroomNum || status === 4"
|
|
:disabled="record.inStockroomNum || status === 4"
|
|
- >变更</a-button
|
|
|
|
>
|
|
>
|
|
|
|
+ 变更
|
|
|
|
+ </a-button>
|
|
</template>
|
|
</template>
|
|
</BasicTable>
|
|
</BasicTable>
|
|
<Modal width="1000px" v-model:visible="visible" title="查看">
|
|
<Modal width="1000px" v-model:visible="visible" title="查看">
|