生产工艺参数查修页面整体改动
This commit is contained in:
parent
a6338f18cc
commit
ed06c09837
57
src/api/mes/plcproductiondata.js
Normal file
57
src/api/mes/plcproductiondata.js
Normal file
@ -0,0 +1,57 @@
|
||||
import request from '@/utils/request'
|
||||
|
||||
/**
|
||||
* 产线PLC生产参数数据表分页查询
|
||||
* @param {查询条件} data
|
||||
*/
|
||||
export function listPlcProductionData(query) {
|
||||
return request({
|
||||
url: 'mes/PlcProductionData/list',
|
||||
method: 'get',
|
||||
params: query,
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 新增产线PLC生产参数数据表
|
||||
* @param data
|
||||
*/
|
||||
export function addPlcProductionData(data) {
|
||||
return request({
|
||||
url: 'mes/PlcProductionData',
|
||||
method: 'post',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 修改产线PLC生产参数数据表
|
||||
* @param data
|
||||
*/
|
||||
export function updatePlcProductionData(data) {
|
||||
return request({
|
||||
url: 'mes/PlcProductionData',
|
||||
method: 'PUT',
|
||||
data: data,
|
||||
})
|
||||
}
|
||||
/**
|
||||
* 获取产线PLC生产参数数据表详情
|
||||
* @param {Id}
|
||||
*/
|
||||
export function getPlcProductionData(id) {
|
||||
return request({
|
||||
url: 'mes/PlcProductionData/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
/**
|
||||
* 删除产线PLC生产参数数据表
|
||||
* @param {主键} pid
|
||||
*/
|
||||
export function delPlcProductionData(pid) {
|
||||
return request({
|
||||
url: 'mes/PlcProductionData/delete/' + pid,
|
||||
method: 'POST'
|
||||
})
|
||||
}
|
||||
@ -37,15 +37,12 @@
|
||||
<el-table-column prop="operationName" label="工序名称" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="operationCode" label="工序编码" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="operationSeq" label="工序序号" align="center" />
|
||||
<el-table-column prop="operationType" label="工序类别" align="center">
|
||||
<!-- <template #default="scope">
|
||||
<dict-tag :options="options.operationTypeOptions" :value="scope.row.operationType" />
|
||||
</template> -->
|
||||
<!-- <el-table-column prop="operationType" label="工序类别" align="center">
|
||||
</el-table-column>
|
||||
<el-table-column prop="description" label="描述" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="description" label="描述" align="center" :show-overflow-tooltip="true" /> -->
|
||||
<el-table-column prop="standardTime" label="标准时间(秒)" align="center" />
|
||||
<el-table-column prop="controlStrategy" label="控制策略" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="isSkippable" label="是否跳站" align="center">
|
||||
<!-- <el-table-column prop="controlStrategy" label="控制策略" align="center" :show-overflow-tooltip="true" /> -->
|
||||
<!-- <el-table-column prop="isSkippable" label="是否跳站" align="center">
|
||||
<template #default="scope">
|
||||
<dict-tag :options="options.isSkippableOptions" :value="scope.row.isSkippable" />
|
||||
</template>
|
||||
@ -59,11 +56,11 @@
|
||||
<template #default="scope">
|
||||
<dict-tag :options="options.isParallelOptions" :value="scope.row.isParallel" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="parallelGroupCode" label="并行组编号" align="center" :show-overflow-tooltip="true" />
|
||||
</el-table-column> -->
|
||||
<!-- <el-table-column prop="parallelGroupCode" label="并行组编号" align="center" :show-overflow-tooltip="true" /> -->
|
||||
<el-table-column prop="maxStationCount" label="最大重复过站次数" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="lastOperationSeq" label="上一站工序序号" align="center" :show-overflow-tooltip="true" />
|
||||
<el-table-column prop="defaultNextOperationCode" label="默认工序" align="center" :show-overflow-tooltip="true" />
|
||||
<!-- <el-table-column prop="defaultNextOperationCode" label="默认工序" align="center" :show-overflow-tooltip="true" /> -->
|
||||
<el-table-column prop="status" label="状态" align="center">
|
||||
<template #default="scope">
|
||||
<el-tag v-if="scope.row.status == 1" type="success">启用</el-tag>
|
||||
@ -113,58 +110,27 @@
|
||||
<el-input-number v-model="form.operationSeq" :min="0" @change="handleChangeNumber" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :lg="12">
|
||||
<!-- <el-col :lg="12">
|
||||
<el-form-item label="工序类别" prop="operationType">
|
||||
<!-- <el-select v-model="form.operationType" placeholder="请选择工序类别">
|
||||
<el-option v-for="item in options.operationTypeOptions" :key="item.dictValue" :label="item.dictLabel"
|
||||
:value="item.dictValue"></el-option>
|
||||
</el-select> -->
|
||||
<el-input v-model="form.operationType" placeholder="请选择工序类别" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-col> -->
|
||||
<el-col :lg="12">
|
||||
<el-form-item label="标准时间(秒)" prop="">
|
||||
<el-input-number v-model="form.standardTime" :min="0" @change="handleChange" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :lg="12">
|
||||
<!-- <el-col :lg="12">
|
||||
<el-form-item label="控制策略" prop="controlStrategy">
|
||||
<!-- <el-select v-model="form.controlStrategy" placeholder="请选择控制策略">
|
||||
<el-option v-for="item in options.controlStrategyOptions" :key="item.dictValue" :label="item.dictLabel"
|
||||
:value="item.dictValue"></el-option>
|
||||
</el-select> -->
|
||||
<el-input v-model="form.controlStrategy" placeholder="请选择控制策略" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :lg="12">
|
||||
<el-form-item label="是否跳站" prop="">
|
||||
<el-select v-model="form.isSkippable" placeholder="请选择是否跳站">
|
||||
<el-option v-for="item in options.isSkippableOptions" :key="item.dictValue" :label="item.dictLabel"
|
||||
:value="item.dictValue"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :lg="12">
|
||||
<el-form-item label="是否允许返工" prop="">
|
||||
<el-select v-model="form.isReworkable" placeholder="请选择是否允许返工">
|
||||
<el-option v-for="item in options.isReworkableOptions" :key="item.dictValue" :label="item.dictLabel"
|
||||
:value="item.dictValue"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :lg="12">
|
||||
<el-form-item label="是否准许并行" prop="">
|
||||
<el-select v-model="form.isParallel" placeholder="请选择是否准许并行">
|
||||
<el-option v-for="item in options.isParallelOptions" :key="item.dictValue" :label="item.dictLabel"
|
||||
:value="item.dictValue"></el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :lg="12">
|
||||
</el-col> -->
|
||||
|
||||
<!-- <el-col :lg="12">
|
||||
<el-form-item label="并行组编号" prop="">
|
||||
<el-input v-model="form.parallelGroupCode" placeholder="请输入并行组编号" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-col> -->
|
||||
<el-col :lg="12">
|
||||
<el-form-item label="最大重复过站次数" prop="maxStationCount">
|
||||
<el-input v-model="form.maxStationCount" placeholder="请输入最大重复过站次数" />
|
||||
@ -175,11 +141,11 @@
|
||||
<el-input v-model="form.lastOperationSeq" placeholder="请输入上一站工序序号" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :lg="12">
|
||||
<!-- <el-col :lg="12">
|
||||
<el-form-item label="默认工序" prop="">
|
||||
<el-input v-model="form.defaultNextOperationCode" placeholder="请输入默认工序" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-col> -->
|
||||
<el-col :lg="12">
|
||||
<el-form-item label="状态" prop="">
|
||||
<el-select v-model="form.status" placeholder="请选择状态">
|
||||
@ -188,11 +154,11 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :lg="24">
|
||||
<!-- <el-col :lg="24">
|
||||
<el-form-item label="描述" prop="description">
|
||||
<el-input type="textarea" v-model="form.description" placeholder="请输入描述" />
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-col> -->
|
||||
</el-row>
|
||||
</el-form>
|
||||
<template #footer v-if="opertype != 3">
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user