diff --git a/json/agreement.json b/json/agreement.json index 1e704e3..9f4bf39 100644 --- a/json/agreement.json +++ b/json/agreement.json @@ -17,10 +17,7 @@ "actiontype":"urlwidget", "target":"PopupWindow", "options":{ - "url":"{{entire_url('platformbiz/agreeproduct_auth.dspy')}}", - "params":{ - "agreedetailid":"{{params_kw.agreedetailid}}" - } + "url":"{{entire_url('../agree_prodclone.dspy')}}" } } ], diff --git a/json/agreeproduct.json b/json/agreeproduct.json index 2fce59f..5866643 100644 --- a/json/agreeproduct.json +++ b/json/agreeproduct.json @@ -2,28 +2,6 @@ "tblname":"agreeproduct", "params":{ "logined_userorgid":"orgid", - "toolbar":{ - "tools":[ - { - "name":"prodauth", - "label":"授权" - } - ] - }, - "binds":[ - { - "wid":"self", - "event":"prodauth", - "actiontype":"urlwidget", - "target":"PopupWindow", - "options":{ - "url":"{{entire_url('platformbiz/agreeproduct_auth.dspy')}}", - "params":{ - "agreedetailid":"{{params_kw.agreedetailid}}" - } - } - } - ], "browserfields": { "exclouded": ["id", "agreedetailid"], "alters": {} diff --git a/platformbiz/pb_acc.py b/platformbiz/pb_acc.py index fc0d8bb..0928dc9 100644 --- a/platformbiz/pb_acc.py +++ b/platformbiz/pb_acc.py @@ -24,7 +24,7 @@ async def get_balance(orgid): class PlatformBizAcc: """ """ - def build_accountset(self, sor, biz_order, biz_orderdetails): + async def build_accountset(self, sor, biz_order, biz_orderdetails): acconuntset = DictObject() accountset['action'] = biz_order.business_op accountset['owner'] = get_owner_orgid(sor, '0') @@ -109,5 +109,3 @@ class PlatformBizAccRecharge(PlatformBizAcc): a = Accounting(self) r = await a.do_accounting(sor) -async def PayAccounting(sor, *): - pass diff --git a/wwwroot/agree_prodclone.dspy b/wwwroot/agree_prodclone.dspy index 21faf07..8020c2b 100644 --- a/wwwroot/agree_prodclone.dspy +++ b/wwwroot/agree_prodclone.dspy @@ -1,7 +1,7 @@ -debug(f'params_kw=}') +debug(f'{params_kw=}') orgid = await get_userorgid() db = DBPools() -dbname = await get_module_dbname('platformbiz') +dbname = get_module_dbname('platformbiz') async with db.sqlorContext(dbname) as sor: await agree_products_clone(sor, orgid, params_kw.id) return UiMessage(title='product clone', message='product clone finished')