Merge branch 'score_shop' of http://120.27.238.55:7000/r/beauty-erp into score_shop
| | |
| | | <exclude>config/test/*</exclude> |
| | | <exclude>config/xcx/*</exclude> |
| | | |
| | | <!----> |
| | | <!-- --> |
| | | <exclude>config/config.json</exclude> |
| | | <exclude>config/application.properties</exclude> |
| | | <exclude>config/system.properties</exclude> |
| | |
| | | return tjVipSumDao.selectProjConsumeCnt(timeSpaceParam, shopId, null); |
| | | case "20" : |
| | | return tjVipSumDao.selectTimeLength(timeSpaceParam, shopId, null); |
| | | case "21" : |
| | | return tjVipSumDao.selectCardAmount(timeSpaceParam, shopId, null); |
| | | case "22" : |
| | | return tjVipSumDao.selectFreeAmount(timeSpaceParam, shopId, null); |
| | | default : |
| | | return tjVipSumDao.selectBusinessInCome(timeSpaceParam, shopId, null); |
| | | } |
| | |
| | | return tjVipSumDao.selectProjConsumeCnt(timeSpaceParam, null, companyId); |
| | | case "20" : |
| | | return tjVipSumDao.selectTimeLength(timeSpaceParam, null, companyId); |
| | | case "21" : |
| | | return tjVipSumDao.selectCardAmount(timeSpaceParam, null, companyId); |
| | | case "22" : |
| | | return tjVipSumDao.selectFreeAmount(timeSpaceParam, null, companyId); |
| | | default : |
| | | return tjVipSumDao.selectBusinessInCome(timeSpaceParam, null, companyId); |
| | | } |
| | |
| | | @ApiModelProperty(value = "卡项业绩") |
| | | private BigDecimal cardAchieve; |
| | | |
| | | @ApiModelProperty(value = "储值卡本金扣款") |
| | | private BigDecimal cardAmount; |
| | | |
| | | @ApiModelProperty(value = "储值卡增金扣款") |
| | | private BigDecimal cardFreeAmount; |
| | | |
| | | @ApiModelProperty(value = "退款") |
| | | private BigDecimal refund; |
| | | |
| | |
| | | public void setTimeLength(BigDecimal timeLength) { |
| | | this.timeLength = timeLength; |
| | | } |
| | | |
| | | public BigDecimal getCardAmount() { |
| | | return cardAmount; |
| | | } |
| | | |
| | | public void setCardAmount(BigDecimal cardAmount) { |
| | | this.cardAmount = cardAmount; |
| | | } |
| | | |
| | | public BigDecimal getCardFreeAmount() { |
| | | return cardFreeAmount; |
| | | } |
| | | |
| | | public void setCardFreeAmount(BigDecimal cardFreeAmount) { |
| | | this.cardFreeAmount = cardFreeAmount; |
| | | } |
| | | } |
| | |
| | | public static final String WAREHOUSE_MANAGE_STOCK = "WAREHOUSE_MANAGE_STOCK"; |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | /** |
| | | * 家居产品销售是否生成消耗业绩 |
| | | */ |
| | | public static final String SHOP_MANAGE_JJCPAS_CONSUME = "shopManageJjcpasConsume"; |
| | | |
| | | |
| | | |
| | |
| | | import com.matrix.core.tools.StringUtils; |
| | | import com.matrix.core.tools.WebUtil; |
| | | import com.matrix.system.app.vo.UserAchieveVo; |
| | | import com.matrix.system.common.bean.BusParameterSettings; |
| | | import com.matrix.system.common.bean.SysUsers; |
| | | import com.matrix.system.common.constance.AppConstance; |
| | | import com.matrix.system.common.dao.BusParameterSettingsDao; |
| | | import com.matrix.system.common.dao.SysUsersDao; |
| | | import com.matrix.system.constance.Dictionary; |
| | | import com.matrix.system.hive.bean.*; |
| | |
| | | |
| | | @Autowired |
| | | ShoppingGoodsDao shoppingGoodsDao; |
| | | @Autowired |
| | | BusParameterSettingsDao busParameterSettingsDao; |
| | | |
| | | private void buildAchieve(SysOrder pageOrder, SysOrderItem orderItem, AchieveNew achieveNew) { |
| | | BusParameterSettings shopManageJjcpasConsume =null; |
| | | if (Dictionary.ORDER_STATU_TK.equals(pageOrder.getStatu())) { |
| | | achieveNew.setId(null); |
| | | achieveNew.setProjPercentage(0 - achieveNew.getProjPercentage()); |
| | |
| | | } else { |
| | | achieveNew.setDatatime(new Date()); |
| | | } |
| | | if(Dictionary.SHOPPING_GOODS_TYPE_JJCP.equals(orderItem.getShoppingGoods().getGoodType())){ |
| | | if(shopManageJjcpasConsume==null){ |
| | | shopManageJjcpasConsume = busParameterSettingsDao.selectCompanyParamByCode(AppConstance.SHOP_MANAGE_JJCPAS_CONSUME, pageOrder.getCompanyId()); |
| | | } |
| | | if(AppConstance.IS_Y.equals(shopManageJjcpasConsume.getParamValue())){ |
| | | achieveNew.setHisConsume(achieveNew.getGoodsCash()); |
| | | } |
| | | |
| | | } |
| | | |
| | | |
| | | |
| | | achieveNew.setOrderType(Dictionary.ORDER_TYPE_SEAL); |
| | | achieveNew.setOrderId(pageOrder.getId()); |
| | | achieveNew.setOrderItemId(orderItem.getId()); |
| | |
| | | orderItem.setPrice(czVo.getBjmoney()); |
| | | orderItem.setStatus(Dictionary.ORDER_STATU_YFK); |
| | | orderItem.setAchieveList(czVo.getAchaeveList()); |
| | | orderItem.setShoppingGoods(shoppingGoods); |
| | | orderItemDao.insert(orderItem); |
| | | List<SysOrderItem> items = new ArrayList<>(); |
| | | items.add(orderItem); |
| | |
| | | moneyCardUseFlowDao.insert(moneyCardUseFlow); |
| | | |
| | | order.setFlows(czVo.getFlows()); |
| | | |
| | | addOrderFlow(order); |
| | | |
| | | // 添加员工业绩 |
| | | achieveNewService.addAchaeveByOrder(order); |
| | | |
| | | return order; |
| | | |
| | | } |
| | |
| | | // 服务时长 |
| | | Map<String, BigDecimal> selectTimeLength(@Param("list") List<StatisticsTimeDaoParam> timeSpaceParam, @Param("shopId") Long shopId, @Param("companyId") Long companyId); |
| | | |
| | | // 储值卡本金扣款 |
| | | Map<String, BigDecimal> selectCardAmount(@Param("list") List<StatisticsTimeDaoParam> timeSpaceParam, @Param("shopId") Long shopId, @Param("companyId") Long companyId); |
| | | |
| | | // 储值卡赠金扣款 |
| | | Map<String, BigDecimal> selectFreeAmount(@Param("list") List<StatisticsTimeDaoParam> timeSpaceParam, @Param("shopId") Long shopId, @Param("companyId") Long companyId); |
| | | |
| | | List<VipAchieveDataShowVo> selectVipAchieveInPage(@Param("list") List<StatisticsTimeDaoParam> timeSpaceParam, @Param("userId") Long userId); |
| | | |
| | | // 订单业绩 |
| | |
| | | public AjaxResult getOrderStatusCount() { |
| | | SysVipInfo sysVipInfo = redisUserLoginUtils.getLoginUser(SysVipInfo.class); |
| | | AjaxResult result = AjaxResult.buildSuccessInstance( |
| | | shopOrderDao.selectOrderStatusCount(sysVipInfo.getOpenId())); |
| | | shopOrderDao.selectOrderStatusCount(sysVipInfo.getId())); |
| | | return result; |
| | | } |
| | | |
| | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.matrix.component.redis.RedisUserLoginUtils; |
| | | import com.matrix.component.tools.HttpCurlUtil; |
| | | import com.matrix.component.wechat.externalInterface.weixinUtil.WeixinServiceUtil; |
| | | import com.matrix.core.pojo.AjaxResult; |
| | | import com.matrix.core.tools.LogUtil; |
| | | import com.matrix.core.tools.StringUtils; |
| | | import com.matrix.core.web.BaseAction; |
| | | import com.matrix.system.activity.dao.ActivitySignReceiveRecordDao; |
| | | import com.matrix.system.common.bean.BusParameterSettings; |
| | | import com.matrix.system.common.dao.BusParameterSettingsDao; |
| | | import com.matrix.system.common.interceptor.HostInterceptor; |
| | |
| | | private MoneyCardUseDao moneyCardUseDao; |
| | | |
| | | @Autowired |
| | | private WeixinServiceUtil weixinServiceUtil; |
| | | ShopCouponRecordDao shopCouponRecordDao; |
| | | |
| | | @Autowired |
| | | ActivitySignReceiveRecordDao activitySignReceiveRecordDao; |
| | | @Value("${debug}") |
| | | private String isDebug; |
| | | |
| | |
| | | return res; |
| | | } |
| | | |
| | | @Autowired |
| | | ShopCouponRecordDao shopCouponRecordDao; |
| | | |
| | | |
| | | /** |
| | | * 查询用户信息 |
| | |
| | | sysVipInfo.setBalance(moneyCardUseDao.selectVipCardTotalMoney(loginUser.getId())); |
| | | AjaxResult res = new AjaxResult(); |
| | | res.putInMap("couponCount", shopCouponRecordDao.countUnuseCouponRecord(loginUser.getId())); |
| | | res.putInMap("prizeCount",0); |
| | | res.putInMap("prizeCount",activitySignReceiveRecordDao.getSignAwardReceiveCount(loginUser.getId(),loginUser.getCompanyId())); |
| | | res.putInMap("userInfo", sysVipInfo); |
| | | res.setStatus(AjaxResult.STATUS_SUCCESS); |
| | | return res; |
| | |
| | | |
| | | public int selectShopOrderTotalByApplyId(@Param("applyId") Long applyId); |
| | | |
| | | public List<Map<String,Object>> selectOrderStatusCount(String openId); |
| | | public List<Map<String,Object>> selectOrderStatusCount(Long userId); |
| | | |
| | | public int batchUpdateOrderStatus(@Param("list") List<ShopOrder> list); |
| | | |
| | |
| | | <select id="selectUserAchieveByTime" resultType="com.matrix.system.app.vo.UserAchieveVo"> |
| | | select |
| | | sale_id id, |
| | | (select ifnull(sum(case b.pay_method when '现金' then goods_cash else 0 end),0) |
| | | (select ifnull(sum(case pay_method when '现金' then goods_cash else 0 end),0) |
| | | from achieve_new a |
| | | inner join sys_order_item b on a.order_item_id=b.ID |
| | | where a.beault_id=#{userId} |
| | | and (date_format(datatime, '%Y-%m-%d') >= date_format(#{startTime}, '%Y-%m-%d') and date_format(#{endTime}, '%Y-%m-%d') >= date_format(datatime, '%Y-%m-%d')) |
| | | ) orderCash, |
| | | (select ifnull(sum(case b.pay_method when '划扣' then goods_cash else 0 end),0) |
| | | (select ifnull(sum(case pay_method when '划扣' then goods_cash else 0 end),0) |
| | | from achieve_new a |
| | | inner join sys_order_item b on a.order_item_id=b.ID |
| | | where a.beault_id=#{userId} |
| | | and (date_format(datatime, '%Y-%m-%d') >= date_format(#{startTime}, '%Y-%m-%d') and date_format(#{endTime}, '%Y-%m-%d') >= date_format(datatime, '%Y-%m-%d')) |
| | | ) cash, |
| | |
| | | select |
| | | b.shop_short_name name, |
| | | b.SHOP_IMAG photo, |
| | | sum(IFNULL(a.goods_cash,0)) amount |
| | | from achieve_new a |
| | | left join sys_shop_info b on a.shop_id=b.ID and shop_type!=1 |
| | | sum(IFNULL(a.amount,0)) amount |
| | | from sys_order_flow a |
| | | inner join sys_order c on a.order_id=c.id and c.STATU != '已取消' |
| | | inner join sys_shop_info b on a.shop_id=b.id and shop_type!=1 |
| | | <where> |
| | | a.pay_method not in ('储值卡', '欠款') |
| | | <if test="record.companyId != null"> |
| | | and a.company_id=#{record.companyId} |
| | | </if> |
| | | <if test='record.t1 == "1" and record.datatime != null'> |
| | | and date_format(datatime, '%Y-%m-%d') = date_format(#{record.datatime}, '%Y-%m-%d') |
| | | and date_format(a.create_time, '%Y-%m-%d') = date_format(#{record.datatime}, '%Y-%m-%d') |
| | | </if> |
| | | <if test='record.t1 == "2" and record.datatime != null'> |
| | | and date_format(datatime, '%Y-%m') = date_format(#{record.datatime}, '%Y-%m') |
| | | and date_format(a.create_time, '%Y-%m') = date_format(#{record.datatime}, '%Y-%m') |
| | | </if> |
| | | <if test='record.t1 == "3" and record.datatime != null'> |
| | | and date_format(datatime, '%Y') = date_format(#{record.datatime}, '%Y') |
| | | and date_format(a.create_time, '%Y') = date_format(#{record.datatime}, '%Y') |
| | | </if> |
| | | </where> |
| | | group by a.shop_id |
| | |
| | | )totalPay, |
| | | (select IFNULL(sum(a.amount),0) from sys_order_flow a |
| | | inner join sys_order b on a.order_id=b.id and b.statu!='已取消' |
| | | where a.pay_method not in ('储值卡', '欠款') and a.flow_type != '退款' and <![CDATA[ a.create_time > #{item.beginTime} and a.create_time < #{item.endTime}]]> |
| | | where a.pay_method not in ('储值卡', '欠款') and <![CDATA[ a.create_time > #{item.beginTime} and a.create_time < #{item.endTime}]]> |
| | | <if test="shopId != null"> |
| | | and a.shop_id=#{shopId} |
| | | </if> |
| | |
| | | and a.company_id=#{companyId} |
| | | </if> |
| | | ) refund, |
| | | (select sum(IFNULL(amount, 0)) |
| | | from sys_order_flow a |
| | | inner join sys_order b on a.order_id=b.id and b.STATU!='已取消' |
| | | where a.pay_method='储值卡' and a.is_gift='N' and <![CDATA[ a.create_time > #{item.beginTime} and a.create_time < #{item.endTime}]]> |
| | | <if test="shopId != null"> |
| | | and a.shop_id=#{shopId} |
| | | </if> |
| | | <if test="companyId != null"> |
| | | and a.company_id=#{companyId} |
| | | </if> |
| | | ) cardAmount, |
| | | (select sum(IFNULL(amount, 0)) |
| | | from sys_order_flow a |
| | | inner join sys_order b on a.order_id=b.id and b.STATU!='已取消' |
| | | where a.pay_method='储值卡' and a.is_gift='Y' and <![CDATA[ a.create_time > #{item.beginTime} and a.create_time < #{item.endTime}]]> |
| | | <if test="shopId != null"> |
| | | and a.shop_id=#{shopId} |
| | | </if> |
| | | <if test="companyId != null"> |
| | | and a.company_id=#{companyId} |
| | | </if> |
| | | ) cardFreeAmount, |
| | | (select IFNULL(count(1),0) from sys_order |
| | | where STATU in ('已付款', '欠款') and orderType=1 and <![CDATA[ ORDER_TIME > #{item.beginTime} and ORDER_TIME < #{item.endTime} ]]> |
| | | <if test="shopId != null"> |
| | |
| | | select |
| | | <foreach collection="list" index="index" item="item" separator="," > |
| | | ( |
| | | select IFNULL(sum(amount),0) from sys_order_flow |
| | | where pay_method not in ('储值卡', '欠款') and flow_type != '退款' and <![CDATA[ create_time > #{item.beginTime} and create_time < #{item.endTime}]]> |
| | | select IFNULL(sum(a.amount),0) from sys_order_flow a |
| | | inner join sys_order b on a.order_id=b.id and b.statu!='已取消' |
| | | where a.pay_method not in ('储值卡', '欠款') and <![CDATA[ a.create_time > #{item.beginTime} and a.create_time < #{item.endTime}]]> |
| | | <if test="shopId != null"> |
| | | and shop_id=#{shopId} |
| | | and a.shop_id=#{shopId} |
| | | </if> |
| | | <if test="companyId != null"> |
| | | and company_id=#{companyId} |
| | | and a.company_id=#{companyId} |
| | | </if> |
| | | ) as t${index} |
| | | |
| | |
| | | select |
| | | <foreach collection="list" index="index" item="item" separator="," > |
| | | ( |
| | | select IFNULL(sum(amount),0) from sys_order_flow |
| | | where pay_method = '欠款' and <![CDATA[ create_time > #{item.beginTime} and create_time < #{item.endTime}]]> |
| | | select IFNULL(sum(a.amount),0) from sys_order_flow a |
| | | inner join sys_order b on a.order_id=b.id and b.statu!='已取消' |
| | | where a.pay_method = '欠款' and <![CDATA[ a.create_time > #{item.beginTime} and a.create_time < #{item.endTime}]]> |
| | | <if test="shopId != null"> |
| | | and shop_id=#{shopId} |
| | | and a.shop_id=#{shopId} |
| | | </if> |
| | | <if test="companyId != null"> |
| | | and company_id=#{companyId} |
| | | and a.company_id=#{companyId} |
| | | </if> |
| | | ) as t${index} |
| | | |
| | |
| | | select |
| | | <foreach collection="list" index="index" item="item" separator="," > |
| | | ( |
| | | select IFNULL(sum(zk_price),0) from sys_order_item a |
| | | select IFNULL(sum(zk_price*count),0) from sys_order_item a |
| | | inner join shopping_goods b on a.goods_id=b.id |
| | | inner join sys_order c on a.ORDER_ID=c.id |
| | | where b.good_type='家居产品' and <![CDATA[ a.create_time > #{item.beginTime} and a.create_time < #{item.endTime}]]> |
| | | inner join sys_order c on a.ORDER_ID=c.id and c.statu!='已取消' |
| | | where b.good_type='家居产品' and <![CDATA[ c.pay_time > #{item.beginTime} and c.pay_time < #{item.endTime}]]> |
| | | <if test="shopId != null"> |
| | | and c.shop_id=#{shopId} |
| | | </if> |
| | |
| | | select |
| | | <foreach collection="list" index="index" item="item" separator="," > |
| | | ( |
| | | select IFNULL(sum(zk_price),0) from sys_order_item a |
| | | select IFNULL(sum(zk_price*count),0) from sys_order_item a |
| | | inner join shopping_goods b on a.goods_id=b.id |
| | | inner join sys_order c on a.ORDER_ID=c.id |
| | | where b.good_type!='家居产品' and <![CDATA[ a.create_time > #{item.beginTime} and a.create_time < #{item.endTime}]]> |
| | | inner join sys_order c on a.ORDER_ID=c.id and c.statu!='已取消' |
| | | where b.good_type!='家居产品' and <![CDATA[ c.pay_time > #{item.beginTime} and c.pay_time < #{item.endTime}]]> |
| | | <if test="shopId != null"> |
| | | and c.shop_id=#{shopId} |
| | | </if> |
| | |
| | | select |
| | | <foreach collection="list" index="index" item="item" separator="," > |
| | | ( |
| | | select IFNULL(sum(amount),0) from sys_order_flow where flow_type = '还款' and <![CDATA[ create_time > #{item.beginTime} and create_time < #{item.endTime}]]> |
| | | select IFNULL(sum(a.amount),0) from sys_order_flow a |
| | | inner join sys_order b on a.order_id=b.id and b.statu!='已取消' |
| | | where a.flow_type = '还款' and <![CDATA[ a.create_time > #{item.beginTime} and a.create_time < #{item.endTime}]]> |
| | | <if test="shopId != null"> |
| | | and shop_id=#{shopId} |
| | | and a.shop_id=#{shopId} |
| | | </if> |
| | | <if test="companyId != null"> |
| | | and company_id=#{companyId} |
| | | and a.company_id=#{companyId} |
| | | </if> |
| | | ) as t${index} |
| | | </foreach> |
| | |
| | | select |
| | | <foreach collection="list" index="index" item="item" separator="," > |
| | | ( |
| | | select IFNULL(sum(amount),0) from sys_order_flow |
| | | where pay_method not in ('储值卡', '欠款') and flow_type = '退款' and <![CDATA[ create_time > #{item.beginTime} and create_time < #{item.endTime}]]> |
| | | select IFNULL(sum(a.amount),0) from sys_order_flow a |
| | | inner join sys_order b on a.order_id=b.id and b.statu!='已取消' |
| | | where a.pay_method not in ('储值卡', '欠款') and a.flow_type = '退款' and <![CDATA[ a.create_time > #{item.beginTime} and a.create_time < #{item.endTime}]]> |
| | | <if test="shopId != null"> |
| | | and shop_id=#{shopId} |
| | | and a.shop_id=#{shopId} |
| | | </if> |
| | | <if test="companyId != null"> |
| | | and company_id=#{companyId} |
| | | and a.company_id=#{companyId} |
| | | </if> |
| | | ) as t${index} |
| | | |
| | |
| | | select |
| | | <foreach collection="list" index="index" item="item" separator="," > |
| | | ( |
| | | select IFNULL(sum(amount),0) from sys_order_flow |
| | | where pay_method in ('储值卡') and flow_type = '退款' and <![CDATA[ create_time > #{item.beginTime} and create_time < #{item.endTime}]]> |
| | | select IFNULL(sum(a.amount),0) from sys_order_flow a |
| | | inner join sys_order b on a.order_id=b.id and b.statu!='已取消' |
| | | where a.pay_method in ('储值卡') and a.flow_type = '退款' and <![CDATA[ a.create_time > #{item.beginTime} and a.create_time < #{item.endTime}]]> |
| | | <if test="shopId != null"> |
| | | and shop_id=#{shopId} |
| | | and a.shop_id=#{shopId} |
| | | </if> |
| | | <if test="companyId != null"> |
| | | and company_id=#{companyId} |
| | | and a.company_id=#{companyId} |
| | | </if> |
| | | ) as t${index} |
| | | |
| | | </foreach> |
| | | from area where id=1 |
| | | </select> |
| | | |
| | | <select id="selectCardAmount" resultType="java.util.TreeMap"> |
| | | select |
| | | <foreach collection="list" index="index" item="item" separator="," > |
| | | ( |
| | | select IFNULL(sum(IFNULL(amount, 0)), 0) |
| | | from sys_order_flow a |
| | | inner join sys_order b on a.order_id=b.id and b.STATU!='已取消' |
| | | where a.pay_method='储值卡' and a.is_gift='N' and <![CDATA[ a.create_time > #{item.beginTime} and a.create_time < #{item.endTime}]]> |
| | | <if test="shopId != null"> |
| | | and a.shop_id=#{shopId} |
| | | </if> |
| | | <if test="companyId != null"> |
| | | and a.company_id=#{companyId} |
| | | </if> |
| | | ) as t${index} |
| | | |
| | | </foreach> |
| | | from area where id=1 |
| | | </select> |
| | | |
| | | <select id="selectFreeAmount" resultType="java.util.TreeMap"> |
| | | select |
| | | <foreach collection="list" index="index" item="item" separator="," > |
| | | ( |
| | | select IFNULL(sum(IFNULL(amount, 0)), 0) |
| | | from sys_order_flow a |
| | | inner join sys_order b on a.order_id=b.id and b.STATU!='已取消' |
| | | where a.pay_method='储值卡' and a.is_gift='Y' and <![CDATA[ a.create_time > #{item.beginTime} and a.create_time < #{item.endTime}]]> |
| | | <if test="shopId != null"> |
| | | and a.shop_id=#{shopId} |
| | | </if> |
| | | <if test="companyId != null"> |
| | | and a.company_id=#{companyId} |
| | | </if> |
| | | ) as t${index} |
| | | |
| | |
| | | <select id="selectOrderStatusCount" resultType="java.util.HashMap" > |
| | | select count(order_status) as count , order_status as orderStatus |
| | | from shop_order |
| | | where user_id=#{openId} |
| | | where user_id=#{userId} |
| | | group by order_status |
| | | </select> |
| | | |
| | |
| | | callback: function (data) { |
| | | _this.isRefund = false; |
| | | _this.dialogSettleVisible = false; |
| | | _this.queryOrderDetailData(_this.data.oldOrderId); |
| | | var param = {}; |
| | | param.id = _this.data.oldOrderId; |
| | | _this.queryOrderDetailData(param); |
| | | } |
| | | }); |
| | | |
| | |
| | | } |
| | | |
| | | function zkAmountFormat(value, row, index) { |
| | | return row.shouldPay + row.refund - row.arrears - row.totalPay; |
| | | var result = row.shouldPay + row.refund - row.arrears - row.totalPay; |
| | | return result.toFixed(2); |
| | | } |
| | | |
| | | function footCountTitle(data) { |
| | |
| | | goodsCash: 0, |
| | | achieveType : _this.achieveTypeList[0].value, |
| | | commission : 0, |
| | | isShare: false, |
| | | isShare: false |
| | | }); |
| | | } |
| | | }); |
| | |
| | | goodsCash: achieve.goodsCash, |
| | | achieveType: achieve.achieveType, |
| | | projPercentage: achieve.commission, |
| | | payMethod:"现金", |
| | | }; |
| | | achaeveList.push(achieveNew); |
| | | }) |
| | |
| | | callback: function (data) { |
| | | _this.isRefund = false; |
| | | _this.dialogSettleVisible = false; |
| | | _this.queryOrderDetailData(_this.data.oldOrderId); |
| | | var param = {}; |
| | | param.id = _this.data.oldOrderId; |
| | | _this.queryOrderDetailData(param); |
| | | } |
| | | }); |
| | | |
| | |
| | | width="400"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="projUse.source" |
| | | label="来源" |
| | | width="400"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | :formatter="hkPrice" |
| | | label="划扣金额" |
| | | width="100"> |
| | |
| | | MTools.closeForm(); |
| | | }, |
| | | serviceTime(row, column) { |
| | | console.log(column); |
| | | console.log(row); |
| | | // if (!column.bedState) { |
| | | // return "-"; |
| | | // } |
| | | if (!row.beginTime) { |
| | | return "-"; |
| | | } |
| | | var startTime = this.dateFormat(row.beginTime); |
| | | var endTime = this.dateFormat(row.endTime); |
| | | return startTime + " - " + endTime; |
| | |
| | | </template> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="source" |
| | | label="来源" |
| | | width="180"> |
| | | </el-table-column> |
| | | <el-table-column |
| | | prop="status" |
| | | label="状态" |
| | | width="180"> |
| | |
| | | } |
| | | |
| | | function zkAmountFormat(value, row, index) { |
| | | return row.shouldPay + row.refund - row.arrears - row.totalPay; |
| | | var result = row.shouldPay + row.refund - row.arrears - row.totalPay; |
| | | return result.toFixed(2); |
| | | } |
| | | |
| | | function footCountTitle(data) { |
| | |
| | | |
| | | </div> |
| | | <div class="signup-footer" style="color: #4968bd;"> |
| | | <div class="" style="font-size: 16px;">HIVE管理系统V2.2.0</div> |
| | | <div class="" style="font-size: 16px;">讯聪管理系统V2.2.0</div> |
| | | <div class=""> |
| | | |
| | | <p class="download-bar" style="font-size: 12px;"><strong>浏览器:</strong>Win7以上<a |
| | |
| | | }); |
| | | loginQrCodeKey="loginQrCodeKey_" + MTools.randomStr(); |
| | | let qrInfo={webClientId:webClientId,loginQrCodeKey:loginQrCodeKey} |
| | | console.log(qrInfo); |
| | | qrcode.makeCode(JSON.stringify(qrInfo)); |
| | | $('#qrCodeIcon canvas').show(); |
| | | |
| | |
| | | //实现化WebSocket对象,指定要连接的服务器地址与端口 建立连接 |
| | | let wsPath= getRootPath(); |
| | | var socketUrl= wsPath.replace("http","ws")+ "/webSocketServer?userId="+webClientId; |
| | | console.log(socketUrl); |
| | | |
| | | if(socket!=null){ |
| | | socket.close(); |
| | | socket=null; |
| | |
| | | }; |
| | | //获得消息事件 |
| | | socket.onmessage = function(msg) { |
| | | console.log(msg); |
| | | |
| | | var serverMsg = JSON.parse(msg.data); |
| | | |
| | | if(serverMsg.msgType==1){ |
| | |
| | | newSetting3.setCategory("微信开发配置"); |
| | | newSettings.add(newSetting3); |
| | | |
| | | ParameterSettings newSetting4=new ParameterSettings(); |
| | | newSetting4.setCode(AppConstance.SHOP_MANAGE_JJCPAS_CONSUME); |
| | | newSetting4.setName("家居产品销售是否生成消耗业绩"); |
| | | newSetting4.setType(1); |
| | | newSetting4.setCategory("店务配置"); |
| | | newSettings.add(newSetting4); |
| | | |
| | | |
| | | |