refactor(machineparam): 优化页面组件结构和字段样式

This commit is contained in:
zxy 2026-05-09 15:33:16 +08:00
parent 3f736ac4b4
commit d00b89ac47
4 changed files with 10 additions and 10 deletions

View File

@ -9,3 +9,4 @@ pnpm-debug
auto-*.d.ts
.idea
.history
/.trae/

View File

@ -4,17 +4,17 @@
<!-- 基本信息区域 -->
<el-row :gutter="24">
<el-col :span="8">
<el-form-item label="工序">
<el-form-item label="工序" label-width="110px">
<el-input :value="formData.procName" disabled />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="机台">
<el-form-item label="机台" label-width="110px">
<el-input :value="formData.machineName" disabled />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="启用状态">
<el-form-item label="启用状态" label-width="110px">
<el-input :value="enabledStatusLabel" disabled />
</el-form-item>
</el-col>
@ -22,17 +22,17 @@
<el-row :gutter="24">
<el-col :span="8">
<el-form-item label="产品名称">
<el-form-item label="产品名称" label-width="110px">
<el-input :value="formData.matName" disabled />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="规格型号">
<el-form-item label="规格型号" label-width="110px">
<el-input :value="formData.spec" disabled />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="采集周期(分)">
<el-form-item label="采集周期(分)" label-width="110px">
<el-input :value="formData.collectCycle" disabled />
</el-form-item>
</el-col>
@ -40,7 +40,7 @@
<el-row :gutter="24">
<el-col :span="16">
<el-form-item label="备注">
<el-form-item label="备注" label-width="110px">
<el-input :value="formData.remark" disabled />
</el-form-item>
</el-col>

View File

@ -143,7 +143,6 @@
<script setup lang="ts">
import { getIntDictOptions, DICT_TYPE } from '@/utils/dict'
import { dateFormatter2 } from '@/utils/formatTime'
import download from '@/utils/download'
import * as MachineParamApi from '@/api/biz/machineparam'
import * as MaterialApi from '@/api/biz/material'
import MachineParamForm from './MachineParamForm.vue'
@ -166,7 +165,6 @@ const queryParams = reactive({
spec: undefined,
})
const queryFormRef = ref() //
const exportLoading = ref(false) //
//
const specOptions = ref<{ label: string; value: string }[]>([])

View File

@ -9,12 +9,13 @@
>
<el-row :gutter="20">
<el-col :span="12">
<el-form-item label="工序" prop="procId" :disabled="formType === 'update'">
<el-form-item label="工序" prop="procId">
<el-select
v-model="formData.procId"
placeholder="请选择工序"
filterable
@change="handleProcChange"
:disabled="formType === 'update'"
>
<el-option
v-for="item in procOptions"