优化bug

This commit is contained in:
BianLzhaoMin 2024-04-26 17:53:09 +08:00
parent df24cb9922
commit eecb2f69f7
1 changed files with 1 additions and 31 deletions

View File

@ -421,38 +421,8 @@
this.loading = true this.loading = true
this.queryParams.taskId = this.taskId this.queryParams.taskId = this.taskId
const { data: res } = await getMacodeList(this.queryParams) const { data: res } = await getMacodeList(this.queryParams)
this.loading = false
/* 固定资产 */
let fixedAssetsList =
res.filter((e) => e.fixCode == '0') || null
/* 非固定资产 */
let noFixedAssetsList =
res.filter((e) => e.fixCode == '1') || null
let fixNum = 0
let noFixNum = 0
if (fixedAssetsList) {
fixedAssetsList.map((e) => {
fixNum++
})
fixedAssetsList[0].bindNum = fixedAssetsList[0].checkNum =
fixNum
}
if (noFixedAssetsList) {
noFixedAssetsList.map((e) => {
noFixNum++
})
noFixedAssetsList[0].bindNum =
noFixedAssetsList[0].checkNum = noFixNum
}
this.typeList = res this.typeList = res
// this.typeList = [ this.loading = false
// fixedAssetsList[0] || {},
// noFixedAssetsList[0] || {},
// ]
}, },
// //
cancel() { cancel() {