diff --git a/api/wms/bill.js b/api/wms/bill.js
index b869ee0..2c081d9 100644
--- a/api/wms/bill.js
+++ b/api/wms/bill.js
@@ -14,6 +14,15 @@ const Api = {
surplusReturn: '/api/wms/pda/surplusReturn',
manualCall: '/api/wms/pda/manualCall',
surplusOut: '/api/wms/pda/surplusOut',
+ callEmptyRackIn: '/api/wms/pda/callEmptyRackIn',
+}
+/** 空容器入库 */
+export const callEmptyRackIn = data => {
+ return request({
+ url: Api.callEmptyRackIn,
+ data: data,
+ method: 'POST'
+ })
}
/** 人工叫料 */
export const manualCall = data => {
diff --git a/api/wms/palletDetailUnBind.js b/api/wms/palletDetailUnBind.js
index fb7893f..db7802e 100644
--- a/api/wms/palletDetailUnBind.js
+++ b/api/wms/palletDetailUnBind.js
@@ -5,6 +5,8 @@ const Api = {
palletDetailUnBind: '/api/wms/pda/palletDetailUnBind',
queryPalletInfo: '/api/wms/pda/queryPalletInfo',
unBindRack: '/api/wms/pda/unBindRack',
+ queryLinePalletInfo: '/api/wms/pda/queryLinePalletInfo',
+ queryAreaByLocCode: '/api/wms/pda/queryAreaByLocCode',
}
/** 托盘明细查询 */
@@ -32,4 +34,22 @@ export const unBindRack = data => {
data: data,
method: 'POST'
})
+}
+
+/** 线边托盘信息查询 */
+export const queryLinePalletInfo = data => {
+ return request({
+ url: Api.queryLinePalletInfo,
+ params: data,
+ method: 'GET'
+ })
+}
+
+/** 根据入库站台物料类别查询可到的库区 */
+export const queryAreaByLocCode = data => {
+ return request({
+ url: Api.queryAreaByLocCode,
+ params: data,
+ method: 'GET'
+ })
}
\ No newline at end of file
diff --git a/api/wms/sku.js b/api/wms/sku.js
index 96153d0..7813175 100644
--- a/api/wms/sku.js
+++ b/api/wms/sku.js
@@ -6,6 +6,15 @@ const Api = {
lineCodeList: '/api/sys/dict/data/list',
skuTypeList: '/api/wms/skuCategory/list',
inventoryList: '/api/wms/pda/inventoryList',
+ getSkuByCode: '/api/wms/pda/getSkuByCode',
+}
+
+//获取获取单个物料
+export async function getSkuByCode(skuCode ){
+ return await request({
+ url: Api.getSkuByCode + '/' + skuCode,
+ method: 'GET'
+ })
}
//获取库存列表
diff --git a/pages.json b/pages.json
index fa9d451..88dcb25 100644
--- a/pages.json
+++ b/pages.json
@@ -99,6 +99,13 @@
"navigationBarTitleText": "物料组盘(入库)"
}
},
+ {
+ "path": "pages/work/wms/skuCreatePalletByCodeH5",
+ "navigationStyle": "custom",
+ "style": {
+ "navigationBarTitleText": "物料组盘(一码通H5)"
+ }
+ },
{
"path": "pages/work/wms/clearEmptyLoc",
"navigationStyle": "custom",
@@ -196,6 +203,18 @@
"style": {
"navigationBarTitleText": "托盘信息查询"
}
+ },
+ {
+ "path": "pages/work/wms/mesStockChange",
+ "style": {
+ "navigationBarTitleText": "Mes工位库库存变更"
+ }
+ },
+ {
+ "path": "pages/work/wms/emptyPalletIn",
+ "style": {
+ "navigationBarTitleText": "空容器入库"
+ }
}
],
"tabBar": {
diff --git a/pages/work/wms/emptyPalletIn.vue b/pages/work/wms/emptyPalletIn.vue
new file mode 100644
index 0000000..7ea1539
--- /dev/null
+++ b/pages/work/wms/emptyPalletIn.vue
@@ -0,0 +1,574 @@
+
+
+
+ 返回
+ 空容器入库
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{msgTitleName}}
+
+
+
+
+
+ {{msg}}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/work/wms/mesStockChange.vue b/pages/work/wms/mesStockChange.vue
new file mode 100644
index 0000000..91a33f1
--- /dev/null
+++ b/pages/work/wms/mesStockChange.vue
@@ -0,0 +1,563 @@
+
+
+
+ 返回
+ Mes工位库库存变更
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{msgTitleName}}
+
+
+
+
+
+ {{msg}}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/work/wms/skuCreatePallet.vue b/pages/work/wms/skuCreatePallet.vue
index 28436f6..0ee9d8d 100644
--- a/pages/work/wms/skuCreatePallet.vue
+++ b/pages/work/wms/skuCreatePallet.vue
@@ -60,7 +60,15 @@
-
+
+
+
+
+
+
+
+
+
{{callStatus}}
@@ -98,6 +106,7 @@
getSkuTypes,
getLineCodes
} from "@/api/wms/sku.js"
+ import{queryAreaByLocCode} from "@/api/wms/palletDetailUnBind.js"
import {
createPalletBySku,
callAgvIn
@@ -122,13 +131,17 @@
autoCall: true,
skuInfo: "",
callStatus: "已开启自动呼叫空容器",
+ showWarehouseArea: false,
+ warehouseAreaList: [],
//表单中的数据信息
formData: {
lineCode: '',
palletCode: "",
skuCode: "",
locCode: "",
- skuQty: ""
+ skuQty: "",
+ batch: "",
+ warehouseArea: ""
},
rules: {
lineCode: {
@@ -160,6 +173,12 @@
required: true,
errorMessage: '请输入物料数量'
}]
+ },
+ warehouseArea: {
+ rules: [{
+ required: true,
+ errorMessage: '请选择库区'
+ }]
}
},
@@ -249,6 +268,13 @@
// this.getWarehouses()
//this.getInvoicesByBusinessType()
+ // 设置 batch 为今日日期
+ const today = new Date();
+ const yyyy = today.getFullYear();
+ const mm = String(today.getMonth() + 1).padStart(2, '0');
+ const dd = String(today.getDate()).padStart(2, '0');
+ this.formData.batch = `${yyyy}-${mm}-${dd}`;
+
},
onReady() {
this.$refs.form.setRules(this.rules)
@@ -269,9 +295,23 @@
value: item.skuCode,
text: `${item.skuCode} - ${item.skuName}`
}));
+
+ // 获取物料类型对象(假设 skuTypeList 里有 treeLevel 字段)
+ const typeObj = this.skuTypeList.find(item => item.value === newVal);
+ if (typeObj && typeObj.treeLevel === 1) {
+
+
+ this.showWarehouseArea = true;
+ } else {
+ this.showWarehouseArea = false;
+ this.formData.warehouseArea = "";
+ }
}
},
methods: {
+ maskClick(e){
+ console.log('maskClick事件:', e);
+ },
onSkuInput(value) {
this.skuInput = value;
@@ -300,8 +340,26 @@
},
//去除空格
- trimLocInput(event) {
- this.formData.locCode = event.target.value.trim();
+ async trimLocInput(event) {
+ this.formData.locCode = event.target.value.trim();
+
+ if(!this.formData.locCode) {
+ //提示
+ this.$modal.msgError("请扫描货位编号")
+ return;
+ }
+
+ // 调用后端接口获取库区列表
+ let res = await queryAreaByLocCode({
+ locCode: this.formData.locCode,
+ skuType: this.skuType,
+ });
+
+ this.warehouseAreaList = res.data.map(item => ({
+ value: item.locCode,
+ text: item.locName
+ }));
+ console.log(this.warehouseAreaList)
},
/// 数据来源 [模拟]
async fetch(param) {
@@ -481,6 +539,7 @@
var data = {
locCode: this.formData.locCode,
palletCode: this.formData.palletCode,
+ warehouseArea:this.formData.warehouseArea,
autoCall: this.autoCall,
userCode: this.userCode,
warehouseCode: this.whCode
diff --git a/pages/work/wms/skuCreatePalletByCodeH5.vue b/pages/work/wms/skuCreatePalletByCodeH5.vue
new file mode 100644
index 0000000..3fe722c
--- /dev/null
+++ b/pages/work/wms/skuCreatePalletByCodeH5.vue
@@ -0,0 +1,628 @@
+
+
+
+ 返回
+ 一码通组盘 AGV入库
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{callStatus}}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{msgTitleName}}
+
+
+
+
+
+ {{msg}}
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/static/json/dynamicRouter.json b/static/json/dynamicRouter.json
index e3cd7dd..b339d89 100644
--- a/static/json/dynamicRouter.json
+++ b/static/json/dynamicRouter.json
@@ -10,9 +10,9 @@
"icon": "/static/images/work/组合 1747.png"
},
{
- "path": "/pages/work/wms/skuCreatePalletByCode",
- "name": "skuCreatePalletByCode",
- "title": "一码通入库",
+ "path": "/pages/work/wms/skuCreatePalletByCodeH5",
+ "name": "skuCreatePalletByCodeH5",
+ "title": "一码通入库(H5)",
"color": "red",
"icon": "/static/images/work/组合 1749.png"
},
@@ -61,7 +61,28 @@
"name": "surplusOut",
"title": "余料出库",
"color": "red",
- "icon": "/static/images/work/组合 1762.png"
+ "icon": "cuIcon-forward"
+ },
+ {
+ "path": "/pages/work/wms/skuCreatePalletByCode",
+ "name": "skuCreatePalletByCode",
+ "title": "一码通入库(APP)",
+ "color": "red",
+ "icon": "cuIcon-qr_code"
+ },
+ {
+ "path": "/pages/work/wms/mesStockChange",
+ "name": "mesStockChange",
+ "title": "Mes工位库库存变更",
+ "color": "red",
+ "icon": "cuIcon-exit"
+ },
+ {
+ "path": "/pages/work/wms/emptyPalletIn",
+ "name": "emptyPalletIn",
+ "title": "空容器入库",
+ "color": "red",
+ "icon": "cuIcon-forwardfill"
}
],
"msg": "成功"