From 57a6ab4d1697d6ea498689da5fe1462fa41ab68d Mon Sep 17 00:00:00 2001
From: sunshine <1467939124@qq.com>
Date: Wed, 14 Aug 2024 11:05:33 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E4=BD=8D=E5=AE=89=E6=8E=92?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/mes/deskArrangement.js | 45 ++++
src/api/system/dict/data.js | 9 +-
src/pages.json | 12 +
.../application/components/assigningWork.vue | 140 +++++++++++
.../components/deskArrangement.vue | 217 +++++++++++++++++-
.../components/deskArrangementHandle.vue | 167 ++++++++++++++
6 files changed, 588 insertions(+), 2 deletions(-)
create mode 100644 src/api/mes/deskArrangement.js
create mode 100644 src/pages/application/components/assigningWork.vue
create mode 100644 src/pages/application/components/deskArrangementHandle.vue
diff --git a/src/api/mes/deskArrangement.js b/src/api/mes/deskArrangement.js
new file mode 100644
index 0000000..98201be
--- /dev/null
+++ b/src/api/mes/deskArrangement.js
@@ -0,0 +1,45 @@
+import request from '@/utils/request'
+
+// 查询产线工位列表
+export function getListOrgWorker(params) {
+ return request({
+ url: '/admin-api/mes/organization/listOrgWorker',
+ method: 'GET',
+ params: params
+ })
+}
+
+// 获得班组成员
+export function getUserList2(params) {
+ return request({
+ url: '/admin-api/mes/work-team/work-team-detail/getUserList2',
+ method: 'GET',
+ params: params
+ })
+}
+
+// 多个日期新增工位安排
+export function createWorker(params) {
+ return request({
+ url: '/admin-api/mes/org-worker/createWorker',
+ method: 'GET',
+ params: params
+ })
+}
+
+// 查询工位安排分页
+export function getOrgWorkerPage(params) {
+ return request({
+ url: '/admin-api/mes/org-worker/page',
+ method: 'GET',
+ params: params
+ })
+}
+
+// 删除工位安排
+export function deleteOrgWorker(id) {
+ return request({
+ url: '/admin-api/mes/org-worker/delete?id='+id,
+ method: 'DELETE'
+ })
+}
diff --git a/src/api/system/dict/data.js b/src/api/system/dict/data.js
index 008d281..2014d62 100644
--- a/src/api/system/dict/data.js
+++ b/src/api/system/dict/data.js
@@ -56,6 +56,13 @@ export const deviceTypes=[
{text: '水表', value: '水表'},
{text: '燃气表', value: '燃气表'},
]
+
+export const organizationalStatus=[
+ {text: '关闭', value: 'close'},
+ {text: '空闲', value: 'free'},
+ {text: '使用', value: 'inuse'},
+]
+
export const isEnable=[
{text: '是', value: true},
{text: '否', value: false},
@@ -81,4 +88,4 @@ export const feedingTypes = [
export function findTextByValue(enums,value){
const foundItem = enums.find(item => item.value === value);
return foundItem ? foundItem.text : null;
-}
\ No newline at end of file
+}
diff --git a/src/pages.json b/src/pages.json
index 0344f26..0d54f78 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -70,6 +70,18 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "pages/application/components/deskArrangementHandle",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "pages/application/components/assigningWork",
+ "style": {
+ "navigationStyle": "custom"
+ }
+ },
{
"path": "pages/application/components/energyEquipment",
"style": {
diff --git a/src/pages/application/components/assigningWork.vue b/src/pages/application/components/assigningWork.vue
new file mode 100644
index 0000000..c5adc0b
--- /dev/null
+++ b/src/pages/application/components/assigningWork.vue
@@ -0,0 +1,140 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 确定
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/application/components/deskArrangement.vue b/src/pages/application/components/deskArrangement.vue
index 7f5cff5..c2bd429 100644
--- a/src/pages/application/components/deskArrangement.vue
+++ b/src/pages/application/components/deskArrangement.vue
@@ -12,14 +12,229 @@
safe-area-inset-top
placeholder
/>
+
+
+
+
+
+
+
+
+ 搜索
+
+
+
+
+
+
+
+
+
+
+ 组织名称:
+
+
+ 组织等级:
+
+
+
+
+ 类型:
+
+
+ 今日工人:
+
+
+
+
+
+ 派工
+
+
+
+
+
+
+
+
-
diff --git a/src/pages/application/components/deskArrangementHandle.vue b/src/pages/application/components/deskArrangementHandle.vue
new file mode 100644
index 0000000..e60b7a6
--- /dev/null
+++ b/src/pages/application/components/deskArrangementHandle.vue
@@ -0,0 +1,167 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 工作日期:
+
+
+ 工位:
+
+
+
+
+ 班别:
+
+
+ 工人:
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+