This commit is contained in:
yumoqing 2025-04-05 20:48:40 +08:00
parent 74abd2e31a
commit 49daa9815d
4 changed files with 4 additions and 31 deletions

View File

@ -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')}}"
}
}
],

View File

@ -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": {}

View File

@ -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

View File

@ -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')