From 51abc81b1e041e9eb70cc2c5b37bff84fa75160c Mon Sep 17 00:00:00 2001 From: BianLzhaoMin <11485688+bianliangzhaomin123@user.noreply.gitee.com> Date: Fri, 26 Apr 2024 17:51:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=B5=8B=E8=AF=95=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../newBuy/newDevices/newDevicesCode.vue | 24 +------------------ 1 file changed, 1 insertion(+), 23 deletions(-) diff --git a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesCode.vue b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesCode.vue index f1e347c5..467038ea 100644 --- a/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesCode.vue +++ b/sgzb-ui/src/views/store/newBuy/newDevices/newDevicesCode.vue @@ -276,29 +276,7 @@ export default { this.loading = true this.queryParams.taskId = this.taskId const { data: res } = await getMacodeList(this.queryParams) - - /* 固定资产 */ - 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 = [fixedAssetsList[0] || {}, noFixedAssetsList[0] || {}] + this.typeList = res this.loading = false }, // 取消按钮