feat(hand-factory): 新增移库和查看钢卷功能并优化UI
- 新增移库操作流程,包括扫描钢卷和目标库区 - 添加查看存储钢卷功能,支持快速查看库区钢卷信息 - 优化material-picker组件,显示物料类型信息 - 更新版本号至1.3.13并调整API基础地址 - 改进UI样式,包括按钮布局和扫码界面 - 修复更新弹窗取消按钮文本问题
This commit is contained in:
@@ -49,7 +49,7 @@
|
||||
</view>
|
||||
<!-- 严格遍历产品过滤列表 -->
|
||||
<view class="warehouse-item" v-for="product in filteredProducts" :key="'product_' + product.productId" @click="selectProduct(product)" v-else>
|
||||
<text class="warehouse-name">{{ product.productName }}【{{ product.specification || '暂无规格' }}】</text>
|
||||
<text class="warehouse-name">{{ product.productName }}【{{ product.specification || '暂无规格' }}】({{ product.material }})</text>
|
||||
<text class="warehouse-check" v-if="itemId === product.productId">✓</text>
|
||||
</view>
|
||||
<view class="empty-tip" v-if="!loadingProducts && (!filteredProducts || filteredProducts.length === 0)">
|
||||
@@ -75,7 +75,7 @@
|
||||
</view>
|
||||
<!-- 严格遍历原材料过滤列表 -->
|
||||
<view class="warehouse-item" v-for="material in filteredRawMaterials" :key="'material_' + material.rawMaterialId" @click="selectRawMaterial(material)" v-else>
|
||||
<text class="warehouse-name">{{ material.rawMaterialName }}【{{ material.specification || '暂无规格' }}】</text>
|
||||
<text class="warehouse-name">{{ material.rawMaterialName }}【{{ material.specification || '暂无规格' }}】({{ material.material }})</text>
|
||||
<text class="warehouse-check" v-if="itemId === material.rawMaterialId">✓</text>
|
||||
</view>
|
||||
<view class="empty-tip" v-if="!loadingRawMaterials && (!filteredRawMaterials || filteredRawMaterials.length === 0)">
|
||||
@@ -122,6 +122,10 @@
|
||||
type: [String, Number],
|
||||
default: undefined
|
||||
},
|
||||
materialType: {
|
||||
type: String,
|
||||
default: undefined
|
||||
},
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
@@ -270,6 +274,7 @@
|
||||
|
||||
this.$emit('update:itemId', product.productId);
|
||||
this.$emit('update:itemType', 'product');
|
||||
this.$emit('update:materialType', '成品')
|
||||
this.selectedName = product.productName;
|
||||
uni.showToast({ title: `已选择产品:${product.productName}`, icon: 'success' });
|
||||
this.closeProductPicker();
|
||||
@@ -282,6 +287,7 @@
|
||||
|
||||
this.$emit('update:itemId', material.rawMaterialId);
|
||||
this.$emit('update:itemType', 'raw_material');
|
||||
this.$emit('update:materialType', '原料')
|
||||
this.selectedName = material.rawMaterialName;
|
||||
uni.showToast({ title: `已选择原材料:${material.rawMaterialName}`, icon: 'success' });
|
||||
this.closeRawMaterialPicker();
|
||||
|
||||
Reference in New Issue
Block a user