From 33802c4aaedfa9ec865d0ba16f4a4a0970492a8a Mon Sep 17 00:00:00 2001
From: shilixia <2309368887@qq.com>
Date: Mon, 25 Oct 2021 09:01:57 +0800
Subject: [PATCH] ziyuan
---
hb_client/src/api/pm.js | 17 ++
hb_client/src/router/index.js | 22 ++
hb_client/src/views/mtm/material.vue | 25 +-
hb_client/src/views/mtm/materialdo.vue | 81 ++++++-
hb_client/src/views/mtm/productprocess.vue | 13 +-
hb_client/src/views/pm/plan.vue | 7 +-
hb_client/src/views/pm/work.vue | 116 ++++++++-
hb_client/src/views/wpm/testitem.vue | 258 +++++++++++++++++++++
hb_client/src/views/wpm/worktask.vue | 107 +++++++++
9 files changed, 625 insertions(+), 21 deletions(-)
create mode 100644 hb_client/src/views/wpm/testitem.vue
create mode 100644 hb_client/src/views/wpm/worktask.vue
diff --git a/hb_client/src/api/pm.js b/hb_client/src/api/pm.js
index 6fb9dc8..e25b788 100644
--- a/hb_client/src/api/pm.js
+++ b/hb_client/src/api/pm.js
@@ -55,3 +55,20 @@ export function updatesubproductionplan(id, data) {
data
})
}
+//子计划详情
+
+export function getProgress(id) {
+ return request({
+ url: `/pm/subproduction_plan/${id}/progress/`,
+ method: 'get'
+ })
+}
+
+//子计划下达
+export function issuesubplan(id) {
+ return request({
+ url: `/pm/subproduction_plan/${id}/issue/`,
+ method: 'post',
+
+ })
+}
\ No newline at end of file
diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js
index 19400d5..0cd776d 100644
--- a/hb_client/src/router/index.js
+++ b/hb_client/src/router/index.js
@@ -166,6 +166,28 @@ export const asyncRoutes = [
meta: { title: '生产作业管理', icon: 'example', perms: ['index_manage'] }
}
]
+ }
+ ,
+ {
+ path: '/wpm',
+ component: Layout,
+ redirect: '/wpm/worktask',
+ name: 'pm',
+ meta: { title: '车间生产', icon: 'example', perms: ['equipment_set'] },
+ children: [
+ {
+ path: 'worktask',
+ name: 'worktask',
+ component: () => import('@/views/wpm/worktask'),
+ meta: { title: '车间任务', icon: 'example', perms: ['index_manage'] }
+ },
+ {
+ path: 'testitem',
+ name: 'testitem',
+ component: () => import('@/views/wpm/testitem'),
+ meta: { title: '检测项目', icon: 'example', perms: ['index_manage'] }
+ }
+ ]
},
{
path: '/em',
diff --git a/hb_client/src/views/mtm/material.vue b/hb_client/src/views/mtm/material.vue
index 7ad836a..0fb5b3e 100644
--- a/hb_client/src/views/mtm/material.vue
+++ b/hb_client/src/views/mtm/material.vue
@@ -44,10 +44,31 @@
>
- {{ scope.row.number }}
+
+
+ {{ scope.row.number }}
+
-
{{options_[scope.row.type]}}
diff --git a/hb_client/src/views/mtm/materialdo.vue b/hb_client/src/views/mtm/materialdo.vue
index 85efa25..880f687 100644
--- a/hb_client/src/views/mtm/materialdo.vue
+++ b/hb_client/src/views/mtm/materialdo.vue
@@ -158,23 +158,39 @@
v-el-height-adaptive-table="{bottomOffset: 50}"
>
-
-
+
+
+ {{ scope.row.field_name }}
+
+
{{ options_[scope.row.field_type] }}
-
- {{ scope.row.field_name }}
-
+
{{ scope.row.field_key }}
-
-
- {{ scope.row.field_choice }}
+
+ {{ scope.row.high_limit }}
+
+ {{ highoptionss_[scope.row.high_rule] }}
+
+
+ {{ scope.row.low_limit }}
+
+
+ {{ lowoptionss_[scope.row.low_rule] }}
+
+
+
+ 是
+ 是
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -266,7 +312,7 @@
};
const defaultfield = {
-
+
};
export default {
components: { Pagination,vueJsonEditor },
@@ -278,6 +324,7 @@
upUrl: upUrl(),
fileList:[],
listLoading: true,
+ need_judge:false,
dialogVisibles: false,
dialogVisibleForm: false,
dialogTypes: "new",
@@ -317,6 +364,20 @@
page: 1,
page_size: 20,
},
+ highoptions:[{ value: 1,
+ label: '<'},{ value: 2,
+ label: '<='}],
+ lowoptions:[{ value: 1,
+ label: '>'},{ value: 2,
+ label: '>='}],
+ highoptionss_:{
+ 1: '<',
+ 2: '<='
+ },
+ lowoptionss_:{
+ 1: '>',
+ 2: '>='
+ },
options_: {
'string':'文本',
'int':'整数',
diff --git a/hb_client/src/views/mtm/productprocess.vue b/hb_client/src/views/mtm/productprocess.vue
index 71f5e65..686b7d6 100644
--- a/hb_client/src/views/mtm/productprocess.vue
+++ b/hb_client/src/views/mtm/productprocess.vue
@@ -283,6 +283,12 @@
{{ scope.row.count }}
+
+
+ 是
+ 否
+
+
@@ -315,7 +321,7 @@
@@ -334,6 +340,10 @@
+
+
+
+
@@ -51,6 +51,7 @@
{{ scope.row.order_.delivery_date }}
+
否
@@ -95,6 +96,7 @@
fit
stripe
style="width: 100%"
+ height="250"
>
@@ -125,6 +127,7 @@
{{ scope.row.delivery_date }}
+
{{ scope.row.create_time }}
@@ -235,6 +238,7 @@ export default {
number: [{ required: true, message: "请输入", trigger: "blur" }],
},
+
};
},
computed: {},
@@ -301,6 +305,7 @@ export default {
await createsubplan(scope.row.id).then((res) => {
if (res.code >= 200) {
this.$message.success("生成子计划成功!");
+ this.getplanList()
}
});
})
diff --git a/hb_client/src/views/pm/work.vue b/hb_client/src/views/pm/work.vue
index 7c5d590..4f6a2f2 100644
--- a/hb_client/src/views/pm/work.vue
+++ b/hb_client/src/views/pm/work.vue
@@ -26,6 +26,16 @@
{{ scope.row.process_.number }}
+
+
+
+ {{item.name}}
+
+
+
{{ scope.row.start_date }}
@@ -33,7 +43,9 @@
{{ scope.row.end_date }}
-
+
+ {{ state_[scope.row.state] }}
+
{{ scope.row.create_time }}
@@ -43,11 +55,21 @@
width="100px"
>
-
编辑修改日期
+ 下达
+
+ 查看详情
@@ -99,10 +121,55 @@
确认
+
+
+
+
+
+
+
+
+ {{ scope.row.count }}
+
+
+ {{ scope.row.count_real }}
+
+
+ {{ scope.row.subproduction_plan }}
+
+
+ {{ scope.row.material_.name }}
+
+
+ {{ scope.row.material_.number }}
+
+
+ {{ scope.row.material_.specification }}
+
+
+ {{ scope.row.material_.unit }}
+
+
+
+
+
+ 取消
+
+
+
diff --git a/hb_client/src/views/wpm/worktask.vue b/hb_client/src/views/wpm/worktask.vue
new file mode 100644
index 0000000..08a5463
--- /dev/null
+++ b/hb_client/src/views/wpm/worktask.vue
@@ -0,0 +1,107 @@
+
+
+
+
+ 生产任务列表
+
+
+
+
+
+
+
+
+
+ {{ scope.row.workshop_.name }}
+
+
+ {{ scope.row.process_.name }}
+
+
+ {{ scope.row.process_.number }}
+
+
+
+ {{item.name}}
+
+
+
+
+
+ {{ scope.row.start_date }}
+
+
+ {{ scope.row.end_date }}
+
+
+
+ {{ scope.row.create_time }}
+
+
+
+
+
+
+
+
+
\ No newline at end of file