From d4f59b6d6e128fc3643bdd89193e89fa3e670feb Mon Sep 17 00:00:00 2001 From: shilixia <2309368887@qq.com> Date: Fri, 18 Feb 2022 15:28:54 +0800 Subject: [PATCH 1/2] ceshi --- hb_client/src/api/hrm.js | 9 + hb_client/src/api/pm.js | 16 + hb_client/src/views/personnel/attendance.vue | 111 +++- hb_client/src/views/pm/management.vue | 14 +- hb_client/src/views/pm/plan.vue | 547 +++++++++++-------- hb_client/src/views/pm/plandetails.vue | 14 +- 6 files changed, 464 insertions(+), 247 deletions(-) diff --git a/hb_client/src/api/hrm.js b/hb_client/src/api/hrm.js index beca22f..7157794 100644 --- a/hb_client/src/api/hrm.js +++ b/hb_client/src/api/hrm.js @@ -13,3 +13,12 @@ export function clockRecord(data) { data }) } +//员工离岗说明 +export function notWork(id, data) { + return request({ + url: `/hrm/employee/${id}/not_work_remark/`, + method: 'POST', + data + }) +} + diff --git a/hb_client/src/api/pm.js b/hb_client/src/api/pm.js index 3be5316..f78b62f 100644 --- a/hb_client/src/api/pm.js +++ b/hb_client/src/api/pm.js @@ -105,3 +105,19 @@ export function createConvert(data) { data }) } +//任务终止 +export function planstop(id) { + return request({ + url: `/pm/production_plan/${id}/stop/`, + method: 'put', + + }) +} +//任务启动,暂停 +export function plantoggle(id) { + return request({ + url: `/pm/production_plan/${id}/toggle/`, + method: 'put', + + }) +} \ No newline at end of file diff --git a/hb_client/src/views/personnel/attendance.vue b/hb_client/src/views/personnel/attendance.vue index 2bc5363..d76e1dd 100644 --- a/hb_client/src/views/personnel/attendance.vue +++ b/hb_client/src/views/personnel/attendance.vue @@ -28,21 +28,65 @@ 离岗 + + {{ scope.row.not_work_remark }} + {{ scope.row.dept_.name }} + + + + 离岗说明 + + - + + /> + + + + + + + + + + + 取消 + 确认 + + + + @@ -55,7 +99,8 @@ 查询 - + + - + + + + + + + {{ data.day.split('-').slice(1).join('-') }} {{dealMyDate(data.day)}} + + + + + @@ -123,6 +181,7 @@ diff --git a/hb_client/src/views/pm/management.vue b/hb_client/src/views/pm/management.vue index d40fe31..5a2df27 100644 --- a/hb_client/src/views/pm/management.vue +++ b/hb_client/src/views/pm/management.vue @@ -132,12 +132,14 @@ export default { page_size: 20, }, state_:{ - 10:'制定中', - 20:'已下达', - 30:'已接受', - 40:'生产中', - 50:'已完成', - 60:'军检完成'}, + 10: "制定中", + 20: "已下达", + 30: "已接受", + 40: "生产中", + 50: "已完成", + 60: "军检完成", + 70: "暂停", + 80: "终止"}, listLoading: true, proList: [], diff --git a/hb_client/src/views/pm/plan.vue b/hb_client/src/views/pm/plan.vue index 3b75c6c..c104680 100644 --- a/hb_client/src/views/pm/plan.vue +++ b/hb_client/src/views/pm/plan.vue @@ -16,14 +16,14 @@ type="primary" icon="el-icon-search" @click="handleFilter" - >搜索 + >搜索 重置 + >重置 - + {{ scope.row.number }} @@ -41,13 +41,17 @@ {{ scope.row.order_.number }} - {{ scope.row.order_.contract_.number }} + {{ + scope.row.order_.contract_.number + }} {{ scope.row.product_.name }} - {{ scope.row.product_.specification }} + {{ + scope.row.product_.specification + }} {{ scope.row.product_.unit }} @@ -65,13 +69,15 @@ {{ scope.row.end_date }} - {{ scope.row.order_.delivery_date }} + {{ + scope.row.order_.delivery_date + }} - 否 - 是 + 否 + 是 @@ -81,18 +87,34 @@ align="center" label="操作" fixed="right" - width="100px" + width="150px" > - 查看子计划 + 暂停 - 生成子计划 + 启用 + + 终止 + + 查看子计划 + + 生成子计划 @@ -105,7 +127,12 @@ @pagination="getplanList" /> - + - + {{ scope.row.number }} - {{ scope.row.customer_.name }} + {{ + scope.row.customer_.name + }} - {{ scope.row.contract_.number }} + {{ + scope.row.contract_.number + }} - {{ scope.row.contract_.name }} + {{ + scope.row.contract_.name + }} - {{ scope.row.product_.name }} + {{ + scope.row.product_.name + }} - {{ scope.row.product_.specification }} + {{ + scope.row.product_.specification + }} {{ scope.row.count }} @@ -146,28 +181,27 @@ - {{ scope.row.delivery_date }} + {{ + scope.row.delivery_date + }} - {{ scope.row.create_time }} - - 排产 - - + 排产 + @@ -190,17 +224,17 @@ label-position="right" :rules="rule1" > - - + - - - 取消 + 取消 确认 - + diff --git a/hb_client/src/views/pm/plandetails.vue b/hb_client/src/views/pm/plandetails.vue index 2988bab..4c4fb99 100644 --- a/hb_client/src/views/pm/plandetails.vue +++ b/hb_client/src/views/pm/plandetails.vue @@ -134,12 +134,14 @@ page_size: 20, }, state_: { - 10: '制定中', - 20: '已下达', - 30: '已接受', - 40: '生产中', - 50: '已完成', - 60: '军检完成' + 10: "制定中", + 20: "已下达", + 30: "已接受", + 40: "生产中", + 50: "已完成", + 60: "军检完成", + 70: "暂停", + 80: "终止", }, actstate_: { 6: "待复检", From 7585796b193f1bbabc0e92da31cc13b505cf111f Mon Sep 17 00:00:00 2001 From: shilixia <2309368887@qq.com> Date: Fri, 18 Feb 2022 15:32:33 +0800 Subject: [PATCH 2/2] xiugai --- hb_client/src/api/hrm.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/hb_client/src/api/hrm.js b/hb_client/src/api/hrm.js index 8a6b551..6a2a20c 100644 --- a/hb_client/src/api/hrm.js +++ b/hb_client/src/api/hrm.js @@ -13,7 +13,6 @@ export function clockRecord(data) { data }) } -<<<<<<< HEAD //员工离岗说明 export function notWork(id, data) { return request({ @@ -23,7 +22,6 @@ export function notWork(id, data) { }) } -======= export function getEmployee(data) { return request({ url: '/hrm/employee/', @@ -31,4 +29,3 @@ export function getEmployee(data) { data }) } ->>>>>>> 802cd214bef263b51b08f9299e5a7bd9ec93b8ef
+ {{ data.day.split('-').slice(1).join('-') }} {{dealMyDate(data.day)}} +