fix: 修正发货成功提示和库存显示格式
- 将发货操作的成功提示从"入库成功"改为"发货成功" - 在操作流程页面添加入库和发货操作的类型显示 - 修改库存页面产品信息的显示格式,使用方括号显示规格信息 - 完善库存数据映射,确保产品信息完整显示
This commit is contained in:
@@ -40,12 +40,12 @@
|
||||
<template slot-scope="scope">
|
||||
<ProductInfo v-if="scope.row.itemType == 'product' || scope.row.itemType == 'semi'" :product="scope.row.product">
|
||||
<template #default="{ product }">
|
||||
{{ product.productName }}({{ product.productCode }})
|
||||
{{ product.productName }}[{{ product.specification }}]
|
||||
</template>
|
||||
</ProductInfo>
|
||||
<RawMaterialInfo v-else-if="scope.row.itemType === 'raw_material'" :material="scope.row.rawMaterial">
|
||||
<template #default="{ material }">
|
||||
{{ material.rawMaterialName }}({{ material.rawMaterialCode }})
|
||||
{{ material.rawMaterialName }}[{{ material.specification }}]
|
||||
</template>
|
||||
</RawMaterialInfo>
|
||||
</template>
|
||||
@@ -207,7 +207,33 @@ export default {
|
||||
this.loading = true;
|
||||
if (this.warehouseType === 'real') {
|
||||
getStockByActual(this.queryParams).then(response => {
|
||||
this.stockList = response.rows;
|
||||
this.stockList = response.rows.map(item => {
|
||||
const itemType = item.itemType
|
||||
if (itemType === 'raw_material') {
|
||||
item.rawMaterial = {
|
||||
rawMaterialId: item.itemId,
|
||||
rawMaterialName: item.itemName,
|
||||
rawMaterialCode: item.itemCode,
|
||||
specification: item.specification,
|
||||
material: item.material,
|
||||
surfaceTreatment: item.surfaceTreatment,
|
||||
zincLayer: item.zincLayer,
|
||||
manufacturer: item.manufacturer,
|
||||
}
|
||||
} else if (itemType === 'product') {
|
||||
item.product = {
|
||||
productId: item.itemId,
|
||||
productName: item.itemName,
|
||||
productCode: item.itemCode,
|
||||
specification: item.specification,
|
||||
material: item.material,
|
||||
surfaceTreatment: item.surfaceTreatment,
|
||||
zincLayer: item.zincLayer,
|
||||
manufacturer: item.manufacturer,
|
||||
}
|
||||
}
|
||||
return item
|
||||
});
|
||||
this.total = response.total;
|
||||
this.loading = false;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user