半成品管理

This commit is contained in:
砂糖
2025-08-11 15:04:35 +08:00
parent ced0cd350d
commit 6928b95c9c
5 changed files with 499 additions and 4 deletions

View File

@@ -15,6 +15,8 @@
style="width: 300px" clearable @change="getList" />
<ProductSelect v-else-if="queryParams.itemType == 'product'" v-model="queryParams.itemId" :item-type="queryParams.itemType" placeholder="物料信息"
style="width: 300px" clearable @change="getList" />
<SemiSelect v-else-if="queryParams.itemType == 'semi'" v-model="queryParams.itemId" :item-type="queryParams.itemType" placeholder="物料信息"
style="width: 300px" clearable @change="getList" />
<el-input v-else disabled v-model="queryParams.itemId" placeholder="请先选择物料类型" :disabled="true" style="width: 100%;" />
</el-form-item>
<el-form-item label="变动时间" prop="changeTime">
@@ -52,7 +54,7 @@
<el-table-column label="物品ID" align="center" prop="itemId">
<template slot-scope="scope">
<RawMaterialInfo v-if="scope.row.itemType == 'raw_material'" :material-id="scope.row.itemId" />
<ProductInfo v-else-if="scope.row.itemType == 'product'" :product-id="scope.row.itemId" />
<ProductInfo v-else-if="scope.row.itemType == 'product' || scope.row.itemType == 'semi'" :product-id="scope.row.itemId" />
</template>
</el-table-column>
<el-table-column label="物品类型" align="center" prop="itemType">
@@ -129,6 +131,7 @@ import { listStockLog, getStockLog, updateStockLog } from "@/api/wms/stockLog";
import WarehouseSelect from '@/components/KLPService/WarehouseSelect/index.vue';
import RawMaterialSelect from '@/components/KLPService/RawMaterialSelect/index.vue';
import ProductSelect from '@/components/KLPService/ProductSelect/index.vue';
import SemiSelect from '@/components/KLPService/SemiSelect/index.vue';
import RawMaterialInfo from '@/components/KLPService/Renderer/RawMaterialInfo.vue';
import ProductInfo from '@/components/KLPService/Renderer/ProductInfo.vue';
@@ -139,7 +142,8 @@ export default {
RawMaterialSelect,
ProductSelect,
RawMaterialInfo,
ProductInfo
ProductInfo,
SemiSelect
},
dicts: ['stock_item_type'],
data() {