Compare commits

..

No commits in common. "e35b34ca69d5bf5993eee3e0ea5e48005e147713" and "6ca0452581951fd24bc5990d1add59c50d8175dd" have entirely different histories.

3 changed files with 423 additions and 1519 deletions

View File

@ -85,7 +85,7 @@ async def publish_product_add(ns={}):
if ns.get('price') and ns.get('discount'):
ns_dic['discount_price'] = float(ns.get('price')) * float(ns['discount']) / 10
else:
ns_dic['discount_price'] = ns.get('price')
ns_dic['discount_price'] = ns['price']
user_role = await get_user_role({'userid': userid, 'sor': sor})
# 非客户角色不需要审批
if user_role != '客户' and user_role != '管理员':

View File

@ -630,7 +630,7 @@ export default {
const successMessage = this.publish_type === '2' ? '添加需求成功!' : '添加产品成功!'
this.$message.success(successMessage)
} else {
// this.$message.error(res.msg || '')
this.$message.error(res.msg || '添加失败,请重试')
}
}).catch(error => {
loading.close();