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