|
|
@@ -174,6 +174,10 @@ import { getTaskOrderReport } from '@/api/orderReport'
|
|
|
import { buildFileUrl } from '@/utils/index'
|
|
|
import { SignFuncName, requestFunc } from '@/api/ApiRouter/sign'
|
|
|
import { TaskOrderFuncName, requestFunc as taskOrderRequestFunc } from '@/api/ApiRouter/taskOrder'
|
|
|
+import {
|
|
|
+ requestFunc as SecurityRequestFunc,
|
|
|
+ SecurityCheckFuncName,
|
|
|
+} from '@/api/ApiRouter/taskOrderSecurityCheck'
|
|
|
import { EquipmentType } from '@/utils/dictMap'
|
|
|
|
|
|
const equipType = useConfigStore().getEquipType()
|
|
|
@@ -304,8 +308,7 @@ const getPreviewData = async () => {
|
|
|
})
|
|
|
const signFileList = orderDetail.data.signFileList || []
|
|
|
const targetBusinessType = businessTypeMap[routeType.value]
|
|
|
- const signFile =
|
|
|
- signFileList.find((row: any) => row.businessType === targetBusinessType)
|
|
|
+ const signFile = signFileList.find((row: any) => row.businessType === targetBusinessType)
|
|
|
if (signFile == null || signFile.isSignature == '0') {
|
|
|
isSigned.value = '0'
|
|
|
} else {
|
|
|
@@ -346,9 +349,17 @@ const getPreviewData = async () => {
|
|
|
} else {
|
|
|
templateId.value = notificationformReport?.templateId || ''
|
|
|
refId.value = notificationformReport?.id || ''
|
|
|
- orderReportId.value = notificationformReport?.id || ''
|
|
|
}
|
|
|
break
|
|
|
+ case 'AQJC':
|
|
|
+ const defaultTemplateResp = await SecurityRequestFunc(
|
|
|
+ SecurityCheckFuncName.getTemplate,
|
|
|
+ equipType,
|
|
|
+ { orderId: orderId.value },
|
|
|
+ )
|
|
|
+ templateId.value = defaultTemplateResp.data?.templateId
|
|
|
+ refId.value = securityCheckId.value
|
|
|
+ break
|
|
|
default:
|
|
|
uni.showToast({ title: '请选择正确的签字文件类型', icon: 'error' })
|
|
|
break
|