From 7396f94d853a829928c5f421c56621a013500754 Mon Sep 17 00:00:00 2001 From: YangBin <18314537803@163.com> Date: Thu, 22 Jan 2026 16:15:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/wms/project.js | 29 +++- manifest.json | 2 +- pages/login.vue | 2 +- pages/work/wms/AutoCallEmptyCage.vue | 20 +-- pages/work/wms/emptyCagePutAway.vue | 6 +- pages/work/wms/outboundUnbind.vue | 110 +++++++++++- pages/work/wms/outboundUnbindBak.vue | 239 +++++++++++++++++++++++++++ static/json/dynamicRouter.json | 2 +- store/modules/user.js | 24 +-- 9 files changed, 402 insertions(+), 32 deletions(-) create mode 100644 pages/work/wms/outboundUnbindBak.vue diff --git a/api/wms/project.js b/api/wms/project.js index 89153ca..a58beb6 100644 --- a/api/wms/project.js +++ b/api/wms/project.js @@ -21,9 +21,18 @@ export const containerMove = data => { } /** 查询货位托盘 */ -export const qureyPalletInfoByLocCode = data => { +export const queryPalletInfoByLocCode = data => { return request({ - url: apiPrefix + 'qureyPalletInfoByLocCode', + url: apiPrefix + 'queryPalletInfoByLocCode', + params: data, + method: 'GET' + }) +} + +/** 查询货位托盘 */ +export const queryPalletInfoByPalletCode = data => { + return request({ + url: apiPrefix + 'queryPalletInfoByPalletCode', params: data, method: 'GET' }) @@ -38,5 +47,21 @@ export const fullCageOut = data => { }) } +/** 产线换型 */ +export const changeModel = data => { + return request({ + url: apiPrefix + 'changeModel', + data: data, + method: 'POST' + }) +} +/** 获取处理托盘列表 */ +export const getOutPltList = data => { + return request({ + url: apiPrefix + 'getOutPltList', + data: data, + method: 'POST' + }) +} diff --git a/manifest.json b/manifest.json index a9c81c6..11edec6 100644 --- a/manifest.json +++ b/manifest.json @@ -1,6 +1,6 @@ { "name" : "WMS_APP_v1.0", - "appid" : "__UNI__9599A70", + "appid" : "__UNI__FED6F04", "description" : "", "versionName" : "1.1.0", "versionCode" : "100", diff --git a/pages/login.vue b/pages/login.vue index f7e67fb..102b80e 100644 --- a/pages/login.vue +++ b/pages/login.vue @@ -197,7 +197,7 @@ .login-form-content { text-align: center; margin: 20px auto; - margin-top: 400px; + margin-top: clamp(20px, min(360px, calc(100vh - 240px)), 360px); width: 80%; .input-item { diff --git a/pages/work/wms/AutoCallEmptyCage.vue b/pages/work/wms/AutoCallEmptyCage.vue index d176d61..c8a08f1 100644 --- a/pages/work/wms/AutoCallEmptyCage.vue +++ b/pages/work/wms/AutoCallEmptyCage.vue @@ -2,7 +2,7 @@ 返回 - 自动呼叫空料架 + 产线换型 @@ -15,7 +15,7 @@ - + @@ -54,7 +54,7 @@ getDictionary } from "@/api/wms/dictData.js" import { - containerMove + changeModel } from "@/api/wms/project.js" import { page, @@ -71,7 +71,7 @@ return { productLineList: [], callLocCodeList: [], - callLocCode: "", + // callLocCode: "", productLineLocList: [], cacheLoc: null, @@ -138,7 +138,7 @@ }, productLineChange: function(productLine) { if(!productLine){ - this.callLocCode='' + this.formData.callLocCode='' this.callLocCodeList=[] this.formData.isAutoCall=false return @@ -166,10 +166,10 @@ this.$modal.msgError('未找到产线上料工位!') } - this.callLocCode = this.cacheLoc.ext3 + this.formData.callLocCode = this.cacheLoc.ext3 this.formData.isAutoCall = this.cacheLoc.ext4 == 'Y' - console.log("this.callLocCode", this.callLocCode, this.callLocCodeList) + // console.log("this.callLocCode", this.callLocCode, this.callLocCodeList) }); }, @@ -180,9 +180,9 @@ this.$modal.loading("请等待...") this.$refs.form.validate().then(res => { - this.cacheLoc.ext3 = this.callLocCode - this.cacheLoc.ext4 = this.formData.isAutoCall ? 'Y' : 'N' - edit(this.cacheLoc).then(response => { + // this.formData = this.callLocCode + // this.formData.productLine=this.productLine + changeModel(this.formData).then(response => { console.log("response", response) this.$modal.msgSuccess("修改成功," + response.msg) }).finally(() => { diff --git a/pages/work/wms/emptyCagePutAway.vue b/pages/work/wms/emptyCagePutAway.vue index a802c73..190693c 100644 --- a/pages/work/wms/emptyCagePutAway.vue +++ b/pages/work/wms/emptyCagePutAway.vue @@ -176,7 +176,11 @@ background: rgb(242, 243, 245); height: 100vh; } - + @media screen and (max-width: 520px) { + ::v-deep .uni-scroll-view, .uni-scroll-view-content { + height: calc(100vh - 350px); + } + } .uni-forms-item { border-bottom: 1px solid #E5E6EB; margin-bottom: 0; diff --git a/pages/work/wms/outboundUnbind.vue b/pages/work/wms/outboundUnbind.vue index 8535492..84caf3e 100644 --- a/pages/work/wms/outboundUnbind.vue +++ b/pages/work/wms/outboundUnbind.vue @@ -16,11 +16,35 @@ - + + + + + + + + + + + +
+ +
+ +

+ 货位:{{out.locCode}} 容器编号:{{out.palletCode}} +

+

+ 入库时间:{{out.entryTime}} +

+
+
+
@@ -29,7 +53,9 @@ \ No newline at end of file diff --git a/static/json/dynamicRouter.json b/static/json/dynamicRouter.json index 44cd1a7..2c048fd 100644 --- a/static/json/dynamicRouter.json +++ b/static/json/dynamicRouter.json @@ -25,7 +25,7 @@ { "path": "/pages/work/wms/AutoCallEmptyCage", "name": "AutoCallEmptyCage", - "title": "自动呼叫空料架", + "title": "产线换型", "color": "red", "icon": "/static/images/work/组合 1758.png" } diff --git a/store/modules/user.js b/store/modules/user.js index 47d81df..d07043e 100644 --- a/store/modules/user.js +++ b/store/modules/user.js @@ -100,18 +100,18 @@ const user = { // commit('SET_ROLES', ['ROLE_DEFAULT']) // } //查询用户部门信息 - if(user.deptId){ - getDeptWarehouse({deptCode:user.deptId}).then((detpData) => { - var dictionary =[]; - dictionary = detpData.data.map((item) => ({ - warehouseCode: item.houseCode, - warehouseName: item.houseName - })); - commit('SET_WH', dictionary) - }).catch(error1 => { - reject(error1) - }); - } + // if(user.deptId){ + // getDeptWarehouse({deptCode:user.deptId}).then((detpData) => { + // var dictionary =[]; + // dictionary = detpData.data.map((item) => ({ + // warehouseCode: item.houseCode, + // warehouseName: item.houseName + // })); + // commit('SET_WH', dictionary) + // }).catch(error1 => { + // reject(error1) + // }); + // } commit('SET_NAME', username) commit('SET_AVATAR', avatar) resolve(response)