|
|
@@ -34,8 +34,8 @@
|
|
|
<script lang="tsx" setup>
|
|
|
import SmartTable from '@/components/SmartTable/SmartTable'
|
|
|
import {
|
|
|
- BoilerAppointmentConfirmOrderRefuseItemApi,
|
|
|
- BoilerAppointmentConfirmOrderRefuseItemVO
|
|
|
+ AppointmentConfirmOrderRefuseItemApi,
|
|
|
+ AppointmentConfirmOrderRefuseItemVO
|
|
|
} from '@/api/pressure2/appointmentconfirmorderrefuseitem'
|
|
|
import { has, get } from 'lodash'
|
|
|
import { useRouter } from 'vue-router'
|
|
|
@@ -56,7 +56,7 @@ const pageNo = ref(1)
|
|
|
const pageSize = ref(10)
|
|
|
const total = ref(0)
|
|
|
const searchFormData = ref({})
|
|
|
-const selectRow = ref<BoilerAppointmentConfirmOrderRefuseItemVO[]>([]) // table选中的checked
|
|
|
+const selectRow = ref<AppointmentConfirmOrderRefuseItemVO[]>([]) // table选中的checked
|
|
|
const smartTableRef = ref<SmartInstanceExpose>()
|
|
|
const equipCategoryList = ref([])
|
|
|
|
|
|
@@ -423,7 +423,7 @@ const getList = async () => {
|
|
|
}
|
|
|
try {
|
|
|
const data =
|
|
|
- await BoilerAppointmentConfirmOrderRefuseItemApi.getAppointmentConfirmOrderRefuseItemPage(params)
|
|
|
+ await AppointmentConfirmOrderRefuseItemApi.getAppointmentConfirmOrderRefuseItemPage(params)
|
|
|
tableData.value = data.list
|
|
|
total.value = data.total
|
|
|
} catch (error) {
|
|
|
@@ -433,13 +433,13 @@ const getList = async () => {
|
|
|
}
|
|
|
|
|
|
/** 退回操作 */
|
|
|
-const handleReject = async (row: BoilerAppointmentConfirmOrderRefuseItemVO) => {
|
|
|
+const handleReject = async (row: AppointmentConfirmOrderRefuseItemVO) => {
|
|
|
ElMessageBox.confirm('确认退回?', '提示', {
|
|
|
confirmButtonText: '确定',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
- BoilerAppointmentConfirmOrderRefuseItemApi.rollback({
|
|
|
+ AppointmentConfirmOrderRefuseItemApi.rollback({
|
|
|
id: row.id,
|
|
|
scene: row.scene,
|
|
|
businessType: 1
|
|
|
@@ -454,7 +454,7 @@ const handleReject = async (row: BoilerAppointmentConfirmOrderRefuseItemVO) => {
|
|
|
|
|
|
/**批量退回 */
|
|
|
const handleBatchReturn = async () => {
|
|
|
- const selectedRows: BoilerAppointmentConfirmOrderRefuseItemVO[] =
|
|
|
+ const selectedRows: AppointmentConfirmOrderRefuseItemVO[] =
|
|
|
smartTableRef.value?.getTableRef().getSelectionRows() || []
|
|
|
if (!selectedRows.length) return ElMessage.warning('请选择数据')
|
|
|
const yearCheckIdVOS = selectedRows.map((row) => {
|
|
|
@@ -470,7 +470,7 @@ const handleBatchReturn = async () => {
|
|
|
type: 'warning'
|
|
|
}).then(() => {
|
|
|
loading.value = true
|
|
|
- BoilerAppointmentConfirmOrderRefuseItemApi.batchRollback({ yearCheckIdVOS })
|
|
|
+ AppointmentConfirmOrderRefuseItemApi.batchRollback({ yearCheckIdVOS })
|
|
|
.then((res) => {
|
|
|
if (res) {
|
|
|
ElMessage.success('批量退回成功')
|
|
|
@@ -488,7 +488,7 @@ const handleReturnRecord = async () => {
|
|
|
}
|
|
|
/**备注 */
|
|
|
const remarkFormRef = ref<InstanceType<typeof RefuseAnnualInspectionRemarkForm>>()
|
|
|
-const handleRemark = (row: BoilerAppointmentConfirmOrderRefuseItemVO) => {
|
|
|
+const handleRemark = (row: AppointmentConfirmOrderRefuseItemVO) => {
|
|
|
remarkFormRef.value?.open('备注', row.id)
|
|
|
}
|
|
|
|
|
|
@@ -524,7 +524,7 @@ const handleExport = async () => {
|
|
|
}
|
|
|
// 获取excel文件流
|
|
|
const result =
|
|
|
- await BoilerAppointmentConfirmOrderRefuseItemApi.exportExcelAppointmentConfirmOrder(params)
|
|
|
+ await AppointmentConfirmOrderRefuseItemApi.exportExcelAppointmentConfirmOrder(params)
|
|
|
|
|
|
const downloadUrl = window.URL.createObjectURL(result)
|
|
|
const a = document.createElement('a')
|
|
|
@@ -572,7 +572,7 @@ const handleUpdateReportCityStatus = async (row?: any, value?: any) => {
|
|
|
}
|
|
|
//获取容器归类
|
|
|
const getEquipCategoryDictData = async () => {
|
|
|
- const res = await BoilerAppointmentConfirmOrderRefuseItemApi.getEquipCategoryDictData({
|
|
|
+ const res = await AppointmentConfirmOrderRefuseItemApi.getEquipCategoryDictData({
|
|
|
pageNo: 1,
|
|
|
pageSize: 9999,
|
|
|
label: '',
|
|
|
@@ -589,7 +589,7 @@ const handleEditRemark = (row) => {
|
|
|
}
|
|
|
const handleSaveRemark = async (row?: any) => {
|
|
|
const result =
|
|
|
- await BoilerAppointmentConfirmOrderRefuseItemApi.updateAppointmentConfirmOrderStatusOrRemark({
|
|
|
+ await AppointmentConfirmOrderRefuseItemApi.updateAppointmentConfirmOrderStatusOrRemark({
|
|
|
ids: [row.id],
|
|
|
remark: row.remark
|
|
|
})
|