From 0fa228f07b7d0e7cf752ae9838b52f7b1f9ad163 Mon Sep 17 00:00:00 2001 From: TengXF <302828528@qq.com> Date: Sun, 28 Apr 2024 08:34:50 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20Add=20=E6=96=B0=E5=A2=9E=E4=BA=A7?= =?UTF-8?q?=E5=93=81=E7=A6=BB=E7=BA=BF=E3=80=81=E8=BF=94=E7=BA=BF=E3=80=81?= =?UTF-8?q?=E8=BF=94=E5=B7=A5=E8=BF=94=E4=BF=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/mes/dict/dictApi.ts | 21 + .../mes/productBackline/productBacklineApi.ts | 15 + .../mes/productOffline/productOfflineApi.ts | 23 ++ src/api/mes/reworkBatch/reworkBatchApi.ts | 15 + src/api/mes/reworkSingle/reworkSingleApi.ts | 15 + src/pages.json | 78 ++++ .../productBackline/createProductBackline.vue | 229 +++++++++++ src/pages/mes/productBackline/detail.vue | 319 +++++++++++++++ src/pages/mes/productBackline/handle.vue | 339 ++++++++++++++++ src/pages/mes/productBackline/index.vue | 210 ++++++++++ .../productOffline/createProductOffline.vue | 244 ++++++++++++ src/pages/mes/productOffline/detail.vue | 311 +++++++++++++++ src/pages/mes/productOffline/handle.vue | 373 ++++++++++++++++++ src/pages/mes/productOffline/index.vue | 279 +++++++++++++ src/pages/mes/reworkBatch/create.vue | 267 +++++++++++++ src/pages/mes/reworkBatch/index.vue | 326 +++++++++++++++ src/pages/mes/reworkSingle/create.vue | 303 ++++++++++++++ src/pages/mes/reworkSingle/handle.vue | 349 ++++++++++++++++ src/pages/mes/reworkSingle/index.vue | 320 +++++++++++++++ src/static/menus/mes/reworkSingle.svg | 1 + 20 files changed, 4037 insertions(+) create mode 100644 src/api/mes/dict/dictApi.ts create mode 100644 src/api/mes/productBackline/productBacklineApi.ts create mode 100644 src/api/mes/productOffline/productOfflineApi.ts create mode 100644 src/api/mes/reworkBatch/reworkBatchApi.ts create mode 100644 src/api/mes/reworkSingle/reworkSingleApi.ts create mode 100644 src/pages/mes/productBackline/createProductBackline.vue create mode 100644 src/pages/mes/productBackline/detail.vue create mode 100644 src/pages/mes/productBackline/handle.vue create mode 100644 src/pages/mes/productBackline/index.vue create mode 100644 src/pages/mes/productOffline/createProductOffline.vue create mode 100644 src/pages/mes/productOffline/detail.vue create mode 100644 src/pages/mes/productOffline/handle.vue create mode 100644 src/pages/mes/productOffline/index.vue create mode 100644 src/pages/mes/reworkBatch/create.vue create mode 100644 src/pages/mes/reworkBatch/index.vue create mode 100644 src/pages/mes/reworkSingle/create.vue create mode 100644 src/pages/mes/reworkSingle/handle.vue create mode 100644 src/pages/mes/reworkSingle/index.vue create mode 100644 src/static/menus/mes/reworkSingle.svg diff --git a/src/api/mes/dict/dictApi.ts b/src/api/mes/dict/dictApi.ts new file mode 100644 index 0000000..886848d --- /dev/null +++ b/src/api/mes/dict/dictApi.ts @@ -0,0 +1,21 @@ +import http from '../../http' + + +// 获取字典 +export function getDictList(type) { + return http.get('/system/dict-data/queryByDictType?dictType=' + type) +} +export async function getDict(type) { + let data =[] + await getDictList(type).then((res) => { + if (res.code == 0) { + data = res.data.map(item=>{ + return { + label:item.label, + value:item.value, + } + }) + } else {} + }).catch((err) => {}) + return data +} \ No newline at end of file diff --git a/src/api/mes/productBackline/productBacklineApi.ts b/src/api/mes/productBackline/productBacklineApi.ts new file mode 100644 index 0000000..3c4b73d --- /dev/null +++ b/src/api/mes/productBackline/productBacklineApi.ts @@ -0,0 +1,15 @@ +import http from '../../http' + + +// 产品离线登记列表 +export function getPage(params) { + return http.get('/mes/product-backline/page',{params}) +} + +export function changeStatus(data) { + return http.put('/mes/product-backline/update',data) +} + +export function create(data) { + return http.post('/mes/product-backline/create',data) +} \ No newline at end of file diff --git a/src/api/mes/productOffline/productOfflineApi.ts b/src/api/mes/productOffline/productOfflineApi.ts new file mode 100644 index 0000000..88a935b --- /dev/null +++ b/src/api/mes/productOffline/productOfflineApi.ts @@ -0,0 +1,23 @@ +import http from '../../http' + + +// 产品离线登记列表 +export function getPage(params) { + return http.get('/mes/product-offline/page',{params}) +} + +export function changeStatus(data) { + return http.put('/mes/product-offline/update',data) +} + +export function create(data) { + return http.post('/mes/product-offline/create',data) +} + +export function getPageChildren(params) { + return http.get('/wms/team/getPageChildren',{params}) +} + +export function getworkSchedulingPage(params) { + return http.get('/mes/work-scheduling/page',{params}) +} \ No newline at end of file diff --git a/src/api/mes/reworkBatch/reworkBatchApi.ts b/src/api/mes/reworkBatch/reworkBatchApi.ts new file mode 100644 index 0000000..e8d91b2 --- /dev/null +++ b/src/api/mes/reworkBatch/reworkBatchApi.ts @@ -0,0 +1,15 @@ +import http from '../../http' + + +// 产品离线登记列表 +export function getPage(params) { + return http.get('/mes/rework-batch/page',{params}) +} + +export function update(data) { + return http.put('/mes/rework-batch/update',data) +} + +export function create(data) { + return http.post('/mes/rework-batch/create',data) +} diff --git a/src/api/mes/reworkSingle/reworkSingleApi.ts b/src/api/mes/reworkSingle/reworkSingleApi.ts new file mode 100644 index 0000000..5ba5667 --- /dev/null +++ b/src/api/mes/reworkSingle/reworkSingleApi.ts @@ -0,0 +1,15 @@ +import http from '../../http' + + +// 产品离线登记列表 +export function getPage(params) { + return http.get('/mes/rework-single/page',{params}) +} + +export function update(data) { + return http.put('/mes/rework-single/update',data) +} + +export function create(data) { + return http.post('/mes/rework-single/create',data) +} diff --git a/src/pages.json b/src/pages.json index 2a933bf..6ac7c30 100644 --- a/src/pages.json +++ b/src/pages.json @@ -1955,7 +1955,85 @@ "navigationBarTitleText": "工序报工", "enablePullDownRefresh": true } + }, + { + "path": "pages/mes/productOffline/index", + "style": { + "navigationBarTitleText": "产品离线登记", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/mes/productOffline/handle", + "style": { + "navigationBarTitleText": "处理产品离线登记", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/mes/productOffline/createProductOffline", + "style": { + "navigationBarTitleText": "创建产品离线登记", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/mes/productBackline/index", + "style": { + "navigationBarTitleText": "产品返线登记", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/mes/productBackline/detail", + "style": { + "navigationBarTitleText": "产品返线登记详情", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/mes/productBackline/handle", + "style": { + "navigationBarTitleText": "处理产品返线登记", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/mes/productBackline/createProductBackline", + "style": { + "navigationBarTitleText": "创建产品返线登记", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/mes/reworkSingle/index", + "style": { + "navigationBarTitleText": "返工返修单件管理", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/mes/reworkSingle/create", + "style": { + "navigationBarTitleText": "创建返工返修登记", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/mes/reworkBatch/index", + "style": { + "navigationBarTitleText": "返工返修批量管理", + "enablePullDownRefresh": true + } + }, + { + "path": "pages/mes/reworkBatch/create", + "style": { + "navigationBarTitleText": "批量创建返工返修登记", + "enablePullDownRefresh": true + } } + ], diff --git a/src/pages/mes/productBackline/createProductBackline.vue b/src/pages/mes/productBackline/createProductBackline.vue new file mode 100644 index 0000000..efd171c --- /dev/null +++ b/src/pages/mes/productBackline/createProductBackline.vue @@ -0,0 +1,229 @@ + + + + + \ No newline at end of file diff --git a/src/pages/mes/productBackline/detail.vue b/src/pages/mes/productBackline/detail.vue new file mode 100644 index 0000000..c7ca945 --- /dev/null +++ b/src/pages/mes/productBackline/detail.vue @@ -0,0 +1,319 @@ + + + + + \ No newline at end of file diff --git a/src/pages/mes/productBackline/handle.vue b/src/pages/mes/productBackline/handle.vue new file mode 100644 index 0000000..79d10a3 --- /dev/null +++ b/src/pages/mes/productBackline/handle.vue @@ -0,0 +1,339 @@ + + + + + \ No newline at end of file diff --git a/src/pages/mes/productBackline/index.vue b/src/pages/mes/productBackline/index.vue new file mode 100644 index 0000000..275fba8 --- /dev/null +++ b/src/pages/mes/productBackline/index.vue @@ -0,0 +1,210 @@ + + + + + \ No newline at end of file diff --git a/src/pages/mes/productOffline/createProductOffline.vue b/src/pages/mes/productOffline/createProductOffline.vue new file mode 100644 index 0000000..e089cc2 --- /dev/null +++ b/src/pages/mes/productOffline/createProductOffline.vue @@ -0,0 +1,244 @@ + + + + + \ No newline at end of file diff --git a/src/pages/mes/productOffline/detail.vue b/src/pages/mes/productOffline/detail.vue new file mode 100644 index 0000000..dc3312e --- /dev/null +++ b/src/pages/mes/productOffline/detail.vue @@ -0,0 +1,311 @@ + + + + + \ No newline at end of file diff --git a/src/pages/mes/productOffline/handle.vue b/src/pages/mes/productOffline/handle.vue new file mode 100644 index 0000000..54cbb51 --- /dev/null +++ b/src/pages/mes/productOffline/handle.vue @@ -0,0 +1,373 @@ + + + + + \ No newline at end of file diff --git a/src/pages/mes/productOffline/index.vue b/src/pages/mes/productOffline/index.vue new file mode 100644 index 0000000..fedade4 --- /dev/null +++ b/src/pages/mes/productOffline/index.vue @@ -0,0 +1,279 @@ + + + + + \ No newline at end of file diff --git a/src/pages/mes/reworkBatch/create.vue b/src/pages/mes/reworkBatch/create.vue new file mode 100644 index 0000000..c6a9d85 --- /dev/null +++ b/src/pages/mes/reworkBatch/create.vue @@ -0,0 +1,267 @@ + + + + + \ No newline at end of file diff --git a/src/pages/mes/reworkBatch/index.vue b/src/pages/mes/reworkBatch/index.vue new file mode 100644 index 0000000..c2ac32c --- /dev/null +++ b/src/pages/mes/reworkBatch/index.vue @@ -0,0 +1,326 @@ + + + + + \ No newline at end of file diff --git a/src/pages/mes/reworkSingle/create.vue b/src/pages/mes/reworkSingle/create.vue new file mode 100644 index 0000000..bb75146 --- /dev/null +++ b/src/pages/mes/reworkSingle/create.vue @@ -0,0 +1,303 @@ + + + + + \ No newline at end of file diff --git a/src/pages/mes/reworkSingle/handle.vue b/src/pages/mes/reworkSingle/handle.vue new file mode 100644 index 0000000..b9e8b93 --- /dev/null +++ b/src/pages/mes/reworkSingle/handle.vue @@ -0,0 +1,349 @@ + + + + + \ No newline at end of file diff --git a/src/pages/mes/reworkSingle/index.vue b/src/pages/mes/reworkSingle/index.vue new file mode 100644 index 0000000..c2f9a05 --- /dev/null +++ b/src/pages/mes/reworkSingle/index.vue @@ -0,0 +1,320 @@ + + + + + \ No newline at end of file diff --git a/src/static/menus/mes/reworkSingle.svg b/src/static/menus/mes/reworkSingle.svg new file mode 100644 index 0000000..e310f68 --- /dev/null +++ b/src/static/menus/mes/reworkSingle.svg @@ -0,0 +1 @@ + \ No newline at end of file