|
|
@@ -55,7 +55,7 @@
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
plain
|
|
|
- @click="() => handleServiceOrder(200)"
|
|
|
+ @click="() => handleInspectionStatusAddReport(1000)"
|
|
|
:disabled="isTaskCancelled"
|
|
|
>检验情况告知</el-button
|
|
|
>
|
|
|
@@ -1826,8 +1826,8 @@ const handleFileUploadSuccess = (fileInfo:{fileName: string, fileUrl: string}) =
|
|
|
}
|
|
|
/***** 异常信息 end *****/
|
|
|
|
|
|
-// 获取服务单/受理单模板
|
|
|
-type BusinessType = 100 | 200 | 400
|
|
|
+// 获取服务单/受理单模板 1000-检验情况告知 400-重大问题线索
|
|
|
+type BusinessType = 100 | 1000 | 400
|
|
|
const handleServiceOrder = (type: BusinessType) => {
|
|
|
console.log(type)
|
|
|
if (type == 100){
|
|
|
@@ -2168,6 +2168,44 @@ const handleMainquestionAddReport = async (reportType, type: 'add' | 'edit' | 'v
|
|
|
handleServiceOrder(400)
|
|
|
}
|
|
|
|
|
|
+/*
|
|
|
+* 添加检验情况告知单
|
|
|
+* */
|
|
|
+const handleInspectionStatusAddReport = async (reportType, type: 'add' | 'edit' | 'view') => {
|
|
|
+
|
|
|
+ if (!reportType) return ElMessage.error('未知的报告类型')
|
|
|
+
|
|
|
+ if (taskOrderDetail.value.notificationformReport != null){
|
|
|
+ isAddMainquestion.value = 'view'
|
|
|
+ mainReportId.value = taskOrderDetail.value.notificationformReport.id
|
|
|
+ }else{
|
|
|
+ isAddMainquestion.value = 'add'
|
|
|
+ }
|
|
|
+
|
|
|
+ // mainOrderItemId.value = row ? row.orderItemId : unref(selectedEquips)[0].mainID
|
|
|
+
|
|
|
+ // 校验审核列表是否已经存在
|
|
|
+ // const existingAudit = supportingDocsAuditDataList.value.find(item => item.reportType === reportType && item.orderItemId === curMainquestionEquipmentRow.value.mainID)
|
|
|
+ // if (existingAudit) {
|
|
|
+ // ElMessage.error('该设备已存在该类型的报告')
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+
|
|
|
+ if (isAddMainquestion.value == 'add'){
|
|
|
+ const confirmed = await ElMessageBox.confirm('是否确定添加检验情况告知单?', '添加检验情况告知单提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).catch(() => false);
|
|
|
+
|
|
|
+ if (!confirmed) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ handleServiceOrder(1000)
|
|
|
+}
|
|
|
+
|
|
|
const handleSuccessInspectionplan = async (info) => {
|
|
|
const firstOrderItem = unref(taskOrderDetail).orderItems[0] || {}
|
|
|
const params: Recordable = {
|