diff --git a/klp-ui/src/views/wms/coil/actflow.vue b/klp-ui/src/views/wms/coil/actflow.vue index 1eeb49d5..3ff8f09f 100644 --- a/klp-ui/src/views/wms/coil/actflow.vue +++ b/klp-ui/src/views/wms/coil/actflow.vue @@ -77,6 +77,8 @@ diff --git a/klp-ui/src/views/wms/coil/do/ship.vue b/klp-ui/src/views/wms/coil/do/ship.vue index c35e61e9..a7be6d18 100644 --- a/klp-ui/src/views/wms/coil/do/ship.vue +++ b/klp-ui/src/views/wms/coil/do/ship.vue @@ -327,7 +327,7 @@ export default { remark: this.form.remark, actionStatus: 2, }).then(res => { - this.$modal.msgSuccess("入库成功"); + this.$modal.msgSuccess("发货成功"); this.getList() }) }).finally(() => { diff --git a/klp-ui/src/views/wms/stock/index.vue b/klp-ui/src/views/wms/stock/index.vue index 7c1e562f..61f55f37 100644 --- a/klp-ui/src/views/wms/stock/index.vue +++ b/klp-ui/src/views/wms/stock/index.vue @@ -40,12 +40,12 @@ @@ -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; });