diff --git a/apps/hand-factory/App.vue b/apps/hand-factory/App.vue
index ca4d332..d262251 100644
--- a/apps/hand-factory/App.vue
+++ b/apps/hand-factory/App.vue
@@ -6,7 +6,7 @@
export default {
onLaunch: function() {
this.initApp()
- updateManager.checkUpdate();
+ // updateManager.checkUpdate();
},
methods: {
// 初始化应用
@@ -33,7 +33,7 @@
this.$tab.reLaunch('/pages/login')
return;
}
- this.$store.dispatch('GetInfo')
+
}
}
}
diff --git a/apps/hand-factory/api/wms/actualWarehouse.js b/apps/hand-factory/api/wms/actualWarehouse.js
new file mode 100644
index 0000000..b9edb67
--- /dev/null
+++ b/apps/hand-factory/api/wms/actualWarehouse.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询实际库区/库位自关联列表
+export function listActualWarehouse(query) {
+ return request({
+ url: '/wms/actualWarehouse/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询实际库区/库位自关联详细
+export function getActualWarehouse(actualWarehouseId) {
+ return request({
+ url: '/wms/actualWarehouse/' + actualWarehouseId,
+ method: 'get'
+ })
+}
+
+// 新增实际库区/库位自关联
+export function addActualWarehouse(data) {
+ return request({
+ url: '/wms/actualWarehouse',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改实际库区/库位自关联
+export function updateActualWarehouse(data) {
+ return request({
+ url: '/wms/actualWarehouse',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除实际库区/库位自关联
+export function delActualWarehouse(actualWarehouseId) {
+ return request({
+ url: '/wms/actualWarehouse/' + actualWarehouseId,
+ method: 'delete'
+ })
+}
diff --git a/apps/hand-factory/components/klp-warehouse-picker/klp-warehouse-picker.vue b/apps/hand-factory/components/klp-warehouse-picker/klp-warehouse-picker.vue
new file mode 100644
index 0000000..0f97665
--- /dev/null
+++ b/apps/hand-factory/components/klp-warehouse-picker/klp-warehouse-picker.vue
@@ -0,0 +1,425 @@
+
+
+
+
+
+ {{ selectedName || placeholder }}
+
+ ▼
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/apps/hand-factory/components/panels/code/apart.vue b/apps/hand-factory/components/panels/code/apart.vue
index 7e3ff4a..4584282 100644
--- a/apps/hand-factory/components/panels/code/apart.vue
+++ b/apps/hand-factory/components/panels/code/apart.vue
@@ -1,6 +1,6 @@
-
+
@@ -9,17 +9,18 @@
扫描要分卷的钢卷
-
+
原钢卷信息
-
+
⚙
参数
-
+
@@ -35,8 +36,8 @@
{{ (coilDetail.warehouse && coilDetail.warehouse.warehouseName) || '未分配' }}
-
-
+
+
@@ -44,180 +45,120 @@
分卷配置
-
+
分卷数量
-
+
-
{{ splitCoils.length }}
-
+
+
-
+
-
+
新钢卷号
-
+
班组
-
+
-
- 目标库区
-
-
- {{ item.warehouseName || '请选择目标库区' }}
-
- ▼
+
+ 目标库位
+
+
-
-
-
-
- 物品类型
-
-
- {{ item.itemType === 'product' ? '成品' : item.itemType === 'raw_material' ? '原料' : '请选择物品类型' }}
-
- ▼
-
-
-
-
-
- 选择产品
-
-
- {{ item.productName || '请选择产品' }}
-
- ▼
-
-
-
-
-
- 选择原材料
-
-
- {{ item.rawMaterialName || '请选择原材料' }}
-
- ▼
-
-
+
+ 实际库区
+
+
+
+
+
+
+ 物品类型
+
+
+ {{ item.itemType === 'product' ? '成品' : item.itemType === 'raw_material' ? '原料' : '请选择物品类型' }}
+
+ ▼
+
+
+
+
+
+ 选择产品
+
+
+ {{ item.productName || '请选择产品' }}
+
+ ▼
+
+
+
+
+
+ 选择原材料
+
+
+ {{ item.rawMaterialName || '请选择原材料' }}
+
+ ▼
+
+
+
毛重 (吨)
-
+
净重 (吨)
-
+
-
+
操作人:
{{ operatorName }}
-
+
+
-
-
-
-
-
-
+
-
+
{{ product.productName }}
- ✓
+ ✓
未找到匹配的产品
@@ -249,7 +183,7 @@
-
+
-
+
{{ material.rawMaterialName }}
- ✓
+ ✓
未找到匹配的原材料
@@ -281,7 +208,7 @@
-
+
-
+
-
+
+
+ /* 参数按钮 */
+ .more-btn {
+ display: flex;
+ align-items: center;
+ gap: 8rpx;
+ padding: 8rpx 16rpx;
+ background: #fff3e0;
+ border-radius: 20rpx;
+ border: 1rpx solid #ff9500;
+
+ .icon-more {
+ font-size: 24rpx;
+ color: #ff9500;
+ }
+
+ .more-text {
+ font-size: 24rpx;
+ color: #ff9500;
+ }
+ }
+
+ /* BOM弹窗 */
+ .bom-popup {
+ background: #fff;
+ border-radius: 24rpx 24rpx 0 0;
+ max-height: 70vh;
+
+ .popup-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 30rpx;
+ border-bottom: 1rpx solid #f0f0f0;
+
+ .popup-title {
+ font-size: 32rpx;
+ color: #333;
+ font-weight: 600;
+ }
+
+ .popup-close {
+ font-size: 40rpx;
+ color: #999;
+ width: 60rpx;
+ height: 60rpx;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+ }
+
+ .popup-body {
+ padding: 30rpx;
+ max-height: 500rpx;
+
+ .bom-item {
+ display: flex;
+ gap: 20rpx;
+ padding: 24rpx;
+ background: #f8f9fa;
+ border-radius: 12rpx;
+ margin-bottom: 20rpx;
+
+ &:last-child {
+ margin-bottom: 0;
+ }
+
+ .bom-index {
+ width: 60rpx;
+ height: 60rpx;
+ background: #ff9500;
+ color: #fff;
+ border-radius: 50%;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ font-size: 24rpx;
+ font-weight: bold;
+ flex-shrink: 0;
+ }
+
+ .bom-content {
+ flex: 1;
+
+ .bom-row {
+ display: flex;
+ margin-bottom: 10rpx;
+
+ &:last-child {
+ margin-bottom: 0;
+ }
+
+ .bom-label {
+ font-size: 26rpx;
+ color: #666;
+ min-width: 120rpx;
+ }
+
+ .bom-value {
+ font-size: 26rpx;
+ color: #333;
+ font-weight: 500;
+ }
+ }
+ }
+ }
+
+ .empty-tip {
+ text-align: center;
+ padding: 60rpx 0;
+ color: #999;
+ font-size: 28rpx;
+ }
+ }
+ }
+
\ No newline at end of file
diff --git a/apps/hand-factory/components/panels/code/merge.vue b/apps/hand-factory/components/panels/code/merge.vue
index c1a42f5..8113900 100644
--- a/apps/hand-factory/components/panels/code/merge.vue
+++ b/apps/hand-factory/components/panels/code/merge.vue
@@ -71,18 +71,26 @@
- 目标库区
+ 目标库位
- {{ warehouseName || '请选择目标库区' }}
+ {{ warehouseName || '请选择目标库位' }}
▼
+
+
+ 实际库区
+
+
+
+
物品类型
@@ -299,6 +307,7 @@ export default {
mergedCoilNo: '',
team: '',
warehouseId: undefined,
+ actualWarehouseId: undefined,
warehouseName: '',
warehouseKeyword: '',
warehouses: [],
@@ -686,6 +695,7 @@ export default {
this.mergedCoilNo = '';
this.team = '';
this.warehouseId = undefined;
+ this.actualWarehouseId = undefined;
this.warehouseName = '';
this.warehouseKeyword = '';
this.itemType = '';
@@ -752,6 +762,7 @@ export default {
itemType: this.itemType || this.scannedCoils[0].itemType, // 优先使用选择的itemType
itemId: this.itemId || this.scannedCoils[0].itemId, // 优先使用选择的itemId
warehouseId: this.warehouseId || this.scannedCoils[0].warehouseId, // 使用选择的库区或第一个钢卷的库区
+ actualWarehouseId: this.actualWarehouseId || this.scannedCoils[0].actualWarehouseId
grossWeight: this.grossWeight ? Number(this.grossWeight) : null,
netWeight: this.netWeight ? Number(this.netWeight) : null,
newCoils: this.scannedCoils.map(coil => ({
diff --git a/apps/hand-factory/components/panels/code/typing.vue b/apps/hand-factory/components/panels/code/typing.vue
index 0c350d0..7367517 100644
--- a/apps/hand-factory/components/panels/code/typing.vue
+++ b/apps/hand-factory/components/panels/code/typing.vue
@@ -9,7 +9,7 @@
点击扫描二维码
-
+
@@ -23,7 +23,7 @@
参数
-
+
入场钢卷号
@@ -39,7 +39,7 @@
-
+
⚠️
@@ -48,176 +48,106 @@
此为历史记录,仅供查看,不允许进行修改操作
-
+
录入信息
-
+
当前钢卷号
-
+
-
+
班组
-
+
-
+
- 目标库区
-
-
- {{ currentWarehouseName || '请选择目标库区' }}
-
- ▼
-
+ 目标库位
+
+
+ 真实库区
+
+
+
物品类型
-
+
{{ form.itemType === 'product' ? '成品' : form.itemType === 'raw_material' ? '原料' : '请选择物品类型' }}
▼
-
+
选择产品
-
+
{{ selectedProductName || '请选择产品' }}
▼
-
+
选择原材料
-
+
{{ selectedRawMaterialName || '请选择原材料' }}
▼
-
+
毛重 (吨)
-
+
-
+
净重 (吨)
-
+
-
+
操作人:
{{ operatorName }}
-
+
-
-
-
-
-
-
-
-
+
-
+
{{ product.productName }}
✓
@@ -249,7 +171,7 @@
-
+
-
+
{{ material.rawMaterialName }}
✓
@@ -281,7 +195,7 @@
-
+
-
+