caozhaorui 8 months ago
parent
commit
bdb9f90e13

+ 6 - 1
snowy-admin-web/src/views/yqyc/zero/two/out-nuclear-release/detail.vue

@@ -192,7 +192,7 @@
 						</a-col>
 						<a-col :span="8">
 							<a-form-item label="申报计量单位:" name="declareUnit">
-								<a-input v-model:value="bodyData.declareUnit" :disabled="true" placeholder="请输入申报计量单位" allow-clear />
+								<a-select v-model:value="bodyData.declareUnit" :disabled="true" placeholder="请选择申报计量单位" :options="declareUnitOptions" show-search allow-clear option-filter-prop="label"/>
 							</a-form-item>
 						</a-col>
 						<a-col :span="8">
@@ -235,6 +235,9 @@
 					:row-selection="bodyOptions.rowSelection"
 				>
 					<template #bodyCell="{ column, record, index }">
+						<template v-if="column.dataIndex === 'declareUnit'">
+							{{ $TOOL.dictTypeData('measurement unit', record.declareUnit) }}
+						</template>
 						<template v-if="column.dataIndex === 'action'">
 							<a-button type="link" primary size="small" @click="onBodyReset(), bodyData = cloneDeep(record)">查看</a-button>
 <!--							<template v-if="isView">-->
@@ -388,6 +391,7 @@
 	const hzqdOptions = ref([])
 	const bgdhOptions = ref([])
 	const jzxhOptions = ref([])
+	const declareUnitOptions = ref([])
 	const statusOptions = ref([])
 	const userInfo = tool.data.get('USER_INFO')
 	const showFileUpload = ref(true)
@@ -557,6 +561,7 @@
 		bdlxOptions.value = tool.dictList('bdlx')
 		statusOptions.value = tool.dictList('djzt')
 		dzTypeOptions.value = tool.dictList('gldzlx')
+		declareUnitOptions.value = tool.dictList('measurement unit')
 	}
 	// 关闭抽屉
 	const onClose = () => {