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 @@ 离岗 + + + + + + - + + /> + + + + + + + + + +
+ 取消 + 确认 +
+
+ +
@@ -55,7 +99,8 @@ 查询
- + + - + + + + + + + +
@@ -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" - >搜索 + >搜索 重置 + >重置 - + @@ -41,13 +41,17 @@ - + - + @@ -65,13 +69,15 @@ - + @@ -81,18 +87,34 @@ align="center" label="操作" fixed="right" - width="100px" + width="150px" > @@ -105,7 +127,12 @@ @pagination="getplanList" /> - + - + - + - + - + - + - + @@ -146,28 +181,27 @@ - + - @@ -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: "待复检",