oak-pay-business 2.7.0 → 2.8.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/aspects/AspectDict.d.ts +10 -1
- package/es/aspects/index.js +3 -0
- package/es/aspects/ship.d.ts +18 -0
- package/es/aspects/ship.js +41 -0
- package/es/checkers/index.js +2 -0
- package/es/checkers/order.js +50 -3
- package/es/checkers/pay.js +18 -35
- package/es/checkers/ship.d.ts +5 -0
- package/es/checkers/ship.js +100 -0
- package/es/components/AbstractComponents.js +0 -4
- package/es/components/account/detail/index.d.ts +1 -0
- package/es/components/account/detail/index.js +127 -2
- package/es/components/account/detail/index.json +1 -0
- package/es/components/account/detail/index.xml +4 -0
- package/es/components/account/detail/locales/zh-CN.json +9 -1
- package/es/components/offlineAccount/upsert/web.pc.js +3 -3
- package/es/components/order/pay/index.d.ts +2 -0
- package/es/components/order/pay/index.js +8 -3
- package/es/components/order/pay/index.less +1 -1
- package/es/components/order/pay/index.xml +1 -1
- package/es/components/order/pay/web.d.ts +1 -2
- package/es/components/order/pay/web.js +6 -6
- package/es/components/order/pay/web.mobile.module.less +1 -1
- package/es/components/order/pay/web.pc.d.ts +1 -2
- package/es/components/order/pay/web.pc.js +7 -7
- package/es/components/order/pay/web.pc.module.less +2 -2
- package/es/components/pay/channelPicker2/web.pc.js +3 -1
- package/es/components/pay/detail/index.d.ts +4 -0
- package/es/components/pay/detail/index.js +200 -35
- package/es/components/pay/detail/index.xml +17 -15
- package/es/components/pay/detail/locales/zh-CN.json +18 -2
- package/es/components/pay/detail/web.d.ts +6 -0
- package/es/components/pay/detail/web.js +64 -41
- package/es/components/pay/detail/web.mobile.module.less +2 -1
- package/es/components/pay/detail/web.pc.d.ts +7 -1
- package/es/components/pay/detail/web.pc.js +91 -55
- package/es/components/pay/detail/web.pc.module.less +4 -1
- package/es/components/pay/list/web.pc.js +1 -1
- package/es/components/payConfig/system/web.pc.js +1 -4
- package/es/components/ship/system/index.d.ts +3 -0
- package/es/components/ship/system/index.js +15 -0
- package/es/components/ship/system/index.json +1 -0
- package/es/components/ship/system/locales/zh-CN.json +8 -0
- package/es/components/ship/system/web.pc.d.ts +10 -0
- package/es/components/ship/system/web.pc.js +79 -0
- package/es/components/ship/system/web.pc.module.less +16 -0
- package/es/components/ship/wechatMpShip/index.d.ts +4 -0
- package/es/components/ship/wechatMpShip/index.js +47 -0
- package/es/components/ship/wechatMpShip/index.json +1 -0
- package/es/components/ship/wechatMpShip/locales/zh-CN.json +10 -0
- package/es/components/ship/wechatMpShip/upsert/index.d.ts +4 -0
- package/es/components/ship/wechatMpShip/upsert/index.js +52 -0
- package/es/components/ship/wechatMpShip/upsert/index.json +1 -0
- package/es/components/ship/wechatMpShip/upsert/locales/zh-CN.json +6 -0
- package/es/components/ship/wechatMpShip/upsert/web.pc.d.ts +11 -0
- package/es/components/ship/wechatMpShip/upsert/web.pc.js +27 -0
- package/es/components/ship/wechatMpShip/web.pc.d.ts +7 -0
- package/es/components/ship/wechatMpShip/web.pc.js +73 -0
- package/es/components/{payConfig/upsert → ship/wechatMpShip}/web.pc.module.less +2 -5
- package/es/components/shipServiceSystem/list/index.d.ts +5 -0
- package/es/components/shipServiceSystem/list/index.js +123 -0
- package/es/components/shipServiceSystem/list/index.json +1 -0
- package/es/components/shipServiceSystem/list/locales/zh-CN.json +6 -0
- package/es/components/shipServiceSystem/list/web.pc.d.ts +13 -0
- package/es/components/shipServiceSystem/list/web.pc.js +131 -0
- package/es/components/shipServiceSystem/list/web.pc.module.less +6 -0
- package/es/components/sysAccount/survey/index.d.ts +0 -1
- package/es/components/sysAccount/survey/index.js +161 -144
- package/es/components/sysAccount/survey/locales/zh-CN.json +1 -1
- package/es/components/sysAccount/survey/web.pc.d.ts +13 -0
- package/es/components/sysAccount/survey/web.pc.js +21 -8
- package/es/components/wpAccount/config/index.js +1 -0
- package/es/components/wpAccount/config/web.pc.js +3 -2
- package/es/components/wpAccount/upsert/index.js +2 -0
- package/es/components/wpProduct/config/index.js +2 -0
- package/es/components/wpProduct/config/web.pc.js +1 -1
- package/es/components/wpProduct/upsert/index.js +5 -0
- package/es/components/wpProduct/upsert/locales/zh-CN.json +13 -1
- package/es/components/wpProduct/upsert/web.pc.js +26 -2
- package/es/config/constants.d.ts +2 -0
- package/es/config/constants.js +2 -0
- package/es/configuration/attrUpdateMatrix.js +0 -5
- package/es/configuration/relation.js +2 -0
- package/es/data/actionAuth.js +11 -0
- package/es/data/i18n.js +86 -82
- package/es/data/index.js +4 -0
- package/es/data/path.js +15 -1
- package/es/data/shipCompany.d.ts +7 -0
- package/es/data/shipCompany.js +3 -0
- package/es/data/shipCompany.json +9056 -0
- package/es/data/shipService.d.ts +3 -0
- package/es/data/shipService.js +89 -0
- package/es/endpoints/wechatPay.d.ts +5 -0
- package/es/endpoints/wechatPay.js +19 -0
- package/es/entities/AbstactPayProduct.d.ts +13 -0
- package/es/entities/AbstactPayProduct.js +16 -0
- package/es/entities/AbstractAccount.d.ts +2 -1
- package/es/entities/AbstractAccount.js +2 -1
- package/es/entities/AbstractPayAccount.d.ts +16 -0
- package/es/entities/AbstractPayAccount.js +34 -0
- package/es/entities/AbstractShipAccount.d.ts +14 -0
- package/es/entities/AbstractShipAccount.js +16 -0
- package/es/entities/Deposit.d.ts +2 -0
- package/es/entities/Deposit.js +2 -1
- package/es/entities/OfflineAccount.d.ts +3 -6
- package/es/entities/OfflineAccount.js +4 -3
- package/es/entities/Order.d.ts +3 -0
- package/es/entities/Order.js +4 -1
- package/es/entities/Pay.d.ts +4 -2
- package/es/entities/Pay.js +2 -0
- package/es/entities/Ship.d.ts +35 -0
- package/es/entities/Ship.js +109 -0
- package/es/entities/ShipCompany.d.ts +9 -0
- package/es/entities/ShipCompany.js +27 -0
- package/es/entities/ShipCompanySystem.d.ts +9 -0
- package/es/entities/ShipCompanySystem.js +12 -0
- package/es/entities/ShipOrder.d.ts +9 -0
- package/es/entities/ShipOrder.js +12 -0
- package/es/entities/ShipService.d.ts +9 -0
- package/es/entities/ShipService.js +12 -0
- package/es/entities/ShipServiceSystem.d.ts +9 -0
- package/es/entities/ShipServiceSystem.js +12 -0
- package/es/entities/WechatMpShip.d.ts +7 -0
- package/es/entities/WechatMpShip.js +17 -0
- package/es/entities/WpAccount.d.ts +3 -6
- package/es/entities/WpAccount.js +4 -3
- package/es/entities/WpProduct.d.ts +2 -8
- package/es/entities/WpProduct.js +6 -4
- package/es/features/Pay.d.ts +0 -2
- package/es/features/Pay.js +0 -3
- package/es/locales/error/zh-CN.json +3 -0
- package/es/oak-app-domain/AbstactPayProduct/Schema.d.ts +19 -0
- package/es/oak-app-domain/AbstactPayProduct/Schema.js +1 -0
- package/es/oak-app-domain/AbstactPayProduct/Storage.d.ts +3 -0
- package/es/oak-app-domain/AbstactPayProduct/Storage.js +40 -0
- package/es/oak-app-domain/AbstactPayProduct/_baseSchema.d.ts +57 -0
- package/es/oak-app-domain/AbstactPayProduct/_baseSchema.js +1 -0
- package/es/oak-app-domain/AbstactPayProduct/locales/zh_CN.json +11 -0
- package/es/oak-app-domain/AbstractAccount/Storage.js +4 -0
- package/es/oak-app-domain/AbstractAccount/_baseSchema.d.ts +5 -1
- package/es/oak-app-domain/AbstractAccount/locales/zh_CN.json +2 -1
- package/es/oak-app-domain/AbstractPayAccount/Action.d.ts +5 -0
- package/es/oak-app-domain/AbstractPayAccount/Action.js +2 -0
- package/es/oak-app-domain/AbstractPayAccount/Schema.d.ts +19 -0
- package/es/oak-app-domain/AbstractPayAccount/Schema.js +1 -0
- package/es/oak-app-domain/AbstractPayAccount/Storage.d.ts +3 -0
- package/es/oak-app-domain/AbstractPayAccount/Storage.js +51 -0
- package/es/oak-app-domain/AbstractPayAccount/Style.d.ts +3 -0
- package/es/oak-app-domain/AbstractPayAccount/Style.js +9 -0
- package/es/oak-app-domain/AbstractPayAccount/_baseSchema.d.ts +65 -0
- package/es/oak-app-domain/AbstractPayAccount/_baseSchema.js +1 -0
- package/es/oak-app-domain/AbstractPayAccount/locales/zh_CN.json +20 -0
- package/es/oak-app-domain/AbstractShipAccount/Schema.d.ts +19 -0
- package/es/oak-app-domain/AbstractShipAccount/Schema.js +1 -0
- package/es/oak-app-domain/AbstractShipAccount/Storage.d.ts +3 -0
- package/es/oak-app-domain/AbstractShipAccount/Storage.js +37 -0
- package/es/oak-app-domain/AbstractShipAccount/_baseSchema.d.ts +53 -0
- package/es/oak-app-domain/AbstractShipAccount/_baseSchema.js +1 -0
- package/es/oak-app-domain/AbstractShipAccount/locales/zh_CN.json +11 -0
- package/es/oak-app-domain/Account/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/AccountOper/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/ActionAuth/_baseSchema.d.ts +2 -0
- package/es/oak-app-domain/ActionDefDict.d.ts +4 -1
- package/es/oak-app-domain/ActionDefDict.js +4 -2
- package/es/oak-app-domain/Address/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/Application/Storage.js +1 -1
- package/es/oak-app-domain/Application/_baseSchema.d.ts +3 -1
- package/es/oak-app-domain/ApplicationPassport/_baseSchema.d.ts +2 -0
- package/es/oak-app-domain/Area/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/Article/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/ArticleMenu/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/ChangePasswordTemp/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/Deposit/Storage.js +4 -0
- package/es/oak-app-domain/Deposit/_baseSchema.d.ts +6 -0
- package/es/oak-app-domain/Deposit/locales/zh_CN.json +2 -1
- package/es/oak-app-domain/Domain/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/Email/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/EntityDict.d.ts +592 -34
- package/es/oak-app-domain/ExtraFile/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/LoginName/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/Message/_baseSchema.d.ts +2 -0
- package/es/oak-app-domain/MessageSystem/_baseSchema.d.ts +2 -0
- package/es/oak-app-domain/MessageTypeSmsTemplate/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/MessageTypeTemplate/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/Mobile/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/ModiEntity/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/Notification/_baseSchema.d.ts +2 -0
- package/es/oak-app-domain/OfflineAccount/Storage.js +12 -10
- package/es/oak-app-domain/OfflineAccount/_baseSchema.d.ts +14 -9
- package/es/oak-app-domain/OfflineAccount/locales/zh_CN.json +5 -4
- package/es/oak-app-domain/Oper/_baseSchema.d.ts +2 -0
- package/es/oak-app-domain/OperEntity/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/Order/Storage.js +7 -0
- package/es/oak-app-domain/Order/Style.js +1 -0
- package/es/oak-app-domain/Order/_baseSchema.d.ts +10 -0
- package/es/oak-app-domain/Order/locales/zh_CN.json +3 -1
- package/es/oak-app-domain/Parasite/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/Passport/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/Pay/Storage.js +6 -0
- package/es/oak-app-domain/Pay/_baseSchema.d.ts +11 -0
- package/es/oak-app-domain/Pay/locales/zh_CN.json +3 -1
- package/es/oak-app-domain/ReadRemark/_baseSchema.d.ts +2 -0
- package/es/oak-app-domain/Refund/_baseSchema.d.ts +3 -0
- package/es/oak-app-domain/RelationAuth/_baseSchema.d.ts +3 -0
- package/es/oak-app-domain/Session/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/SessionMessage/_baseSchema.d.ts +4 -0
- package/es/oak-app-domain/Settlement/_baseSchema.d.ts +2 -0
- package/es/oak-app-domain/Ship/Action.d.ts +12 -0
- package/es/oak-app-domain/Ship/Action.js +16 -0
- package/es/oak-app-domain/Ship/Schema.d.ts +19 -0
- package/es/oak-app-domain/Ship/Schema.js +1 -0
- package/es/oak-app-domain/Ship/Storage.d.ts +3 -0
- package/es/oak-app-domain/Ship/Storage.js +100 -0
- package/es/oak-app-domain/Ship/Style.d.ts +3 -0
- package/es/oak-app-domain/Ship/Style.js +25 -0
- package/es/oak-app-domain/Ship/_baseSchema.d.ts +97 -0
- package/es/oak-app-domain/Ship/_baseSchema.js +1 -0
- package/es/oak-app-domain/Ship/locales/zh_CN.json +49 -0
- package/es/oak-app-domain/ShipCompany/Schema.d.ts +19 -0
- package/es/oak-app-domain/ShipCompany/Schema.js +1 -0
- package/es/oak-app-domain/ShipCompany/Storage.d.ts +3 -0
- package/es/oak-app-domain/ShipCompany/Storage.js +41 -0
- package/es/oak-app-domain/ShipCompany/_baseSchema.d.ts +44 -0
- package/es/oak-app-domain/ShipCompany/_baseSchema.js +1 -0
- package/es/oak-app-domain/ShipCompany/locales/zh_CN.json +8 -0
- package/es/oak-app-domain/ShipCompanySystem/Schema.d.ts +19 -0
- package/es/oak-app-domain/ShipCompanySystem/Schema.js +1 -0
- package/es/oak-app-domain/ShipCompanySystem/Storage.d.ts +3 -0
- package/es/oak-app-domain/ShipCompanySystem/Storage.js +17 -0
- package/es/oak-app-domain/ShipCompanySystem/_baseSchema.d.ts +38 -0
- package/es/oak-app-domain/ShipCompanySystem/_baseSchema.js +1 -0
- package/es/oak-app-domain/ShipCompanySystem/locales/zh_CN.json +7 -0
- package/es/oak-app-domain/ShipOrder/Schema.d.ts +19 -0
- package/es/oak-app-domain/ShipOrder/Schema.js +1 -0
- package/es/oak-app-domain/ShipOrder/Storage.d.ts +3 -0
- package/es/oak-app-domain/ShipOrder/Storage.js +17 -0
- package/es/oak-app-domain/ShipOrder/_baseSchema.d.ts +40 -0
- package/es/oak-app-domain/ShipOrder/_baseSchema.js +1 -0
- package/es/oak-app-domain/ShipOrder/locales/zh_CN.json +7 -0
- package/es/oak-app-domain/ShipService/Schema.d.ts +19 -0
- package/es/oak-app-domain/ShipService/Schema.js +1 -0
- package/es/oak-app-domain/ShipService/Storage.d.ts +3 -0
- package/es/oak-app-domain/ShipService/Storage.js +19 -0
- package/es/oak-app-domain/ShipService/_baseSchema.d.ts +41 -0
- package/es/oak-app-domain/ShipService/_baseSchema.js +1 -0
- package/es/oak-app-domain/ShipService/locales/zh_CN.json +7 -0
- package/es/oak-app-domain/ShipServiceSystem/Schema.d.ts +19 -0
- package/es/oak-app-domain/ShipServiceSystem/Schema.js +1 -0
- package/es/oak-app-domain/ShipServiceSystem/Storage.d.ts +3 -0
- package/es/oak-app-domain/ShipServiceSystem/Storage.js +17 -0
- package/es/oak-app-domain/ShipServiceSystem/_baseSchema.d.ts +40 -0
- package/es/oak-app-domain/ShipServiceSystem/_baseSchema.js +1 -0
- package/es/oak-app-domain/ShipServiceSystem/locales/zh_CN.json +7 -0
- package/es/oak-app-domain/SmsTemplate/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/Station/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/Storage.js +18 -2
- package/es/oak-app-domain/StyleDict.js +4 -2
- package/es/oak-app-domain/Subway/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/SubwayStation/_baseSchema.d.ts +2 -0
- package/es/oak-app-domain/SysAccountMove/_baseSchema.d.ts +2 -0
- package/es/oak-app-domain/SysAccountOper/_baseSchema.d.ts +4 -0
- package/es/oak-app-domain/System/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/Token/_baseSchema.d.ts +3 -0
- package/es/oak-app-domain/User/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/UserEntityClaim/_baseSchema.d.ts +4 -0
- package/es/oak-app-domain/UserEntityGrant/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/UserRelation/_baseSchema.d.ts +2 -0
- package/es/oak-app-domain/UserSystem/_baseSchema.d.ts +2 -0
- package/es/oak-app-domain/UserWechatPublicTag/_baseSchema.d.ts +2 -0
- package/es/oak-app-domain/WechatLogin/_baseSchema.d.ts +2 -0
- package/es/oak-app-domain/WechatMenu/_baseSchema.d.ts +2 -0
- package/es/oak-app-domain/WechatMpJump/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/WechatMpShip/Schema.d.ts +19 -0
- package/es/oak-app-domain/WechatMpShip/Schema.js +1 -0
- package/es/oak-app-domain/WechatMpShip/Storage.d.ts +3 -0
- package/es/oak-app-domain/WechatMpShip/Storage.js +42 -0
- package/es/oak-app-domain/WechatMpShip/_baseSchema.d.ts +57 -0
- package/es/oak-app-domain/WechatMpShip/_baseSchema.js +1 -0
- package/es/oak-app-domain/WechatMpShip/locales/zh_CN.json +12 -0
- package/es/oak-app-domain/WechatPay/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/WechatPublicAutoReply/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/WechatPublicTag/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/WechatQrCode/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/WechatTemplate/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/WechatUser/_baseSchema.d.ts +2 -0
- package/es/oak-app-domain/Withdraw/_baseSchema.d.ts +2 -0
- package/es/oak-app-domain/WithdrawAccount/_baseSchema.d.ts +2 -0
- package/es/oak-app-domain/WithdrawChannel/_baseSchema.d.ts +1 -0
- package/es/oak-app-domain/WithdrawTransfer/_baseSchema.d.ts +4 -0
- package/es/oak-app-domain/WpAccount/Storage.js +12 -10
- package/es/oak-app-domain/WpAccount/_baseSchema.d.ts +15 -9
- package/es/oak-app-domain/WpAccount/locales/zh_CN.json +5 -4
- package/es/oak-app-domain/WpProduct/Storage.js +25 -12
- package/es/oak-app-domain/WpProduct/_baseSchema.d.ts +22 -12
- package/es/oak-app-domain/WpProduct/locales/zh_CN.json +6 -4
- package/es/oak-app-domain/_SubQuery.d.ts +798 -0
- package/es/registry.d.ts +5 -9
- package/es/registry.frontend.d.ts +4 -0
- package/es/registry.frontend.js +4 -0
- package/es/registry.js +5 -8
- package/es/timers/index.d.ts +2 -2
- package/es/timers/index.js +5 -1
- package/es/timers/ship.d.ts +5 -0
- package/es/timers/ship.js +70 -0
- package/es/triggers/accountOper.js +1 -0
- package/es/triggers/deposit.d.ts +5 -1
- package/es/triggers/deposit.js +146 -10
- package/es/triggers/index.js +6 -2
- package/es/triggers/order.js +56 -0
- package/es/triggers/pay.d.ts +0 -1
- package/es/triggers/pay.js +48 -33
- package/es/triggers/ship.d.ts +5 -0
- package/es/triggers/ship.js +385 -0
- package/es/types/Exception.d.ts +4 -1
- package/es/types/Exception.js +8 -3
- package/es/types/PayClazz.d.ts +1 -0
- package/es/types/ShipClazz.d.ts +21 -0
- package/es/types/ShipClazz.js +1 -0
- package/es/utils/payClazz/Offline.js +7 -4
- package/es/utils/payClazz/WechatPay/WechatPay.d.ts +1 -0
- package/es/utils/payClazz/WechatPay/WechatPay.debug.js +5 -2
- package/es/utils/payClazz/WechatPay/WechatPay.js +7 -1
- package/es/utils/payClazz/WechatPay/index.js +2 -1
- package/es/utils/payClazz/index.d.ts +2 -4
- package/es/utils/payClazz/index.js +30 -14
- package/es/utils/ship.d.ts +40 -0
- package/es/utils/ship.js +498 -0
- package/es/utils/shipClazz/WechatMpShip/WechatMpShip.d.ts +17 -0
- package/es/utils/shipClazz/WechatMpShip/WechatMpShip.debug.d.ts +53 -0
- package/es/utils/shipClazz/WechatMpShip/WechatMpShip.debug.js +324 -0
- package/es/utils/shipClazz/WechatMpShip/WechatMpShip.js +81 -0
- package/es/utils/shipClazz/WechatMpShip/index.d.ts +3 -0
- package/es/utils/shipClazz/WechatMpShip/index.js +3 -0
- package/es/utils/shipClazz/index.d.ts +16 -0
- package/es/utils/shipClazz/index.js +78 -0
- package/es/utils/wpProductFrontend.js +1 -1
- package/es/watchers/index.js +2 -0
- package/es/watchers/pay.js +2 -1
- package/es/watchers/ship.d.ts +5 -0
- package/es/watchers/ship.js +34 -0
- package/lib/aspects/AspectDict.d.ts +10 -1
- package/lib/aspects/index.js +3 -0
- package/lib/aspects/ship.d.ts +18 -0
- package/lib/aspects/ship.js +46 -0
- package/lib/checkers/index.js +2 -0
- package/lib/checkers/order.js +50 -3
- package/lib/checkers/pay.js +19 -36
- package/lib/checkers/ship.d.ts +5 -0
- package/lib/checkers/ship.js +102 -0
- package/lib/config/constants.d.ts +2 -0
- package/lib/config/constants.js +2 -0
- package/lib/configuration/attrUpdateMatrix.js +0 -5
- package/lib/configuration/relation.js +2 -0
- package/lib/data/actionAuth.js +11 -0
- package/lib/data/i18n.js +86 -82
- package/lib/data/index.js +4 -0
- package/lib/data/path.js +15 -1
- package/lib/data/shipCompany.d.ts +7 -0
- package/lib/data/shipCompany.js +6 -0
- package/lib/data/shipCompany.json +9056 -0
- package/lib/data/shipService.d.ts +3 -0
- package/lib/data/shipService.js +91 -0
- package/lib/endpoints/wechatPay.d.ts +5 -0
- package/lib/endpoints/wechatPay.js +22 -0
- package/lib/entities/AbstactPayProduct.d.ts +13 -0
- package/lib/entities/AbstactPayProduct.js +19 -0
- package/lib/entities/AbstractAccount.d.ts +2 -1
- package/lib/entities/AbstractAccount.js +2 -1
- package/lib/entities/AbstractPayAccount.d.ts +16 -0
- package/lib/entities/AbstractPayAccount.js +37 -0
- package/lib/entities/AbstractShipAccount.d.ts +14 -0
- package/lib/entities/AbstractShipAccount.js +19 -0
- package/lib/entities/Deposit.d.ts +2 -0
- package/lib/entities/Deposit.js +2 -1
- package/lib/entities/OfflineAccount.d.ts +3 -6
- package/lib/entities/OfflineAccount.js +4 -3
- package/lib/entities/Order.d.ts +3 -0
- package/lib/entities/Order.js +4 -1
- package/lib/entities/Pay.d.ts +4 -2
- package/lib/entities/Pay.js +2 -0
- package/lib/entities/Ship.d.ts +35 -0
- package/lib/entities/Ship.js +112 -0
- package/lib/entities/ShipCompany.d.ts +9 -0
- package/lib/entities/ShipCompany.js +30 -0
- package/lib/entities/ShipCompanySystem.d.ts +9 -0
- package/lib/entities/ShipCompanySystem.js +15 -0
- package/lib/entities/ShipOrder.d.ts +9 -0
- package/lib/entities/ShipOrder.js +15 -0
- package/lib/entities/ShipService.d.ts +9 -0
- package/lib/entities/ShipService.js +15 -0
- package/lib/entities/ShipServiceSystem.d.ts +9 -0
- package/lib/entities/ShipServiceSystem.js +15 -0
- package/lib/entities/WechatMpShip.d.ts +7 -0
- package/lib/entities/WechatMpShip.js +20 -0
- package/lib/entities/WpAccount.d.ts +3 -6
- package/lib/entities/WpAccount.js +4 -3
- package/lib/entities/WpProduct.d.ts +2 -8
- package/lib/entities/WpProduct.js +6 -4
- package/lib/features/Pay.d.ts +0 -2
- package/lib/features/Pay.js +0 -3
- package/lib/locales/error/zh-CN.json +3 -0
- package/lib/oak-app-domain/AbstactPayProduct/Schema.d.ts +19 -0
- package/lib/oak-app-domain/AbstactPayProduct/Schema.js +4 -0
- package/lib/oak-app-domain/AbstactPayProduct/Storage.d.ts +3 -0
- package/lib/oak-app-domain/AbstactPayProduct/Storage.js +43 -0
- package/lib/oak-app-domain/AbstactPayProduct/_baseSchema.d.ts +57 -0
- package/lib/oak-app-domain/AbstactPayProduct/_baseSchema.js +2 -0
- package/lib/oak-app-domain/AbstactPayProduct/locales/zh_CN.json +11 -0
- package/lib/oak-app-domain/AbstractAccount/Storage.js +4 -0
- package/lib/oak-app-domain/AbstractAccount/_baseSchema.d.ts +5 -1
- package/lib/oak-app-domain/AbstractAccount/locales/zh_CN.json +2 -1
- package/lib/oak-app-domain/AbstractPayAccount/Action.d.ts +5 -0
- package/lib/oak-app-domain/AbstractPayAccount/Action.js +5 -0
- package/lib/oak-app-domain/AbstractPayAccount/Schema.d.ts +19 -0
- package/lib/oak-app-domain/AbstractPayAccount/Schema.js +4 -0
- package/lib/oak-app-domain/AbstractPayAccount/Storage.d.ts +3 -0
- package/lib/oak-app-domain/AbstractPayAccount/Storage.js +54 -0
- package/lib/oak-app-domain/AbstractPayAccount/Style.d.ts +3 -0
- package/lib/oak-app-domain/AbstractPayAccount/Style.js +12 -0
- package/lib/oak-app-domain/AbstractPayAccount/_baseSchema.d.ts +65 -0
- package/lib/oak-app-domain/AbstractPayAccount/_baseSchema.js +2 -0
- package/lib/oak-app-domain/AbstractPayAccount/locales/zh_CN.json +20 -0
- package/lib/oak-app-domain/AbstractShipAccount/Schema.d.ts +19 -0
- package/lib/oak-app-domain/AbstractShipAccount/Schema.js +4 -0
- package/lib/oak-app-domain/AbstractShipAccount/Storage.d.ts +3 -0
- package/lib/oak-app-domain/AbstractShipAccount/Storage.js +40 -0
- package/lib/oak-app-domain/AbstractShipAccount/_baseSchema.d.ts +53 -0
- package/lib/oak-app-domain/AbstractShipAccount/_baseSchema.js +2 -0
- package/lib/oak-app-domain/AbstractShipAccount/locales/zh_CN.json +11 -0
- package/lib/oak-app-domain/Account/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/AccountOper/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/ActionAuth/_baseSchema.d.ts +2 -0
- package/lib/oak-app-domain/ActionDefDict.d.ts +4 -1
- package/lib/oak-app-domain/ActionDefDict.js +16 -14
- package/lib/oak-app-domain/Address/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/Application/Storage.js +1 -1
- package/lib/oak-app-domain/Application/_baseSchema.d.ts +3 -1
- package/lib/oak-app-domain/ApplicationPassport/_baseSchema.d.ts +2 -0
- package/lib/oak-app-domain/Area/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/Article/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/ArticleMenu/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/ChangePasswordTemp/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/Deposit/Storage.js +4 -0
- package/lib/oak-app-domain/Deposit/_baseSchema.d.ts +6 -0
- package/lib/oak-app-domain/Deposit/locales/zh_CN.json +2 -1
- package/lib/oak-app-domain/Domain/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/Email/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/EntityDict.d.ts +592 -34
- package/lib/oak-app-domain/ExtraFile/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/LoginName/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/Message/_baseSchema.d.ts +2 -0
- package/lib/oak-app-domain/MessageSystem/_baseSchema.d.ts +2 -0
- package/lib/oak-app-domain/MessageTypeSmsTemplate/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/MessageTypeTemplate/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/Mobile/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/ModiEntity/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/Notification/_baseSchema.d.ts +2 -0
- package/lib/oak-app-domain/OfflineAccount/Storage.js +12 -10
- package/lib/oak-app-domain/OfflineAccount/_baseSchema.d.ts +14 -9
- package/lib/oak-app-domain/OfflineAccount/locales/zh_CN.json +5 -4
- package/lib/oak-app-domain/Oper/_baseSchema.d.ts +2 -0
- package/lib/oak-app-domain/OperEntity/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/Order/Storage.js +7 -0
- package/lib/oak-app-domain/Order/Style.js +1 -0
- package/lib/oak-app-domain/Order/_baseSchema.d.ts +10 -0
- package/lib/oak-app-domain/Order/locales/zh_CN.json +3 -1
- package/lib/oak-app-domain/Parasite/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/Passport/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/Pay/Storage.js +6 -0
- package/lib/oak-app-domain/Pay/_baseSchema.d.ts +11 -0
- package/lib/oak-app-domain/Pay/locales/zh_CN.json +3 -1
- package/lib/oak-app-domain/ReadRemark/_baseSchema.d.ts +2 -0
- package/lib/oak-app-domain/Refund/_baseSchema.d.ts +3 -0
- package/lib/oak-app-domain/RelationAuth/_baseSchema.d.ts +3 -0
- package/lib/oak-app-domain/Session/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/SessionMessage/_baseSchema.d.ts +4 -0
- package/lib/oak-app-domain/Settlement/_baseSchema.d.ts +2 -0
- package/lib/oak-app-domain/Ship/Action.d.ts +12 -0
- package/lib/oak-app-domain/Ship/Action.js +19 -0
- package/lib/oak-app-domain/Ship/Schema.d.ts +19 -0
- package/lib/oak-app-domain/Ship/Schema.js +4 -0
- package/lib/oak-app-domain/Ship/Storage.d.ts +3 -0
- package/lib/oak-app-domain/Ship/Storage.js +103 -0
- package/lib/oak-app-domain/Ship/Style.d.ts +3 -0
- package/lib/oak-app-domain/Ship/Style.js +28 -0
- package/lib/oak-app-domain/Ship/_baseSchema.d.ts +97 -0
- package/lib/oak-app-domain/Ship/_baseSchema.js +2 -0
- package/lib/oak-app-domain/Ship/locales/zh_CN.json +49 -0
- package/lib/oak-app-domain/ShipCompany/Schema.d.ts +19 -0
- package/lib/oak-app-domain/ShipCompany/Schema.js +4 -0
- package/lib/oak-app-domain/ShipCompany/Storage.d.ts +3 -0
- package/lib/oak-app-domain/ShipCompany/Storage.js +44 -0
- package/lib/oak-app-domain/ShipCompany/_baseSchema.d.ts +44 -0
- package/lib/oak-app-domain/ShipCompany/_baseSchema.js +2 -0
- package/lib/oak-app-domain/ShipCompany/locales/zh_CN.json +8 -0
- package/lib/oak-app-domain/ShipCompanySystem/Schema.d.ts +19 -0
- package/lib/oak-app-domain/ShipCompanySystem/Schema.js +4 -0
- package/lib/oak-app-domain/ShipCompanySystem/Storage.d.ts +3 -0
- package/lib/oak-app-domain/ShipCompanySystem/Storage.js +20 -0
- package/lib/oak-app-domain/ShipCompanySystem/_baseSchema.d.ts +38 -0
- package/lib/oak-app-domain/ShipCompanySystem/_baseSchema.js +2 -0
- package/lib/oak-app-domain/ShipCompanySystem/locales/zh_CN.json +7 -0
- package/lib/oak-app-domain/ShipOrder/Schema.d.ts +19 -0
- package/lib/oak-app-domain/ShipOrder/Schema.js +4 -0
- package/lib/oak-app-domain/ShipOrder/Storage.d.ts +3 -0
- package/lib/oak-app-domain/ShipOrder/Storage.js +20 -0
- package/lib/oak-app-domain/ShipOrder/_baseSchema.d.ts +40 -0
- package/lib/oak-app-domain/ShipOrder/_baseSchema.js +2 -0
- package/lib/oak-app-domain/ShipOrder/locales/zh_CN.json +7 -0
- package/lib/oak-app-domain/ShipService/Schema.d.ts +19 -0
- package/lib/oak-app-domain/ShipService/Schema.js +4 -0
- package/lib/oak-app-domain/ShipService/Storage.d.ts +3 -0
- package/lib/oak-app-domain/ShipService/Storage.js +22 -0
- package/lib/oak-app-domain/ShipService/_baseSchema.d.ts +41 -0
- package/lib/oak-app-domain/ShipService/_baseSchema.js +2 -0
- package/lib/oak-app-domain/ShipService/locales/zh_CN.json +7 -0
- package/lib/oak-app-domain/ShipServiceSystem/Schema.d.ts +19 -0
- package/lib/oak-app-domain/ShipServiceSystem/Schema.js +4 -0
- package/lib/oak-app-domain/ShipServiceSystem/Storage.d.ts +3 -0
- package/lib/oak-app-domain/ShipServiceSystem/Storage.js +20 -0
- package/lib/oak-app-domain/ShipServiceSystem/_baseSchema.d.ts +40 -0
- package/lib/oak-app-domain/ShipServiceSystem/_baseSchema.js +2 -0
- package/lib/oak-app-domain/ShipServiceSystem/locales/zh_CN.json +7 -0
- package/lib/oak-app-domain/SmsTemplate/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/Station/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/Storage.js +52 -36
- package/lib/oak-app-domain/StyleDict.js +20 -18
- package/lib/oak-app-domain/Subway/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/SubwayStation/_baseSchema.d.ts +2 -0
- package/lib/oak-app-domain/SysAccountMove/_baseSchema.d.ts +2 -0
- package/lib/oak-app-domain/SysAccountOper/_baseSchema.d.ts +4 -0
- package/lib/oak-app-domain/System/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/Token/_baseSchema.d.ts +3 -0
- package/lib/oak-app-domain/User/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/UserEntityClaim/_baseSchema.d.ts +4 -0
- package/lib/oak-app-domain/UserEntityGrant/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/UserRelation/_baseSchema.d.ts +2 -0
- package/lib/oak-app-domain/UserSystem/_baseSchema.d.ts +2 -0
- package/lib/oak-app-domain/UserWechatPublicTag/_baseSchema.d.ts +2 -0
- package/lib/oak-app-domain/WechatLogin/_baseSchema.d.ts +2 -0
- package/lib/oak-app-domain/WechatMenu/_baseSchema.d.ts +2 -0
- package/lib/oak-app-domain/WechatMpJump/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/WechatMpShip/Schema.d.ts +19 -0
- package/lib/oak-app-domain/WechatMpShip/Schema.js +4 -0
- package/lib/oak-app-domain/WechatMpShip/Storage.d.ts +3 -0
- package/lib/oak-app-domain/WechatMpShip/Storage.js +45 -0
- package/lib/oak-app-domain/WechatMpShip/_baseSchema.d.ts +57 -0
- package/lib/oak-app-domain/WechatMpShip/_baseSchema.js +2 -0
- package/lib/oak-app-domain/WechatMpShip/locales/zh_CN.json +12 -0
- package/lib/oak-app-domain/WechatPay/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/WechatPublicAutoReply/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/WechatPublicTag/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/WechatQrCode/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/WechatTemplate/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/WechatUser/_baseSchema.d.ts +2 -0
- package/lib/oak-app-domain/Withdraw/_baseSchema.d.ts +2 -0
- package/lib/oak-app-domain/WithdrawAccount/_baseSchema.d.ts +2 -0
- package/lib/oak-app-domain/WithdrawChannel/_baseSchema.d.ts +1 -0
- package/lib/oak-app-domain/WithdrawTransfer/_baseSchema.d.ts +4 -0
- package/lib/oak-app-domain/WpAccount/Storage.js +12 -10
- package/lib/oak-app-domain/WpAccount/_baseSchema.d.ts +15 -9
- package/lib/oak-app-domain/WpAccount/locales/zh_CN.json +5 -4
- package/lib/oak-app-domain/WpProduct/Storage.js +25 -12
- package/lib/oak-app-domain/WpProduct/_baseSchema.d.ts +22 -12
- package/lib/oak-app-domain/WpProduct/locales/zh_CN.json +6 -4
- package/lib/oak-app-domain/_SubQuery.d.ts +798 -0
- package/lib/registry.d.ts +5 -9
- package/lib/registry.frontend.d.ts +4 -0
- package/lib/registry.frontend.js +12 -0
- package/lib/registry.js +12 -10
- package/lib/timers/index.d.ts +2 -2
- package/lib/timers/index.js +6 -1
- package/lib/timers/ship.d.ts +5 -0
- package/lib/timers/ship.js +72 -0
- package/lib/triggers/accountOper.js +1 -0
- package/lib/triggers/deposit.d.ts +5 -1
- package/lib/triggers/deposit.js +147 -9
- package/lib/triggers/index.js +6 -2
- package/lib/triggers/order.js +56 -0
- package/lib/triggers/pay.d.ts +0 -1
- package/lib/triggers/pay.js +50 -36
- package/lib/triggers/ship.d.ts +5 -0
- package/lib/triggers/ship.js +388 -0
- package/lib/types/Exception.d.ts +4 -1
- package/lib/types/Exception.js +10 -4
- package/lib/types/PayClazz.d.ts +1 -0
- package/lib/types/ShipClazz.d.ts +21 -0
- package/lib/types/ShipClazz.js +2 -0
- package/lib/utils/payClazz/Offline.js +7 -4
- package/lib/utils/payClazz/WechatPay/WechatPay.d.ts +1 -0
- package/lib/utils/payClazz/WechatPay/WechatPay.debug.js +5 -2
- package/lib/utils/payClazz/WechatPay/WechatPay.js +7 -1
- package/lib/utils/payClazz/WechatPay/index.js +2 -1
- package/lib/utils/payClazz/index.d.ts +2 -4
- package/lib/utils/payClazz/index.js +32 -16
- package/lib/utils/ship.d.ts +40 -0
- package/lib/utils/ship.js +508 -0
- package/lib/utils/shipClazz/WechatMpShip/WechatMpShip.d.ts +17 -0
- package/lib/utils/shipClazz/WechatMpShip/WechatMpShip.debug.d.ts +53 -0
- package/lib/utils/shipClazz/WechatMpShip/WechatMpShip.debug.js +328 -0
- package/lib/utils/shipClazz/WechatMpShip/WechatMpShip.js +85 -0
- package/lib/utils/shipClazz/WechatMpShip/index.d.ts +3 -0
- package/lib/utils/shipClazz/WechatMpShip/index.js +6 -0
- package/lib/utils/shipClazz/index.d.ts +16 -0
- package/lib/utils/shipClazz/index.js +85 -0
- package/lib/utils/wpProductFrontend.js +1 -1
- package/lib/watchers/index.js +2 -0
- package/lib/watchers/pay.js +2 -1
- package/lib/watchers/ship.d.ts +5 -0
- package/lib/watchers/ship.js +36 -0
- package/package.json +19 -17
- package/src/entities/AbstactPayProduct.ts +38 -0
- package/src/entities/{AbstractAccount.ts → AbstractPayAccount.ts} +13 -8
- package/src/entities/AbstractShipAccount.ts +39 -0
- package/src/entities/Deposit.ts +4 -1
- package/src/entities/OfflineAccount.ts +6 -8
- package/src/entities/Order.ts +11 -2
- package/src/entities/Pay.ts +8 -5
- package/src/entities/Ship.ts +151 -0
- package/src/entities/ShipCompany.ts +43 -0
- package/src/entities/ShipOrder.ts +29 -0
- package/src/entities/ShipService.ts +27 -0
- package/src/entities/ShipServiceSystem.ts +29 -0
- package/src/entities/WechatMpShip.ts +33 -0
- package/src/entities/WpAccount.ts +6 -8
- package/src/entities/WpProduct.ts +8 -10
- package/es/components/account/deposit/index.d.ts +0 -10
- package/es/components/account/deposit/index.js +0 -117
- package/es/components/account/deposit/index.json +0 -10
- package/es/components/account/deposit/index.less +0 -10
- package/es/components/account/deposit/index.xml +0 -27
- package/es/components/account/deposit/locales/zh-CN.json +0 -11
- package/es/components/account/deposit/web.d.ts +0 -19
- package/es/components/account/deposit/web.js +0 -37
- package/es/components/account/deposit/web.pc.d.ts +0 -18
- package/es/components/account/deposit/web.pc.js +0 -32
- package/es/components/account/deposit/web.pc.module.less +0 -3
- package/es/components/payConfig/upsert/account/index.d.ts +0 -7
- package/es/components/payConfig/upsert/account/index.js +0 -24
- package/es/components/payConfig/upsert/account/locales/zh-CN.json +0 -11
- package/es/components/payConfig/upsert/index.d.ts +0 -17
- package/es/components/payConfig/upsert/index.js +0 -86
- package/es/components/payConfig/upsert/locales/zh-CN.json +0 -4
- package/es/components/payConfig/upsert/offline/index.d.ts +0 -7
- package/es/components/payConfig/upsert/offline/index.js +0 -76
- package/es/components/payConfig/upsert/offline/locales/zh-CN.json +0 -8
- package/es/components/payConfig/upsert/offline/web.pc.module.less +0 -5
- package/es/components/payConfig/upsert/wechatPay/index.d.ts +0 -10
- package/es/components/payConfig/upsert/wechatPay/index.js +0 -72
- package/es/components/payConfig/upsert/wechatPay/locales/zh-CN.json +0 -24
|
@@ -5,5 +5,14 @@ export type AspectDict<ED extends EntityDict> = {
|
|
|
5
5
|
accountId: string;
|
|
6
6
|
price: number;
|
|
7
7
|
withdrawAccountId?: string;
|
|
8
|
-
}, context: BackendRuntimeContext<ED>) => Promise<EntityDict['withdraw']['
|
|
8
|
+
}, context: BackendRuntimeContext<ED>) => Promise<EntityDict['withdraw']['CreateSingle']['data']>;
|
|
9
|
+
getMpShipState: (params: {
|
|
10
|
+
shipId: string;
|
|
11
|
+
}, context: BackendRuntimeContext<ED>) => Promise<EntityDict['ship']['Schema']['iState']>;
|
|
12
|
+
getExpressPrintInfo: (params: {
|
|
13
|
+
shipId: string;
|
|
14
|
+
}, context: BackendRuntimeContext<ED>) => Promise<{
|
|
15
|
+
type: "html";
|
|
16
|
+
data: string;
|
|
17
|
+
}>;
|
|
9
18
|
};
|
package/es/aspects/index.js
CHANGED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { BRC } from '../types/RuntimeCxt';
|
|
2
|
+
/**
|
|
3
|
+
* 获取小程序订单发货状态
|
|
4
|
+
* @param params
|
|
5
|
+
* @param context
|
|
6
|
+
*/
|
|
7
|
+
export declare function getMpShipState(params: {
|
|
8
|
+
shipId: string;
|
|
9
|
+
}, context: BRC): Promise<string | null | undefined>;
|
|
10
|
+
/**
|
|
11
|
+
* 获取打印面单
|
|
12
|
+
*/
|
|
13
|
+
export declare function getExpressPrintInfo(params: {
|
|
14
|
+
shipId: string;
|
|
15
|
+
}, context: BRC): Promise<{
|
|
16
|
+
type: "html";
|
|
17
|
+
data: string;
|
|
18
|
+
}>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { OakPreConditionUnsetException } from 'oak-domain/lib/types';
|
|
2
|
+
import { getOrderShipState } from '../utils/ship';
|
|
3
|
+
import { getShipClazz } from '../utils/shipClazz';
|
|
4
|
+
/**
|
|
5
|
+
* 获取小程序订单发货状态
|
|
6
|
+
* @param params
|
|
7
|
+
* @param context
|
|
8
|
+
*/
|
|
9
|
+
export async function getMpShipState(params, context) {
|
|
10
|
+
const application = context.getApplication();
|
|
11
|
+
const { type, } = application;
|
|
12
|
+
if (type === 'wechatMp') {
|
|
13
|
+
const { shipId } = params;
|
|
14
|
+
const shipState = await getOrderShipState(context, shipId);
|
|
15
|
+
return shipState;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 获取打印面单
|
|
20
|
+
*/
|
|
21
|
+
export async function getExpressPrintInfo(params, context) {
|
|
22
|
+
const { shipId } = params;
|
|
23
|
+
const [ship] = await context.select('ship', {
|
|
24
|
+
data: {
|
|
25
|
+
id: 1,
|
|
26
|
+
type: 1,
|
|
27
|
+
entity: 1,
|
|
28
|
+
entityId: 1,
|
|
29
|
+
extraShipId: 1,
|
|
30
|
+
},
|
|
31
|
+
filter: {
|
|
32
|
+
id: shipId,
|
|
33
|
+
}
|
|
34
|
+
}, { forUpdate: true });
|
|
35
|
+
const { type, entity, entityId, extraShipId } = ship;
|
|
36
|
+
if (!entity || !entityId || !extraShipId || type !== 'express') {
|
|
37
|
+
throw new OakPreConditionUnsetException("error::ship.noClazz", "ship", undefined, "oak-pay-business");
|
|
38
|
+
}
|
|
39
|
+
const clazz = await getShipClazz(entity, entityId, context);
|
|
40
|
+
return await clazz.getPrintInfo(shipId, context);
|
|
41
|
+
}
|
package/es/checkers/index.js
CHANGED
|
@@ -8,6 +8,7 @@ import abstractCheckers from './abstractChecker';
|
|
|
8
8
|
import withdrawAccounts from './withdrawAccount';
|
|
9
9
|
import refundCheckers from './refund';
|
|
10
10
|
import withdrawTransferCheckers from './withdrawTransfer';
|
|
11
|
+
import shipCheckers from './ship';
|
|
11
12
|
const checkers = [
|
|
12
13
|
...refundCheckers,
|
|
13
14
|
...withdrawAccounts,
|
|
@@ -19,5 +20,6 @@ const checkers = [
|
|
|
19
20
|
...offlineAccountCheckers,
|
|
20
21
|
...wpProductCheckers,
|
|
21
22
|
...withdrawTransferCheckers,
|
|
23
|
+
...shipCheckers,
|
|
22
24
|
];
|
|
23
25
|
export default checkers;
|
package/es/checkers/order.js
CHANGED
|
@@ -21,6 +21,52 @@ const checkers = [
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
|
+
/* {
|
|
25
|
+
// 订单创建的时候要传入合法的settlement
|
|
26
|
+
type: 'logicalData',
|
|
27
|
+
entity: 'order',
|
|
28
|
+
action: 'startPaying',
|
|
29
|
+
checker: (operation, context) => {
|
|
30
|
+
const { data, filter } = operation as EntityDict['order']['Update'];
|
|
31
|
+
const { id } = filter!;
|
|
32
|
+
assert(id);
|
|
33
|
+
|
|
34
|
+
return pipeline(
|
|
35
|
+
() => context.select('order', {
|
|
36
|
+
data: {
|
|
37
|
+
id: 1,
|
|
38
|
+
price: 1,
|
|
39
|
+
settlement$order: {
|
|
40
|
+
$entity: 'settlement',
|
|
41
|
+
data: {
|
|
42
|
+
id: 1,
|
|
43
|
+
price: 1,
|
|
44
|
+
iState: 1,
|
|
45
|
+
accountId: 1,
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
},
|
|
49
|
+
filter: {
|
|
50
|
+
id,
|
|
51
|
+
},
|
|
52
|
+
}, { dontCollect: true }),
|
|
53
|
+
(orders: EntityDict['order']['Schema'][]) => {
|
|
54
|
+
const [ order ] = orders;
|
|
55
|
+
const { price, settlement$order } = order;
|
|
56
|
+
|
|
57
|
+
let total = 0 ;
|
|
58
|
+
settlement$order?.forEach(
|
|
59
|
+
(ele) => {
|
|
60
|
+
total += ele.price!;
|
|
61
|
+
assert(ele.iState === 'unsettled');
|
|
62
|
+
}
|
|
63
|
+
);
|
|
64
|
+
|
|
65
|
+
assert(total === price, '付款前订单应设置好分帐目标');
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
}
|
|
69
|
+
}, */
|
|
24
70
|
{
|
|
25
71
|
type: 'logicalData',
|
|
26
72
|
entity: 'order',
|
|
@@ -94,15 +140,16 @@ const checkers = [
|
|
|
94
140
|
}, {}), (orders) => {
|
|
95
141
|
const [order] = orders;
|
|
96
142
|
const { price, paid, refunded, iState, settlement$order: settlements } = order;
|
|
97
|
-
assert(['paid'
|
|
143
|
+
assert(['paid'].includes(iState) && refunded === 0 && paid === price);
|
|
98
144
|
assert(settlements && settlements.length > 0, '该结算订单需添加结算明细');
|
|
99
145
|
let amount = 0;
|
|
100
146
|
settlements.forEach((settlement) => {
|
|
101
147
|
amount += settlement.price;
|
|
148
|
+
assert(settlement.iState === 'unsettled', '订单结算前,settlement必须处于未分账状态');
|
|
102
149
|
});
|
|
103
|
-
assert(amount === paid
|
|
150
|
+
assert(amount === paid);
|
|
104
151
|
});
|
|
105
152
|
}
|
|
106
|
-
}
|
|
153
|
+
},
|
|
107
154
|
];
|
|
108
155
|
export default checkers;
|
package/es/checkers/pay.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { OakAttrNotNullException, OakInputIllegalException } from 'oak-domain/lib/types';
|
|
2
|
-
import { pipeline } from 'oak-domain/lib/utils/executor';
|
|
3
2
|
import assert from 'assert';
|
|
4
3
|
const checkers = [
|
|
5
4
|
{
|
|
@@ -110,53 +109,37 @@ const checkers = [
|
|
|
110
109
|
if (!successAt) {
|
|
111
110
|
throw new OakAttrNotNullException('pay', ['successAt']);
|
|
112
111
|
}
|
|
113
|
-
assert(typeof filter?.id === 'string');
|
|
114
|
-
// 必须有ExternalId,除非之间prepay的时候已经填过了
|
|
115
|
-
if (!externalId) {
|
|
116
|
-
return pipeline(() => context.select('pay', {
|
|
117
|
-
data: {
|
|
118
|
-
id: 1,
|
|
119
|
-
externalId: 1,
|
|
120
|
-
entity: 1,
|
|
121
|
-
},
|
|
122
|
-
filter: {
|
|
123
|
-
id: filter.id,
|
|
124
|
-
}
|
|
125
|
-
}, { dontCollect: true }), (pays) => {
|
|
126
|
-
const [pay] = pays;
|
|
127
|
-
if (pay.entity !== 'account' && !pay.externalId) {
|
|
128
|
-
throw new OakAttrNotNullException('pay', ['externalId']);
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
112
|
}
|
|
133
113
|
},
|
|
134
|
-
{
|
|
114
|
+
/* {
|
|
135
115
|
// 如果在开始支付或者继续支付过程中,paid达到了price,pay的状态可以改为paid
|
|
136
116
|
entity: 'pay',
|
|
137
117
|
type: 'logical',
|
|
138
118
|
action: ['continuePaying', 'startPaying'],
|
|
139
119
|
// priority: CHECKER_MAX_PRIORITY - 1, // 要超过action矩阵定义的赋state值
|
|
140
120
|
checker: (operation, context) => {
|
|
141
|
-
const { data, filter } = operation;
|
|
121
|
+
const { data, filter } = operation as EntityDict['pay']['Update'];
|
|
142
122
|
assert(filter && typeof filter.id === 'string');
|
|
143
123
|
const { paid } = data || {};
|
|
144
124
|
if (paid) {
|
|
145
|
-
return pipeline(
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
125
|
+
return pipeline(
|
|
126
|
+
() => context.select('pay', {
|
|
127
|
+
data: {
|
|
128
|
+
id: 1,
|
|
129
|
+
paid: 1,
|
|
130
|
+
price: 1,
|
|
131
|
+
},
|
|
132
|
+
}, {}),
|
|
133
|
+
(pays: EntityDict['pay']['OpSchema'][]) => {
|
|
134
|
+
const [pay] = pays;
|
|
135
|
+
const { paid: payPaid, price } = pay;
|
|
136
|
+
if (payPaid + paid === price) {
|
|
137
|
+
data.iState === 'paid';
|
|
138
|
+
}
|
|
156
139
|
}
|
|
157
|
-
|
|
140
|
+
)
|
|
158
141
|
}
|
|
159
142
|
}
|
|
160
|
-
}
|
|
143
|
+
} */
|
|
161
144
|
];
|
|
162
145
|
export default checkers;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
const checkers = [
|
|
2
|
+
{
|
|
3
|
+
entity: 'ship',
|
|
4
|
+
action: ['syncPaths', 'syncState', 'syncAll'],
|
|
5
|
+
type: 'row',
|
|
6
|
+
filter: {
|
|
7
|
+
iState: {
|
|
8
|
+
$in: ['unshipped', 'shipping'],
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
entity: 'ship',
|
|
14
|
+
action: ['ship', 'receive'],
|
|
15
|
+
type: 'row',
|
|
16
|
+
filter: (operation, context) => {
|
|
17
|
+
// 只有root或者未设置extraShipId的才可手动设置
|
|
18
|
+
const isRoot = context.isRoot();
|
|
19
|
+
if (isRoot) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
22
|
+
return {
|
|
23
|
+
extraShipId: {
|
|
24
|
+
$exists: false,
|
|
25
|
+
},
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
entity: 'ship',
|
|
31
|
+
action: 'print',
|
|
32
|
+
type: 'row',
|
|
33
|
+
filter: {
|
|
34
|
+
entity: {
|
|
35
|
+
$exists: true,
|
|
36
|
+
},
|
|
37
|
+
entityId: {
|
|
38
|
+
$exists: true,
|
|
39
|
+
},
|
|
40
|
+
extraShipId: {
|
|
41
|
+
$exists: true,
|
|
42
|
+
},
|
|
43
|
+
iState: 'unshipped',
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
entity: 'ship',
|
|
48
|
+
type: 'logicalData',
|
|
49
|
+
action: 'receive',
|
|
50
|
+
checker: (operation) => {
|
|
51
|
+
const { data } = operation;
|
|
52
|
+
if (!data.receiveAt) {
|
|
53
|
+
const now = Date.now();
|
|
54
|
+
data.receiveAt = now;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
entity: 'ship',
|
|
60
|
+
type: 'row',
|
|
61
|
+
action: ['startReceiving', 'succeedReceiving'],
|
|
62
|
+
filter: {
|
|
63
|
+
$or: [
|
|
64
|
+
{
|
|
65
|
+
type: 'virtual',
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
shipOrder$ship: {
|
|
69
|
+
order: {
|
|
70
|
+
pay$order: {
|
|
71
|
+
wpProduct: {
|
|
72
|
+
needReceiving: true
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
entity: 'ship',
|
|
83
|
+
type: 'row',
|
|
84
|
+
action: 'receive',
|
|
85
|
+
filter: {
|
|
86
|
+
shipOrder$ship: {
|
|
87
|
+
'#sqp': 'all',
|
|
88
|
+
order: {
|
|
89
|
+
pay$order: {
|
|
90
|
+
'#sqp': 'not in',
|
|
91
|
+
wpProduct: {
|
|
92
|
+
needReceiving: true
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
];
|
|
100
|
+
export default checkers;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "account", false, {
|
|
2
2
|
depositMinCent: number;
|
|
3
3
|
depositMaxCent: number;
|
|
4
|
+
autoStartPay: boolean;
|
|
4
5
|
onGoToUnfinishedPay: (payId: string) => void;
|
|
5
6
|
onWithdraw: () => void;
|
|
6
7
|
textColor: string;
|
|
@@ -27,7 +27,9 @@ export default OakComponent({
|
|
|
27
27
|
},
|
|
28
28
|
},
|
|
29
29
|
filter: {
|
|
30
|
-
iState:
|
|
30
|
+
iState: {
|
|
31
|
+
$in: ['depositing', 'shipped'],
|
|
32
|
+
},
|
|
31
33
|
},
|
|
32
34
|
},
|
|
33
35
|
accountOper$account: {
|
|
@@ -53,6 +55,7 @@ export default OakComponent({
|
|
|
53
55
|
properties: {
|
|
54
56
|
depositMinCent: 0,
|
|
55
57
|
depositMaxCent: 1000000,
|
|
58
|
+
autoStartPay: false,
|
|
56
59
|
onGoToUnfinishedPay: (payId) => undefined,
|
|
57
60
|
onWithdraw: () => undefined,
|
|
58
61
|
textColor: '#B7966E',
|
|
@@ -62,18 +65,21 @@ export default OakComponent({
|
|
|
62
65
|
onGoToHistory: () => undefined,
|
|
63
66
|
},
|
|
64
67
|
formData({ data }) {
|
|
65
|
-
const unfinishedDepositId = data?.deposit$account?.[0]?.id;
|
|
68
|
+
const unfinishedDepositId = data?.deposit$account?.filter((ele) => ele.iState === 'depositing')?.[0]?.id; //未完成支付的充值
|
|
69
|
+
const unreceivedDepositId = data?.deposit$account?.filter((ele) => ele.iState === 'shipped')?.[0]?.id; //未确认收货的充值
|
|
66
70
|
return {
|
|
67
71
|
account: data,
|
|
68
72
|
availStr: data?.avail && CentToString(data.avail, 2),
|
|
69
73
|
totalStr: data?.total && CentToString(data.total, 2),
|
|
70
74
|
loanStr: (data?.avail !== undefined && data?.total !== undefined) && CentToString(data.total - data.avail, 2),
|
|
71
75
|
unfinishedDepositId,
|
|
76
|
+
unreceivedDepositId,
|
|
72
77
|
};
|
|
73
78
|
},
|
|
74
79
|
actions: ['deposit', 'withdraw'],
|
|
75
80
|
methods: {
|
|
76
81
|
async newDeposit() {
|
|
82
|
+
const { autoStartPay } = this.props;
|
|
77
83
|
const { depPrice, depositChannel, depositLoss } = this.state;
|
|
78
84
|
const payId = await generateNewIdAsync();
|
|
79
85
|
this.setDepositing(true);
|
|
@@ -100,6 +106,7 @@ export default OakComponent({
|
|
|
100
106
|
action: 'create',
|
|
101
107
|
data: {
|
|
102
108
|
id: payId,
|
|
109
|
+
autoStart: !!autoStartPay,
|
|
103
110
|
price: depPrice,
|
|
104
111
|
entity: depositChannel.entity,
|
|
105
112
|
entityId: depositChannel.entityId,
|
|
@@ -213,6 +220,124 @@ export default OakComponent({
|
|
|
213
220
|
},
|
|
214
221
|
gotoHistoryMp() {
|
|
215
222
|
this.props.onGoToHistory();
|
|
223
|
+
},
|
|
224
|
+
async onUnreceivedDepositClickMp() {
|
|
225
|
+
const { unreceivedDepositId } = this.state;
|
|
226
|
+
const { data: deposits } = await this.features.cache.refresh('deposit', {
|
|
227
|
+
data: {
|
|
228
|
+
id: 1,
|
|
229
|
+
iState: 1,
|
|
230
|
+
pay$deposit: {
|
|
231
|
+
$entity: 'pay',
|
|
232
|
+
data: {
|
|
233
|
+
id: 1,
|
|
234
|
+
meta: 1,
|
|
235
|
+
iState: 1,
|
|
236
|
+
entity: 1,
|
|
237
|
+
entityId: 1,
|
|
238
|
+
},
|
|
239
|
+
filter: {
|
|
240
|
+
entity: 'wpProduct',
|
|
241
|
+
iState: 'paid',
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
shipId: 1,
|
|
245
|
+
ship: {
|
|
246
|
+
id: 1,
|
|
247
|
+
iState: 1,
|
|
248
|
+
}
|
|
249
|
+
},
|
|
250
|
+
filter: {
|
|
251
|
+
id: unreceivedDepositId,
|
|
252
|
+
}
|
|
253
|
+
});
|
|
254
|
+
const ship = deposits?.[0]?.ship;
|
|
255
|
+
if (ship && ship.id) {
|
|
256
|
+
if (ship.iState === 'receiving') {
|
|
257
|
+
const transactionId = ship.deposit$ship?.[0]?.pay$deposit?.[0]?.meta?.transaction_id;
|
|
258
|
+
console.log('transaction_id', transactionId);
|
|
259
|
+
if (process.env.NODE_ENV === 'development') {
|
|
260
|
+
await this.features.cache.operate('ship', [{
|
|
261
|
+
id: await generateNewIdAsync(),
|
|
262
|
+
action: 'succeedReceiving',
|
|
263
|
+
data: {},
|
|
264
|
+
filter: {
|
|
265
|
+
id: ship.id,
|
|
266
|
+
},
|
|
267
|
+
}]);
|
|
268
|
+
this.setMessage({
|
|
269
|
+
type: 'success',
|
|
270
|
+
content: this.t('ship.success')
|
|
271
|
+
});
|
|
272
|
+
return;
|
|
273
|
+
}
|
|
274
|
+
if (transactionId) {
|
|
275
|
+
if (wx.openBusinessView) {
|
|
276
|
+
wx.openBusinessView({
|
|
277
|
+
businessType: 'weappOrderConfirm',
|
|
278
|
+
extraData: {
|
|
279
|
+
transaction_id: transactionId,
|
|
280
|
+
},
|
|
281
|
+
async success() {
|
|
282
|
+
console.log('success');
|
|
283
|
+
const mpShipState = await this.features.cache.exec('getMpShipState', {
|
|
284
|
+
shipId: ship.id,
|
|
285
|
+
});
|
|
286
|
+
if (mpShipState === 'received') {
|
|
287
|
+
await this.features.cache.operate('ship', [{
|
|
288
|
+
id: await generateNewIdAsync(),
|
|
289
|
+
action: 'succeedReceiving',
|
|
290
|
+
data: {},
|
|
291
|
+
filter: {
|
|
292
|
+
id: ship.id,
|
|
293
|
+
},
|
|
294
|
+
}]);
|
|
295
|
+
this.setMessage({
|
|
296
|
+
type: 'success',
|
|
297
|
+
content: this.t('ship.success')
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
else {
|
|
301
|
+
console.log(mpShipState);
|
|
302
|
+
this.setMessage({
|
|
303
|
+
type: 'warning',
|
|
304
|
+
content: this.t('ship.wait'),
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
},
|
|
308
|
+
fail() {
|
|
309
|
+
console.log('fail');
|
|
310
|
+
this.setMessage({
|
|
311
|
+
type: 'warning',
|
|
312
|
+
content: this.t('ship.fail'),
|
|
313
|
+
});
|
|
314
|
+
},
|
|
315
|
+
complete() {
|
|
316
|
+
}
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
else {
|
|
320
|
+
//引导用户升级微信版本
|
|
321
|
+
this.setMessage({
|
|
322
|
+
type: 'warning',
|
|
323
|
+
content: this.t('ship.update wechat'),
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
else {
|
|
328
|
+
this.setMessage({
|
|
329
|
+
type: 'warning',
|
|
330
|
+
content: this.t('no transactionId'),
|
|
331
|
+
});
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
this.setMessage({
|
|
336
|
+
content: this.t('ship.wait'),
|
|
337
|
+
type: 'warning',
|
|
338
|
+
});
|
|
339
|
+
}
|
|
340
|
+
}
|
|
216
341
|
}
|
|
217
342
|
},
|
|
218
343
|
data: {
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
"l-button": "@oak-frontend-base/miniprogram_npm/lin-ui/button/index",
|
|
4
4
|
"l-popup": "@oak-frontend-base/miniprogram_npm/lin-ui/popup/index",
|
|
5
5
|
"l-dialog": "@oak-frontend-base/miniprogram_npm/lin-ui/dialog/index",
|
|
6
|
+
"l-notice-bar": "@oak-frontend-base/miniprogram_npm/lin-ui/notice-bar/index",
|
|
6
7
|
"deposit-new": "../../deposit/new/index"
|
|
7
8
|
}
|
|
8
9
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
<view class="container">
|
|
2
|
+
<l-notice-bar show="{{unreceivedDepositId}}" front-icon-name="notification" end-icon-name="right"
|
|
3
|
+
bind:lintap="onUnreceivedDepositClickMp" bind:linicontap="onUnreceivedDepositClickMp">
|
|
4
|
+
{{t('ship.unconfirm')}}
|
|
5
|
+
</l-notice-bar>
|
|
2
6
|
<view class="info" style="background-color:{{bgColor}};color:{{textColor}};">
|
|
3
7
|
<view
|
|
4
8
|
class="top label"
|
|
@@ -17,5 +17,13 @@
|
|
|
17
17
|
"maxOverflow": "充值金额不得高于%{value}元",
|
|
18
18
|
"minOverflow": "充值金额不得低于%{value}元"
|
|
19
19
|
},
|
|
20
|
-
"yuan": "(元)"
|
|
20
|
+
"yuan": "(元)",
|
|
21
|
+
"ship": {
|
|
22
|
+
"unconfirm": "您有未确认的充值,请尽快前往确认",
|
|
23
|
+
"success": "充值确认成功",
|
|
24
|
+
"wait": "状态核验中,请等待",
|
|
25
|
+
"fail": "确认失败,请稍后重试",
|
|
26
|
+
"update wechat": "请升级微信版本",
|
|
27
|
+
"no transactionId": "暂无相关信息,请联系管理员"
|
|
28
|
+
}
|
|
21
29
|
}
|
|
@@ -41,19 +41,19 @@ export default function render(props) {
|
|
|
41
41
|
});
|
|
42
42
|
}} placeholder={t(`placeholder.qrCode.${offlineAccount.type}`)}/>}
|
|
43
43
|
</Form.Item>}
|
|
44
|
-
<Form.Item label={t('offlineAccount:attr.taxLossRatio')} help={t('placeholder.taxLossRatio')}>
|
|
44
|
+
<Form.Item label={t('offlineAccount:attr.taxLossRatio')} help={t('placeholder.taxLossRatio')} required>
|
|
45
45
|
<InputNumber value={offlineAccount.taxLossRatio} max={5} min={0} addonAfter={"%"} step={0} precision={2} onChange={(value) => {
|
|
46
46
|
const taxLossRatio = value;
|
|
47
47
|
update({ taxLossRatio });
|
|
48
48
|
}}/>
|
|
49
49
|
</Form.Item>
|
|
50
|
-
<Form.Item label={t('offlineAccount:attr.refundGapDays')} help={t('placeholder.refundGapDays')}>
|
|
50
|
+
<Form.Item label={t('offlineAccount:attr.refundGapDays')} help={t('placeholder.refundGapDays')} required>
|
|
51
51
|
<InputNumber value={offlineAccount.refundGapDays} max={365} min={0} addonAfter={"天"} step={1} onChange={(value) => {
|
|
52
52
|
const refundGapDays = value;
|
|
53
53
|
update({ refundGapDays });
|
|
54
54
|
}}/>
|
|
55
55
|
</Form.Item>
|
|
56
|
-
<Form.Item label={t('offlineAccount:attr.refundCompensateRatio')} help={t('placeholder.refundCompensateRatio')}>
|
|
56
|
+
<Form.Item label={t('offlineAccount:attr.refundCompensateRatio')} help={t('placeholder.refundCompensateRatio')} required>
|
|
57
57
|
<InputNumber value={offlineAccount.refundCompensateRatio} max={100} min={0} addonAfter={"%"} step={1} onChange={(value) => {
|
|
58
58
|
const refundCompensateRatio = value;
|
|
59
59
|
update({ refundCompensateRatio });
|
|
@@ -3,5 +3,7 @@ declare const _default: (props: import("oak-frontend-base").ReactComponentProps<
|
|
|
3
3
|
accountId: string;
|
|
4
4
|
accountAvailMax: number;
|
|
5
5
|
onSetPays: (pays: Partial<EntityDict['pay']['CreateOperationData']>[]) => void;
|
|
6
|
+
accountTips: string;
|
|
7
|
+
autoStartPay: boolean;
|
|
6
8
|
}>) => React.ReactElement;
|
|
7
9
|
export default _default;
|
|
@@ -24,9 +24,11 @@ export default OakComponent({
|
|
|
24
24
|
},
|
|
25
25
|
isList: false,
|
|
26
26
|
properties: {
|
|
27
|
-
accountId: '',
|
|
28
|
-
accountAvailMax: 0,
|
|
27
|
+
accountId: '',
|
|
28
|
+
accountAvailMax: 0,
|
|
29
29
|
onSetPays: (pays) => undefined,
|
|
30
|
+
accountTips: '',
|
|
31
|
+
autoStartPay: false,
|
|
30
32
|
},
|
|
31
33
|
formData({ data }) {
|
|
32
34
|
const payChannels = features.pay.getPayChannels('pay');
|
|
@@ -117,7 +119,7 @@ export default OakComponent({
|
|
|
117
119
|
}, () => this.tryCreatePays());
|
|
118
120
|
},
|
|
119
121
|
tryCreatePays() {
|
|
120
|
-
const { accountId } = this.props;
|
|
122
|
+
const { accountId, autoStartPay } = this.props;
|
|
121
123
|
const { useAccount, accountPrice, channel, meta, order } = this.state;
|
|
122
124
|
const pays = [];
|
|
123
125
|
let rest = order.price - order.paid;
|
|
@@ -128,6 +130,8 @@ export default OakComponent({
|
|
|
128
130
|
entity: 'account',
|
|
129
131
|
entityId: accountId,
|
|
130
132
|
price: accountPrice,
|
|
133
|
+
// account类型的pay自动开始
|
|
134
|
+
autoStart: true,
|
|
131
135
|
});
|
|
132
136
|
rest = rest - accountPrice;
|
|
133
137
|
}
|
|
@@ -139,6 +143,7 @@ export default OakComponent({
|
|
|
139
143
|
entityId: channel.entityId,
|
|
140
144
|
meta,
|
|
141
145
|
price: rest,
|
|
146
|
+
autoStart: !!autoStartPay,
|
|
142
147
|
});
|
|
143
148
|
rest = 0;
|
|
144
149
|
}
|