|
@@ -63,13 +63,19 @@
|
|
|
@submit="onSubmit"
|
|
|
></scoring-panel-with-confirm>
|
|
|
<mark-history-list :id="currentViewHistory?.taskId" v-model="visibleHistory"></mark-history-list>
|
|
|
- <send-back-mark :id="currentSystemCheckPaper?.id" v-model="sendBackVisible" @rejected="onRejected"></send-back-mark>
|
|
|
+ <send-back-mark
|
|
|
+ :id="currentSystemCheckPaper?.id"
|
|
|
+ v-model="sendBackVisible"
|
|
|
+ type="system-check"
|
|
|
+ @rejected="onRejected"
|
|
|
+ ></send-back-mark>
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts" name="SystemCheck">
|
|
|
/** 系统抽查卷 */
|
|
|
import { reactive, ref, computed, watch } from 'vue'
|
|
|
-import { ElButton } from 'element-plus'
|
|
|
+import { ElButton, ElMessage } from 'element-plus'
|
|
|
+import { add } from '@/utils/common'
|
|
|
import { useSetImgBg } from '@/hooks/useSetImgBg'
|
|
|
import useVW from '@/hooks/useVW'
|
|
|
import useFetch from '@/hooks/useFetch'
|
|
@@ -88,11 +94,9 @@ import ScoringPanelWithConfirm from '@/components/shared/ScoringPanelWithConfirm
|
|
|
import ImagePreview from '@/components/shared/ImagePreview.vue'
|
|
|
|
|
|
import type { SetImgBgOption } from '@/hooks/useSetImgBg'
|
|
|
-import type { ExtractApiParams, ExtractApiResponse, ExtractMultipleApiResponse } from '@/api/api'
|
|
|
+import type { ExtractApiParams } from '@/api/api'
|
|
|
import type { MarkHeaderInstance, EpFormItem, EpTableColumn } from 'global-type'
|
|
|
|
|
|
-type RowType = ExtractMultipleApiResponse<'getSystemSpotList'> & { index: number }
|
|
|
-
|
|
|
const {
|
|
|
rotate,
|
|
|
scale,
|
|
@@ -259,7 +263,8 @@ const { fetch: markSystemSpotPaper } = useFetch('markSystemSpotPaper')
|
|
|
const onSubmit = async () => {
|
|
|
if (currentSystemCheckPaper.value) {
|
|
|
await markSystemSpotPaper({ id: currentSystemCheckPaper.value.id, scores: modelScore.value })
|
|
|
- onSearch()
|
|
|
+ currentSystemCheckPaper.value.headerScore = add(...modelScore.value)
|
|
|
+ ElMessage.success('修改成功')
|
|
|
}
|
|
|
}
|
|
|
|