bugfix
This commit is contained in:
parent
74abd2e31a
commit
49daa9815d
@ -17,10 +17,7 @@
|
|||||||
"actiontype":"urlwidget",
|
"actiontype":"urlwidget",
|
||||||
"target":"PopupWindow",
|
"target":"PopupWindow",
|
||||||
"options":{
|
"options":{
|
||||||
"url":"{{entire_url('platformbiz/agreeproduct_auth.dspy')}}",
|
"url":"{{entire_url('../agree_prodclone.dspy')}}"
|
||||||
"params":{
|
|
||||||
"agreedetailid":"{{params_kw.agreedetailid}}"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
@ -2,28 +2,6 @@
|
|||||||
"tblname":"agreeproduct",
|
"tblname":"agreeproduct",
|
||||||
"params":{
|
"params":{
|
||||||
"logined_userorgid":"orgid",
|
"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": {
|
"browserfields": {
|
||||||
"exclouded": ["id", "agreedetailid"],
|
"exclouded": ["id", "agreedetailid"],
|
||||||
"alters": {}
|
"alters": {}
|
||||||
|
@ -24,7 +24,7 @@ async def get_balance(orgid):
|
|||||||
class PlatformBizAcc:
|
class PlatformBizAcc:
|
||||||
"""
|
"""
|
||||||
"""
|
"""
|
||||||
def build_accountset(self, sor, biz_order, biz_orderdetails):
|
async def build_accountset(self, sor, biz_order, biz_orderdetails):
|
||||||
acconuntset = DictObject()
|
acconuntset = DictObject()
|
||||||
accountset['action'] = biz_order.business_op
|
accountset['action'] = biz_order.business_op
|
||||||
accountset['owner'] = get_owner_orgid(sor, '0')
|
accountset['owner'] = get_owner_orgid(sor, '0')
|
||||||
@ -109,5 +109,3 @@ class PlatformBizAccRecharge(PlatformBizAcc):
|
|||||||
a = Accounting(self)
|
a = Accounting(self)
|
||||||
r = await a.do_accounting(sor)
|
r = await a.do_accounting(sor)
|
||||||
|
|
||||||
async def PayAccounting(sor, *):
|
|
||||||
pass
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
debug(f'params_kw=}')
|
debug(f'{params_kw=}')
|
||||||
orgid = await get_userorgid()
|
orgid = await get_userorgid()
|
||||||
db = DBPools()
|
db = DBPools()
|
||||||
dbname = await get_module_dbname('platformbiz')
|
dbname = get_module_dbname('platformbiz')
|
||||||
async with db.sqlorContext(dbname) as sor:
|
async with db.sqlorContext(dbname) as sor:
|
||||||
await agree_products_clone(sor, orgid, params_kw.id)
|
await agree_products_clone(sor, orgid, params_kw.id)
|
||||||
return UiMessage(title='product clone', message='product clone finished')
|
return UiMessage(title='product clone', message='product clone finished')
|
||||||
|
Loading…
Reference in New Issue
Block a user