一种基于BS架构的药店收银系统整单打折优惠实现的方法技术方案

技术编号:18810727 阅读:19 留言:0更新日期:2018-09-01 09:36
本发明专利技术涉及药店系统收银平台技术领域,特别涉及一种基于B/S架构的药店收银系统整单打折或优惠的实现方法。本发明专利技术的方法是在收银员登录药店系统后,获得打折优惠的权限,并切换到收银平台。如果当前用户有整单优惠的权限,点击整单优惠按钮弹出优惠界面,如果收银员选择修改折扣,折后金额与优惠金额自动计算;选择修改折后金额,则折扣与优惠金额自动计算。点击确定按钮后,自动更新收银表格中每条销售订单的折扣与销售金额并重新计算整单的销售金额等信息。本发明专利技术解决了在药店收银时不能方便地给客户整单打折或优惠的问题。

A method based on BS structure to achieve the full discount of pharmacy cash register system

The invention relates to the technical field of a drug store system cash register platform, in particular to a method for realizing a full order discount or discount of a drug store cash register system based on B/S structure. The method of the invention is that after the cashier enters the pharmacy system, he obtains the right of discount discount and switches to the cash register platform. If the current user has the privilege of the whole discount, click the button of the whole discount to pop up the preferential interface. If the cashier chooses to modify the discount, the amount of discount and the amount of discount will be calculated automatically. If the cashier chooses to modify the amount of discount, the discount and the amount of discount will be calculated automatically. After clicking the OK button, the discount and sales amount of each sales order in the cashier form are updated automatically and the sales amount of the whole order is recalculated. The invention solves the problem of not giving the customers a full discount or preferential treatment when receiving a drug at a pharmacy.

【技术实现步骤摘要】
一种基于BS架构的药店收银系统整单打折优惠实现的方法
本专利技术涉及药店系统收银平台
,特别涉及一种基于药店系统收银平台整单优惠的实现方法。
技术介绍
在药店收银时经常会给一些客户进行商品打折优惠,但目前大部份的收银系统都是C/S加构的,没有把打折与优惠功能分开来做,或者根本就没有这些功能,不利于门店销售商品时的那种高效、快速地打折或优惠的操作;为了解决这些问题,需要实现一种操作简洁并可整单打折或优惠的功能。
技术实现思路
本专利技术解决的技术问题在于提供一种在药店收银平台整单打折或优惠的实现方法;解决了在药店收银时不能方便地给客户整单打折或优惠的问题。本专利技术解决上述技术问题的技术方案是:在收银员登录药店系统后,获得打折优惠的权限,并切换到收银平台。如果当前用户有整单优惠的权限,点击整单优惠按钮弹出优惠界面,如果收银员选择修改折扣,折后金额与优惠金额自动计算;选择修改折后金额,则折扣与优惠金额自动计算。点击确定按钮后,自动更新收银表格中每条销售订单的折扣与销售金额并重新计算整单的销售金额等信息。从而解决了在药店收银时不能方便地给客户整单打折或优惠的问题。所述的方法具体包括如下步骤:步骤一、用户登录药店系统,获得折扣优惠权限;步骤二、点击POS收银按钮切换到收银平台;步骤三、点击整单优惠按钮弹出优惠界面;步骤四、修改折扣,折后金额与优惠金额自动计算;修改折后金额,折扣与优惠金额自动计算;步骤五、点击确定按钮后,自动更新收银表格中每条销售订单的折扣与销售金额并重新计算整单的销售金额等信息。本专利技术的有益效果:在收银员登录药店系统后,获得打折优惠的权限,并切换到收银平台。如果当前用户有整单优惠的权限,点击整单优惠按钮弹出优惠界面,如果收银员选择修改折扣,折后金额与优惠金额自动计算;选择修改折后金额,则折扣与优惠金额自动计算。点击确定按钮后,自动更新收银表格中每条销售订单的折扣与销售金额并重新计算整单的销售金额等信息,从而达到在结帐时收银员可以快速有效地根据客户的需求进行整单打折或优惠的目的。有效解决了在药店收银时不能方便地给客户整单打折或优惠的问题。附图说明下面结合附图对本专利技术进一步说明:图1为本专利技术的流程图;图2为步骤二的效果图;图3为步骤三的效果图。具体实施方式如图1所示,本专利技术采用如下步骤:步骤一、用户登录药店系统,获得优惠折扣权限;如://登录@RequestMapping(value="/login",method=RequestMethod.POST)publicStringlogin(Stringaccount,Stringpassword)throwsException{try{Subjectsubject=ShiroUtil.getSubject();password=MD5Util.encrypt(password,sysConstantService.findSalt());UsernamePasswordTokentoken=newUsernamePasswordToken(account,password);subject.login(token);}//获得权限信息@OverrideprotectedAuthorizationInfodoGetAuthorizationInfo(PrincipalCollectionprincipalCollection){StringuserId=ShiroUtil.getUserId();//用户角色Set<String>rolesSet=sysUserService.listUserRoles(userId);//用户权限Set<String>permsSet=sysUserService.listUserPerms(userId);SimpleAuthorizationInfoinfo=newSimpleAuthorizationInfo();info.setRoles(rolesSet);info.setStringPermissions(permsSet);returninfo;}步骤二、点击POS收银按钮切换到收银平台;如图:步骤三、点击整单优惠按钮弹出优惠界面;如图:步骤四、修改折扣,折后金额与优惠金额自动计算;修改折后金额,折扣与优惠金额自动计算;如://折扣修改$('#discountNum').bind('inputpropertychange',function(){caculAmountByDiscount();});//折后金额修改$('#discountAfterAmount').bind('inputpropertychange',function(){caculAmountByAmount();});步骤五、点击确定按钮后,自动更新收银表格中每条销售订单的折扣与销售金额并重新计算整单的销售金额等信息。如://点击确定按钮$("#sumbitDiscountBtn").click(function(e){updateAllDiscount();});//更新表格中的折扣与金额functionupdateAllDiscount(){//获得表格数据vardatas=$table.bootstrapTable("getData");vardiscountNum=$("#discountNum").val();//折扣$.each(datas,function(index,obj){vardiscountPrice=obj.costPrice*discountNum/100;//折后价varsaleAmount=fixNum(obj.saleCount*discountPrice);//金额//更新折扣与金额$table.bootstrapTable('updateRow',{index:index,row:{discount:discountNum,saleAmount:saleAmount}});})}//更新总销售金额等信息updateSaleOrder();}本文档来自技高网...

【技术保护点】
1.一种基于B/S架构的药店收银系统整单打折优惠实现的方法,其特征在于:在收银员登录药店系统后,获得打折优惠的权限,并切换到收银平台;如果当前用户有整单优惠的权限,点击整单优惠按钮弹出优惠界面,如果收银员选择修改折扣,折后金额与优惠金额自动计算;选择修改折后金额,则折扣与优惠金额自动计算;点击确定按钮后,自动更新收银表格中每条销售订单的折扣与销售金额并重新计算整单的销售金额等信息;从而解决了在药店收银时不能方便地给客户整单打折或优惠的问题。

【技术特征摘要】
1.一种基于B/S架构的药店收银系统整单打折优惠实现的方法,其特征在于:在收银员登录药店系统后,获得打折优惠的权限,并切换到收银平台;如果当前用户有整单优惠的权限,点击整单优惠按钮弹出优惠界面,如果收银员选择修改折扣,折后金额与优惠金额自动计算;选择修改折后金额,则折扣与优惠金额自动计算;点击确定按钮后,自动更新收银表格中每条销售订单的折扣与销售金额并重新计算整单的销售金额等信息;从而解决了在药店收银时不能方便地给客户整单打折或优...

【专利技术属性】
技术研发人员:陈林张来卿庞严冬
申请(专利权)人:珠海横琴盛达兆业科技投资有限公司
类型:发明
国别省市:广东,44

网友询问留言 已有0条评论
  • 还没有人留言评论。发表了对其他浏览者有用的留言会获得科技券。

1