MES基础档案

This commit is contained in:
xielue 2023-04-28 15:50:09 +08:00
parent 789a96b6ac
commit c99dd3c960
22 changed files with 249 additions and 189 deletions

View File

@ -2,4 +2,4 @@
VUE_APP_API_BASE_URL=http://zxx4.f3322.net:46000 VUE_APP_API_BASE_URL=http://zxx4.f3322.net:46000
VUE_APP_USER_MODEL2=AdminUser VUE_APP_USER_MODEL2=AdminUser
VUE_APP_USER_MODEL=BaseAdmin VUE_APP_USER_MODEL=BaseAdmin
VUE_APP_BEID=1 VUE_APP_BEID=3

View File

@ -100,7 +100,7 @@ export default {
// =============================== End =============================== // =============================== End ===============================
}, },
// //
titleWidth: 100, titleWidth: 150,
// //
titleAlign: 'right', titleAlign: 'right',
@ -119,12 +119,12 @@ export default {
// =============================== Start =============================== // =============================== Start ===============================
{ field: 'code', title: '编码', span: 12, itemRender: { name: '$input' } }, { field: 'code', title: '编码', span: 12, itemRender: { name: '$input' } },
{ field: 'warehouse_id', title: '仓库id', 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: 'warehouse_position_id', title: 'id', span: 12, itemRender: { name: '$input' } },
{ field: 'product_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: 'unit_id', title: 'ID', span: 12, itemRender: { name: '$input' } },
{ field: 'level', title: '等级', span: 12, itemRender: { name: '$input' } }, { field: 'level', title: '等级', span: 12, itemRender: { name: '$input',props:{type:"number"} } },
{ field: 'quantity', title: '数量', span: 12, itemRender: { name: '$input' } }, { field: 'quantity', title: '数量', span: 12, itemRender: { name: '$input' ,props:{type:"number"} } },
// =============================== End =============================== // =============================== End ===============================
] ]

View File

@ -102,14 +102,14 @@ export default {
// =============================== Start =============================== // =============================== Start ===============================
{ field: 'code', sortable: true, title: '编码', width: 250 }, // { field: 'code', sortable: true, title: '编码', width: 250 }, //
{ field: 'warehouse_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: 'warehouse_position_id', sortable: true, title: 'id', width: 250 }, // id
{ field: 'product_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: 'unit_id', sortable: true, title: 'ID', width: 250 }, // ID
{ field: 'level', sortable: true, title: '等级', width: 250 }, // { field: 'level', sortable: true, title: '等级', width: 250 }, //
{ field: 'quantity', sortable: true, title: '数量', width: 250 }, // { field: 'quantity', sortable: true, title: '数量', width: 250 }, //
{ field: 'create_uid', sortable: true, title: '创建人', width: 80 }, // //{ field: 'create_uid', sortable: true, title: '', width: 80 }, //
{ field: 'update_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: 'create_time', formatter: 'formatDate', width: 160, sortable: true, title: '创建时间', showHeaderOverflow: true }, //
{ field: 'update_time', formatter: 'formatDate', width: 160, sortable: true, title: '更新时间', showHeaderOverflow: true }, // { field: 'update_time', formatter: 'formatDate', width: 160, sortable: true, title: '更新时间', showHeaderOverflow: true }, //

View File

@ -127,7 +127,7 @@ export default {
// =============================== End =============================== // =============================== End ===============================
}, },
// //
titleWidth: 100, titleWidth: 150,
// //
titleAlign: 'right', titleAlign: 'right',
@ -144,14 +144,15 @@ export default {
}, },
// //
items: [ 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: 'code', title: '工序编码', span: 12, itemRender: { name: '$input' } },
{ field: 'name', title: '工序英文名称', span: 12, itemRender: { name: '$input' } },
{ field: 'desc', title: '工序描述', span: 12, itemRender: { name: '$input' } }, { field: 'desc', title: '工序描述', span: 12, itemRender: { name: '$input' } },
{ field: 'remark', 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: 'work_type', title: '计工方式', span: 12, itemRender: { name: '$select',props:{options:settings.options_work_type} } },
{ field: 'is_quality_inspection', title: '是否质检工序', span: 12, itemRender: { name: '$input' } }, { 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 } } }, { field: 'status', title: '状态', span: 12, itemRender: { name: '$select', props: { options: settings.options_status_process } } },
] ]
}, },

View File

@ -5,6 +5,7 @@
<script> <script>
import BASE_URL from '@/services/mes/api.js'; import BASE_URL from '@/services/mes/api.js';
const settings = require('../../basic/settings.js');
export default { export default {
i18n: require("./i18n"), i18n: require("./i18n"),
@ -124,17 +125,19 @@ export default {
// =============================== Start =============================== // =============================== Start ===============================
{ field: 'process_segment_id', sortable: true, title: '工序段id', width: 250 }, // id //{ field: 'process_segment_id', sortable: true, title: 'id', width: 250 }, // id
{ field: 'title', sortable: true, title: '工序名称', width: 250 }, // //{ field: 'title', sortable: true, title: '', width: 250 }, //
{ field: 'code', 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: 'desc', sortable: true, title: '工序描述', width: 250 }, //
{ field: 'remark', 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: 'car_limit', sortable: true, title: '领车限制数', width: 250 }, //
{ field: 'is_quality_inspection', 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: 'quality_inspection_scheme_id', sortable: true, title: 'id', width: 250 }, // id
{ field: 'raw_material_type_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: 'status', slots: { default: 'status' }, width: 80, sortable: true, title: '状态', showHeaderOverflow: true }, //
{ field: 'create_time', formatter: 'formatDate', width: 160, sortable: true, title: '创建时间', showHeaderOverflow: true }, // { field: 'create_time', formatter: 'formatDate', width: 160, sortable: true, title: '创建时间', showHeaderOverflow: true }, //

View File

@ -56,145 +56,158 @@ export default {
editPageUrl: "/MesStaff/MesStaffUpdate/", editPageUrl: "/MesStaff/MesStaffUpdate/",
listPageUrl: "/MesStaff/MesStaffList", listPageUrl: "/MesStaff/MesStaffList",
uploadDefaultImg: null, uploadDefaultImg: null,
detailDataFieldName: "mes_staff", detailDataFieldName: "mes_staff",
actions: { actions: {
// =============================== Start =============================== // =============================== Start ===============================
MesStaffList: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/list`, // MesStaffList: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/list`, //
MesStaffDetail: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/detail`, // MesStaffDetail: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/detail`, //
MesStaffCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/create`, // MesStaffCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/create`, //
MesStaffUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/update`, // MesStaffUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/update`, //
MesStaffDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/detele`, // MesStaffDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/detele`, //
MesStaffBatchDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/batchDelete`, // MesStaffBatchDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/batchDelete`, //
MesStaffBatchUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/batchUpdate`, // MesStaffBatchUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/batchUpdate`, //
MesStaffBatchCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/batchCreate`, // MesStaffBatchCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/batchCreate`, //
MesStaffExportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/export/excel`, // EXCEL MesStaffExportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/export/excel`, // EXCEL
MesStaffImportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/import/excel`, // EXCEL MesStaffImportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/import/excel`, // EXCEL
MesStaffOpen: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/open`, // MesStaffOpen: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/open`, //
MesStaffClose: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/close`, // MesStaffClose: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/close`, //
StaffWagesList: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/list`, // StaffWagesList: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/list`, //
StaffWagesDetail: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/detail`, // StaffWagesDetail: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/detail`, //
StaffWagesCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/create`, // StaffWagesCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/create`, //
StaffWagesUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/update`, // StaffWagesUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/update`, //
StaffWagesDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/detele`, // StaffWagesDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/detele`, //
StaffWagesBatchDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/batchDelete`, // StaffWagesBatchDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/batchDelete`, //
StaffWagesBatchUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/batchUpdate`, // StaffWagesBatchUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/batchUpdate`, //
StaffWagesBatchCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/batchCreate`, // StaffWagesBatchCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/batchCreate`, //
StaffWagesExportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/export/excel`, // EXCEL StaffWagesExportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/export/excel`, // EXCEL
StaffWagesImportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/import/excel`, // EXCEL StaffWagesImportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/wages/import/excel`, // EXCEL
StaffTypeList: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/list`, // StaffTypeList: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/list`, //
StaffTypeDetail: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/detail`, // StaffTypeDetail: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/detail`, //
StaffTypeCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/create`, // StaffTypeCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/create`, //
StaffTypeUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/update`, // StaffTypeUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/update`, //
StaffTypeDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/detele`, // StaffTypeDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/detele`, //
StaffTypeBatchDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/batchDelete`, // StaffTypeBatchDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/batchDelete`, //
StaffTypeBatchUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/batchUpdate`, // StaffTypeBatchUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/batchUpdate`, //
StaffTypeBatchCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/batchCreate`, // StaffTypeBatchCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/batchCreate`, //
StaffTypeExportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/export/excel`, // EXCEL StaffTypeExportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/export/excel`, // EXCEL
StaffTypeImportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/staff/type/import/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`, // MesStaffPrintTemplateList: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/list`, //
MesStaffPrintTemplateDetail: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/detail`, // MesStaffPrintTemplateDetail: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/detail`, //
MesStaffPrintTemplateCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/create`, // MesStaffPrintTemplateCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/create`, //
MesStaffPrintTemplateUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/update`, // MesStaffPrintTemplateUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/update`, //
MesStaffPrintTemplateDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/detele`, // MesStaffPrintTemplateDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/detele`, //
MesStaffPrintTemplateBatchDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/batchDelete`, // MesStaffPrintTemplateBatchDelete: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/batchDelete`, //
MesStaffPrintTemplateBatchUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/batchUpdate`, // MesStaffPrintTemplateBatchUpdate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/batchUpdate`, //
MesStaffPrintTemplateBatchCreate: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/batchCreate`, // 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 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 MesStaffPrintTemplateImportExcel: `${BASE_URL.BASE_URL}/MesStaff/v1/mes/staff/print/template/import/excel`, // EXCEL
// =============================== End =============================== // =============================== 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 ===============================
}, },
//
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', titleAlign: 'right',
// //
rules: { rules: {
// =============================== Start =============================== // =============================== Start ===============================
name: [ name: [
{ required: true, message: '请输入员工姓名' } { required: true, message: '请输入员工姓名' }
] ]
// =============================== End =============================== // =============================== End ===============================
}, },
// //
items: [ items: [
// =============================== Start =============================== // =============================== Start ===============================
{ field: 'name', title: '员工姓名', span: 12, itemRender: { name: '$input' } }, {
{ field: 'code', title: '员工工号', span: 12, itemRender: { name: '$input' } }, title: '左侧',
{ field: 'phone', title: '员工电话', span: 12, itemRender: { name: '$input' } }, span: 19,
{ field: 'email', title: '员工邮箱', span: 12, itemRender: { name: '$input' } }, children: [
{ field: 'password', title: '员工密码', span: 12, itemRender: { name: '$input' } }, { field: 'name', title: '员工姓名', span: 12, itemRender: { name: '$input' } },
{ field: 'salt', title: '员工盐', span: 12, itemRender: { name: '$input' } }, { field: 'code', title: '员工工号', span: 12, itemRender: { name: '$input' } },
{ field: 'nickname', title: '员工昵称', span: 12, itemRender: { name: '$input' } }, { field: 'phone', title: '员工电话', span: 12, itemRender: { name: '$input' } },
{ field: 'avatar', title: '员工头像', span: 12, itemRender: { name: '$input' } }, { field: 'email', title: '员工邮箱', span: 12, itemRender: { name: '$input' } },
{ field: 'openid', title: '员工openid', span: 12, itemRender: { name: '$input' } }, //{ field: 'password', title: '', span: 12, itemRender: { name: '$input' } },
{ field: 'unionid', title: '员工unionid', span: 12, itemRender: { name: '$input' } }, { field: 'salt', title: '员工盐', span: 12, itemRender: { name: '$input' } },
{ field: 'session_key', title: '员工session_key', span: 12, itemRender: { name: '$input' } }, { field: 'nickname', title: '员工昵称', 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 } } },
// =============================== End =============================== { field: 'entry_date', dataRule: { type: "timestamp" }, title: '入职日期', span: 12, itemRender: { name: '$input', props: { type: "date" } } },
]
},
//
addModeItems: [
], { 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; // =============================== End ===============================
pageData.actions.create = pageData.actions.MesStaffCreate; ]
pageData.actions.update = pageData.actions.MesStaffUpdate; },
//
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); pageData.formOptions = Object.assign({}, this.$mk.config.defaults.formOptions, pageData.formOptions);
@ -220,12 +233,12 @@ export default {
let detailDataFieldName = this.pageOptions.detailDataFieldName; let detailDataFieldName = this.pageOptions.detailDataFieldName;
if(a.data[detailDataFieldName].entry_date){ if (a.data[detailDataFieldName].entry_date) {
a.data[detailDataFieldName].entry_date = new Date(a.data[detailDataFieldName].entry_date * 1000); a.data[detailDataFieldName].entry_date = new Date(a.data[detailDataFieldName].entry_date * 1000);
} }
if(a.data[detailDataFieldName].departure_date){ if (a.data[detailDataFieldName].departure_date) {
a.data[detailDataFieldName].departure_date = new Date(a.data[detailDataFieldName].departure_date * 1000); a.data[detailDataFieldName].departure_date = new Date(a.data[detailDataFieldName].departure_date * 1000);
} }
if (a.data[detailDataFieldName].create_time) { if (a.data[detailDataFieldName].create_time) {
a.data[detailDataFieldName].create_time = new Date(a.data[detailDataFieldName].create_time * 1000); a.data[detailDataFieldName].create_time = new Date(a.data[detailDataFieldName].create_time * 1000);
} }

View File

@ -138,19 +138,19 @@ export default {
{ field: 'code', sortable: true, title: '员工工号', width: 250 }, // { field: 'code', sortable: true, title: '员工工号', width: 250 }, //
{ field: 'phone', sortable: true, title: '员工电话', width: 250 }, // { field: 'phone', sortable: true, title: '员工电话', width: 250 }, //
{ field: 'email', sortable: true, title: '员工邮箱', width: 250 }, // { field: 'email', sortable: true, title: '员工邮箱', width: 250 }, //
{ field: 'password', sortable: true, title: '员工密码', width: 250 }, // //{ field: 'password', sortable: true, title: '', width: 250 }, //
{ field: 'salt', sortable: true, title: '员工盐', width: 250 }, // //{ field: 'salt', sortable: true, title: '', width: 250 }, //
{ field: 'nickname', sortable: true, title: '员工昵称', width: 250 }, // { field: 'nickname', sortable: true, title: '员工昵称', width: 250 }, //
{ field: 'avatar', sortable: true, title: '员工头像', width: 250 }, // // { field: 'avatar', sortable: true, title: '', width: 250 }, //
{ field: 'openid', sortable: true, title: '员工openid', width: 250 }, // openid //{ field: 'openid', sortable: true, title: 'openid', width: 250 }, // openid
{ field: 'unionid', sortable: true, title: '员工unionid', width: 250 }, // unionid //{ field: 'unionid', sortable: true, title: 'unionid', width: 250 }, // unionid
{ field: 'session_key', sortable: true, title: '员工session_key', width: 250 }, // session_key //{ field: 'session_key', sortable: true, title: 'session_key', width: 250 }, // session_key
{ field: 'department_id', sortable: true, title: '部门ID', width: 250 }, // ID //{ field: 'department_id', sortable: true, title: 'ID', width: 250 }, // ID
{ field: 'process_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: 'process_scheme_id', sortable: true, title: 'ID', width: 250 }, // ID
{ field: 'entry_date', sortable: true, title: '入职日期', width: 250 }, // { field: 'entry_date', sortable: true, title: '入职日期',formatter: 'formatDate', width: 250 }, //
{ field: 'departure_date', sortable: true, title: '离职日期', width: 250 }, // { field: 'departure_date', sortable: true, title: '离职日期', formatter: 'formatDate',width: 250 }, //
{ field: 'is_piecework', sortable: true, title: '是否计件', width: 250 }, // //{ field: 'is_piecework', sortable: true, title: '', width: 250 }, //
{ field: 'remark', 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: 'status', slots: { default: 'status' }, width: 80, sortable: true, title: '状态', showHeaderOverflow: true }, //
{ field: 'create_time', formatter: 'formatDate', width: 160, sortable: true, title: '创建时间', showHeaderOverflow: true }, // { field: 'create_time', formatter: 'formatDate', width: 160, sortable: true, title: '创建时间', showHeaderOverflow: true }, //

View File

@ -97,7 +97,7 @@ export default {
// =============================== End =============================== // =============================== End ===============================
}, },
// //
titleWidth: 100, titleWidth: 180,
// //
titleAlign: 'right', titleAlign: 'right',
@ -121,9 +121,9 @@ export default {
items: [ items: [
// =============================== Start =============================== // =============================== Start ===============================
{ field: 'code', title: '编码', span: 12, itemRender: { name: '$input' } }, { field: 'code', title: '编码', span: 24, itemRender: { name: '$input' } },
{ field: 'title', title: '单位名称', span: 12, itemRender: { name: '$input' } }, { field: 'title', title: '单位名称', span: 24, itemRender: { name: '$input' } },
{ field: 'name', title: '单位英文名称', span: 12, itemRender: { name: '$input' } }, { field: 'name', title: '单位英文名称', span: 24, itemRender: { name: '$input' } },
// =============================== End =============================== // =============================== End ===============================
] ]

View File

@ -97,7 +97,7 @@ export default {
// =============================== End =============================== // =============================== End ===============================
}, },
// //
titleWidth: 100, titleWidth: 150,
// //
titleAlign: 'right', titleAlign: 'right',
@ -121,9 +121,9 @@ export default {
items: [ items: [
// =============================== Start =============================== // =============================== Start ===============================
{ field: 'code', title: '编码', span: 12, itemRender: { name: '$input' } }, { field: 'code', title: '编码', span: 24, itemRender: { name: '$input' } },
{ field: 'title', title: '单位名称', span: 12, itemRender: { name: '$input' } }, //{ field: 'title', title: '', span: 24, itemRender: { name: '$input' } },
{ field: 'name', title: '单位英文名称', span: 12, itemRender: { name: '$input' } }, { field: 'name', title: '单位名称', span: 24, itemRender: { name: '$input' } },
// =============================== End =============================== // =============================== End ===============================
] ]

View File

@ -98,8 +98,8 @@ export default {
{ title: '操作', slots: { default: 'op' }, width: 120 }, { title: '操作', slots: { default: 'op' }, width: 120 },
{ field: 'code', sortable: true, title: '编码', width: 250 }, // { field: 'code', sortable: true, title: '编码', width: 250 }, //
{ field: 'title', sortable: true, title: '单位名称', width: 250 }, // // { field: 'title', sortable: true, title: '', width: 250 }, //
{ field: 'name', 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: 'create_time', formatter: 'formatDate', width: 160, sortable: true, title: '创建时间', showHeaderOverflow: true }, //
{ field: 'update_time', formatter: 'formatDate', width: 160, sortable: true, title: '更新时间', showHeaderOverflow: true }, // { field: 'update_time', formatter: 'formatDate', width: 160, sortable: true, title: '更新时间', showHeaderOverflow: true }, //

View File

@ -3,18 +3,22 @@ var config = {
schemeType_main : "1", schemeType_main : "1",
options_status_staff: [ options_status_staff: [
{value:'入职',label:'入职'}, {value:1,label:'入职'},
{value:'离职',label:'离职'} {value:2,label:'离职'}
], ],
options_status_process: [ options_status_process: [
{value:'开启',label:'开启'}, {value:1,label:'开启'},
{value:'暂停',label:'暂停'} {value:2,label:'暂停'}
], ],
options_is_open:[ options_is_open:[
{value:0,label:'不开启'}, {value:0,label:'不开启'},
{value:1,label:'开启'} {value:1,label:'开启'}
], ],
options_work_type:[
{value:'默认计件',label:'默认计件'},
{value:'计时',label:'计时'}
],
//:0.禁用,1.启用 //:0.禁用,1.启用
options_is_enabled:[ options_is_enabled:[
@ -22,6 +26,10 @@ var config = {
{value:1,label:'启用'} {value:1,label:'启用'}
], ],
options_yesorno:[
{value:0,label:'是'},
{value:1,label:'否'}
],
options_warehouse_type:[ options_warehouse_type:[
{value:1,label:'普通仓库'}, {value:1,label:'普通仓库'},
@ -44,6 +52,8 @@ var config = {
{value:5,label:'报废'} , {value:5,label:'报废'} ,
{value:6,label:'待返工'} {value:6,label:'待返工'}
], ],
} }
module.exports = config module.exports = config

View File

@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
name: FunTitle, name: FunTitle,
icon: 'idcard', icon: 'idcard',
path: `/${FunName}/${FunName}List`, path: `/${FunName}/${FunName}List`,
meta:{
page:{ cacheAble:false}
},
component: () => import(`@/pages/Middle/Mes/MesCeramicsMaterialClassification/MesCeramicsMaterialClassification/List`), component: () => import(`@/pages/Middle/Mes/MesCeramicsMaterialClassification/MesCeramicsMaterialClassification/List`),
authority: { authority: {
permission: [], permission: [],

View File

@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
name: FunTitle, name: FunTitle,
icon: 'idcard', icon: 'idcard',
path: `/${FunName}/${FunName}List`, path: `/${FunName}/${FunName}List`,
meta:{
page:{ cacheAble:false}
},
component: () => import(`@/pages/Middle/Mes/MesInspection/MesInspection/List`), component: () => import(`@/pages/Middle/Mes/MesInspection/MesInspection/List`),
authority: { authority: {
permission: [], permission: [],

View File

@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
name: FunTitle, name: FunTitle,
icon: 'idcard', icon: 'idcard',
path: `/${FunName}/${FunName}List`, path: `/${FunName}/${FunName}List`,
meta:{
page:{ cacheAble:false}
},
component: () => import(`@/pages/Middle/Mes/MesMaterials/MesMaterials/List`), component: () => import(`@/pages/Middle/Mes/MesMaterials/MesMaterials/List`),
authority: { authority: {
permission: [], permission: [],

View File

@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
name: FunTitle, name: FunTitle,
icon: 'idcard', icon: 'idcard',
path: `/${FunName}/${FunName}List`, path: `/${FunName}/${FunName}List`,
meta:{
page:{ cacheAble:false}
},
component: () => import(`@/pages/Middle/Mes/MesPlan/MesPlan/List`), component: () => import(`@/pages/Middle/Mes/MesPlan/MesPlan/List`),
authority: { authority: {
permission: [], permission: [],

View File

@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
name: FunTitle, name: FunTitle,
icon: 'idcard', icon: 'idcard',
path: `/${FunName}/${FunName}List`, path: `/${FunName}/${FunName}List`,
meta:{
page:{ cacheAble:false}
},
component: () => import(`@/pages/Middle/Mes/MesProcesses/MesProcesses/List`), component: () => import(`@/pages/Middle/Mes/MesProcesses/MesProcesses/List`),
authority: { authority: {
permission: [], permission: [],

View File

@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
name: FunTitle, name: FunTitle,
icon: 'idcard', icon: 'idcard',
path: `/${FunName}/${FunName}List`, path: `/${FunName}/${FunName}List`,
meta:{
page:{ cacheAble:false}
},
component: () => import(`@/pages/Middle/Mes/MesProductCustomAttribute/MesProductCustomAttribute/List`), component: () => import(`@/pages/Middle/Mes/MesProductCustomAttribute/MesProductCustomAttribute/List`),
authority: { authority: {
permission: [], permission: [],

View File

@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
name: FunTitle, name: FunTitle,
icon: 'idcard', icon: 'idcard',
path: `/${FunName}/${FunName}List`, path: `/${FunName}/${FunName}List`,
meta:{
page:{ cacheAble:false}
},
component: () => import(`@/pages/Middle/Mes/MesProductionOrder/MesProductionOrder/List`), component: () => import(`@/pages/Middle/Mes/MesProductionOrder/MesProductionOrder/List`),
authority: { authority: {
permission: [], permission: [],

View File

@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
name: FunTitle, name: FunTitle,
icon: 'idcard', icon: 'idcard',
path: `/${FunName}/${FunName}List`, path: `/${FunName}/${FunName}List`,
meta:{
page:{ cacheAble:false}
},
component: () => import(`@/pages/Middle/Mes/MesStaff/MesStaff/List`), component: () => import(`@/pages/Middle/Mes/MesStaff/MesStaff/List`),
authority: { authority: {
permission: [], permission: [],

View File

@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
name: FunTitle, name: FunTitle,
icon: 'idcard', icon: 'idcard',
path: `/${FunName}/${FunName}List`, path: `/${FunName}/${FunName}List`,
meta:{
page:{ cacheAble:false}
},
component: () => import(`@/pages/Middle/Mes/MesStock/MesStock/List`), component: () => import(`@/pages/Middle/Mes/MesStock/MesStock/List`),
authority: { authority: {
permission: [], permission: [],

View File

@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
name: FunTitle, name: FunTitle,
icon: 'idcard', icon: 'idcard',
path: `/${FunName}/${FunName}List`, path: `/${FunName}/${FunName}List`,
meta:{
page:{ cacheAble:false}
},
component: () => import(`@/pages/Middle/Mes/MesUnit/MesUnit/List`), component: () => import(`@/pages/Middle/Mes/MesUnit/MesUnit/List`),
authority: { authority: {
permission: [], permission: [],

View File

@ -30,6 +30,9 @@ routerMap[FunName + 'List']= {
name: FunTitle, name: FunTitle,
icon: 'idcard', icon: 'idcard',
path: `/${FunName}/${FunName}List`, path: `/${FunName}/${FunName}List`,
meta:{
page:{ cacheAble:false}
},
component: () => import(`@/pages/Middle/Mes/MesWarehouse/MesWarehouse/List`), component: () => import(`@/pages/Middle/Mes/MesWarehouse/MesWarehouse/List`),
authority: { authority: {
permission: [], permission: [],