From 657ac0059536ed5c936a9cad694fab2f4df4b35d Mon Sep 17 00:00:00 2001 From: yinq Date: Fri, 24 May 2024 13:51:29 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E5=B7=A5=E8=B5=84=E7=BB=93?= =?UTF-8?q?=E7=AE=97=E5=8A=A0=E7=B3=BB=E6=95=B0=E3=80=81=E5=B7=A5=E5=BA=8F?= =?UTF-8?q?=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/base/processInfo.js | 44 +++ src/views/mes/base/baseStaffInfo/index.vue | 42 ++- src/views/mes/base/processInfo/index.vue | 402 +++++++++++++++++++++ 3 files changed, 472 insertions(+), 16 deletions(-) create mode 100644 src/api/mes/base/processInfo.js create mode 100644 src/views/mes/base/processInfo/index.vue diff --git a/src/api/mes/base/processInfo.js b/src/api/mes/base/processInfo.js new file mode 100644 index 0000000..b0b3d07 --- /dev/null +++ b/src/api/mes/base/processInfo.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询工序信息列表 +export function listProcessInfo(query) { + return request({ + url: '/mes/base/processInfo/list', + method: 'get', + params: query + }) +} + +// 查询工序信息详细 +export function getProcessInfo(objId) { + return request({ + url: '/mes/base/processInfo/' + objId, + method: 'get' + }) +} + +// 新增工序信息 +export function addProcessInfo(data) { + return request({ + url: '/mes/base/processInfo', + method: 'post', + data: data + }) +} + +// 修改工序信息 +export function updateProcessInfo(data) { + return request({ + url: '/mes/base/processInfo', + method: 'put', + data: data + }) +} + +// 删除工序信息 +export function delProcessInfo(objId) { + return request({ + url: '/mes/base/processInfo/' + objId, + method: 'delete' + }) +} diff --git a/src/views/mes/base/baseStaffInfo/index.vue b/src/views/mes/base/baseStaffInfo/index.vue index 67d1a90..e2ea789 100644 --- a/src/views/mes/base/baseStaffInfo/index.vue +++ b/src/views/mes/base/baseStaffInfo/index.vue @@ -113,6 +113,7 @@ + @@ -170,9 +171,9 @@ - - - + + + + + + @@ -240,6 +244,7 @@ export default { loading: true, // 选中数组 ids: [], + codes: [], // 非单个禁用 single: true, // 非多个禁用 @@ -265,7 +270,9 @@ export default { teamCode: null, phoneNumber: null, sex: null, - passWord: null + passWord: null, + wageCoefficient: null, + delFlag: '0' }, // 表单参数 form: {}, @@ -289,7 +296,7 @@ export default { { key: 1, label: `员工ID`, visible: true }, { key: 2, label: `员工名称`, visible: true }, { key: 3, label: `员工类型`, visible: true }, - { key: 4, label: `卡号`, visible: true }, + { key: 4, label: `卡号`, visible: false }, { key: 5, label: `班组编号`, visible: true }, { key: 6, label: `手机号`, visible: true }, { key: 7, label: `用户性别`, visible: true }, @@ -299,7 +306,8 @@ export default { { key: 11, label: `创建时间`, visible: true }, { key: 12, label: `更新者`, visible: false }, { key: 13, label: `更新时间`, visible: false }, - { key: 14, label: `备注`, visible: false } + { key: 14, label: `备注`, visible: false }, + { key: 15, label: `工资系数`, visible: true }, ], // 班组选项 teamMembersList: [] @@ -343,6 +351,7 @@ export default { createTime: null, updateBy: null, updateTime: null, + wageCoefficient: 1, remark: null } this.resetForm('form') @@ -360,6 +369,7 @@ export default { // 多选框选中数据 handleSelectionChange(selection) { this.ids = selection.map(item => item.objId) + this.codes = selection.map(item => item.staffId) this.single = selection.length !== 1 this.multiple = !selection.length }, @@ -401,8 +411,8 @@ export default { }, /** 删除按钮操作 */ handleDelete(row) { - const objIds = row.objId || this.ids - this.$modal.confirm('是否确认删除员工信息编号为"' + objIds + '"的数据项?').then(function() { + const objIds = row.objId || this.codes + this.$modal.confirm('是否确认删除员工编号为"' + objIds + '"的数据项?').then(function() { return delBaseStaffInfo(objIds) }).then(() => { this.getList() diff --git a/src/views/mes/base/processInfo/index.vue b/src/views/mes/base/processInfo/index.vue new file mode 100644 index 0000000..0fa6368 --- /dev/null +++ b/src/views/mes/base/processInfo/index.vue @@ -0,0 +1,402 @@ + + +