|
|
@@ -16,8 +16,8 @@ const _Http = getApp().globalData.http,
|
|
|
}
|
|
|
} else if (length <= 8) {
|
|
|
return { //万-千万
|
|
|
-
|
|
|
- show: CNY(currency(n).divide(wx.getStorageSync('languagecode')=='ZH' ? 10000 : 1000)).replace(regexp, '$1') + getApp().globalData.Language.getMapText('万元'),
|
|
|
+
|
|
|
+ show: CNY(currency(n).divide(wx.getStorageSync('languagecode') == 'ZH' ? 10000 : 1000)).replace(regexp, '$1') + getApp().globalData.Language.getMapText('万元'),
|
|
|
value: CNY(n)
|
|
|
}
|
|
|
} else {
|
|
|
@@ -103,7 +103,13 @@ Page({
|
|
|
id: 4,
|
|
|
queryMonths: 3
|
|
|
}]
|
|
|
- }]
|
|
|
+ }],
|
|
|
+ firstTwelveMonths: {
|
|
|
+ dealaccuracyrate: '0%',
|
|
|
+ totaldealamount: 0,
|
|
|
+ totaldeviationamount: 0,
|
|
|
+ totalsignamount_due: 0
|
|
|
+ }
|
|
|
},
|
|
|
onLoad(options) {
|
|
|
_Http.basic({
|
|
|
@@ -138,7 +144,7 @@ Page({
|
|
|
onReady() {
|
|
|
this.setChartData();
|
|
|
this.selectComponent("#organization").setData({
|
|
|
- isleave:1
|
|
|
+ isleave: 1
|
|
|
})
|
|
|
this.selectComponent("#organization").initDepAndUser();
|
|
|
// this.selectComponent("#Yl_Filtrate1").queryMonths(12)
|
|
|
@@ -160,7 +166,7 @@ Page({
|
|
|
}) {
|
|
|
if (detail.name == 'reset') {
|
|
|
this.selectComponent("#organization").setData({
|
|
|
- isleave:1
|
|
|
+ isleave: 1
|
|
|
})
|
|
|
this.selectComponent("#organization").initDepAndUser()
|
|
|
this.setData({
|
|
|
@@ -197,6 +203,7 @@ Page({
|
|
|
this.setData({
|
|
|
statistics: []
|
|
|
})
|
|
|
+ console.log(this.data.content)
|
|
|
_Http.basic({
|
|
|
"id": 20230630151504,
|
|
|
"content": this.data.content
|
|
|
@@ -232,6 +239,21 @@ Page({
|
|
|
}
|
|
|
});
|
|
|
})
|
|
|
+
|
|
|
+ _Http.basic({
|
|
|
+ "id": 20241028162104,
|
|
|
+ "content": this.data.content
|
|
|
+ }).then(res => {
|
|
|
+ console.log("前12个月总数据", res)
|
|
|
+ if (res.code != '1') return wx.showToast({
|
|
|
+ title: res.msg,
|
|
|
+ icon: "none"
|
|
|
+ })
|
|
|
+ res.data.dealaccuracyrate = (res.data.dealaccuracyrate * 100).toFixed(2) + '%'
|
|
|
+ this.setData({
|
|
|
+ firstTwelveMonths: res.data
|
|
|
+ })
|
|
|
+ })
|
|
|
},
|
|
|
renderChart() {
|
|
|
return createElement(Chart, {
|