This commit is contained in:
weiwei committed 2025-03-14 14:31:53 +08:00
1 parent 5396ec358c
commit 796c4cb04e
2 files changed
+20 -18

No files matched your search

+17 -14
View File
@@ -275,21 +275,24 @@ const getInitData = async () => {
// 计算账面数量 // 计算账面数量
const formatterAccountNumber = (row: any) => { const formatterAccountNumber = (row: any) => {
let stock = row.stock if (!row._cachedAccountNumber) {
console.log("xxx", stock) console.log("xxxxx")
return row.erpUnitVos let stock = row.stock
.map((item: any, index: number) => { row._cachedAccountNumber = row.erpUnitVos
item.oriIndex = index .map((item: any, index: number) => {
return item item.oriIndex = index
}) return item
.sort((a: any, b: any) => b.packageNum - a.packageNum) })
.map((item: any, index: number) => { .sort((a: any, b: any) => b.packageNum - a.packageNum)
item.accountNumber = Math.floor(stock / item.packageNum) .map((item: any, index: number) => {
stock = stock % item.packageNum item.accountNumber = Math.floor(stock / item.packageNum)
return item stock = stock % item.packageNum
}) return item
.sort((a: any, b: any) => a.oriIndex - b.oriIndex) })
.sort((a: any, b: any) => a.oriIndex - b.oriIndex)
}
return row._cachedAccountNumber
} }
// 顶部表格行新增 // 顶部表格行新增
@@ -177,14 +177,12 @@ const showSearch = ref(true)
// 多选变量 // 多选变量
const selectObjs = ref([]) as any const selectObjs = ref([]) as any
const multiple = ref(true) const multiple = ref(true)
const activeName = ref("2") const activeName = ref()
const tabItems = ref<any>([{}]) const tabItems = ref<any>([{}])
const processDrawerRef = ref() const processDrawerRef = ref()
const state: BasicTableProps = reactive<BasicTableProps>({ const state: BasicTableProps = reactive<BasicTableProps>({
queryForm: { queryForm: {},
processStatus: "2",
},
pageList: walletRechargeApplyApi.pageJoin, pageList: walletRechargeApplyApi.pageJoin,
}) })
@@ -234,6 +232,7 @@ const selectionChangHandle = (objs: { id: string }[]) => {
onMounted(async () => { onMounted(async () => {
const { data } = await getDicts("check_status") const { data } = await getDicts("check_status")
data.unshift({ label: "全部", value: null })
tabItems.value = data tabItems.value = data
}) })