diff --git a/core/domain/src/main/kotlin/com/wansenai/vo/financial/AdvanceChargeDetailVO.kt b/core/domain/src/main/kotlin/com/wansenai/vo/financial/AdvanceChargeDetailVO.kt index 832ab43b..f88513f0 100644 --- a/core/domain/src/main/kotlin/com/wansenai/vo/financial/AdvanceChargeDetailVO.kt +++ b/core/domain/src/main/kotlin/com/wansenai/vo/financial/AdvanceChargeDetailVO.kt @@ -52,4 +52,6 @@ data class AdvanceChargeDetailVO ( var files: List? = null, var remark: String? = null, + + var status: Int? = null, ) diff --git a/core/service/src/main/java/com/wansenai/service/warehouse/impl/OtherShipmentsServiceImpl.java b/core/service/src/main/java/com/wansenai/service/warehouse/impl/OtherShipmentsServiceImpl.java index d2a061b7..734ee7fe 100644 --- a/core/service/src/main/java/com/wansenai/service/warehouse/impl/OtherShipmentsServiceImpl.java +++ b/core/service/src/main/java/com/wansenai/service/warehouse/impl/OtherShipmentsServiceImpl.java @@ -294,7 +294,7 @@ public Response addOrUpdateOtherShipments(OtherShipmentDTO otherShipment if(!otherShipmentsDTO.getTableData().isEmpty()) { for (StorageShipmentStockBO stockBO : otherShipmentsDTO.getTableData()) { totalProductNumber += stockBO.getProductNumber(); - totalAmount = totalAmount.add(stockBO.getAmount()); + totalAmount = totalAmount.add(Optional.ofNullable(stockBO.getAmount()).orElse(BigDecimal.ZERO)); } } diff --git a/core/service/src/main/java/com/wansenai/service/warehouse/impl/OtherStorageServiceImpl.java b/core/service/src/main/java/com/wansenai/service/warehouse/impl/OtherStorageServiceImpl.java index e8e252a4..c4771234 100644 --- a/core/service/src/main/java/com/wansenai/service/warehouse/impl/OtherStorageServiceImpl.java +++ b/core/service/src/main/java/com/wansenai/service/warehouse/impl/OtherStorageServiceImpl.java @@ -297,7 +297,7 @@ public Response addOrUpdateOtherStorage(OtherStorageDTO otherStorageDTO) if(!otherStorageDTO.getTableData().isEmpty()) { for (StorageShipmentStockBO stockBO : otherStorageDTO.getTableData()) { totalProductNumber += stockBO.getProductNumber(); - totalAmount = totalAmount.add(stockBO.getAmount()); + totalAmount = totalAmount.add(Optional.ofNullable(stockBO.getAmount()).orElse(BigDecimal.ZERO)); } } diff --git a/core/service/src/main/kotlin/com/wansenai/service/basic/impl/CustomerServiceImpl.kt b/core/service/src/main/kotlin/com/wansenai/service/basic/impl/CustomerServiceImpl.kt index 6730ec60..8e1e3155 100644 --- a/core/service/src/main/kotlin/com/wansenai/service/basic/impl/CustomerServiceImpl.kt +++ b/core/service/src/main/kotlin/com/wansenai/service/basic/impl/CustomerServiceImpl.kt @@ -98,7 +98,9 @@ open class CustomerServiceImpl( queryCustomerDTO?.phoneNumber?.let { like(Customer::getPhoneNumber, it) } queryCustomerDTO?.startDate?.let { ge(Customer::getCreateTime, it) } queryCustomerDTO?.endDate?.let { le(Customer::getCreateTime, it) } + eq(Customer::getStatus, CommonConstants.STATUS_NORMAL) eq(Customer::getDeleteFlag, CommonConstants.NOT_DELETED) + .orderByAsc(Customer::getSort) } val list = customerMapper.selectList(wrapper) val listVo = list.map { customer -> diff --git a/core/service/src/main/kotlin/com/wansenai/service/basic/impl/MemberServiceImpl.kt b/core/service/src/main/kotlin/com/wansenai/service/basic/impl/MemberServiceImpl.kt index fae20eae..38b1e6cd 100644 --- a/core/service/src/main/kotlin/com/wansenai/service/basic/impl/MemberServiceImpl.kt +++ b/core/service/src/main/kotlin/com/wansenai/service/basic/impl/MemberServiceImpl.kt @@ -173,6 +173,7 @@ open class MemberServiceImpl( .eq(StringUtils.hasLength(memberDTO?.phoneNumber), Member::getPhoneNumber, memberDTO?.phoneNumber) .ge(StringUtils.hasLength(memberDTO?.startDate), Member::getCreateTime, memberDTO?.startDate) .le(StringUtils.hasLength(memberDTO?.endDate), Member::getCreateTime, memberDTO?.endDate) + .eq(Member::getStatus, CommonConstants.STATUS_NORMAL) .eq(Member::getDeleteFlag, CommonConstants.NOT_DELETED) .orderByAsc(Member::getSort) ) diff --git a/core/service/src/main/kotlin/com/wansenai/service/basic/impl/SupplierServiceImpl.kt b/core/service/src/main/kotlin/com/wansenai/service/basic/impl/SupplierServiceImpl.kt index 53129cee..b19eaf64 100644 --- a/core/service/src/main/kotlin/com/wansenai/service/basic/impl/SupplierServiceImpl.kt +++ b/core/service/src/main/kotlin/com/wansenai/service/basic/impl/SupplierServiceImpl.kt @@ -136,7 +136,9 @@ open class SupplierServiceImpl( supplier?.phoneNumber?.let { like(Supplier::getPhoneNumber, it) } supplier?.startDate?.let { ge(Supplier::getCreateTime, it) } supplier?.endDate?.let { le(Supplier::getCreateTime, it) } + eq(Supplier::getStatus, CommonConstants.STATUS_NORMAL) eq(Supplier::getDeleteFlag, CommonConstants.NOT_DELETED) + orderByAsc(Supplier::getSort) } val list = supplierMapper.selectList(wrapper) val listVo = list.map { supplier -> diff --git a/core/service/src/main/kotlin/com/wansenai/service/financial/impl/AdvanceChargeServiceImpl.kt b/core/service/src/main/kotlin/com/wansenai/service/financial/impl/AdvanceChargeServiceImpl.kt index 61038845..83be32b3 100644 --- a/core/service/src/main/kotlin/com/wansenai/service/financial/impl/AdvanceChargeServiceImpl.kt +++ b/core/service/src/main/kotlin/com/wansenai/service/financial/impl/AdvanceChargeServiceImpl.kt @@ -247,6 +247,7 @@ open class AdvanceChargeServiceImpl( val financialPerson = operatorService.getOperatorById(financialMain.operatorId) val subData = financialSubService.lambdaQuery() .eq(FinancialSub::getFinancialMainId, id) + .eq(FinancialSub::getDeleteFlag, CommonConstants.NOT_DELETED) .list() val tableData = ArrayList() @@ -288,7 +289,8 @@ open class AdvanceChargeServiceImpl( collectedAmount = financialMain.changeAmount, tableData = tableData, remark = financialMain.remark, - files = filesData + files = filesData, + status = financialMain.status ) return Response.responseData(resultVO); } diff --git a/web/package.json b/web/package.json index 624743c7..4f7a1fe2 100644 --- a/web/package.json +++ b/web/package.json @@ -104,8 +104,8 @@ "vue-router": "^4.2.3", "vue-types": "^5.1.0", "vuedraggable": "^4.1.0", - "vxe-table": "^4.4.5", - "vxe-table-plugin-export-xlsx": "^3.0.4", + "vxe-table": "^4.5.14", + "vxe-table-plugin-export-xlsx": "3.1.0", "xe-utils": "^3.5.11", "xlsx": "^0.18.5" }, diff --git a/web/pnpm-lock.yaml b/web/pnpm-lock.yaml index 66aabdb7..efd614c3 100644 --- a/web/pnpm-lock.yaml +++ b/web/pnpm-lock.yaml @@ -123,11 +123,11 @@ importers: specifier: ^4.1.0 version: registry.npmmirror.com/vuedraggable@4.1.0(vue@3.3.4) vxe-table: - specifier: ^4.4.5 - version: registry.npmmirror.com/vxe-table@4.5.8(vue@3.3.4)(xe-utils@3.5.12) + specifier: ^4.5.14 + version: registry.npmmirror.com/vxe-table@4.5.14(vue@3.3.4)(xe-utils@3.5.12) vxe-table-plugin-export-xlsx: - specifier: ^3.0.4 - version: registry.npmmirror.com/vxe-table-plugin-export-xlsx@3.0.5(vxe-table@4.5.8) + specifier: 3.1.0 + version: registry.npmmirror.com/vxe-table-plugin-export-xlsx@3.1.0(vxe-table@4.5.14) xe-utils: specifier: ^3.5.11 version: registry.npmmirror.com/xe-utils@3.5.12 @@ -9372,10 +9372,10 @@ packages: name: dom-scroll-into-view version: 2.0.1 - registry.npmmirror.com/dom-zindex@1.0.0: - resolution: {integrity: sha512-pBKBPSfInArD3L+NPnGny/9l3g6NmFbbOEacpc0nB28PGXdcphZdnr794KFnPglNm2Wdt2hYOdUkYYej8CbvsQ==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/dom-zindex/-/dom-zindex-1.0.0.tgz} + registry.npmmirror.com/dom-zindex@1.0.1: + resolution: {integrity: sha512-M/MERVDZ8hguvjl6MAlLWSLYLS7PzEyXaTb5gEeJ+SF+e9iUC0sdvlzqe91MMDHBoy+nqw7wKcUOrDSyvMCrRg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/dom-zindex/-/dom-zindex-1.0.1.tgz} name: dom-zindex - version: 1.0.0 + version: 1.0.1 dev: false registry.npmmirror.com/domexception@2.0.1: @@ -13323,27 +13323,27 @@ packages: vue: 3.3.4 dev: false - registry.npmmirror.com/vxe-table-plugin-export-xlsx@3.0.5(vxe-table@4.5.8): - resolution: {integrity: sha512-9vZuqIEFdyjNAiUaHsE2fc0RyI8q/DsbpsVvi2flOeTqyUDjvpyDYzTjiF9W3rXMPwxZ8w3DHc0OoCFooexcDw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/vxe-table-plugin-export-xlsx/-/vxe-table-plugin-export-xlsx-3.0.5.tgz} - id: registry.npmmirror.com/vxe-table-plugin-export-xlsx/3.0.5 + registry.npmmirror.com/vxe-table-plugin-export-xlsx@3.1.0(vxe-table@4.5.14): + resolution: {integrity: sha512-ieEsN6h+QaKHgwQ6k1MtjvW17T+FCS9Bw2Xhg67HKIbuLMS+SprcF+EBrMtHIOfzQ2i41KAoLsCvXRbd5uChAA==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/vxe-table-plugin-export-xlsx/-/vxe-table-plugin-export-xlsx-3.1.0.tgz} + id: registry.npmmirror.com/vxe-table-plugin-export-xlsx/3.1.0 name: vxe-table-plugin-export-xlsx - version: 3.0.5 + version: 3.1.0 peerDependencies: - vxe-table: ^4.0.27 + vxe-table: ^4.5.0 dependencies: - vxe-table: registry.npmmirror.com/vxe-table@4.5.8(vue@3.3.4)(xe-utils@3.5.12) + vxe-table: registry.npmmirror.com/vxe-table@4.5.14(vue@3.3.4)(xe-utils@3.5.12) dev: false - registry.npmmirror.com/vxe-table@4.5.8(vue@3.3.4)(xe-utils@3.5.12): - resolution: {integrity: sha512-phfQ2C2/7b940VYYPQNDPKyJmKoAdB21U89kxmmAuUUWpuKMojzvB+3+Vd6LKrdyBqY6C0z0BCJcPIjTayEMmg==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/vxe-table/-/vxe-table-4.5.8.tgz} - id: registry.npmmirror.com/vxe-table/4.5.8 + registry.npmmirror.com/vxe-table@4.5.14(vue@3.3.4)(xe-utils@3.5.12): + resolution: {integrity: sha512-S+6pAYQsoY5DZj9qLXQLDKcA/+AO5CSrs9tGn+/By8WxYWJNLw3i5cjbXsriUaJeuj8Qi1aYfdhrNfeMCwE9Iw==, registry: https://registry.npm.taobao.org/, tarball: https://registry.npmmirror.com/vxe-table/-/vxe-table-4.5.14.tgz} + id: registry.npmmirror.com/vxe-table/4.5.14 name: vxe-table - version: 4.5.8 + version: 4.5.14 peerDependencies: vue: ^3.2.28 xe-utils: ^3.5.0 dependencies: - dom-zindex: registry.npmmirror.com/dom-zindex@1.0.0 + dom-zindex: registry.npmmirror.com/dom-zindex@1.0.1 vue: 3.3.4 xe-utils: registry.npmmirror.com/xe-utils@3.5.12 dev: false diff --git a/web/src/api/financial/model/advanceModel.ts b/web/src/api/financial/model/advanceModel.ts index 8129629c..871e6410 100644 --- a/web/src/api/financial/model/advanceModel.ts +++ b/web/src/api/financial/model/advanceModel.ts @@ -7,7 +7,7 @@ export interface FileData { fileSize: number; } -interface AdvanceChargeData { +export interface AdvanceChargeData { accountId: number | string; accountName: string; amount: number; diff --git a/web/src/components/SimpleMenu/src/SimpleSubMenu.vue b/web/src/components/SimpleMenu/src/SimpleSubMenu.vue index 068d0c21..1accfc7f 100644 --- a/web/src/components/SimpleMenu/src/SimpleSubMenu.vue +++ b/web/src/components/SimpleMenu/src/SimpleSubMenu.vue @@ -54,10 +54,12 @@ import SubMenu from './components/SubMenuItem.vue'; import { propTypes } from '/@/utils/propTypes'; import { useI18n } from '/@/hooks/web/useI18n'; + import SimpleMenuTag from "@/components/SimpleMenu/src/SimpleMenuTag.vue"; export default defineComponent({ name: 'SimpleSubMenu', components: { + SimpleMenuTag, SubMenu, MenuItem, Icon, diff --git a/web/src/layouts/default/header/components/user-dropdown/index.vue b/web/src/layouts/default/header/components/user-dropdown/index.vue index d46a5293..11f93183 100644 --- a/web/src/layouts/default/header/components/user-dropdown/index.vue +++ b/web/src/layouts/default/header/components/user-dropdown/index.vue @@ -38,7 +38,6 @@ -