|
@@ -74,12 +74,13 @@
|
|
|
</template>
|
|
|
<template #buttons>
|
|
|
<t-button theme="primary" @click="search">搜索</t-button>
|
|
|
- <!-- <t-button
|
|
|
+ <t-button
|
|
|
theme="primary"
|
|
|
@click="fastViewAllData"
|
|
|
style="margin-left: 10px"
|
|
|
+ :loading="screenImgsLoading"
|
|
|
>便捷查阅</t-button
|
|
|
- > -->
|
|
|
+ >
|
|
|
</template>
|
|
|
</SearchForm>
|
|
|
|
|
@@ -218,9 +219,11 @@
|
|
|
<template v-if="perm.LINK_Edit || perm.LINK_AddSop || perm.LINK_Fill">
|
|
|
<sop-step-dialog
|
|
|
v-model:visible="showSopStepDialog2getImg"
|
|
|
- :sop="tableData[0]"
|
|
|
+ v-for="(item, index) in tableData"
|
|
|
+ :sop="tableData[index]"
|
|
|
type="view"
|
|
|
:screenshot="screenshot"
|
|
|
+ @getScreenImgs="(...args) => insertScreenImgs(...args, index)"
|
|
|
></sop-step-dialog>
|
|
|
</template>
|
|
|
|
|
@@ -256,11 +259,16 @@
|
|
|
@success="search"
|
|
|
:fromSop="true"
|
|
|
></AllocationDialog>
|
|
|
+ <ScreenImgResultDialog
|
|
|
+ v-model:visible="showScreenImgResultDialog"
|
|
|
+ :screenImgTableData="screenImgTableData"
|
|
|
+ sopType="OFFICE_SOP_FLOW"
|
|
|
+ ></ScreenImgResultDialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script setup name="OfficeSop">
|
|
|
-import { ref, reactive, computed, watch, onMounted } from 'vue';
|
|
|
+import { ref, reactive, computed, watch, onMounted, nextTick } from 'vue';
|
|
|
import useFetchTable from '@/hooks/useFetchTable';
|
|
|
import { sopListApi, sopBatchCancelApi, getSopFastOptionsApi } from '@/api/sop';
|
|
|
import { timestampFilter } from '@/utils/filter';
|
|
@@ -282,8 +290,32 @@ import { omit } from 'lodash-es';
|
|
|
import bus from '@/utils/bus';
|
|
|
import { metadataListApi } from '@/api/sop';
|
|
|
import AllocationDialog from '../../../service-unit/dispatch/dispatch-manage/allocation-dialog.vue';
|
|
|
+import ScreenImgResultDialog from '@/components/common/screen-img-result-dialog/index.vue';
|
|
|
|
|
|
const screenshot = ref(false);
|
|
|
+const screenImgTableData = ref([]);
|
|
|
+const screenImgsLoading = ref(false);
|
|
|
+const showScreenImgResultDialog = ref(false);
|
|
|
+const insertScreenImgs = (screenImgArr, index) => {
|
|
|
+ screenImgTableData.value[index] = {
|
|
|
+ sopNo: tableData.value[index].sopNo,
|
|
|
+ courseName: tableData.value[index].courseName,
|
|
|
+ screenImgArr: screenImgArr,
|
|
|
+ };
|
|
|
+ if (
|
|
|
+ screenImgTableData.value.filter(Boolean).length === tableData.value.length
|
|
|
+ ) {
|
|
|
+ screenImgsLoading.value = false;
|
|
|
+ showScreenImgResultDialog.value = true;
|
|
|
+ }
|
|
|
+};
|
|
|
+const fastViewAllData = () => {
|
|
|
+ screenImgsLoading.value = true;
|
|
|
+
|
|
|
+ screenImgTableData.value = [];
|
|
|
+ screenshot.value = true;
|
|
|
+ showSopStepDialog2getImg.value = true;
|
|
|
+};
|
|
|
|
|
|
const showAllocationDialog = ref(false);
|
|
|
const allocation = (row) => {
|
|
@@ -789,9 +821,4 @@ watch(originColumns, () => {
|
|
|
params.formWidgetMetadataViewList = cloneDeep(originColumns.value);
|
|
|
formWidgetMetadataViewList.value = cloneDeep(originColumns.value);
|
|
|
});
|
|
|
-
|
|
|
-const fastViewAllData = async () => {
|
|
|
- screenshot.value = true;
|
|
|
- showSopStepDialog2getImg.value = true;
|
|
|
-};
|
|
|
</script>
|