|
@@ -709,6 +709,7 @@ import { orderPrevious, workflowNextSteps, workflowNextStepsByOrder, workflowNex
|
|
|
import { useAppConfig } from '@/stores/appConfig';
|
|
|
import { VTreeDrop } from '@wsfe/vue-tree';
|
|
|
import { removeDuplicate } from '@/utils/arrayOperation';
|
|
|
+import { fileDownloadByUrl } from '@/api/public/file';
|
|
|
|
|
|
// 引入组件
|
|
|
const CommonAdvice = defineAsyncComponent(() => import('@/components/CommonAdvice/index.vue')); // 常用意见
|
|
@@ -1003,10 +1004,7 @@ const orgSummaryToEnd = computed(() => {
|
|
|
});
|
|
|
// 部门流转到归档
|
|
|
const orgToEnd = computed(() => {
|
|
|
- return (
|
|
|
- currentParams.value.currentStepBusinessType === 2 &&
|
|
|
- selectNext.value.key === 'end'
|
|
|
- );
|
|
|
+ return currentParams.value.currentStepBusinessType === 2 && selectNext.value.key === 'end';
|
|
|
});
|
|
|
// 判断当前工单是 随手拍电气焊作业申报 并且是部门办理时 并且当前节点是普通节点 并且选择的下一节点是汇总或者归档
|
|
|
const orgDQH = computed(() => {
|
|
@@ -1028,9 +1026,9 @@ const orgAQYH = computed(() => {
|
|
|
(selectNext.value.stepType === 3 || selectNext.value.key === 'end') &&
|
|
|
isAQYHOrder) ||
|
|
|
(currentParams.value.counterSignType === null &&
|
|
|
- currentParams.value.currentStepBusinessType === 2 &&
|
|
|
- currentParams.value.currentStepType === 0 &&
|
|
|
- (selectNext.value.stepType === 3 || selectNext.value.key === 'end') &&
|
|
|
+ currentParams.value.currentStepBusinessType === 2 &&
|
|
|
+ currentParams.value.currentStepType === 0 &&
|
|
|
+ (selectNext.value.stepType === 3 || selectNext.value.key === 'end') &&
|
|
|
isAQYHOrder)
|
|
|
);
|
|
|
});
|
|
@@ -1123,7 +1121,8 @@ const selectNextStep = (val: any) => {
|
|
|
orgOneToEnd.value ||
|
|
|
orgToOrg.value ||
|
|
|
orgToOrgSummary.value ||
|
|
|
- orgSummaryToEnd.value || orgToEnd.value;
|
|
|
+ orgSummaryToEnd.value ||
|
|
|
+ orgToEnd.value;
|
|
|
|
|
|
if (seatToOrgOne.value || paidanToOrgOne.value) {
|
|
|
// 话务部到一级部门 派单组到一级部门 默认选中主协办
|
|
@@ -1591,7 +1590,21 @@ const otherReasonRequired = computed(() => {
|
|
|
// 打开文件
|
|
|
const openFile = (file: any) => {
|
|
|
console.log(file);
|
|
|
- window.open(import.meta.env.VITE_API_UPLOAD_URL + file.path);
|
|
|
+ /* window.open(import.meta.env.VITE_API_UPLOAD_URL + file.path);*/
|
|
|
+ fileDownloadByUrl({
|
|
|
+ Source: 'hotline',
|
|
|
+ Id: file.id,
|
|
|
+ }).then((res: any) => {
|
|
|
+ let blob: Blob = new Blob([res.data], { type: res.data.type }); // 创建blob 设置blob文件类型 data 设置为后端返回的文件(例如mp3,jpeg) type:这里设置后端返回的类型 为 mp3
|
|
|
+ let down: HTMLAnchorElement = document.createElement('a'); // 创建A标签
|
|
|
+ let href: string = window.URL.createObjectURL(blob); // 创建下载的链接
|
|
|
+ down.href = href; // 下载地址
|
|
|
+ down.download = file.fileName; // 下载文件名
|
|
|
+ document.body.appendChild(down);
|
|
|
+ down.click(); // 模拟点击A标签
|
|
|
+ document.body.removeChild(down); // 下载完成移除元素
|
|
|
+ window.URL.revokeObjectURL(href); // 释放blob对象
|
|
|
+ });
|
|
|
};
|
|
|
// 办理
|
|
|
const handleFiles = ref<EmptyArrayType>([]); // 流程附件
|