fix工艺信息管理新增下拉管理
This commit is contained in:
parent
5ebff056c8
commit
1352e857da
@ -56,3 +56,11 @@ export function delProcessInfo(data) {
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//产线名称下拉
|
||||
export function getLineName() {
|
||||
return request({
|
||||
url: 'mes/ProductionLine/getAllLine',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
@ -43,6 +43,8 @@
|
||||
</el-table-column>
|
||||
<el-table-column prop="processName" label="工艺名称" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="processCode" label="工艺编码" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="lineName" label="产线名称" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="lineCode" label="产线号" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="createTime" label="创建时间" align="center" />
|
||||
<el-table-column prop="updateTime" label="更新时间" align="center" />
|
||||
<!-- <el-table-column prop="delflag" label="delflag" align="center" :show-overflow-tooltip="true" /> -->
|
||||
@ -65,19 +67,32 @@
|
||||
|
||||
<div>
|
||||
</div>
|
||||
<el-dialog :title="title" :lock-scroll="false" v-model="open" width="500">
|
||||
<el-dialog :title="title" :lock-scroll="false" v-model="open" width="800">
|
||||
<el-form ref="formRef" :model="form" :rules="rules" label-width="80px">
|
||||
<el-row :gutter="20">
|
||||
<el-col :lg="24">
|
||||
<el-col :lg="12">
|
||||
<el-form-item label="工艺名称" prop="processName">
|
||||
<el-input v-model="form.processName" placeholder="请输入工艺名称" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :lg="24">
|
||||
<el-col :lg="12">
|
||||
<el-form-item label="工艺编码" prop="processCode">
|
||||
<el-input v-model="form.processCode" placeholder="请输入工艺编码" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :lg="12">
|
||||
<el-form-item label="产线名称" prop="lineName">
|
||||
<el-select v-model="form.lineName" placeholder="请选择">
|
||||
<el-option v-for="item in productionLine" :key="item.value" :label="item.label"
|
||||
:value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :lg="12">
|
||||
<el-form-item label="产线号" prop="lineCode">
|
||||
<el-input v-model="form.lineCode" placeholder="请输入产线号" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</el-form>
|
||||
<template #footer v-if="opertype != 3">
|
||||
@ -126,7 +141,7 @@
|
||||
|
||||
<script setup name="processInformationManagement">
|
||||
import { ElMessageBox, ElMessage } from 'element-plus'
|
||||
import { getProcessInfoList, getProcessInfoById, addProcessInfo, updateProcessInfo, delProcessInfo } from "@/api/processRouteManagement/processInformationManagement/index"
|
||||
import { getProcessInfoList, getProcessInfoById, addProcessInfo, updateProcessInfo, delProcessInfo, getLineName } from "@/api/processRouteManagement/processInformationManagement/index"
|
||||
import useUserStore from '@/store/modules/user'
|
||||
import { getToken } from '@/utils/auth'
|
||||
const dialogTableVisible = ref(false)
|
||||
@ -155,6 +170,7 @@ const queryParamsDetail = reactive({
|
||||
pageSize: 20,
|
||||
id: null
|
||||
})
|
||||
const productionLine = ref([])
|
||||
const gridData = ref([])
|
||||
//导入参数
|
||||
const upload = reactive({
|
||||
@ -268,7 +284,7 @@ function handleImport() {
|
||||
//导入下载模版
|
||||
/** 下载模板操作 */
|
||||
function importTemplate() {
|
||||
proxy.download('/business/ProcessmodelProject/exportTemplate', '导入模板')
|
||||
proxy.download('/mes/ProcessInfo/importTemplate', '导入模板')
|
||||
}
|
||||
//导出
|
||||
function handleDownload() {
|
||||
@ -326,6 +342,8 @@ const state = reactive({
|
||||
rules: {
|
||||
processCode: [{ required: true, message: '工艺编码不能为空', trigger: 'blur' }],
|
||||
processName: [{ required: true, message: '工艺名称不能为空', trigger: 'blur' }],
|
||||
lineName: [{ required: true, message: '产线名称不能为空', trigger: 'blur' }],
|
||||
lineCode: [{ required: true, message: '产线号不能为空', trigger: 'blur' }],
|
||||
operationSeq: [
|
||||
{ required: true, message: '工艺顺序号不能为空', trigger: 'blur' },
|
||||
{ type: 'number', message: '工艺顺序号必须为数字', trigger: 'blur' }
|
||||
@ -362,6 +380,11 @@ function reset() {
|
||||
|
||||
// 添加工艺
|
||||
function handleAdd() {
|
||||
getLineName().then(res => {
|
||||
if (res.code == 200) {
|
||||
productionLine.value = res.data
|
||||
}
|
||||
})
|
||||
reset()
|
||||
open.value = true
|
||||
title.value = '添加工艺'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user