MES基础档案
This commit is contained in:
parent
789a96b6ac
commit
c99dd3c960
|
|
@ -2,4 +2,4 @@
|
|||
VUE_APP_API_BASE_URL=http://zxx4.f3322.net:46000
|
||||
VUE_APP_USER_MODEL2=AdminUser
|
||||
VUE_APP_USER_MODEL=BaseAdmin
|
||||
VUE_APP_BEID=1
|
||||
VUE_APP_BEID=3
|
||||
|
|
@ -100,7 +100,7 @@ export default {
|
|||
// =============================== 表单数据 自动生成 End ===============================
|
||||
},
|
||||
// 标题宽度
|
||||
titleWidth: 100,
|
||||
titleWidth: 150,
|
||||
// 标题对齐方式
|
||||
titleAlign: 'right',
|
||||
|
||||
|
|
@ -119,12 +119,12 @@ export default {
|
|||
// =============================== 表单项 自动生成 Start ===============================
|
||||
|
||||
{ field: 'code', title: '编码', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'warehouse_id', title: '仓库id', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'warehouse_position_id', title: '仓位id', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'product_id', title: '商品ID', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'unit_id', title: '单位ID', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'level', title: '等级', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'quantity', title: '数量', span: 12, itemRender: { name: '$input' } },
|
||||
//{ field: 'warehouse_id', title: '仓库id', span: 12, itemRender: { name: '$input' } },
|
||||
//{ field: 'warehouse_position_id', title: '仓位id', span: 12, itemRender: { name: '$input' } },
|
||||
//{ field: 'product_id', title: '商品ID', span: 12, itemRender: { name: '$input' } },
|
||||
//{ field: 'unit_id', title: '单位ID', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'level', title: '等级', span: 12, itemRender: { name: '$input',props:{type:"number"} } },
|
||||
{ field: 'quantity', title: '数量', span: 12, itemRender: { name: '$input' ,props:{type:"number"} } },
|
||||
|
||||
// =============================== 表单项 自动生成 End ===============================
|
||||
]
|
||||
|
|
|
|||
|
|
@ -102,14 +102,14 @@ export default {
|
|||
// =============================== 表格列 自动生成 Start ===============================
|
||||
|
||||
{ field: 'code', sortable: true, title: '编码', width: 250 }, // 编码
|
||||
{ field: 'warehouse_id', sortable: true, title: '仓库id', width: 250 }, // 仓库id
|
||||
{ field: 'warehouse_position_id', sortable: true, title: '仓位id', width: 250 }, // 仓位id
|
||||
{ field: 'product_id', sortable: true, title: '商品ID', width: 250 }, // 商品ID
|
||||
{ field: 'unit_id', sortable: true, title: '单位ID', width: 250 }, // 单位ID
|
||||
//{ field: 'warehouse_id', sortable: true, title: '仓库id', width: 250 }, // 仓库id
|
||||
//{ field: 'warehouse_position_id', sortable: true, title: '仓位id', width: 250 }, // 仓位id
|
||||
//{ field: 'product_id', sortable: true, title: '商品ID', width: 250 }, // 商品ID
|
||||
//{ field: 'unit_id', sortable: true, title: '单位ID', width: 250 }, // 单位ID
|
||||
{ field: 'level', sortable: true, title: '等级', width: 250 }, // 等级
|
||||
{ field: 'quantity', sortable: true, title: '数量', width: 250 }, // 数量
|
||||
{ field: 'create_uid', sortable: true, title: '创建人', width: 80 }, // 创建人
|
||||
{ field: 'update_uid', sortable: true, title: '更新人', width: 80 }, // 更新人
|
||||
//{ field: 'create_uid', sortable: true, title: '创建人', width: 80 }, // 创建人
|
||||
//{ field: 'update_uid', sortable: true, title: '更新人', width: 80 }, // 更新人
|
||||
{ field: 'create_time', formatter: 'formatDate', width: 160, sortable: true, title: '创建时间', showHeaderOverflow: true }, // 创建时间
|
||||
{ field: 'update_time', formatter: 'formatDate', width: 160, sortable: true, title: '更新时间', showHeaderOverflow: true }, // 更新时间
|
||||
|
||||
|
|
|
|||
|
|
@ -127,7 +127,7 @@ export default {
|
|||
// =============================== 表单数据 自动生成 End ===============================
|
||||
},
|
||||
// 标题宽度
|
||||
titleWidth: 100,
|
||||
titleWidth: 150,
|
||||
// 标题对齐方式
|
||||
titleAlign: 'right',
|
||||
|
||||
|
|
@ -144,14 +144,15 @@ export default {
|
|||
},
|
||||
// 表单项
|
||||
items: [
|
||||
{ field: 'title', title: '工序名称', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'name', title: '工序名称', span: 12, itemRender: { name: '$input' } },
|
||||
// { field: 'title', title: '工序名称', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'code', title: '工序编码', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'name', title: '工序英文名称', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'desc', title: '工序描述', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'remark', title: '工序备注', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'work_type', title: '计工方式:默认计件,计时', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'car_limit', title: '领车限制数', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'is_quality_inspection', title: '是否质检工序', span: 12, itemRender: { name: '$input' } },
|
||||
|
||||
{ field: 'work_type', title: '计工方式', span: 12, itemRender: { name: '$select',props:{options:settings.options_work_type} } },
|
||||
{ field: 'car_limit', title: '领车限制数', span: 12, itemRender: { name: '$input',props:{type:'number'} } },
|
||||
{ field: 'is_quality_inspection', title: '是否质检工序', span: 12, itemRender: { name: '$select',props:{options:settings.options_yesorno} } },
|
||||
{ field: 'status', title: '状态', span: 12, itemRender: { name: '$select', props: { options: settings.options_status_process } } },
|
||||
]
|
||||
},
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
<script>
|
||||
import BASE_URL from '@/services/mes/api.js';
|
||||
|
||||
const settings = require('../../basic/settings.js');
|
||||
|
||||
export default {
|
||||
i18n: require("./i18n"),
|
||||
|
|
@ -124,17 +125,19 @@ export default {
|
|||
|
||||
// =============================== 表格列 自动生成 Start ===============================
|
||||
|
||||
{ field: 'process_segment_id', sortable: true, title: '工序段id', width: 250 }, // 工序段id
|
||||
{ field: 'title', sortable: true, title: '工序名称', width: 250 }, // 工序名称
|
||||
//{ field: 'process_segment_id', sortable: true, title: '工序段id', width: 250 }, // 工序段id
|
||||
//{ field: 'title', sortable: true, title: '工序名称', width: 250 }, // 工序名称
|
||||
{ field: 'code', sortable: true, title: '工序编码', width: 250 }, // 工序编码
|
||||
{ field: 'name', sortable: true, title: '工序英文名称', width: 250 }, // 工序英文名称
|
||||
{ field: 'name', sortable: true, title: '工序名称', width: 250 }, // 工序英文名称
|
||||
{ field: 'desc', sortable: true, title: '工序描述', width: 250 }, // 工序描述
|
||||
{ field: 'remark', sortable: true, title: '工序备注', width: 250 }, // 工序备注
|
||||
{ field: 'work_type', sortable: true, title: '计工方式:默认计件,计时', width: 250 }, // 计工方式:默认计件,计时
|
||||
|
||||
{ field: 'work_type',params:settings.options_work_type, formatter: 'formatEnum', sortable: true, title: '计工方式', width: 250 },
|
||||
|
||||
{ field: 'car_limit', sortable: true, title: '领车限制数', width: 250 }, // 领车限制数
|
||||
{ field: 'is_quality_inspection', sortable: true, title: '是否质检工序', width: 250 }, // 是否质检工序
|
||||
{ field: 'quality_inspection_scheme_id', sortable: true, title: '质检方案id', width: 250 }, // 质检方案id
|
||||
{ field: 'raw_material_type_id', sortable: true, title: '坯体类型ID', width: 250 }, // 坯体类型ID
|
||||
//{ field: 'quality_inspection_scheme_id', sortable: true, title: '质检方案id', width: 250 }, // 质检方案id
|
||||
//{ field: 'raw_material_type_id', sortable: true, title: '坯体类型ID', width: 250 }, // 坯体类型ID
|
||||
{ field: 'status', slots: { default: 'status' }, width: 80, sortable: true, title: '状态', showHeaderOverflow: true }, // 状态
|
||||
|
||||
{ field: 'create_time', formatter: 'formatDate', width: 160, sortable: true, title: '创建时间', showHeaderOverflow: true }, // 创建时间
|
||||
|
|
|
|||
|
|
@ -56,145 +56,158 @@ export default {
|
|||
editPageUrl: "/MesStaff/MesStaffUpdate/",
|
||||
listPageUrl: "/MesStaff/MesStaffList",
|
||||
|
||||
uploadDefaultImg: null,
|
||||
detailDataFieldName: "mes_staff",
|
||||
uploadDefaultImg: null,
|
||||
detailDataFieldName: "mes_staff",
|
||||
|
||||
actions: {
|
||||
// =============================== 接口地址 自动生成 Start ===============================
|
||||
MesStaffList: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/list`, // 员工列表
|
||||
MesStaffDetail: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/detail`, // 员工详情
|
||||
MesStaffCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/create`, // 创建员工
|
||||
MesStaffUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/update`, // 更新员工
|
||||
MesStaffDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/detele`, // 删除员工
|
||||
MesStaffBatchDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/batchDelete`, // 批量删除员工
|
||||
MesStaffBatchUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/batchUpdate`, // 批量更新员工
|
||||
MesStaffBatchCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/batchCreate`, // 批量创建员工
|
||||
MesStaffExportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/export/excel`, // 导出员工数据到EXCEL
|
||||
MesStaffImportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/import/excel`, // 批量导入EXCEL员工数据
|
||||
MesStaffOpen: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/open`, // 打开员工
|
||||
MesStaffClose: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/close`, // 关闭员工
|
||||
StaffWagesList: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/list`, // 员工工资方案列表
|
||||
StaffWagesDetail: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/detail`, // 员工工资方案详情
|
||||
StaffWagesCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/create`, // 创建员工工资方案
|
||||
StaffWagesUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/update`, // 更新员工工资方案
|
||||
StaffWagesDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/detele`, // 删除员工工资方案
|
||||
StaffWagesBatchDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/batchDelete`, // 批量删除员工工资方案
|
||||
StaffWagesBatchUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/batchUpdate`, // 批量更新员工工资方案
|
||||
StaffWagesBatchCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/batchCreate`, // 批量创建员工工资方案
|
||||
StaffWagesExportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/export/excel`, // 导出员工工资方案数据到EXCEL
|
||||
StaffWagesImportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/import/excel`, // 批量导入EXCEL员工工资方案数据
|
||||
StaffTypeList: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/list`, // 员工类型列表
|
||||
StaffTypeDetail: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/detail`, // 员工类型详情
|
||||
StaffTypeCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/create`, // 创建员工类型
|
||||
StaffTypeUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/update`, // 更新员工类型
|
||||
StaffTypeDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/detele`, // 删除员工类型
|
||||
StaffTypeBatchDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/batchDelete`, // 批量删除员工类型
|
||||
StaffTypeBatchUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/batchUpdate`, // 批量更新员工类型
|
||||
StaffTypeBatchCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/batchCreate`, // 批量创建员工类型
|
||||
StaffTypeExportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/export/excel`, // 导出员工类型数据到EXCEL
|
||||
StaffTypeImportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/import/excel`, // 批量导入EXCEL员工类型数据
|
||||
MesStaffPrintTemplateList: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/list`, // 员工打印模板列表
|
||||
MesStaffPrintTemplateDetail: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/detail`, // 员工打印模板详情
|
||||
MesStaffPrintTemplateCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/create`, // 创建员工打印模板
|
||||
MesStaffPrintTemplateUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/update`, // 更新员工打印模板
|
||||
MesStaffPrintTemplateDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/detele`, // 删除员工打印模板
|
||||
MesStaffPrintTemplateBatchDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/batchDelete`, // 批量删除员工打印模板
|
||||
MesStaffPrintTemplateBatchUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/batchUpdate`, // 批量更新员工打印模板
|
||||
MesStaffPrintTemplateBatchCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/batchCreate`, // 批量创建员工打印模板
|
||||
MesStaffPrintTemplateExportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/export/excel`, // 导出员工打印模板数据到EXCEL
|
||||
MesStaffPrintTemplateImportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/import/excel`, // 批量导入EXCEL员工打印模板数据
|
||||
actions: {
|
||||
// =============================== 接口地址 自动生成 Start ===============================
|
||||
MesStaffList: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/list`, // 员工列表
|
||||
MesStaffDetail: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/detail`, // 员工详情
|
||||
MesStaffCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/create`, // 创建员工
|
||||
MesStaffUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/update`, // 更新员工
|
||||
MesStaffDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/detele`, // 删除员工
|
||||
MesStaffBatchDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/batchDelete`, // 批量删除员工
|
||||
MesStaffBatchUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/batchUpdate`, // 批量更新员工
|
||||
MesStaffBatchCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/batchCreate`, // 批量创建员工
|
||||
MesStaffExportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/export/excel`, // 导出员工数据到EXCEL
|
||||
MesStaffImportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/import/excel`, // 批量导入EXCEL员工数据
|
||||
MesStaffOpen: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/open`, // 打开员工
|
||||
MesStaffClose: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/close`, // 关闭员工
|
||||
StaffWagesList: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/list`, // 员工工资方案列表
|
||||
StaffWagesDetail: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/detail`, // 员工工资方案详情
|
||||
StaffWagesCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/create`, // 创建员工工资方案
|
||||
StaffWagesUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/update`, // 更新员工工资方案
|
||||
StaffWagesDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/detele`, // 删除员工工资方案
|
||||
StaffWagesBatchDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/batchDelete`, // 批量删除员工工资方案
|
||||
StaffWagesBatchUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/batchUpdate`, // 批量更新员工工资方案
|
||||
StaffWagesBatchCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/batchCreate`, // 批量创建员工工资方案
|
||||
StaffWagesExportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/export/excel`, // 导出员工工资方案数据到EXCEL
|
||||
StaffWagesImportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/import/excel`, // 批量导入EXCEL员工工资方案数据
|
||||
StaffTypeList: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/list`, // 员工类型列表
|
||||
StaffTypeDetail: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/detail`, // 员工类型详情
|
||||
StaffTypeCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/create`, // 创建员工类型
|
||||
StaffTypeUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/update`, // 更新员工类型
|
||||
StaffTypeDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/detele`, // 删除员工类型
|
||||
StaffTypeBatchDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/batchDelete`, // 批量删除员工类型
|
||||
StaffTypeBatchUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/batchUpdate`, // 批量更新员工类型
|
||||
StaffTypeBatchCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/batchCreate`, // 批量创建员工类型
|
||||
StaffTypeExportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/export/excel`, // 导出员工类型数据到EXCEL
|
||||
StaffTypeImportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/import/excel`, // 批量导入EXCEL员工类型数据
|
||||
MesStaffPrintTemplateList: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/list`, // 员工打印模板列表
|
||||
MesStaffPrintTemplateDetail: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/detail`, // 员工打印模板详情
|
||||
MesStaffPrintTemplateCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/create`, // 创建员工打印模板
|
||||
MesStaffPrintTemplateUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/update`, // 更新员工打印模板
|
||||
MesStaffPrintTemplateDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/detele`, // 删除员工打印模板
|
||||
MesStaffPrintTemplateBatchDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/batchDelete`, // 批量删除员工打印模板
|
||||
MesStaffPrintTemplateBatchUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/batchUpdate`, // 批量更新员工打印模板
|
||||
MesStaffPrintTemplateBatchCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/batchCreate`, // 批量创建员工打印模板
|
||||
MesStaffPrintTemplateExportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/export/excel`, // 导出员工打印模板数据到EXCEL
|
||||
MesStaffPrintTemplateImportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/import/excel`, // 批量导入EXCEL员工打印模板数据
|
||||
|
||||
// =============================== 接口地址 自动生成 End ===============================
|
||||
},
|
||||
|
||||
keyName: 'id',
|
||||
// 是否编辑模式
|
||||
isEdit: false,
|
||||
// 表单数据
|
||||
formOptions: {
|
||||
data: {
|
||||
// =============================== 表单数据 自动生成 Start ===============================
|
||||
|
||||
id: 0,
|
||||
name: "",
|
||||
code: "",
|
||||
phone: "",
|
||||
email: "",
|
||||
password: "",
|
||||
salt: "",
|
||||
nickname: "",
|
||||
avatar: "",
|
||||
openid: "",
|
||||
unionid: "",
|
||||
session_key: "",
|
||||
department_id: 0,
|
||||
process_id: 0,
|
||||
process_scheme_id: 0,
|
||||
entry_date: new Date(2100, 1, 1).getTime() / 10000,
|
||||
departure_date: new Date(2100, 1, 1).getTime() / 10000,
|
||||
is_piecework: 0,
|
||||
remark: "",
|
||||
status: 0,
|
||||
create_uid: 0,
|
||||
update_uid: 0,
|
||||
create_time: new Date(2100, 1, 1).getTime() / 10000,
|
||||
update_time: new Date(2100, 1, 1).getTime() / 10000,
|
||||
|
||||
// =============================== 表单数据 自动生成 End ===============================
|
||||
// =============================== 接口地址 自动生成 End ===============================
|
||||
},
|
||||
// 标题宽度
|
||||
titleWidth: 100,
|
||||
// 标题对齐方式
|
||||
|
||||
keyName: 'id',
|
||||
// 是否编辑模式
|
||||
isEdit: false,
|
||||
// 表单数据
|
||||
formOptions: {
|
||||
data: {
|
||||
// =============================== 表单数据 自动生成 Start ===============================
|
||||
|
||||
id: 0,
|
||||
name: "",
|
||||
code: "",
|
||||
phone: "",
|
||||
email: "",
|
||||
password: "",
|
||||
salt: "",
|
||||
nickname: "",
|
||||
avatar: "",
|
||||
openid: "",
|
||||
unionid: "",
|
||||
session_key: "",
|
||||
department_id: 0,
|
||||
process_id: 0,
|
||||
process_scheme_id: 0,
|
||||
entry_date: new Date(2100, 1, 1).getTime() / 10000,
|
||||
departure_date: new Date(2100, 1, 1).getTime() / 10000,
|
||||
is_piecework: 0,
|
||||
remark: "",
|
||||
status: 0,
|
||||
create_uid: 0,
|
||||
update_uid: 0,
|
||||
create_time: new Date(2100, 1, 1).getTime() / 10000,
|
||||
update_time: new Date(2100, 1, 1).getTime() / 10000,
|
||||
|
||||
// =============================== 表单数据 自动生成 End ===============================
|
||||
},
|
||||
// 标题宽度
|
||||
titleWidth: 100,
|
||||
// 标题对齐方式
|
||||
titleAlign: 'right',
|
||||
|
||||
// 表单校验规则
|
||||
rules: {
|
||||
// =============================== 表单校验 自动生成 Start ===============================
|
||||
rules: {
|
||||
// =============================== 表单校验 自动生成 Start ===============================
|
||||
|
||||
name: [
|
||||
{ required: true, message: '请输入员工姓名' }
|
||||
]
|
||||
name: [
|
||||
{ required: true, message: '请输入员工姓名' }
|
||||
]
|
||||
|
||||
// =============================== 表单校验 自动生成 End ===============================
|
||||
},
|
||||
// 表单项
|
||||
items: [
|
||||
// =============================== 表单校验 自动生成 End ===============================
|
||||
},
|
||||
// 表单项
|
||||
items: [
|
||||
// =============================== 表单项 自动生成 Start ===============================
|
||||
|
||||
{ field: 'name', title: '员工姓名', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'code', title: '员工工号', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'phone', title: '员工电话', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'email', title: '员工邮箱', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'password', title: '员工密码', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'salt', title: '员工盐', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'nickname', title: '员工昵称', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'avatar', title: '员工头像', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'openid', title: '员工openid', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'unionid', title: '员工unionid', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'session_key', title: '员工session_key', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'department_id', title: '部门ID', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'process_id', title: '工序ID', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'process_scheme_id', title: '工序方案ID', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'entry_date', title: '入职日期', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'departure_date', title: '离职日期', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'is_piecework', title: '是否计件', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'remark', title: '备注', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'status', title: '状态', span: 12, itemRender: { name: '$select', props: { options: settings.options_status_staff } } },
|
||||
{
|
||||
title: '左侧',
|
||||
span: 19,
|
||||
children: [
|
||||
{ field: 'name', title: '员工姓名', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'code', title: '员工工号', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'phone', title: '员工电话', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'email', title: '员工邮箱', span: 12, itemRender: { name: '$input' } },
|
||||
//{ field: 'password', title: '员工密码', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'salt', title: '员工盐', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'nickname', title: '员工昵称', span: 12, itemRender: { name: '$input' } },
|
||||
|
||||
// =============================== 表单项 自动生成 End ===============================
|
||||
]
|
||||
},
|
||||
// 新增模式表单项
|
||||
addModeItems: [
|
||||
{ field: 'entry_date', dataRule: { type: "timestamp" }, title: '入职日期', span: 12, itemRender: { name: '$input', props: { type: "date" } } },
|
||||
|
||||
],
|
||||
{ field: 'departure_date', dataRule: { type: "timestamp" }, title: '离职日期', span: 12, itemRender: { name: '$input', props: { type: "date" } } },
|
||||
|
||||
{ field: 'is_piecework', title: '是否计件', span: 12, itemRender: { name: '$select', props: { options: settings.options_yesorno } } },
|
||||
|
||||
{ field: 'status', title: '状态', span: 12, itemRender: { name: '$select', props: { options: settings.options_status_staff } } },
|
||||
{ field: 'remark', title: '备注', span: 24, itemRender: { name: '$input' } },
|
||||
|
||||
]
|
||||
},
|
||||
{
|
||||
title: '右侧',
|
||||
span: 5,
|
||||
children: [
|
||||
{ field: 'avatar', span: 12, itemRender: { name: 'MkFormCropper' } },
|
||||
]
|
||||
},
|
||||
|
||||
|
||||
};
|
||||
|
||||
pageData.actions.get = pageData.actions.MesStaffDetail;
|
||||
pageData.actions.create = pageData.actions.MesStaffCreate;
|
||||
pageData.actions.update = pageData.actions.MesStaffUpdate;
|
||||
// =============================== 表单项 自动生成 End ===============================
|
||||
]
|
||||
},
|
||||
// 新增模式表单项
|
||||
addModeItems: [
|
||||
|
||||
],
|
||||
|
||||
|
||||
};
|
||||
|
||||
pageData.actions.get = pageData.actions.MesStaffDetail;
|
||||
pageData.actions.create = pageData.actions.MesStaffCreate;
|
||||
pageData.actions.update = pageData.actions.MesStaffUpdate;
|
||||
// 合并表单数据及配置
|
||||
pageData.formOptions = Object.assign({}, this.$mk.config.defaults.formOptions, pageData.formOptions);
|
||||
|
||||
|
|
@ -220,12 +233,12 @@ export default {
|
|||
|
||||
let detailDataFieldName = this.pageOptions.detailDataFieldName;
|
||||
|
||||
if(a.data[detailDataFieldName].entry_date){
|
||||
a.data[detailDataFieldName].entry_date = new Date(a.data[detailDataFieldName].entry_date * 1000);
|
||||
}
|
||||
if(a.data[detailDataFieldName].departure_date){
|
||||
a.data[detailDataFieldName].departure_date = new Date(a.data[detailDataFieldName].departure_date * 1000);
|
||||
}
|
||||
if (a.data[detailDataFieldName].entry_date) {
|
||||
a.data[detailDataFieldName].entry_date = new Date(a.data[detailDataFieldName].entry_date * 1000);
|
||||
}
|
||||
if (a.data[detailDataFieldName].departure_date) {
|
||||
a.data[detailDataFieldName].departure_date = new Date(a.data[detailDataFieldName].departure_date * 1000);
|
||||
}
|
||||
if (a.data[detailDataFieldName].create_time) {
|
||||
a.data[detailDataFieldName].create_time = new Date(a.data[detailDataFieldName].create_time * 1000);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -138,19 +138,19 @@ export default {
|
|||
{ field: 'code', sortable: true, title: '员工工号', width: 250 }, // 员工工号
|
||||
{ field: 'phone', sortable: true, title: '员工电话', width: 250 }, // 员工电话
|
||||
{ field: 'email', sortable: true, title: '员工邮箱', width: 250 }, // 员工邮箱
|
||||
{ field: 'password', sortable: true, title: '员工密码', width: 250 }, // 员工密码
|
||||
{ field: 'salt', sortable: true, title: '员工盐', width: 250 }, // 员工盐
|
||||
//{ field: 'password', sortable: true, title: '员工密码', width: 250 }, // 员工密码
|
||||
//{ field: 'salt', sortable: true, title: '员工盐', width: 250 }, // 员工盐
|
||||
{ field: 'nickname', sortable: true, title: '员工昵称', width: 250 }, // 员工昵称
|
||||
{ field: 'avatar', sortable: true, title: '员工头像', width: 250 }, // 员工头像
|
||||
{ field: 'openid', sortable: true, title: '员工openid', width: 250 }, // 员工openid
|
||||
{ field: 'unionid', sortable: true, title: '员工unionid', width: 250 }, // 员工unionid
|
||||
{ field: 'session_key', sortable: true, title: '员工session_key', width: 250 }, // 员工session_key
|
||||
{ field: 'department_id', sortable: true, title: '部门ID', width: 250 }, // 部门ID
|
||||
{ field: 'process_id', sortable: true, title: '工序ID', width: 250 }, // 工序ID
|
||||
{ field: 'process_scheme_id', sortable: true, title: '工序方案ID', width: 250 }, // 工序方案ID
|
||||
{ field: 'entry_date', sortable: true, title: '入职日期', width: 250 }, // 入职日期
|
||||
{ field: 'departure_date', sortable: true, title: '离职日期', width: 250 }, // 离职日期
|
||||
{ field: 'is_piecework', sortable: true, title: '是否计件', width: 250 }, // 是否计件
|
||||
// { field: 'avatar', sortable: true, title: '员工头像', width: 250 }, // 员工头像
|
||||
//{ field: 'openid', sortable: true, title: '员工openid', width: 250 }, // 员工openid
|
||||
//{ field: 'unionid', sortable: true, title: '员工unionid', width: 250 }, // 员工unionid
|
||||
//{ field: 'session_key', sortable: true, title: '员工session_key', width: 250 }, // 员工session_key
|
||||
//{ field: 'department_id', sortable: true, title: '部门ID', width: 250 }, // 部门ID
|
||||
//{ field: 'process_id', sortable: true, title: '工序ID', width: 250 }, // 工序ID
|
||||
//{ field: 'process_scheme_id', sortable: true, title: '工序方案ID', width: 250 }, // 工序方案ID
|
||||
{ field: 'entry_date', sortable: true, title: '入职日期',formatter: 'formatDate', width: 250 }, // 入职日期
|
||||
{ field: 'departure_date', sortable: true, title: '离职日期', formatter: 'formatDate',width: 250 }, // 离职日期
|
||||
//{ field: 'is_piecework', sortable: true, title: '是否计件', width: 250 }, // 是否计件
|
||||
{ field: 'remark', sortable: true, title: '备注', width: 250 }, // 备注
|
||||
{ field: 'status', slots: { default: 'status' }, width: 80, sortable: true, title: '状态', showHeaderOverflow: true }, // 状态
|
||||
{ field: 'create_time', formatter: 'formatDate', width: 160, sortable: true, title: '创建时间', showHeaderOverflow: true }, // 创建时间
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ export default {
|
|||
// =============================== 表单数据 自动生成 End ===============================
|
||||
},
|
||||
// 标题宽度
|
||||
titleWidth: 100,
|
||||
titleWidth: 180,
|
||||
// 标题对齐方式
|
||||
titleAlign: 'right',
|
||||
|
||||
|
|
@ -121,9 +121,9 @@ export default {
|
|||
items: [
|
||||
// =============================== 表单项 自动生成 Start ===============================
|
||||
|
||||
{ field: 'code', title: '编码', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'title', title: '单位名称', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'name', title: '单位英文名称', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'code', title: '编码', span: 24, itemRender: { name: '$input' } },
|
||||
{ field: 'title', title: '单位名称', span: 24, itemRender: { name: '$input' } },
|
||||
{ field: 'name', title: '单位英文名称', span: 24, itemRender: { name: '$input' } },
|
||||
|
||||
// =============================== 表单项 自动生成 End ===============================
|
||||
]
|
||||
|
|
|
|||
|
|
@ -97,7 +97,7 @@ export default {
|
|||
// =============================== 表单数据 自动生成 End ===============================
|
||||
},
|
||||
// 标题宽度
|
||||
titleWidth: 100,
|
||||
titleWidth: 150,
|
||||
// 标题对齐方式
|
||||
titleAlign: 'right',
|
||||
|
||||
|
|
@ -121,9 +121,9 @@ export default {
|
|||
items: [
|
||||
// =============================== 表单项 自动生成 Start ===============================
|
||||
|
||||
{ field: 'code', title: '编码', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'title', title: '单位名称', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'name', title: '单位英文名称', span: 12, itemRender: { name: '$input' } },
|
||||
{ field: 'code', title: '编码', span: 24, itemRender: { name: '$input' } },
|
||||
//{ field: 'title', title: '单位名称', span: 24, itemRender: { name: '$input' } },
|
||||
{ field: 'name', title: '单位名称', span: 24, itemRender: { name: '$input' } },
|
||||
|
||||
// =============================== 表单项 自动生成 End ===============================
|
||||
]
|
||||
|
|
|
|||
|
|
@ -98,8 +98,8 @@ export default {
|
|||
{ title: '操作', slots: { default: 'op' }, width: 120 },
|
||||
|
||||
{ field: 'code', sortable: true, title: '编码', width: 250 }, // 编码
|
||||
{ field: 'title', sortable: true, title: '单位名称', width: 250 }, // 单位名称
|
||||
{ field: 'name', sortable: true, title: '单位英文名称', width: 250 }, // 单位英文名称
|
||||
// { field: 'title', sortable: true, title: '单位名称', width: 250 }, // 单位名称
|
||||
{ field: 'name', sortable: true, title: '单位名称', width: 250 }, // 单位英文名称
|
||||
{ field: 'create_time', formatter: 'formatDate', width: 160, sortable: true, title: '创建时间', showHeaderOverflow: true }, // 创建时间
|
||||
{ field: 'update_time', formatter: 'formatDate', width: 160, sortable: true, title: '更新时间', showHeaderOverflow: true }, // 更新时间
|
||||
|
||||
|
|
|
|||
|
|
@ -3,18 +3,22 @@ var config = {
|
|||
schemeType_main : "1",
|
||||
|
||||
options_status_staff: [
|
||||
{value:'入职',label:'入职'},
|
||||
{value:'离职',label:'离职'}
|
||||
{value:1,label:'入职'},
|
||||
{value:2,label:'离职'}
|
||||
],
|
||||
options_status_process: [
|
||||
{value:'开启',label:'开启'},
|
||||
{value:'暂停',label:'暂停'}
|
||||
{value:1,label:'开启'},
|
||||
{value:2,label:'暂停'}
|
||||
],
|
||||
|
||||
options_is_open:[
|
||||
{value:0,label:'不开启'},
|
||||
{value:1,label:'开启'}
|
||||
],
|
||||
options_work_type:[
|
||||
{value:'默认计件',label:'默认计件'},
|
||||
{value:'计时',label:'计时'}
|
||||
],
|
||||
|
||||
//:0.禁用,1.启用
|
||||
options_is_enabled:[
|
||||
|
|
@ -22,6 +26,10 @@ var config = {
|
|||
{value:1,label:'启用'}
|
||||
],
|
||||
|
||||
options_yesorno:[
|
||||
{value:0,label:'是'},
|
||||
{value:1,label:'否'}
|
||||
],
|
||||
|
||||
options_warehouse_type:[
|
||||
{value:1,label:'普通仓库'},
|
||||
|
|
@ -44,6 +52,8 @@ var config = {
|
|||
{value:5,label:'报废'} ,
|
||||
{value:6,label:'待返工'}
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
|
||||
module.exports = config
|
||||
|
|
@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
|
|||
name: FunTitle,
|
||||
icon: 'idcard',
|
||||
path: `/${FunName}/${FunName}List`,
|
||||
meta:{
|
||||
page:{ cacheAble:false}
|
||||
},
|
||||
component: () => import(`@/pages/Middle/Mes/MesCeramicsMaterialClassification/MesCeramicsMaterialClassification/List`),
|
||||
authority: {
|
||||
permission: [],
|
||||
|
|
|
|||
|
|
@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
|
|||
name: FunTitle,
|
||||
icon: 'idcard',
|
||||
path: `/${FunName}/${FunName}List`,
|
||||
meta:{
|
||||
page:{ cacheAble:false}
|
||||
},
|
||||
component: () => import(`@/pages/Middle/Mes/MesInspection/MesInspection/List`),
|
||||
authority: {
|
||||
permission: [],
|
||||
|
|
|
|||
|
|
@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
|
|||
name: FunTitle,
|
||||
icon: 'idcard',
|
||||
path: `/${FunName}/${FunName}List`,
|
||||
meta:{
|
||||
page:{ cacheAble:false}
|
||||
},
|
||||
component: () => import(`@/pages/Middle/Mes/MesMaterials/MesMaterials/List`),
|
||||
authority: {
|
||||
permission: [],
|
||||
|
|
|
|||
|
|
@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
|
|||
name: FunTitle,
|
||||
icon: 'idcard',
|
||||
path: `/${FunName}/${FunName}List`,
|
||||
meta:{
|
||||
page:{ cacheAble:false}
|
||||
},
|
||||
component: () => import(`@/pages/Middle/Mes/MesPlan/MesPlan/List`),
|
||||
authority: {
|
||||
permission: [],
|
||||
|
|
|
|||
|
|
@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
|
|||
name: FunTitle,
|
||||
icon: 'idcard',
|
||||
path: `/${FunName}/${FunName}List`,
|
||||
meta:{
|
||||
page:{ cacheAble:false}
|
||||
},
|
||||
component: () => import(`@/pages/Middle/Mes/MesProcesses/MesProcesses/List`),
|
||||
authority: {
|
||||
permission: [],
|
||||
|
|
|
|||
|
|
@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
|
|||
name: FunTitle,
|
||||
icon: 'idcard',
|
||||
path: `/${FunName}/${FunName}List`,
|
||||
meta:{
|
||||
page:{ cacheAble:false}
|
||||
},
|
||||
component: () => import(`@/pages/Middle/Mes/MesProductCustomAttribute/MesProductCustomAttribute/List`),
|
||||
authority: {
|
||||
permission: [],
|
||||
|
|
|
|||
|
|
@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
|
|||
name: FunTitle,
|
||||
icon: 'idcard',
|
||||
path: `/${FunName}/${FunName}List`,
|
||||
meta:{
|
||||
page:{ cacheAble:false}
|
||||
},
|
||||
component: () => import(`@/pages/Middle/Mes/MesProductionOrder/MesProductionOrder/List`),
|
||||
authority: {
|
||||
permission: [],
|
||||
|
|
|
|||
|
|
@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
|
|||
name: FunTitle,
|
||||
icon: 'idcard',
|
||||
path: `/${FunName}/${FunName}List`,
|
||||
meta:{
|
||||
page:{ cacheAble:false}
|
||||
},
|
||||
component: () => import(`@/pages/Middle/Mes/MesStaff/MesStaff/List`),
|
||||
authority: {
|
||||
permission: [],
|
||||
|
|
|
|||
|
|
@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
|
|||
name: FunTitle,
|
||||
icon: 'idcard',
|
||||
path: `/${FunName}/${FunName}List`,
|
||||
meta:{
|
||||
page:{ cacheAble:false}
|
||||
},
|
||||
component: () => import(`@/pages/Middle/Mes/MesStock/MesStock/List`),
|
||||
authority: {
|
||||
permission: [],
|
||||
|
|
|
|||
|
|
@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
|
|||
name: FunTitle,
|
||||
icon: 'idcard',
|
||||
path: `/${FunName}/${FunName}List`,
|
||||
meta:{
|
||||
page:{ cacheAble:false}
|
||||
},
|
||||
component: () => import(`@/pages/Middle/Mes/MesUnit/MesUnit/List`),
|
||||
authority: {
|
||||
permission: [],
|
||||
|
|
|
|||
|
|
@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
|
|||
name: FunTitle,
|
||||
icon: 'idcard',
|
||||
path: `/${FunName}/${FunName}List`,
|
||||
meta:{
|
||||
page:{ cacheAble:false}
|
||||
},
|
||||
component: () => import(`@/pages/Middle/Mes/MesWarehouse/MesWarehouse/List`),
|
||||
authority: {
|
||||
permission: [],
|
||||
|
|
|
|||
Loading…
Reference in New Issue