From 25ccc756b6e9e38ec225c5f5eb1b1c2c9f77cd54 Mon Sep 17 00:00:00 2001 From: guoshuang Date: Wed, 6 Mar 2024 14:20:50 +0800 Subject: [PATCH] =?UTF-8?q?wms=E5=BA=93=E5=86=85=E8=BD=AC=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages.json | 8 + .../TransferInlibrary/index.vue | 501 ++++++++++++++++++ .../TransferInlibrary/model.ts | 32 ++ .../WhiteManagement/WhiteOutstorage/index.vue | 2 +- src/pages/wms/index.vue | 24 +- src/utils/page.ts | 1 + src/utils/url.ts | 3 + 7 files changed, 547 insertions(+), 24 deletions(-) create mode 100644 src/pages/wms/WhiteManagement/TransferInlibrary/index.vue create mode 100644 src/pages/wms/WhiteManagement/TransferInlibrary/model.ts diff --git a/src/pages.json b/src/pages.json index c42e924..96acbbc 100644 --- a/src/pages.json +++ b/src/pages.json @@ -463,6 +463,14 @@ "navigationStyle": "custom", "navigationBarTextStyle": "white" } + }, + { + "path": "pages/wms/WhiteManagement/TransferInlibrary/index", + "style": { + "navigationBarTitleText": "库内转存", + "navigationStyle": "custom", + "navigationBarTextStyle": "white" + } } diff --git a/src/pages/wms/WhiteManagement/TransferInlibrary/index.vue b/src/pages/wms/WhiteManagement/TransferInlibrary/index.vue new file mode 100644 index 0000000..a970bd6 --- /dev/null +++ b/src/pages/wms/WhiteManagement/TransferInlibrary/index.vue @@ -0,0 +1,501 @@ + + + + diff --git a/src/pages/wms/WhiteManagement/TransferInlibrary/model.ts b/src/pages/wms/WhiteManagement/TransferInlibrary/model.ts new file mode 100644 index 0000000..2676648 --- /dev/null +++ b/src/pages/wms/WhiteManagement/TransferInlibrary/model.ts @@ -0,0 +1,32 @@ +import { getModule, Module, MutationAction, VuexModule } from 'vuex-module-decorators'; +import store from '@/store'; +import http from '@/utils/request'; +import { url } from '@/utils/url'; +import { session } from '@/store/modules/session'; +@Module({ + namespaced: true, + dynamic: true, + store, + name: 'page.WhiteManagement.TransferInlibrary', +}) +export class TransferInlibrary extends VuexModule { + SubmitCode: any = ''; + @MutationAction + async out(params: any) { + const result: any = await http.post(url.lanjuwms.WhiteManagement.TransferInlibrary.WhiteWarehouseDump, params); + const SubmitCode = result.code; + return { SubmitCode }; + } + scanquerydata: any = {}; + @MutationAction + async scanquery(params: any) { + const result: any = await http.post(url.lanjuwms.WhiteManagement.WhiteOutstorage.selectQueryTrayInfor, { + sn: params, + factoryCode: session.FactoryCode, + }); + const scanquerydata = result.data; + return { scanquerydata }; + } +} + +export default getModule(TransferInlibrary); diff --git a/src/pages/wms/WhiteManagement/WhiteOutstorage/index.vue b/src/pages/wms/WhiteManagement/WhiteOutstorage/index.vue index 6b82eec..e0f9d93 100644 --- a/src/pages/wms/WhiteManagement/WhiteOutstorage/index.vue +++ b/src/pages/wms/WhiteManagement/WhiteOutstorage/index.vue @@ -54,7 +54,7 @@ - + diff --git a/src/pages/wms/index.vue b/src/pages/wms/index.vue index 8aa3c9a..9b8f6a4 100644 --- a/src/pages/wms/index.vue +++ b/src/pages/wms/index.vue @@ -150,31 +150,9 @@ :label="item.menuName" label-pos="bottom" size="80" - :name="item.menuName == '白胚入库' ? '../../static/icons/icon-54.png' : '../../static/icons/icon-55.png'" + :name="item.menuName == '白胚入库' ? '../../static/icons/icon-54.png' : item.menuName == '白胚出库' ? '../../static/icons/icon-55.png' : '../../static/icons/icon-56.png'" > - - diff --git a/src/utils/page.ts b/src/utils/page.ts index 51eb061..3a448f6 100644 --- a/src/utils/page.ts +++ b/src/utils/page.ts @@ -36,5 +36,6 @@ export const page = { MatReturnWH: '/pages/wms/Raw/MatReturnWH/index', WhiteInstorage: '/pages/wms/WhiteManagement/WhiteInstorage/index', WhiteOutstorage: '/pages/wms/WhiteManagement/WhiteOutstorage/index', + TransferInlibrary: '/pages/wms/WhiteManagement/TransferInlibrary/index', }, }; diff --git a/src/utils/url.ts b/src/utils/url.ts index 5b0196a..22d9cca 100644 --- a/src/utils/url.ts +++ b/src/utils/url.ts @@ -112,6 +112,9 @@ export const url = { selectQueryTrayInfor: qianzhuione + '/wms/WmsToWCSmission/selectQueryTrayInfor', WhiteEmbryoOutbound: qianzhuione + '/wms/WmsToWCSmission/WhiteEmbryoOutbound', }, + TransferInlibrary: { + WhiteWarehouseDump: qianzhuione + '/wms/WmsToWCSmission/WhiteWarehouseDump', + }, }, }, // 设备管理