库存盘点2

This commit is contained in:
zzyuan 2025-07-17 11:30:54 +08:00
parent 7aac6332c3
commit 413985bb58
2 changed files with 47 additions and 31 deletions

View File

@ -4,7 +4,7 @@
<el-descriptions style="margin-bottom: 20px;" title="基本信息" :column="4" size="medium" border> <el-descriptions style="margin-bottom: 20px;" title="基本信息" :column="4" size="medium" border>
<el-descriptions-item> <el-descriptions-item>
<template slot="label">盘点单号</template> <template slot="label">盘点单号</template>
{{baseInfo.countCode}} {{baseInfo.checkCode}}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
<template slot="label">所属区域</template> <template slot="label">所属区域</template>
@ -15,20 +15,16 @@
{{ baseInfo.warehouseName }} {{ baseInfo.warehouseName }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
<template slot="label">出库时间</template> <template slot="label">盘点员</template>
{{ baseInfo.outDate }} {{ baseInfo.firstCheckUser }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
<template slot="label">领料人</template> <template slot="label">盘点开始时间</template>
{{ baseInfo.fetchUser }} {{ baseInfo.firstCheckDate }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item> <el-descriptions-item>
<template slot="label">所属区域</template> <template slot="label">盘点结束时间</template>
{{ baseInfo.areaName }} {{ baseInfo.secondCheckDate }}
</el-descriptions-item>
<el-descriptions-item>
<template slot="label">货品仓库</template>
{{ baseInfo.warehouseName }}
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
</div> </div>
@ -49,23 +45,42 @@
<el-table-column label="货品类别" align="center" prop="materialTypeName" :show-overflow-tooltip="true" /> <el-table-column label="货品类别" align="center" prop="materialTypeName" :show-overflow-tooltip="true" />
<el-table-column label="计量单位" align="center" prop="unitName" :show-overflow-tooltip="true" /> <el-table-column label="计量单位" align="center" prop="unitName" :show-overflow-tooltip="true" />
<el-table-column label="货品规格" align="center" prop="size" :show-overflow-tooltip="true"> <el-table-column label="货品规格" align="center" prop="size" :show-overflow-tooltip="true">
<!-- <template slot-scope="scope">
<span v-if="scope.row.salesMode==1">按份</span>
<span v-if="scope.row.salesMode==2">称重</span>
</template> -->
</el-table-column> </el-table-column>
<el-table-column label="供应商" align="center" prop="supplierName" :show-overflow-tooltip="true" /> <!-- <el-table-column label="批次号" align="center" prop="intoCode" :show-overflow-tooltip="true" width="200"/> -->
<el-table-column label="生产日期" align="center" prop="productDate" :show-overflow-tooltip="true" /> <el-table-column label="账面数" align="center" prop="bookNum" :show-overflow-tooltip="true" />
<el-table-column label="保质期截止日期" align="center" prop="expireTime" :show-overflow-tooltip="true" /> <el-table-column label="单价(元)" align="center" prop="price" :show-overflow-tooltip="true">
<el-table-column label="单价(元)" align="center" prop="unitPrice" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ (scope.row.unitPrice/100).toFixed(2) }}</span> <span>{{ (scope.row.price/100).toFixed(2)||"" }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="入库数量" align="center" prop="purNum" :show-overflow-tooltip="true"></el-table-column> <el-table-column label="账面总额(元)" align="center" prop="totalPrice" :show-overflow-tooltip="true" width="120">
<el-table-column label="总金额(元)" align="center" prop="" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">
<span>{{ scope.row.purNum*scope.row.unitPrice/100 }}</span> <span>{{ scope.row.bookNum*(scope.row.price/100) }}</span>
</template>
</el-table-column>
<el-table-column label="实盘总额(元)" align="center" prop="" :show-overflow-tooltip="true" width="120">
<template slot-scope="scope">
<span>{{ scope.row.actualNum*(scope.row.price/100) }}</span>
</template>
</el-table-column>
<el-table-column label="差异数" align="center" prop="" :show-overflow-tooltip="true">
<template slot-scope="scope">
<span>{{ scope.row.actualNum-scope.row.bookNum }}</span>
</template>
</el-table-column>
<el-table-column label="差异总额(元)" align="center" prop="" :show-overflow-tooltip="true" width="120">
<template slot-scope="scope">
<span>{{ (Number(scope.row.actualNum)-Number(scope.row.bookNum))*scope.row.price/100 }}</span>
</template>
</el-table-column>
<el-table-column label="实盘数量" align="center" prop="actualNum" :show-overflow-tooltip="true" width="120">
<template slot-scope="scope">
<span>{{ scope.row.actualNum }}</span>
</template>
</el-table-column>
<el-table-column label="差异原因" align="center" prop="differReason" :show-overflow-tooltip="true" width="120">
<template slot-scope="scope">
<span>{{ scope.row.differReason }}</span>
</template> </template>
</el-table-column> </el-table-column>
@ -80,7 +95,7 @@
</template> </template>
<script> <script>
import { getWarehouseInInfoApi } from "@/api/foodManage/stockManage"; import { getCheckInventoryInfoApi } from "@/api/foodManage/stockManage";
export default { export default {
name: "InventoryCountDetail", name: "InventoryCountDetail",
dicts: [], dicts: [],
@ -170,12 +185,13 @@ export default {
getContractInfo(){ getContractInfo(){
console.log(this.countRowData) console.log(this.countRowData)
let param = { let param = {
intoId:this.countRowData.intoId checkId:this.countRowData.checkId
} }
// //
getWarehouseInInfoApi(param).then((response) => { getCheckInventoryInfoApi(param).then((response) => {
this.baseInfo = response.data; this.baseInfo = response.data;
this.materialLis = this.baseInfo.imsIntoInventoryDetailVOList; this.$set(this.baseInfo,"firstCheckUser",this.baseInfo.firstCheckUserName)
this.materialList = this.baseInfo.detailList;
}); });
}, },
// //

View File

@ -70,7 +70,7 @@
<el-table-column label="计量单位" align="center" prop="unitName" :show-overflow-tooltip="true" /> <el-table-column label="计量单位" align="center" prop="unitName" :show-overflow-tooltip="true" />
<el-table-column label="货品规格" align="center" prop="size" :show-overflow-tooltip="true"> <el-table-column label="货品规格" align="center" prop="size" :show-overflow-tooltip="true">
</el-table-column> </el-table-column>
<el-table-column label="批次号" align="center" prop="intoCode" :show-overflow-tooltip="true" width="200"/> <!-- <el-table-column label="批次号" align="center" prop="intoCode" :show-overflow-tooltip="true" width="200"/> -->
<el-table-column label="账面数" align="center" prop="bookNum" :show-overflow-tooltip="true" /> <el-table-column label="账面数" align="center" prop="bookNum" :show-overflow-tooltip="true" />
<el-table-column label="单价(元)" align="center" prop="price" :show-overflow-tooltip="true"> <el-table-column label="单价(元)" align="center" prop="price" :show-overflow-tooltip="true">
<template slot-scope="scope"> <template slot-scope="scope">