✨ feat(qc): 修改检测项类型为整数并更新相关文档
parent
1d01b221e6
commit
1b0af32a6a
|
|
@ -5,7 +5,7 @@ export interface QcDefectVO {
|
|||
id: number // 编号
|
||||
code: string // 缺陷编码
|
||||
name: string // 缺陷描述
|
||||
type: string // 检测项类型
|
||||
type: number // 检测项类型
|
||||
level: number // 缺陷等级
|
||||
remark: string // 备注
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
<el-form-item label="检测项类型" prop="type">
|
||||
<el-select v-model="formData.type" placeholder="请选择检测项类型" clearable class="!w-1/1">
|
||||
<el-option
|
||||
v-for="dict in getStrDictOptions(DICT_TYPE.MES_DEFECT_TYPE)"
|
||||
v-for="dict in getIntDictOptions(DICT_TYPE.MES_DEFECT_TYPE)"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
|
|
@ -50,7 +50,7 @@
|
|||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { getIntDictOptions, getStrDictOptions, DICT_TYPE } from '@/utils/dict'
|
||||
import { getIntDictOptions, DICT_TYPE } from '@/utils/dict'
|
||||
import { QcDefectApi, QcDefectVO } from '@/api/mes/qc/defect'
|
||||
import { AutoCodeRecordApi } from '@/api/mes/md/autocode/record'
|
||||
import { MesAutoCodeRuleCode } from '@/views/mes/utils/constants'
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
class="!w-240px"
|
||||
>
|
||||
<el-option
|
||||
v-for="dict in getStrDictOptions(DICT_TYPE.MES_DEFECT_TYPE)"
|
||||
v-for="dict in getIntDictOptions(DICT_TYPE.MES_DEFECT_TYPE)"
|
||||
:key="dict.value"
|
||||
:label="dict.label"
|
||||
:value="dict.value"
|
||||
|
|
@ -140,7 +140,7 @@
|
|||
|
||||
<script setup lang="ts">
|
||||
import { dateFormatter } from '@/utils/formatTime'
|
||||
import { DICT_TYPE, getIntDictOptions, getStrDictOptions } from '@/utils/dict'
|
||||
import { DICT_TYPE, getIntDictOptions } from '@/utils/dict'
|
||||
import download from '@/utils/download'
|
||||
import { QcDefectApi, QcDefectVO } from '@/api/mes/qc/defect'
|
||||
import DefectForm from './DefectForm.vue'
|
||||
|
|
|
|||
Loading…
Reference in New Issue