李红攀:V2.6.975,添加采购询比、采购统计
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<view class="yd-page-container">
|
||||
<view class="yd-page-container erp-page">
|
||||
<!-- 顶部导航栏 -->
|
||||
<wd-navbar
|
||||
title="库存记录"
|
||||
@@ -142,7 +142,7 @@ definePage({
|
||||
const total = ref(0)
|
||||
const list = ref<StockRecord[]>([])
|
||||
const loadMoreState = ref<LoadMoreState>('loading')
|
||||
const queryParams = ref<Record<string, any>>({
|
||||
const queryParams = ref<{ pageNo: number; pageSize: number } & Record<string, any>>({
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
})
|
||||
@@ -156,7 +156,7 @@ const searchForm = reactive({
|
||||
})
|
||||
|
||||
// 仓库列表
|
||||
const warehouseList = ref<{ id: number, name: string }[]>([])
|
||||
const warehouseList = ref<{ id?: number, name?: string }[]>([])
|
||||
|
||||
/** 业务类型下拉列 */
|
||||
const bizTypeColumns = computed(() => [
|
||||
@@ -233,7 +233,7 @@ function handleBack() {
|
||||
async function getList() {
|
||||
loadMoreState.value = 'loading'
|
||||
try {
|
||||
const params: Record<string, any> = { ...queryParams.value }
|
||||
const params = { ...queryParams.value }
|
||||
if (searchForm.bizNo) params.bizNo = searchForm.bizNo
|
||||
if (searchForm.bizType !== undefined) params.bizType = searchForm.bizType
|
||||
if (searchForm.warehouseId) params.warehouseId = searchForm.warehouseId
|
||||
|
||||
Reference in New Issue
Block a user