|
|
@@ -131,7 +131,9 @@
|
|
|
<el-table-column label="任务单号" align="center" prop="orderNo" min-width="150px" />
|
|
|
<el-table-column label="使用单位" align="center" prop="unitName" min-width="150px" />
|
|
|
<el-table-column label="检验性质" align="center" prop="checkType" min-width="120px">
|
|
|
- 法定检验
|
|
|
+ <template #default="scope">
|
|
|
+ {{ typeOptions.find(type => type.value == inspectionNatureTypeList.find(item => item.nature == scope.row.checkType).type)?.label || '-' }}
|
|
|
+ </template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="检验项目" align="center" prop="checkType" min-width="120px">
|
|
|
<template #default="scope">
|
|
|
@@ -328,7 +330,7 @@ import { getUserPage } from '@/api/system/user'
|
|
|
import SmartTable from "@/components/SmartTable/SmartTable";
|
|
|
import { getUserList } from '@/api/common/user'
|
|
|
import {useUserStore} from "@/store/modules/user";
|
|
|
-
|
|
|
+import {InspectionNatureTypeApi} from "@/api/pressure2/inspectionnaturetype";
|
|
|
// 定义用户搜索相关的响应式变量
|
|
|
const userOptions = ref([])
|
|
|
const userSearchLoading = ref(false)
|
|
|
@@ -341,7 +343,17 @@ const setPipeConfirmDialogVisible = ref(false)
|
|
|
const pipeOrderItemList = ref([])
|
|
|
const selectedOrderItemId = ref('')
|
|
|
const selectedOrderId = ref('')
|
|
|
-
|
|
|
+const inspectionNatureTypeList = ref([])
|
|
|
+const typeOptions = [
|
|
|
+ {
|
|
|
+ value: 1,
|
|
|
+ label: '法定'
|
|
|
+ },
|
|
|
+ {
|
|
|
+ value: 2,
|
|
|
+ label: '委托'
|
|
|
+ }
|
|
|
+]
|
|
|
// 通过输入的值查询对应受理单提交人名字
|
|
|
// 远程搜索用户方法
|
|
|
const remoteSearchUsers = (query) => {
|
|
|
@@ -427,11 +439,17 @@ const queryParams = reactive({
|
|
|
submitTime: []
|
|
|
})
|
|
|
const queryFormRef = ref()
|
|
|
-
|
|
|
/** 查询列表 */
|
|
|
const getList = async () => {
|
|
|
loading.value = true
|
|
|
try {
|
|
|
+
|
|
|
+ await InspectionNatureTypeApi.getInspectionNatureTypePage({
|
|
|
+ equip:"300"
|
|
|
+ }).then(res=>{
|
|
|
+ inspectionNatureTypeList.value = res.list
|
|
|
+ })
|
|
|
+
|
|
|
const params = { ...queryParams }
|
|
|
if (params.taskStatus === 'all') {
|
|
|
params.taskStatus = undefined
|