fix(5#6#易损件维护):
1.新增易损件维护前台页面
This commit is contained in:
parent
7f0097747d
commit
0d87edda89
55
src/api/mes/prd/wear-part.js
Normal file
55
src/api/mes/prd/wear-part.js
Normal file
@ -0,0 +1,55 @@
|
||||
// 用户弹窗
|
||||
import request from "@/router/axios";
|
||||
import {iep} from "@/api/prefix";
|
||||
|
||||
// 查询
|
||||
export function fetchList(query) {
|
||||
return request({
|
||||
url: iep('/z-wear-part-detail/page'),
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 编码-弹窗
|
||||
export function getZWearPartNoList(query) {
|
||||
return request({
|
||||
url: iep('/z-wear-part-detail/wearPartNo/page'),
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 数据字典-弹窗(即可用产线,状态,存放位置多选弹窗数据来源)
|
||||
export function getDictItemValueList(query) {
|
||||
return request({
|
||||
url: iep('/z-wear-part-detail/dictType/page'),
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
// 新增
|
||||
export function addObj(obj) {
|
||||
return request({
|
||||
url: iep('/z-wear-part-detail'),
|
||||
method: 'post',
|
||||
data: obj
|
||||
})
|
||||
}
|
||||
|
||||
// 修改
|
||||
export function putObj(obj) {
|
||||
return request({
|
||||
url: iep('/z-wear-part-detail'),
|
||||
method: 'put',
|
||||
data: obj
|
||||
})
|
||||
}
|
||||
|
||||
// 删除
|
||||
export function delObj(id) {
|
||||
return request({
|
||||
url: iep('/z-wear-part-detail/' + id),
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
1123
src/views/mes/prd/wear-part/index.vue
Normal file
1123
src/views/mes/prd/wear-part/index.vue
Normal file
File diff suppressed because it is too large
Load Diff
185
src/views/mes/prd/wear-part/init.js
Normal file
185
src/views/mes/prd/wear-part/init.js
Normal file
@ -0,0 +1,185 @@
|
||||
export const initData = {
|
||||
type: null,
|
||||
status: null,
|
||||
wearPartNo: null,
|
||||
description: null,
|
||||
specification: null,
|
||||
productLine: null,
|
||||
useTimes: null,
|
||||
startTime: null,
|
||||
onlineDuration: null,
|
||||
storageLocation: null,
|
||||
supplier: null,
|
||||
remark: null,
|
||||
handle: null,
|
||||
zWearPartBo: null,
|
||||
customFields: [],
|
||||
}
|
||||
|
||||
export const tableOption = {
|
||||
border: true,
|
||||
index: true,
|
||||
indexLabel: 'common.seq',
|
||||
stripe: true,
|
||||
menuAlign: 'center',
|
||||
align: 'center',
|
||||
searchMenuSpan: 6,
|
||||
labelWidth: 150,
|
||||
menuWidth: 180,
|
||||
dialogFullscreen: false,
|
||||
column: [
|
||||
{
|
||||
type: 'select',
|
||||
label: 'mes.type', // 类型
|
||||
search: true,
|
||||
prop: 'type',
|
||||
width: 100,
|
||||
dicUrl: '/admin/dict/item/page?current=1&size=20&dictType=WEAR_PART_TYPE',
|
||||
dicMethod: 'get',
|
||||
dicFormatter: (res) => {
|
||||
return res.data.records
|
||||
},
|
||||
props: {
|
||||
label: 'label',
|
||||
value: 'value',
|
||||
multiple: true // 设置为多选
|
||||
},
|
||||
multiple: true // 设置为多选
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label: 'mes.programNo', // 编号
|
||||
search: true,
|
||||
prop: 'wearPartNo',
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label: 'mes.description', // 描述
|
||||
display: false,
|
||||
width: 140,
|
||||
prop: 'description',
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label: 'mes.prd.specification', // 规格
|
||||
display: false,
|
||||
width: 140,
|
||||
prop: 'specification',
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label: 'mes.prd.availableProductionLines', // 可用产线
|
||||
search: true,
|
||||
prop: 'productLine',
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label: 'mes.prd.productLineDesc', // 可用产线描述
|
||||
prop: 'productLineDesc',
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label: 'mes.prd.useTimes', // 使用次数
|
||||
prop: 'useTimes',
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label: 'mes.prd.startTime', // 开始使用时间
|
||||
prop: 'startTime',
|
||||
width: 160,
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label: 'mes.prd.onlineDuration', // 线上使用时长
|
||||
prop: 'onlineDuration',
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label: 'mes.status', // 状态
|
||||
search: true,
|
||||
prop: 'status',
|
||||
dicUrl: '/admin/dict/item/page?current=1&size=20&dictType=WEAR_STATUS',
|
||||
dicMethod: 'get',
|
||||
dicFormatter: (res) => {
|
||||
return res.data.records
|
||||
},
|
||||
props: {
|
||||
label: 'label',
|
||||
value: 'value',
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label: 'mes.prd.storageLocation', // 存放地点
|
||||
search: true,
|
||||
prop: 'storageLocation',
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label: 'mes.prd.storageLocationDesc', // 存放地点描述
|
||||
prop: 'storageLocationDesc',
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label: 'mes.abn.supplier', // 供应商
|
||||
search: true,
|
||||
prop: 'supplier',
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label: 'mes.remark', // 备注
|
||||
prop: 'remark',
|
||||
width: 140,
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label: 'mes.prd.zWearPartBo',// 易损件主表主键
|
||||
prop: 'zWearPartBo',
|
||||
span: 12,
|
||||
display: false,
|
||||
hide: true,
|
||||
showColumn: false,
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label: 'common.primaryKey',// 易损件详情表主键
|
||||
prop: 'handle',
|
||||
span: 12,
|
||||
display: false,
|
||||
hide: true,
|
||||
showColumn: false,
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label: 'mes.abn.tableOption.dateCreate',
|
||||
prop: 'dateCreate',
|
||||
span: 12,
|
||||
display: false,
|
||||
hide: true,
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label: 'mes.abn.tableOption.dateUpdate',
|
||||
prop: 'dateUpdate',
|
||||
span: 12,
|
||||
display: false,
|
||||
hide: true,
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label: 'mes.abn.tableOption.creator',
|
||||
prop: 'creator',
|
||||
span: 12,
|
||||
display: false,
|
||||
hide: true,
|
||||
},
|
||||
{
|
||||
type: 'input',
|
||||
label: 'mes.abn.tableOption.updater',
|
||||
prop: 'updater',
|
||||
span: 12,
|
||||
display: false,
|
||||
hide: true,
|
||||
},
|
||||
],
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user