库存修改
This commit is contained in:
parent
8ef746fbfc
commit
671150e40d
@ -123,5 +123,11 @@ public class StorageInventoryController {
|
||||
PageResult<StorageInventoryDO> pageResult = storageInventoryService.getSupplementPage(pageReqVO);
|
||||
return success(pageResult);
|
||||
}
|
||||
|
||||
@GetMapping("/realTimeInventory")
|
||||
@Operation(summary = "获得实时库存分页")
|
||||
@PreAuthorize("@ss.hasPermission('heli:storage-inventory:query')")
|
||||
public CommonResult<PageResult<StorageInventoryDO>> realTimeInventory(@Valid StorageInventoryPageReqVO pageReqVO) {
|
||||
PageResult<StorageInventoryDO> pageResult = storageInventoryService.realTimeInventory(pageReqVO);
|
||||
return success(pageResult);
|
||||
}
|
||||
}
|
||||
|
@ -111,7 +111,8 @@ public class StorageInventoryDO extends BaseDO {
|
||||
|
||||
@TableField(exist = false)
|
||||
private BigDecimal storageOkQty;
|
||||
|
||||
@TableField(exist = false)
|
||||
private BigDecimal sumKcMoney;
|
||||
|
||||
@TableField(exist = false)
|
||||
private String matName;
|
||||
@ -146,4 +147,5 @@ public class StorageInventoryDO extends BaseDO {
|
||||
private String invSafe;
|
||||
@TableField(exist = false)
|
||||
private Integer exist;//是否存在,盘库使用, 0存在 1不存在
|
||||
|
||||
}
|
||||
|
@ -3,6 +3,7 @@ package com.chanko.yunxi.mes.module.heli.dal.mysql.storageinventory;
|
||||
import java.util.*;
|
||||
import java.util.stream.Collectors;
|
||||
|
||||
import cn.hutool.core.util.ObjectUtil;
|
||||
import com.chanko.yunxi.mes.framework.common.pojo.PageResult;
|
||||
import com.chanko.yunxi.mes.framework.mybatis.core.query.LambdaQueryWrapperX;
|
||||
import com.chanko.yunxi.mes.framework.mybatis.core.mapper.BaseMapperX;
|
||||
@ -169,10 +170,10 @@ public interface StorageInventoryMapper extends BaseMapperX<StorageInventoryDO>
|
||||
|
||||
default PageResult<StorageInventoryDO> getSupplementPage(StorageInventoryPageReqVO pageReqVO){
|
||||
MPJLambdaWrapper<StorageInventoryDO> subQuery = new MPJLambdaWrapper<>();
|
||||
subQuery.select(StorageInventoryDO::getMatCode)
|
||||
subQuery.select(StorageInventoryDO::getMaterialId)
|
||||
.leftJoin(MaterialDO.class, "m", MaterialDO::getId, StorageInventoryDO::getMaterialId)
|
||||
.groupBy(StorageInventoryDO::getMaterialId)
|
||||
.having("SUM(yard_amount) < COALESCE(MAX(m.inv_safe), 0)");
|
||||
.having("SUM(t.yard_amount) < COALESCE(MAX(m.inv_safe), 0)");
|
||||
//执行子查询获取符合条件的matCode
|
||||
List<Long> qualifiedMatCodes = this.selectList(subQuery)
|
||||
.stream()
|
||||
@ -217,4 +218,40 @@ public interface StorageInventoryMapper extends BaseMapperX<StorageInventoryDO>
|
||||
return selectPage(pageReqVO, query);
|
||||
}
|
||||
|
||||
default PageResult<StorageInventoryDO> realTimeInventory(StorageInventoryPageReqVO pageReqVO){
|
||||
MPJLambdaWrapper<StorageInventoryDO> query = new MPJLambdaWrapper<>();
|
||||
query.selectAll(StorageInventoryDO.class)
|
||||
.select("ifnull(sum(t.yard_amount),0) storageOkQty")
|
||||
.select("ROUND(ifnull(t.yard_amount * t.price,0), 2) as sumKcMoney")
|
||||
.select("m.name as matName,m.code as matCode,d.label as matType,m.spec as matSpec,m.brand as matBrand")
|
||||
.select("d1.label as matUnit")
|
||||
.select("w.wh_name as whName","r.rg_name as rgName","p.pn_name as pnName")
|
||||
.select("m.material_type as materialTypeId","m.unit as matUnitId")
|
||||
.leftJoin(MaterialDO.class, "m", MaterialDO::getId, StorageInventoryDO::getMaterialId)
|
||||
.leftJoin(DictDataDO.class,"d",DictDataDO::getValue, MaterialDO::getMaterialType)
|
||||
.leftJoin(DictDataDO.class,"d1",DictDataDO::getValue, MaterialDO::getUnit)
|
||||
.leftJoin(WarehouseDO.class,"w",WarehouseDO::getId, StorageInventoryDO::getWhId)
|
||||
.leftJoin(RgDO.class,"r",RgDO::getId, StorageInventoryDO::getRgId)
|
||||
.leftJoin(PnDO.class,"p",PnDO::getId, StorageInventoryDO::getPnId)
|
||||
.disableSubLogicDel()
|
||||
.groupBy(StorageInventoryDO::getId)
|
||||
.orderByDesc(StorageInventoryDO::getId);
|
||||
|
||||
query.like(!com.alibaba.druid.util.StringUtils.isEmpty(pageReqVO.getMatSpec()),MaterialDO::getSpec, pageReqVO.getMatSpec())
|
||||
.like(!com.alibaba.druid.util.StringUtils.isEmpty(pageReqVO.getMatName()), MaterialDO::getName, pageReqVO.getMatName())
|
||||
.like(!com.alibaba.druid.util.StringUtils.isEmpty(pageReqVO.getMatCode()), MaterialDO::getCode, pageReqVO.getMatCode())
|
||||
.like(!com.alibaba.druid.util.StringUtils.isEmpty(pageReqVO.getShortName()), MaterialDO::getShortName, pageReqVO.getShortName())
|
||||
.eq(ObjectUtil.isNotEmpty(pageReqVO.getMatType()),MaterialDO::getMaterialType, pageReqVO.getMatType())
|
||||
.eq(ObjectUtil.isNotEmpty(pageReqVO.getLotNo()),StorageInventoryDO::getLotNo, pageReqVO.getLotNo())
|
||||
.eq(true,MaterialDO::getVirtualPart, YesOrNoEnum.N.name())
|
||||
.ne(StorageInventoryDO::getYardAmount,0)
|
||||
.eq(MaterialDO::getStatus,1)
|
||||
.eq(pageReqVO.getWhId()!= null,StorageInventoryDO::getWhId, pageReqVO.getWhId())
|
||||
.eq(pageReqVO.getRgId()!= null,StorageInventoryDO::getRgId, pageReqVO.getRgId())
|
||||
.eq(pageReqVO.getPnId()!= null,StorageInventoryDO::getPnId, pageReqVO.getPnId())
|
||||
.eq("d.dict_type","heli_material_type")
|
||||
.eq("d1.dict_type","heli_material_unit");
|
||||
return selectPage(pageReqVO, query);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -57,4 +57,6 @@ public interface StorageInventoryService {
|
||||
List<StorageInventoryDO> getStorageNowList(StorageInventoryPageReqVO queryReqVO);
|
||||
|
||||
StorageInventoryDO selectNowByMatPnId(Long matId, Long pnId);
|
||||
|
||||
PageResult<StorageInventoryDO> realTimeInventory(StorageInventoryPageReqVO pageReqVO);
|
||||
}
|
||||
|
@ -101,4 +101,9 @@ public class StorageInventoryServiceImpl implements StorageInventoryService {
|
||||
.eq(StorageInventoryDO::getPnId, pnId));
|
||||
|
||||
}
|
||||
@Override
|
||||
public PageResult<StorageInventoryDO> realTimeInventory(StorageInventoryPageReqVO pageReqVO) {
|
||||
return storageInventoryMapper.realTimeInventory(pageReqVO);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
"private": false,
|
||||
"scripts": {
|
||||
"i": "pnpm install",
|
||||
"dev": "vite --mode dev",
|
||||
"dev": "vite --mode base",
|
||||
"front": "vite --mode front",
|
||||
"ts:check": "vue-tsc --noEmit",
|
||||
"build:pro": "node --max_old_space_size=8192 ./node_modules/vite/bin/vite.js build --mode pro",
|
||||
|
@ -58,3 +58,7 @@ export const exportStorageInventory = async (params) => {
|
||||
export const getSupplementPage = async (params) => {
|
||||
return await request.get({ url: `/heli/storage-inventory/getSupplementPage`, params })
|
||||
}
|
||||
// 查询入/出库实时分页
|
||||
export const realTimeInventory = async (params) => {
|
||||
return await request.get({ url: `/heli/storage-inventory/realTimeInventory`, params })
|
||||
}
|
||||
|
@ -255,14 +255,14 @@ const handleExportDetail = async () => {
|
||||
exportLoading.value = false
|
||||
}
|
||||
}
|
||||
const getMat = async (rowids,amount,ids,matCodes,name) => {
|
||||
const getMat = async (data) => {
|
||||
//formData.value.boomItemDOList = arrBoom
|
||||
for(var i = 0 ; i < list.value.length ; i ++){
|
||||
if(list.value[i].id == rowids){
|
||||
list.value[i].matRest = amount
|
||||
list.value[i].matCode = matCodes
|
||||
list.value[i].materialId = ids
|
||||
list.value[i].materialName = name
|
||||
if(list.value[i].id == data.rowid){
|
||||
list.value[i].matRest = data.matRest
|
||||
list.value[i].matCode = data.matCode
|
||||
list.value[i].materialId = data.materialId
|
||||
list.value[i].materialName =data.matName
|
||||
// await updateRow(2,list.value[i]);
|
||||
break;
|
||||
}
|
||||
|
@ -1,54 +1,66 @@
|
||||
<template>
|
||||
<Dialog title="实时库存" v-model="dialogVisible" width="80%">
|
||||
<el-card class="hl-card">
|
||||
<Dialog title="实时库存" v-model="dialogVisible" width="80%">
|
||||
<el-card class="hl-card">
|
||||
|
||||
<ContentWrap class="borderxx">
|
||||
<el-form class="-mb-15px" :model="queryParams" ref="queryFormRef" :inline="true" label-width="120px">
|
||||
<el-form-item label="物料名称" prop="matName" >
|
||||
<el-input v-model="queryParams.matName" placeholder="物料名称" clearable @keyup.enter="handleQuery" class="!w-240px" />
|
||||
</el-form-item>
|
||||
<ContentWrap class="borderxx">
|
||||
<el-form class="-mb-15px" :model="queryParams" ref="queryFormRef" :inline="true" label-width="120px">
|
||||
<el-form-item label="物料名称" prop="matName" >
|
||||
<el-input v-model="queryParams.matName" placeholder="物料名称" clearable @keyup.enter="handleQuery" class="!w-240px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="规格型号" prop="matSpec" >
|
||||
<el-input v-model="queryParams.matSpec" placeholder="规格型号" clearable @keyup.enter="handleQuery" class="!w-240px" />
|
||||
</el-form-item>
|
||||
<el-form-item label="物料简称" prop="shortName" >
|
||||
<el-input v-model="queryParams.shortName" placeholder="物料简称" clearable @keyup.enter="handleQuery" class="!w-240px" />
|
||||
</el-form-item>
|
||||
<el-form-item >
|
||||
<el-button @click="handleQuery" type="primary">
|
||||
<Icon icon="ep:search" class="mr-5px" /> 搜索
|
||||
</el-button>
|
||||
<el-button @click="resetQuery">
|
||||
<Icon icon="ep:refresh" class="mr-5px" /> 重置
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</ContentWrap>
|
||||
|
||||
|
||||
<el-form-item >
|
||||
<el-button @click="handleQuery" type="primary">
|
||||
<Icon icon="ep:search" class="mr-5px" /> 搜索
|
||||
</el-button>
|
||||
<el-button @click="resetQuery">
|
||||
<Icon icon="ep:refresh" class="mr-5px" /> 重置
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</ContentWrap>
|
||||
|
||||
<!-- 列表 -->
|
||||
<ContentWrap>
|
||||
<el-table
|
||||
ref="multipleTableRef" v-loading="loading" :data="list" :stripe="true"
|
||||
@row-click="clickRow" @selection-change="handleCurrentChange" :show-overflow-tooltip="true" class="hl-table">
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55"/>
|
||||
<el-table-column type="index" width="100" fixed label="序号" align="center" />
|
||||
<el-table-column label="物料编码" align="center" prop="matCode" fixed min-width="120" />
|
||||
<el-table-column label="物料名称" align="center" prop="matName" fixed min-width="120"/>
|
||||
<el-table-column label="物料类型" align="center" prop="matType" min-width="120"/>
|
||||
<el-table-column label="物料简称" align="center" prop="shortName" min-width="120"/>
|
||||
<el-table-column label="规格/型号" align="center" prop="matSpec" min-width="120"/>
|
||||
<el-table-column label="品牌" align="center" prop="matBrand" min-width="120"/>
|
||||
<el-table-column label="仓库" align="center" prop="whName" min-width="120"/>
|
||||
<el-table-column label="库区" align="center" prop="rgName" min-width="120"/>
|
||||
<el-table-column label="库位" align="center" prop="pnName" min-width="120"/>
|
||||
<el-table-column label="批次号" align="center" prop="lotNo" min-width="120" v-if="false"/>
|
||||
<el-table-column label="库存数量" align="center" prop="storageOkQty" min-width="120"/>
|
||||
<el-table-column label="金额(元)" align="center" prop="sumKcMoney" min-width="120"/>
|
||||
<el-table-column label="库存单位" align="center" prop="matUnit" min-width="120"/>
|
||||
</el-table>
|
||||
<!-- 分页 -->
|
||||
<Pagination
|
||||
:total="total" v-model:page="queryParams.pageNo" v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList" />
|
||||
</ContentWrap>
|
||||
</el-card>
|
||||
<!-- 列表 -->
|
||||
<ContentWrap>
|
||||
<el-table ref="multipleTableRef" v-loading="loading" :data="list" :stripe="true" @row-click="clickRow" @selection-change="handleCurrentChange" :show-overflow-tooltip="true" class="hl-table">
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55"/>
|
||||
<el-table-column type="index" width="100" fixed label="序号" align="center" />
|
||||
<el-table-column prop="matCode" label="物料编码" :fixed="left" min-width="120" align="center" />
|
||||
<el-table-column prop="matName" label="物料名称" :fixed="left" min-width="140" align="center" />
|
||||
<el-table-column prop="matType" label="物料类型" min-width="120" align="center" />
|
||||
<el-table-column prop="shortName" label="物料简称" min-width="120" align="center" />
|
||||
<el-table-column prop="matSpec" label="规格/型号" min-width="120" align="center" />
|
||||
<el-table-column prop="matBrand" label="品牌" min-width="120" align="center" />
|
||||
<el-table-column prop="whName" label="仓库" min-width="120" align="center" >
|
||||
<template #default="scope">
|
||||
{{scope.row.whName}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="rgName" label="库区" min-width="120" align="center" >
|
||||
<template #default="scope">
|
||||
{{scope.row.rgName}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="pnName" label="库位" min-width="140" align="center" >
|
||||
<template #default="scope">
|
||||
{{scope.row.pnName}}
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="matRest" label="库存数量" min-width="120" align="center" />
|
||||
<el-table-column prop="matUnit" label="库存单位" min-width="120" align="center" />
|
||||
</el-table>
|
||||
<!-- 分页 -->
|
||||
<Pagination
|
||||
:total="total" v-model:page="queryParams.pageNo" v-model:limit="queryParams.pageSize"
|
||||
@pagination="getList" />
|
||||
</ContentWrap>
|
||||
</el-card>
|
||||
<template #footer>
|
||||
<span class="dialog-footer">
|
||||
<el-button @click="dialogVisible = false">取消</el-button>
|
||||
@ -57,45 +69,43 @@ ref="multipleTableRef" v-loading="loading" :data="list" :stripe="true"
|
||||
</el-button>
|
||||
</span>
|
||||
</template>
|
||||
</Dialog>
|
||||
<printDialog ref="printref" :minAmount="minAmount" :formData="formData" />
|
||||
</Dialog>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import download from '@/utils/download'
|
||||
import * as StorageLogApi from '@/api/heli/storagelog'
|
||||
|
||||
import { getIntDictOptions, DICT_TYPE } from '@/utils/dict'
|
||||
|
||||
import * as WarehouseApi from '@/api/heli/warehouse'
|
||||
import * as RgApi from '@/api/heli/rg'
|
||||
import * as PnApi from '@/api/heli/pn'
|
||||
import {DICT_TYPE} from "@/utils/dict";
|
||||
import * as MaterialApi from "@/api/heli/material";
|
||||
import * as StorageInventoryApi from "@/api/heli/storageinventory";
|
||||
defineOptions({ name: 'StorageLog' })
|
||||
const printref = ref()
|
||||
const whList = ref([])
|
||||
const rgList = ref([])
|
||||
const pnList = ref([])
|
||||
const dialogVisible = ref(false)
|
||||
const rgCurrentList = ref([])
|
||||
const pnCurrentList = ref([])
|
||||
|
||||
|
||||
const message = useMessage() // 消息弹窗
|
||||
const { t } = useI18n() // 国际化
|
||||
|
||||
|
||||
const loading = ref(true) // 列表的加载中
|
||||
const list = ref([]) // 列表的数据
|
||||
const total = ref(0) // 列表的总页数
|
||||
const queryParams = reactive({
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
matCode: undefined,
|
||||
matName: undefined,
|
||||
code: undefined,
|
||||
name: undefined,
|
||||
matType: undefined,
|
||||
lotNo: undefined,
|
||||
whId: undefined,
|
||||
rgId:undefined,
|
||||
pnId: undefined,
|
||||
headerNo: undefined,
|
||||
spec:undefined,
|
||||
shortName:undefined,
|
||||
matName:undefined,
|
||||
matSpec:undefined,
|
||||
})
|
||||
|
||||
|
||||
@ -107,7 +117,7 @@ const multipleTableRef = ref()
|
||||
const getList = async () => {
|
||||
loading.value = true
|
||||
try {
|
||||
const data = await StorageLogApi.getStorageNowPage(queryParams)
|
||||
const data = await StorageInventoryApi.getStorageInventoryPage(queryParams)
|
||||
list.value = data.list
|
||||
total.value = data.total
|
||||
} finally {
|
||||
@ -116,95 +126,79 @@ const getList = async () => {
|
||||
}
|
||||
const clickItem = ref([])
|
||||
const handleCurrentChange = (val) => {
|
||||
|
||||
clickItem.value = val;
|
||||
if(val.length > 1){
|
||||
multipleTableRef.value!.clearSelection()
|
||||
multipleTableRef.value!.toggleRowSelection(val.pop())
|
||||
multipleTableRef.value!.clearSelection()
|
||||
multipleTableRef.value!.toggleRowSelection(val.pop())
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
const clickRow = (row) => {
|
||||
// 单选选中行
|
||||
if ( clickItem.value[0] == row) {
|
||||
// 取消
|
||||
clickItem.value = [];
|
||||
multipleTableRef.value!.clearSelection()
|
||||
} else {
|
||||
// 选择
|
||||
clickItem.value.push(row);
|
||||
multipleTableRef.value!.clearSelection()
|
||||
multipleTableRef.value!.toggleRowSelection(row, true);
|
||||
}
|
||||
}
|
||||
if (clickItem.value==null){
|
||||
clickItem.value = [];
|
||||
|
||||
}
|
||||
// 单选选中行
|
||||
if ( clickItem.value[0] == row) {
|
||||
// 取消
|
||||
clickItem.value = [];
|
||||
multipleTableRef.value!.clearSelection()
|
||||
} else {
|
||||
// 选择
|
||||
clickItem.value.push(row);
|
||||
multipleTableRef.value!.clearSelection()
|
||||
multipleTableRef.value!.toggleRowSelection(row, true);
|
||||
}
|
||||
}
|
||||
/** 搜索按钮操作 */
|
||||
const handleQuery = () => {
|
||||
queryParams.pageNo = 1
|
||||
getList()
|
||||
}
|
||||
const printfClick = () =>{
|
||||
if(clickItem.value == null || clickItem.value.length == 0){
|
||||
message.error("至少选择一项后,打印!")
|
||||
return
|
||||
}
|
||||
printref.value.open(clickItem.value.storageOkQty)
|
||||
}
|
||||
|
||||
/** 重置按钮操作 */
|
||||
const resetQuery = () => {
|
||||
queryFormRef.value.resetFields()
|
||||
handleQuery()
|
||||
}
|
||||
|
||||
const handleWh = async (wid) => {
|
||||
queryParams.rgId = undefined
|
||||
queryParams.pnId = undefined
|
||||
|
||||
rgCurrentList.value =[]
|
||||
pnCurrentList.value =[]
|
||||
rgCurrentList.value = rgList.value.filter( (item) => { return item.wh_id == wid})
|
||||
|
||||
}
|
||||
const rowid = ref()
|
||||
const open = async (rowids,matCode) => {
|
||||
clickItem.value = null;
|
||||
//multipleTableRef.value!.clearSelection()
|
||||
dialogVisible.value = true
|
||||
queryParams.matName = matCode;
|
||||
// queryParams.matName = matCode;
|
||||
rowid.value = rowids
|
||||
queryParams.matName = matCode;
|
||||
|
||||
console.log(rowids)
|
||||
console.log(rowid.value)
|
||||
await getList();
|
||||
|
||||
}
|
||||
defineExpose({ open }) // 提供 open 方法,用于打开弹窗
|
||||
const emit = defineEmits(['success'])
|
||||
// emit('success', multipleSelection.value)
|
||||
const success = () =>{
|
||||
const success = () => {
|
||||
dialogVisible.value = false;
|
||||
console.log(clickItem.value)
|
||||
emit('success',rowid.value,clickItem.value[0].storageOkQty,clickItem.value[0].id,clickItem.value[0].matCode,clickItem.value[0].matName)
|
||||
const data={
|
||||
rowid:rowid.value,
|
||||
materialId:clickItem.value[0].materialId,
|
||||
matCode:clickItem.value[0].matCode,
|
||||
matName: clickItem.value[0].matName,
|
||||
whId:clickItem.value[0].whId,
|
||||
rgId:clickItem.value[0].rgId,
|
||||
pnId:clickItem.value[0].pnId,
|
||||
rgName:clickItem.value[0].rgName,
|
||||
pnName:clickItem.value[0].pnName,
|
||||
matRest:clickItem.value[0].matRest
|
||||
}
|
||||
emit('success', data)
|
||||
|
||||
}
|
||||
const handleRg = async (rgid) => {
|
||||
pnCurrentList.value =[]
|
||||
pnCurrentList.value = pnList.value.filter( (item) => { return item.rg_id == rgid})
|
||||
}
|
||||
//仓库列表
|
||||
const init_page_wh = (async ()=>{
|
||||
whList.value = await WarehouseApi.getSimpList()
|
||||
})
|
||||
//库区列表
|
||||
const init_page_rg = (async ()=>{
|
||||
rgList.value = await RgApi.getSimpList()
|
||||
})
|
||||
//库位列表
|
||||
const init_page_pn = (async ()=>{
|
||||
pnList.value = await PnApi.getSimpList()
|
||||
})
|
||||
|
||||
/** 初始化 **/
|
||||
onMounted(async () => {
|
||||
await init_page_wh()
|
||||
await init_page_rg()
|
||||
await init_page_pn()
|
||||
|
||||
await getList()
|
||||
})
|
||||
</script>
|
||||
|
@ -95,6 +95,7 @@ v-for="dict in pnCurrentList" :key="dict.id" :label="dict.pn_name"
|
||||
<script setup lang="ts">
|
||||
import download from '@/utils/download'
|
||||
import * as StorageLogApi from '@/api/heli/storagelog'
|
||||
import * as StorageInventoryApi from '@/api/heli/storageinventory'
|
||||
|
||||
import { getIntDictOptions, DICT_TYPE } from '@/utils/dict'
|
||||
|
||||
@ -135,7 +136,7 @@ const queryFormRef = ref() // 搜索的表单
|
||||
const getList = async () => {
|
||||
loading.value = true
|
||||
try {
|
||||
const data = await StorageLogApi.getStorageNowPage(queryParams)
|
||||
const data = await StorageInventoryApi.realTimeInventory(queryParams)
|
||||
list.value = data.list
|
||||
total.value = data.total
|
||||
} finally {
|
||||
|
@ -84,7 +84,7 @@ v-for="dict in pnCurrentList" :key="dict.id" :label="dict.pn_name"
|
||||
<el-table-column label="库区" align="center" prop="rgName" min-width="120"/>
|
||||
<el-table-column label="库位" align="center" prop="pnName" min-width="120"/>
|
||||
<el-table-column label="库存数量" align="center" prop="matRest" min-width="100"/>
|
||||
<el-table-column label="安全库存" align="center" prop="invSafe" min-width="100"/>
|
||||
<el-table-column label="安全库存" align="center" prop="invSafe" min-width="120"/>
|
||||
<el-table-column label="系统单位" align="center" prop="matUnit" min-width="100"/>
|
||||
<el-table-column min-width="200px" align="center" fixed="right">
|
||||
<template #header><span class="hl-table_header">*</span>补充数量</template>
|
||||
|
Loading…
Reference in New Issue
Block a user