style:班组管理-工序字段删除

main
黄伟杰 3 days ago
parent 8c976d81ff
commit 8f8f3b26dc

@ -5,7 +5,7 @@ export interface WorkTeamVO {
id: number // ID
teamName: string // 班组名称
teamLeaderId: number // 组长ID
teamType: string // 工序类型
teamType?: string // 工序类型
startTime: Date
endTime: Date
remark: string // 备注

@ -10,25 +10,6 @@
<el-form-item :label="t('FactoryModeling.WorkTeam.dialogTeamNameLabel')" prop="teamName">
<el-input v-model="formData.teamName" :placeholder="t('FactoryModeling.WorkTeam.dialogTeamNamePlaceholder')" />
</el-form-item>
<el-form-item prop="teamType">
<template #label>
<span>
{{ t('FactoryModeling.WorkTeam.dialogProcessLabel') }}
<el-tooltip :content="t('FactoryModeling.WorkTeam.dialogProcessTooltip')" placement="top">
<Icon icon="ep:question-filled" />
</el-tooltip>
</span>
</template>
<el-radio-group v-model="formData.teamType">
<el-radio
v-for="dict in getStrDictOptions(DICT_TYPE.MES_ORG_TYPE)"
:key="dict.value"
:label="dict.value"
>
{{ dict.label }}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item prop="groupType">
<template #label>
<span>
@ -97,7 +78,6 @@ const formData = ref({
id: undefined,
teamName: undefined,
teamLeaderId: undefined,
teamType: undefined,
groupType: undefined,
startTime: undefined,
endTime: undefined,
@ -107,7 +87,6 @@ const formData = ref({
})
const formRules = reactive({
teamType: [{ required: true, message: t('FactoryModeling.WorkTeam.validatorProcessRequired'), trigger: 'blur' }],
groupType: [{ required: true, message: t('FactoryModeling.WorkTeam.validatorGroupTypeRequired'), trigger: 'blur' }],
isEnable: [{ required: true, message: t('FactoryModeling.WorkTeam.validatorEnableRequired'), trigger: 'blur' }],
teamName: [{ required: true, message: t('FactoryModeling.WorkTeam.validatorTeamNameRequired'), trigger: 'blur' }]
@ -121,7 +100,6 @@ const open = async (type: string, id?: number) => {
formType.value = type
resetForm()
formData.value.groupType = '1'
formData.value.teamType = 'chengxing'
formData.value.isEnable = true
formData.value.dateRange=[new Date(), new Date()]
//
@ -169,7 +147,6 @@ const resetForm = () => {
id: undefined,
teamName: undefined,
teamLeaderId: undefined,
teamType: undefined,
remark: undefined,
isEnable: undefined,
}

@ -17,21 +17,6 @@
class="!w-240px"
/>
</el-form-item>
<el-form-item :label="t('FactoryModeling.WorkTeam.searchProcessLabel')" prop="teamType">
<el-select
v-model="queryParams.teamType"
:placeholder="t('FactoryModeling.WorkTeam.searchProcessPlaceholder')"
clearable
class="!w-240px"
>
<el-option
v-for="dict in getStrDictOptions(DICT_TYPE.MES_ORG_TYPE)"
:key="dict.value"
:label="dict.label"
:value="dict.value"
/>
</el-select>
</el-form-item>
<el-form-item :label="t('FactoryModeling.WorkTeam.searchRemarkLabel')" prop="remark">
<el-input
v-model="queryParams.remark"
@ -95,11 +80,6 @@
<el-text>{{getHour(scope.row.startTime)+'-'+getHour(scope.row.endTime)}}</el-text>
</template>
</el-table-column>
<el-table-column :label="t('FactoryModeling.WorkTeam.tableProcessColumn')" align="center" prop="teamType" sortable>
<template #default="scope">
<dict-tag :type="DICT_TYPE.MES_ORG_TYPE" :value="scope.row.teamType" />
</template>
</el-table-column>
<el-table-column :label="t('FactoryModeling.WorkTeam.tableRemarkColumn')" align="center" prop="remark" />
<el-table-column :label="t('FactoryModeling.WorkTeam.tableEnableColumn')" align="center" prop="isEnable">
<template #default="scope">
@ -157,7 +137,7 @@
</template>
<script setup lang="ts">
import { getStrDictOptions, DICT_TYPE } from '@/utils/dict'
import { DICT_TYPE } from '@/utils/dict'
import { dateFormatter } from '@/utils/formatTime'
import download from '@/utils/download'
import { WorkTeamApi, WorkTeamVO } from '@/api/mes/workteam'
@ -178,7 +158,6 @@ const queryParams = reactive({
pageSize: 10,
teamName: undefined,
teamLeaderId: undefined,
teamType: undefined,
groupType: undefined,
remark: undefined,
isEnable: undefined,

Loading…
Cancel
Save