dev201310
张群 2 years ago
parent cc056268d4
commit 088234b3d1
  1. 2
      common/util.js
  2. 2
      pages/railway/railwayRunData/form.vue

@ -107,7 +107,7 @@ function calcMom(cur, data) {
} }
// 计算同比 // 计算同比
function calcYoy(cur, data) { function calcYoy(cur, data) {
console.log(cur,"同比==========",data); // console.log(cur,"同比==========",data);
return !checkNotEmpty(cur) || !checkNotEmpty(data) ? '' : data === 0 && parseInt(cur) === 0 ? 0 : data === 0 && parseInt(cur) > 0 ? 100 : (parseInt(cur) - data) / data * 100; return !checkNotEmpty(cur) || !checkNotEmpty(data) ? '' : data === 0 && parseInt(cur) === 0 ? 0 : data === 0 && parseInt(cur) > 0 ? 100 : (parseInt(cur) - data) / data * 100;
} }

@ -776,7 +776,7 @@
item.statDate = this.form.statDate; item.statDate = this.form.statDate;
item.statPeriod = this.form.statPeriod; item.statPeriod = this.form.statPeriod;
}) })
this.$request(getApp().globalData.baseUrl + '/api/biz/railwayRunData/saveOrUpdate', _data, this.$request(getApp().globalData.baseUrl + '/api/biz/railwayRunData/saveOrUpdateV2', _data,
'POST').then(res => { 'POST').then(res => {
uni.hideLoading(); uni.hideLoading();
if (res.code == 200) { if (res.code == 200) {

Loading…
Cancel
Save