feat: 添加扫码成功页面和实际库区选择功能
- 新增扫码成功页面,优化用户体验 - 添加实际库区选择组件和API接口 - 修改合并功能表单,增加实际库区选择 - 更新应用版本号和配置 - 优化首页跳转逻辑和错误处理
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -71,18 +71,26 @@
|
||||
|
||||
<!-- 目标库区 -->
|
||||
<view class="form-item form-item-optional">
|
||||
<text class="form-label-optional">目标库区</text>
|
||||
<text class="form-label-optional">目标库位</text>
|
||||
<view
|
||||
class="picker-input"
|
||||
@click="showWarehousePicker()"
|
||||
>
|
||||
<text class="picker-text" :class="{ 'picker-placeholder': !warehouseName }">
|
||||
{{ warehouseName || '请选择目标库区' }}
|
||||
{{ warehouseName || '请选择目标库位' }}
|
||||
</text>
|
||||
<text class="picker-arrow">▼</text>
|
||||
</view>
|
||||
</view>
|
||||
|
||||
<!-- 实际库区 -->
|
||||
<view class="form-item form-item-optional">
|
||||
<text class="form-label-optional">实际库区</text>
|
||||
<klp-warehouse-picker v-model="actualWarehouseId" placeholder="请选择目标库区"
|
||||
ware-type="actual" />
|
||||
</view>
|
||||
|
||||
|
||||
<!-- 物品类型选择 -->
|
||||
<view class="form-item form-item-optional">
|
||||
<text class="form-label-optional">物品类型</text>
|
||||
@@ -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 => ({
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user