From 21c70255b85d2052421a2292713c0ce3e6d47e45 Mon Sep 17 00:00:00 2001
From: shilixia <2309368887@qq.com>
Date: Wed, 3 Nov 2021 11:27:16 +0800
Subject: [PATCH] chejian
---
hb_client/src/api/wpm.js | 17 ++
hb_client/src/router/index.js | 6 +-
hb_client/src/views/pm/resources.vue | 2 +-
.../src/views/wpm/{testitem.vue => need.vue} | 0
hb_client/src/views/wpm/worktask.vue | 262 +++++++++++++++---
5 files changed, 250 insertions(+), 37 deletions(-)
create mode 100644 hb_client/src/api/wpm.js
rename hb_client/src/views/wpm/{testitem.vue => need.vue} (100%)
diff --git a/hb_client/src/api/wpm.js b/hb_client/src/api/wpm.js
new file mode 100644
index 0000000..6fae6a3
--- /dev/null
+++ b/hb_client/src/api/wpm.js
@@ -0,0 +1,17 @@
+import request from '@/utils/request'
+
+export function createPick(data) {
+ return request({
+ url: '/wpm/wmaterial/pick/',
+ method: 'post',
+ data
+ })
+}
+
+export function getwmaterialList(query) {
+ return request({
+ url: '/wpm/wmaterial/',
+ method: 'get',
+ params: query
+ })
+}
\ No newline at end of file
diff --git a/hb_client/src/router/index.js b/hb_client/src/router/index.js
index d8f4a46..6437898 100644
--- a/hb_client/src/router/index.js
+++ b/hb_client/src/router/index.js
@@ -192,9 +192,9 @@ export const asyncRoutes = [
meta: { title: '车间任务', icon: 'example', perms: ['index_manage'] }
},
{
- path: 'testitem',
- name: 'testitem',
- component: () => import('@/views/wpm/testitem'),
+ path: 'need/:id',
+ name: 'need',
+ component: () => import('@/views/wpm/need'),
meta: { title: '检测项目', icon: 'example', perms: ['index_manage'] }
}
]
diff --git a/hb_client/src/views/pm/resources.vue b/hb_client/src/views/pm/resources.vue
index f3b4247..989daed 100644
--- a/hb_client/src/views/pm/resources.vue
+++ b/hb_client/src/views/pm/resources.vue
@@ -238,7 +238,7 @@ export default {
//物料计算
handlecount()
{
- console.log()
+
let _this=this
_this.mutipID=[]
this.$refs.multipleTable.selection.forEach((item) => {
diff --git a/hb_client/src/views/wpm/testitem.vue b/hb_client/src/views/wpm/need.vue
similarity index 100%
rename from hb_client/src/views/wpm/testitem.vue
rename to hb_client/src/views/wpm/need.vue
diff --git a/hb_client/src/views/wpm/worktask.vue b/hb_client/src/views/wpm/worktask.vue
index 281ed91..2f292a0 100644
--- a/hb_client/src/views/wpm/worktask.vue
+++ b/hb_client/src/views/wpm/worktask.vue
@@ -1,10 +1,14 @@
-
-
- 生产任务列表
-
-
+
+
+
+
{{ state_[scope.row.state] }}
+
+
+ 未领料
+ 已领料
+
+
+
{{ scope.row.create_time }}
@@ -73,24 +84,70 @@
:limit.sync="listQuery.page_size"
@pagination="getspList"
/>
-
+
+
+
+
+ 车间物料
+
+
+
+
+
+
+
+
+ {{ scope.row.material_.name }}
+
+
+ {{ scope.row.material_.unit }}
+
+
+ {{ scope.row.batch }}
+
+
+ {{ scope.row.count }}
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
-
-
+
+
+
+
+
+
+
+
@@ -98,28 +155,94 @@
确认
+
+
+
+ 生产所需领料表
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 当前仓库物料表
+ 确认领料
+
+
+
+
+
+
+
+
+ \
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+