diff --git a/wwwroot/open_customer_accounts.dspy b/wwwroot/open_customer_accounts.dspy new file mode 100644 index 0000000..68a938b --- /dev/null +++ b/wwwroot/open_customer_accounts.dspy @@ -0,0 +1,18 @@ +username = params_kw.username +db = DBPools() +dbname = await rfexe('get_module_dbname', 'platformbiz') +async with db.sqlorContext(dbname) as sor: + if username: + sql = "select * from users where username = ${username}$" + recs = await sor.sqlExe(sql, {'username':username}) + if len(recs) > 0: + userorgid = recs[0].orgid + else: + e = Exception(f'{user}:user not found') + exception(f'Eeception:{e}') + raise e + else: + userorgid = await get_userorgid() + await openCustomerAccounts(sor, '0', userorgid) + return "开帐成功" +return "开帐失败" diff --git a/wwwroot/open_owner_accounts.dspy b/wwwroot/open_owner_accounts.dspy new file mode 100644 index 0000000..15b892b --- /dev/null +++ b/wwwroot/open_owner_accounts.dspy @@ -0,0 +1,6 @@ +db = DBPools() +dbname = await rfexe('get_module_dbname', 'accounting') +async with db.sqlorContext(dbname) as sor: + await openOwnerAccounts(sor, '0') + return 'OK' +return 'error' diff --git a/wwwroot/owner.operator.menu.ui b/wwwroot/owner.operator.menu.ui new file mode 100644 index 0000000..1529b87 --- /dev/null +++ b/wwwroot/owner.operator.menu.ui @@ -0,0 +1,33 @@ +[ + { + "name":"agree", + "label":"供应商管理", + "url":"{{entire_url('/platformbiz/provider')}}" + }, + { + "name":"paychannel", + "label":"支付渠道", + "url":"{{entire_url('paychannel')}}" + }, + { + "name":"prodtype", + "label":"产品类型", + "url":"{{entire_url('/platformbiz/prodtype')}}" + }, + { + "name":"recharge", + "label":"充值", + "items":[ + { + "name":"recharge_log", + "label":"充值日志" + "url":"{{entire_url('/platformbiz/recharge_log')}}" + }, + { + "name":"recharge_4u", + "label":"充值错账处理", + "url":"{{entire_url('/platformbiz/rechange_accounting.ui')}}" + } + ] + } +] diff --git a/www/recharge.dspy b/wwwroot/recharge.dspy similarity index 100% rename from www/recharge.dspy rename to wwwroot/recharge.dspy diff --git a/www/recharge.ui b/wwwroot/recharge.ui similarity index 100% rename from www/recharge.ui rename to wwwroot/recharge.ui diff --git a/wwwroot/reseller.operator.menu.ui b/wwwroot/reseller.operator.menu.ui new file mode 100644 index 0000000..50998f2 --- /dev/null +++ b/wwwroot/reseller.operator.menu.ui @@ -0,0 +1,30 @@ +[ + { + "name":"product", + "label":"产品管理", + "url":"{{entire_url('/platformbiz/product')}}" + }, + { + "name":"coupon", + "label":"代金券", + "items":[ + { + "name":"coupontype", + "label":"代金券设置" + "url":"{{entire_url('/platformbiz/coupontype')}}" + }, + { + "name":"coupon_issue", + "label":"代金券发放", + "url":"{{entire_url('/platformbiz/coupon_issue.ui')}}" + }, + { + "name":"coupon", + "label":"代金券管理", + "url":"{{entire_url('/platformbiz/coupon')}}" + } + ] + } +] + +