@@ -96,7 +96,7 @@ | |||||
"urlCheck" : false, | "urlCheck" : false, | ||||
"es6" : true, | "es6" : true, | ||||
"postcss" : true, | "postcss" : true, | ||||
"minified" : true | |||||
"minified" : false | |||||
}, | }, | ||||
"usingComponents" : true, | "usingComponents" : true, | ||||
"permission" : {}, | "permission" : {}, | ||||
@@ -60,25 +60,6 @@ | |||||
"navigationBarBackgroundColor": "#2671E2", | "navigationBarBackgroundColor": "#2671E2", | ||||
"navigationBarTextStyle": "white" | "navigationBarTextStyle": "white" | ||||
} | } | ||||
}, | |||||
{ | |||||
"path": "pages/reportExcel/dayReport", | |||||
"style": { | |||||
"navigationBarTitleText": "数智工牌日报", | |||||
"navigationBarBackgroundColor": "#ffffff", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
}, | |||||
{ | |||||
"path": "pages/reportExcel/weekReport", | |||||
"style": { | |||||
"navigationBarTitleText": "数智工牌周报", | |||||
"navigationBarBackgroundColor": "#ffffff", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
} | } | ||||
], | ], | ||||
//这下面是分包 | //这下面是分包 | ||||
@@ -377,6 +358,26 @@ | |||||
] | ] | ||||
}, | }, | ||||
{ | |||||
"root": "pages/reportExcel", //中心逻辑的模块都放到这里 | |||||
"name": "reportExcel", | |||||
"pages": [{ | |||||
"path": "weekReport", | |||||
"style": { | |||||
"navigationBarTitleText": "数智工牌周报", | |||||
"navigationBarBackgroundColor": "#ffffff", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
},{ | |||||
"path": "dayReport", | |||||
"style": { | |||||
"navigationBarTitleText": "数智工牌日报", | |||||
"navigationBarBackgroundColor": "#ffffff", | |||||
"navigationBarTextStyle": "black" | |||||
} | |||||
} | |||||
] | |||||
}, | |||||
{ | { | ||||
"root": "pages/center", //中心逻辑的模块都放到这里 | "root": "pages/center", //中心逻辑的模块都放到这里 | ||||
"name": "center", | "name": "center", | ||||
@@ -269,9 +269,9 @@ | |||||
<view class="title1">{{item.name}}</view> | <view class="title1">{{item.name}}</view> | ||||
<view class="leve1-jindu"> | <view class="leve1-jindu"> | ||||
<view class="jindutiao"> | <view class="jindutiao"> | ||||
<view class="huanxing" v-if="item.selected==0" style="width: 100%"></view> | |||||
<view class="huanxing" v-if="item.selected==0" :style="{width: item.fraction+'%'}"></view> | |||||
<view class="huanxing" v-else style="width: 0"></view> | <view class="huanxing" v-else style="width: 0"></view> | ||||
<view class="text">{{item.selected==0?100:0}}%</view> | |||||
<view class="text">{{item.selected==0?item.fraction:0}}%</view> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="jiantobox"> | <view class="jiantobox"> | ||||
@@ -529,6 +529,7 @@ | |||||
var item = { | var item = { | ||||
bg: 0, | bg: 0, | ||||
customerId: item.id, | customerId: item.id, | ||||
wordFraction: item.wordFraction | |||||
} | } | ||||
uni.setStorageSync("searchobj", item); //写入缓存 | uni.setStorageSync("searchobj", item); //写入缓存 | ||||
uni.setStorageSync("entrance", 1); //写入缓存 | uni.setStorageSync("entrance", 1); //写入缓存 | ||||
@@ -549,7 +550,7 @@ | |||||
let newobj = res[0]; | let newobj = res[0]; | ||||
if (res[0].merge == 0) { | if (res[0].merge == 0) { | ||||
uni.navigateTo({ | uni.navigateTo({ | ||||
url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}` | |||||
url: `/pages/mine/details2?customerId=${newobj.customerId}&status=${newobj.status}&stateisshow=${"2"}&wordFraction=${item.wordFraction}` | |||||
}) | }) | ||||
} else { | } else { | ||||
uni.navigateTo({ | uni.navigateTo({ | ||||
@@ -314,9 +314,9 @@ | |||||
<view class="title1">{{item.name}}</view> | <view class="title1">{{item.name}}</view> | ||||
<view class="leve1-jindu"> | <view class="leve1-jindu"> | ||||
<view class="jindutiao"> | <view class="jindutiao"> | ||||
<view class="huanxing" v-if="item.selected==0" style="width: 100%"></view> | |||||
<view class="huanxing" v-if="item.selected==0" :style="{width: item.fraction+'%'}"></view> | |||||
<view class="huanxing" v-else style="width: 0"></view> | <view class="huanxing" v-else style="width: 0"></view> | ||||
<view class="text">{{item.selected==0?100:0}}%</view> | |||||
<view class="text">{{item.selected==0?item.fraction:0}}%</view> | |||||
</view> | </view> | ||||
</view> | </view> | ||||
<view class="jiantobox"> | <view class="jiantobox"> | ||||
@@ -636,6 +636,7 @@ | |||||
this.status = options.status; | this.status = options.status; | ||||
this.customerId = options.customerId; | this.customerId = options.customerId; | ||||
this.KeyWordsfraction = options.wordFraction||0; | |||||
this.itemobj = uni.getStorageSync('searchobj'); | this.itemobj = uni.getStorageSync('searchobj'); | ||||
console.log(this.itemobj) | console.log(this.itemobj) | ||||
this.stateisshow = options.stateisshow; | this.stateisshow = options.stateisshow; | ||||
@@ -1593,11 +1594,11 @@ | |||||
this.$u.get("/cusLvStatistics/findKeyWordsBycusId?cusId=" + this.customerId).then(res => { | this.$u.get("/cusLvStatistics/findKeyWordsBycusId?cusId=" + this.customerId).then(res => { | ||||
// console.log(res) | // console.log(res) | ||||
if(res.length){ | if(res.length){ | ||||
this.KeyWordsfraction = 0 | |||||
// this.KeyWordsfraction = 0 | |||||
res.forEach(item=>{ | res.forEach(item=>{ | ||||
if(item.selected==0){ | |||||
this.KeyWordsfraction += +item.fraction // 总执行率 | |||||
} | |||||
// if(item.selected==0){ | |||||
// this.KeyWordsfraction += +item.fraction // 总执行率 | |||||
// } | |||||
item.show = false | item.show = false | ||||
item.children.forEach(obj=>{ | item.children.forEach(obj=>{ | ||||
obj.show = false | obj.show = false | ||||