|
@@ -430,11 +430,19 @@
|
|
|
:pdfBlob="currentPdfBlob"
|
|
:pdfBlob="currentPdfBlob"
|
|
|
@close="handlePdfPreviewClose"
|
|
@close="handlePdfPreviewClose"
|
|
|
/>
|
|
/>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- 服务单/受理单 -->
|
|
|
|
|
+ <OrderDialog
|
|
|
|
|
+ v-if="orderReportVisible"
|
|
|
|
|
+ v-model:visible="orderReportVisible"
|
|
|
|
|
+ :orderId="currentTaskOrderId"
|
|
|
|
|
+ type="boiler"
|
|
|
|
|
+ />
|
|
|
|
|
+
|
|
|
</template>
|
|
</template>
|
|
|
|
|
|
|
|
<script setup lang="ts">
|
|
<script setup lang="ts">
|
|
|
import { ref, reactive, onMounted, getCurrentInstance } from 'vue'
|
|
import { ref, reactive, onMounted, getCurrentInstance } from 'vue'
|
|
|
-const { proxy } = getCurrentInstance()
|
|
|
|
|
import { ElMessage } from 'element-plus'
|
|
import { ElMessage } from 'element-plus'
|
|
|
import { formatArrayDate, formatDate } from '@/utils/formatTime'
|
|
import { formatArrayDate, formatDate } from '@/utils/formatTime'
|
|
|
import { BoilerTaskOrderApi, BoilerTaskOrderVO } from '@/api/pressure2/boilertaskorder'
|
|
import { BoilerTaskOrderApi, BoilerTaskOrderVO } from '@/api/pressure2/boilertaskorder'
|
|
@@ -456,6 +464,7 @@ import {getJCP} from '@/utils/jcp/jcp-vue'
|
|
|
import {PipeInputApi} from "@/api/pressure2/pipeInput";
|
|
import {PipeInputApi} from "@/api/pressure2/pipeInput";
|
|
|
import PdfPreviewDialog from './PdfPreviewDialog.vue'
|
|
import PdfPreviewDialog from './PdfPreviewDialog.vue'
|
|
|
import 'https://printjs-4de6.kxcdn.com/print.min.js'
|
|
import 'https://printjs-4de6.kxcdn.com/print.min.js'
|
|
|
|
|
+import OrderDialog from "@/views/pressure2/boilertaskorder/components/OrderDialog.vue";
|
|
|
|
|
|
|
|
const router = useRouter()
|
|
const router = useRouter()
|
|
|
/** 出具报告任务单 列表 */
|
|
/** 出具报告任务单 列表 */
|
|
@@ -670,16 +679,21 @@ const handleViewPrintRecord = (row) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 委托协议
|
|
// 委托协议
|
|
|
|
|
+const orderReportVisible = ref(false)
|
|
|
const handleConsignmentAgreement = (row) => {
|
|
const handleConsignmentAgreement = (row) => {
|
|
|
- businessType.value = 100
|
|
|
|
|
- serviceRecordListVisible.value = true
|
|
|
|
|
- isAddMainquestion.value = 'view'
|
|
|
|
|
- taskOrderDetail.value = { ...row, id: row.orderId } //'a08885bd8f4f1607acb3b4e41d99fd11'
|
|
|
|
|
- if (row.checkType == PressureBoilerCheckType.IN || row.checkType == PressureBoilerCheckType.OUT) {
|
|
|
|
|
- // 内外检验
|
|
|
|
|
- } else if (row.checkType == PressureBoilerCheckType.PRESSURE) {
|
|
|
|
|
- // 耐压检验
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ // businessType.value = 100
|
|
|
|
|
+ // serviceRecordListVisible.value = true
|
|
|
|
|
+ // isAddMainquestion.value = 'view'
|
|
|
|
|
+ // taskOrderDetail.value = { ...row, id: row.orderId } //'a08885bd8f4f1607acb3b4e41d99fd11'
|
|
|
|
|
+ // if (row.checkType == PressureBoilerCheckType.IN || row.checkType == PressureBoilerCheckType.OUT) {
|
|
|
|
|
+ // // 内外检验
|
|
|
|
|
+ // } else if (row.checkType == PressureBoilerCheckType.PRESSURE) {
|
|
|
|
|
+ // // 耐压检验
|
|
|
|
|
+ // }
|
|
|
|
|
+
|
|
|
|
|
+ currentTaskOrderId.value = row.orderId
|
|
|
|
|
+ orderReportVisible.value = true
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
/** 电子发放 */
|
|
/** 电子发放 */
|
|
|
const handleElectronicDistribution = (id) => {
|
|
const handleElectronicDistribution = (id) => {
|