From ad31648c6f7a8bff1f7ccdf84b76006b9ffb78f8 Mon Sep 17 00:00:00 2001 From: jyy <jyy> Date: Sat, 17 Jul 2021 15:59:10 +0800 Subject: [PATCH] 1. 新增套餐中有效和无效的操作 2. 会员修改门店功能 3. 套餐新增编辑次数功能 4. 计算是否为赠送的条件为,全部为赠送金额购买且支付金额大于0 5. 打印小票功能调整间距,和收银人 6. PC端服务单新增划扣金额展示 --- zq-erp/src/main/resources/static/js/systools/ChartsUtils.js | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 55 insertions(+), 1 deletions(-) diff --git a/zq-erp/src/main/resources/static/js/systools/ChartsUtils.js b/zq-erp/src/main/resources/static/js/systools/ChartsUtils.js index 93a7553..cb5a624 100644 --- a/zq-erp/src/main/resources/static/js/systools/ChartsUtils.js +++ b/zq-erp/src/main/resources/static/js/systools/ChartsUtils.js @@ -11,7 +11,6 @@ this.$unitSelect = $("#unitSelect"); //记录当前视图的格式化字符串 this.dateFmt = ""; - //绑定搜索事件 $('#serach').on("click",{charts:this},this.updateChartsDate); //时间单位选择变化 @@ -119,3 +118,58 @@ event.data.charts.loadChartData(); } } + +/** + *指定图表的配置项和数据 + */ +ChartsUtils.prototype.getption=function(title) { + return { + title: { + text: title, + padding: 20 + }, + legend: {}, + toolbox: { + show: true, + feature: { + mark: {show: true}, + dataView: {show: true, readOnly: false}, + magicType: {show: true, type: ['line', 'bar']}, + restore: {show: true}, + saveAsImage: {show: true} + } + }, + tooltip: { + trigger: 'axis' + }, + xAxis: { + type: 'category', + boundaryGap: false, + axisLabel: { + rotate: 30 + }, + splitLine: { + show: false, + }, + data: [] + }, + yAxis: { + type: 'value' + }, + dataZoom: [ + { + id: 'dataZoomX', + type: 'slider', + xAxisIndex: [0], + filterMode: 'filter' + } + ], + animation: true, + animationDuration: 1000, + animationDurationUpdate: 1000, + animationEasing: 'linear', + animationEasingUpdate: 'linear', + } + +}; + -- Gitblit v1.9.1