diff --git a/common/style/reset.css b/common/style/reset.css
index 8e5b014..2db1231 100644
--- a/common/style/reset.css
+++ b/common/style/reset.css
@@ -57,6 +57,12 @@ input[type="button"], input[type="submit"], input[type="search"], input[type="re
justify-content: center !important;
}
+.flex-center {
+ display: flex;
+ justify-content: center;
+ align-items: center;
+}
+
.zd-row {
width: 100%;
display: flex;
@@ -141,6 +147,9 @@ input[type="button"], input[type="submit"], input[type="search"], input[type="re
.mgb10 {
margin-bottom: 10rpx;
}
+.mgt20 {
+ margin-top: 20rpx;
+}
.pdl20 {
padding-left: 20rpx;
}
diff --git a/pages.json b/pages.json
index 0d1611a..4cb5b58 100644
--- a/pages.json
+++ b/pages.json
@@ -97,6 +97,13 @@
"navigationStyle": "custom"
}
+ },
+ {
+ "path" : "pages/manage/merge-pallet",
+ "style" :
+ {
+ "navigationStyle": "custom"
+ }
}
],
"globalStyle": {
diff --git a/pages/home/home.vue b/pages/home/home.vue
index 1261a77..de87aa0 100644
--- a/pages/home/home.vue
+++ b/pages/home/home.vue
@@ -41,7 +41,8 @@
{title: '呼叫空框', icon: 'RF01', path: '/pages/manage/fill-tray'},
{title: '修改订单工序', icon: 'RF07', path: '/pages/manage/modify-process'},
{title: '呼叫物料', icon: 'RF09', path: '/pages/manage/call-mater'},
- {title: '补空框', icon: 'RF10', path: '/pages/manage/fill-empty'}
+ {title: '补空框', icon: 'RF10', path: '/pages/manage/fill-empty'},
+ {title: '合托', icon: 'RF11', path: '/pages/manage/merge-pallet'}
],
show: false,
secM: []
diff --git a/pages/manage/merge-pallet.vue b/pages/manage/merge-pallet.vue
new file mode 100644
index 0000000..53d1651
--- /dev/null
+++ b/pages/manage/merge-pallet.vue
@@ -0,0 +1,381 @@
+
+
+
+
+
+
+
+ {{pType ? '目标托盘' : '原始托盘'}}
+
+
+
+
+
+
+
+ 原始托盘:{{oPallet}}
+
+
+
+ | 800号 |
+ 物料编码 |
+ 数量 |
+
+
+
+
+ |
+
+
+
+
+
+
+ | {{e.order_code}} |
+ {{e.material_code}} |
+ {{e.material_qty}} |
+
+
+
+
+ |
+
+
+
+
+
+
+
+
+
+ 目标托盘:{{tPallet}}
+
+
+
+
+
+
+ | {{e.order_code}} |
+ {{e.material_code}} |
+ {{e.material_qty}} |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 入库托盘码
+
+
+
+
+
+
+
+ 入库点位
+
+
+
+
+
+ {{message}}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/static/image/menu/RF11.png b/static/image/menu/RF11.png
new file mode 100644
index 0000000..df4e2f4
Binary files /dev/null and b/static/image/menu/RF11.png differ
diff --git a/utils/getData2.js b/utils/getData2.js
index b59d1e7..80f96d6 100644
--- a/utils/getData2.js
+++ b/utils/getData2.js
@@ -102,4 +102,18 @@ export const getLlddw = () => request({
export const fillUpEmpty = (obj) => request({
url:'api/handheld/fillUpEmpty',
data: obj
+})
+
+// 合托
+export const checkTrayInfo = (code) => request({
+ url:'api/handheld/checkTrayInfo',
+ data: {vehicle_code: code}
+})
+export const combineMaterials = (oPallet, tPallet, data) => request({
+ url:'api/handheld/combineMaterials',
+ data: {source_vehicle_code: oPallet, target_vehicle_code: tPallet, selected_materials: data}
+})
+export const generateStoreInTask = (code, pcode, scode, tcode) => request({
+ url:'api/handheld/generateStoreInTask',
+ data: {vehicle_code: code, point_code: pcode, source_vehicle_code: scode, target_vehicle_code: tcode}
})
\ No newline at end of file
diff --git a/utils/mork2.js b/utils/mork2.js
index 84b9c66..a064f00 100644
--- a/utils/mork2.js
+++ b/utils/mork2.js
@@ -50,4 +50,144 @@ export const fillUpEmpty = (code) => {
message: 'ok'
}
return res
+}
+export const checkTrayInfo = (t) => {
+ let res
+ if (t === '1') {
+ res = {
+ "vehicle_type_name": "钢托盘",
+ "materials": [
+ {
+ "order_code": "800036430824",
+ "material_qty": 2,
+ "due_date": "",
+ "vehicle_path": null,
+ "priority": "1.0",
+ "region_code": "落料完成",
+ "material_code": "A7E0019000600_00"
+ },
+ {
+ "order_code": "OR786806",
+ "material_qty": 23,
+ "due_date": "",
+ "vehicle_path": null,
+ "priority": "5.0",
+ "region_code": "落料完成",
+ "material_code": "A7E44207473002_0A"
+ },
+ {
+ "order_code": "800036430823",
+ "material_qty": 2,
+ "due_date": "",
+ "vehicle_path": null,
+ "priority": "1.0",
+ "region_code": "落料完成",
+ "material_code": "A7E0019000590_01"
+ },
+ {
+ "order_code": "OR786807",
+ "material_qty": 20,
+ "due_date": "",
+ "vehicle_path": null,
+ "priority": "5.0",
+ "region_code": "落料完成",
+ "material_code": "A7E44207473003_0A"
+ },
+ {
+ "order_code": "800036431198",
+ "material_qty": 20,
+ "due_date": "",
+ "vehicle_path": null,
+ "priority": "8.0",
+ "region_code": "落料完成",
+ "material_code": "A7E0019008850_00"
+ }
+ ],
+ "vehicle_type": "G01",
+ "region_name": "LAG Robot Bending Cell(手动加工)",
+ "vehicle_code": "P01A00000014",
+ "point_name": "LRBC货架05-03-04",
+ "point_code": "LRBC05-03-04",
+ "region_code": "111-10"
+ }
+ }
+ if (t === '2') {
+ res = {
+ "vehicle_type_name": "钢托盘",
+ "materials": [
+ {
+ "order_code": "800036430824",
+ "material_qty": 2,
+ "due_date": "",
+ "vehicle_path": null,
+ "priority": "1.0",
+ "region_code": "落料完成",
+ "material_code": "A7E0019000600_00"
+ },
+ {
+ "order_code": "OR786806",
+ "material_qty": 23,
+ "due_date": "",
+ "vehicle_path": null,
+ "priority": "5.0",
+ "region_code": "落料完成",
+ "material_code": "A7E44207473002_0A"
+ },
+ {
+ "order_code": "800036430823",
+ "material_qty": 2,
+ "due_date": "",
+ "vehicle_path": null,
+ "priority": "1.0",
+ "region_code": "落料完成",
+ "material_code": "A7E0019000590_01"
+ },
+ {
+ "order_code": "OR786807",
+ "material_qty": 20,
+ "due_date": "",
+ "vehicle_path": null,
+ "priority": "5.0",
+ "region_code": "落料完成",
+ "material_code": "A7E44207473003_0A"
+ },
+ {
+ "order_code": "800036431198",
+ "material_qty": 20,
+ "due_date": "",
+ "vehicle_path": null,
+ "priority": "8.0",
+ "region_code": "落料完成",
+ "material_code": "A7E0019008850_00"
+ }
+ ],
+ "vehicle_type": "G02",
+ "region_name": "LAG Robot Bending Cell(手动加工)",
+ "vehicle_code": "P01A00000015",
+ "point_name": "LRBC货架05-03-04",
+ "point_code": "LRBC05-03-04",
+ "region_code": "111-10"
+ }
+ }
+ return res
+}
+export const combineMaterials = () => {
+ let res = {
+ "need_store_in": false,
+ "target_vehicle_code": "P01A00000004",
+ "success": true,
+ "message": "合托操作成功",
+ "source_vehicle_code": "P01A00000001"
+ }
+ return res
+}
+export const generateStoreInTask = () => {
+ let res = {
+ "is_second_store_in": true,
+ "success": true,
+ "message": "入库任务生成成功",
+ "vehicle_code": "P01A00000004",
+ "point_code": "SD01"
+ }
+ return res
}
\ No newline at end of file