This commit is contained in:
ylj20011123 2025-12-04 15:36:09 +08:00
parent 83ce31674d
commit 1a1cb38f1a
11 changed files with 98 additions and 73 deletions

View File

@ -65,7 +65,7 @@ export default {
return { return {
isLoading: false, isLoading: false,
kpiData: { kpiData: {
totalSuppliers: 128, totalSuppliers: 57, //
avgDeliveryRate: 95.6, avgDeliveryRate: 95.6,
inventoryTurnover: 12, inventoryTurnover: 12,
monthlyPurchase: 2800000 monthlyPurchase: 2800000
@ -74,11 +74,11 @@ export default {
totalAlerts: 3 totalAlerts: 3
}, },
categoryData: [ categoryData: [
{ name: '食品供应商', value: 35 }, { name: '经销商', value: 35 },
{ name: '日用品供应商', value: 28 }, { name: '品牌方', value: 9 },
{ name: '服务类供应商', value: 22 }, { name: '自有品牌水', value: 2 },
{ name: '设备供应商', value: 18 }, { name: '零售批发类', value: 1 },
{ name: '其他', value: 25 } { name: '厂家', value: 10 }
] ]
} }
}, },
@ -111,7 +111,8 @@ export default {
position: 'right', position: 'right',
float: 'center', float: 'center',
padding: 5, padding: 5,
margin: 10 margin: 15,
itemGap: 20
}, },
extra: { extra: {
pie: { pie: {

View File

@ -95,6 +95,9 @@ const cfu = {
"option": {}, "option": {},
//下面是自定义format配置因除H5端外的其他端无法通过props传递函数只能通过此属性对应下标的方式来替换 //下面是自定义format配置因除H5端外的其他端无法通过props传递函数只能通过此属性对应下标的方式来替换
"formatter": { "formatter": {
"supplierCategoryPie": function (item, category, index, opts) {
return `${item.name}${item.data}`
},
"AnalysisOfMember": function (item, category, index, opts) { "AnalysisOfMember": function (item, category, index, opts) {
return `${item.name}${category},占比:${item.data}%` return `${item.name}${category},占比:${item.data}%`
}, },

View File

@ -249,7 +249,7 @@ export default {
{ name: '运营中心', key: 'business' }, { name: '运营中心', key: 'business' },
{ name: '客群画像', key: 'customerProfile' }, { name: '客群画像', key: 'customerProfile' },
{ name: '经营分析', key: 'businessRevenue' }, { name: '经营分析', key: 'businessRevenue' },
// { name: '', key: 'supplierAnalysis' }, { name: '供应链生态', key: 'supplierAnalysis' },
{ name: '电商生态', key: 'mallOperation' }, { name: '电商生态', key: 'mallOperation' },
], ],
// Tab // Tab

View File

@ -736,7 +736,7 @@ export default {
}, },
// //
showEmergencyDetails(type) { showEmergencyDetails(type) {
if (this.serviceInfo.SERVERPART_NAME) { if (this.serviceInfo.SAName) {
// type 1 2 // type 1 2
this.$util.toNextRoute("navigateTo", `/pages/attendanceStatus/emergencyEvents?type=${type}`); this.$util.toNextRoute("navigateTo", `/pages/attendanceStatus/emergencyEvents?type=${type}`);
} else { } else {
@ -758,7 +758,7 @@ export default {
let _this = this let _this = this
console.log('this.serviceInfothis.serviceInfo', this.serviceInfo); console.log('this.serviceInfothis.serviceInfo', this.serviceInfo);
if (this.serviceInfo.SERVERPART_NAME) { if (this.serviceInfo.SAName) {
if (value === 1) { if (value === 1) {
this.showEmergencyDetails(1) this.showEmergencyDetails(1)
} else if (value === 2) { } else if (value === 2) {

View File

@ -733,7 +733,7 @@ export default {
}); });
} }
const UreaData = await request.$apiPost("CommercialApi/BigData/GetEnergyRevenueInfo", { const UreaData = await request.$SamemberApiPost("CommercialApi/BigData/GetEnergyRevenueInfo", {
DataType: 4000, DataType: 4000,
StatisticsDate: this.nowDay, StatisticsDate: this.nowDay,
ShowWY: true, ShowWY: true,

View File

@ -33,9 +33,9 @@
<!-- <view class="typeBox">{{ serviceTypeObj[item.SERVERPART_TYPE] }}</view> --> <!-- <view class="typeBox">{{ serviceTypeObj[item.SERVERPART_TYPE] }}</view> -->
</view> </view>
<div class="box"> <div class="box">
<div class="imgBox"> <!-- <div class="imgBox">
<image class="icon" src="https://eshangtech.com/ShopICO/ahyd-BID/service/phone.svg"></image> <image class="icon" src="https://eshangtech.com/ShopICO/ahyd-BID/service/phone.svg"></image>
</div> </div> -->
<div class="imgBox" style="margin-right: 0px" @click.stop="handleGomap(item)"> <div class="imgBox" style="margin-right: 0px" @click.stop="handleGomap(item)">
<image class="icon" src="https://eshangtech.com/ShopICO/ahyd-BID/service/map.svg"></image> <image class="icon" src="https://eshangtech.com/ShopICO/ahyd-BID/service/map.svg"></image>
</div> </div>

View File

@ -91,7 +91,7 @@
<view class="stat-item"> <view class="stat-item">
<text class="stat-number">{{ formatArea(info.floorArea) }}</text> <text class="stat-number">{{ formatArea(info.floorArea) }}</text>
<text class="stat-label">占地面积</text> <text class="stat-label">占地面积</text>
<text class="stat-unit"></text> <text class="stat-unit"></text>
</view> </view>
<view class="stat-divider"></view> <view class="stat-divider"></view>
<view class="stat-item"> <view class="stat-item">

View File

@ -37,7 +37,7 @@
<sliderPage :index="selectPortrait" @handleChangeIndex="handleChangeIndex"/> <sliderPage :index="selectPortrait" @handleChangeIndex="handleChangeIndex"/>
</view> --> </view> -->
<view class="summaryOfPortraitsBox"> <view class="summaryOfPortraitsBox" v-if="isHandleOnShow">
<view class="swiperItem"> <view class="swiperItem">
<mapDetail :selectIndex="selectPortrait" /> <mapDetail :selectIndex="selectPortrait" />
</view> </view>
@ -124,12 +124,25 @@ export default {
this.isShowSwiper = true this.isShowSwiper = true
let seat = uni.getStorageSync('currentService') let seat = uni.getStorageSync('currentService')
console.log('seat', seat) console.log('seat', seat)
console.log('this.serviceInfo', JSON.parse(JSON.stringify(this.serviceInfo)))
if (this.serviceInfo.SAName !== seat.SAName) {
this.serviceInfo = seat this.serviceInfo = seat
if (this.selectPortrait) { this.isHandleOnShow = false
this.selectPortrait = -1
} else { uni.showLoading()
this.selectPortrait = this.query.index ? this.query.index : seat.SERVERPART_NAME === '安徽驿达' ? 1 : 0 this.$forceUpdate()
setTimeout(() => {
this.isHandleOnShow = true
this.selectPortrait = 0
uni.hideLoading()
}, 100)
} }
// if (this.selectPortrait) {
// } else {
// this.selectPortrait = this.query.index ? this.query.index : seat.SERVERPART_NAME === '驿' ? 1 : 0
// }
}, },
onHide() { onHide() {
this.isShowSwiper = false this.isShowSwiper = false
@ -158,15 +171,19 @@ export default {
let lastDay = uni.getStorageSync('lastDay') let lastDay = uni.getStorageSync('lastDay')
let pageList = getCurrentPages() let pageList = getCurrentPages()
console.log('pageList', pageList) console.log('pageList', pageList)
if (pageList.length > 2) {
uni.navigateBack({
delta: 1
})
} else {
uni.navigateTo({ uni.navigateTo({
url: `/pages/map/index?time=${lastDay}&serviceInfo=${JSON.stringify(currentService)}` url: `/pages/map/index?time=${lastDay}&serviceInfo=${JSON.stringify(currentService)}`
}) })
}
// if (pageList.length > 2) {
// uni.navigateBack({
// delta: 1
// })
// } else {
// uni.navigateTo({
// url: `/pages/map/index?time=${lastDay}&serviceInfo=${JSON.stringify(currentService)}`
// })
// }
} }
} }
} }

View File

@ -239,53 +239,53 @@ export default {
// //
this.menu = uni.getMenuButtonBoundingClientRect(); this.menu = uni.getMenuButtonBoundingClientRect();
// // //
this.handleGetUserAvatar() // this.dataList[2].list.forEach((item) => {
this.dataList[2].list.forEach((item) => { // for (let key in this.user.AuthorityInfo) {
for (let key in this.user.AuthorityInfo) { // if (key === item.id) {
if (key === item.id) { // if (this.user.AuthorityInfo[key] === 1) {
if (this.user.AuthorityInfo[key] === 1) { // item.isNotice = true;
item.isNotice = true; // }
} // }
} // }
} // if (item.id === "a927bf4d-f924-4034-b964-d1a8bd401d09") {
if (item.id === "a927bf4d-f924-4034-b964-d1a8bd401d09") { // item.isNotice = true;
item.isNotice = true; // }
} // });
});
// //
this.dataList[3].list.forEach((item) => { // this.dataList[3].list.forEach((item) => {
for (let key in this.user.AuthorityInfo) { // for (let key in this.user.AuthorityInfo) {
if (key === item.id) { // if (key === item.id) {
if (this.user.AuthorityInfo[key] === 1) { // if (this.user.AuthorityInfo[key] === 1) {
item.isNotice = true; // item.isNotice = true;
} // }
} // }
} // }
}); // });
// // //
this.dataList[2].list.forEach((item) => { // this.dataList[2].list.forEach((item) => {
for (let key in this.toDoMsg) { // for (let key in this.toDoMsg) {
if (key === item.id) { // if (key === item.id) {
item.notice = this.toDoMsg[key]; // item.notice = this.toDoMsg[key];
} // }
} // }
}); // });
this.dataList[3].list.forEach((item) => { // this.dataList[3].list.forEach((item) => {
for (let key in this.toDoMsg) { // for (let key in this.toDoMsg) {
if (key === item.id) { // if (key === item.id) {
item.notice = this.toDoMsg[key]; // item.notice = this.toDoMsg[key];
} // }
} // }
}); // });
// //
let userInfo = uni.getStorageSync("vuex"); let userInfo = this.user
console.log('userInfouserInfouserInfo', userInfo);
if (userInfo && userInfo.WeChat_UserId && userInfo.AuthorityInfo["89a1f248-2113-4d57-84b1-c2e6edb9e8ee"] === 1) { if (userInfo && userInfo.WeChat_UserId && userInfo.AuthorityInfo["89a1f248-2113-4d57-84b1-c2e6edb9e8ee"] === 1) {
this.isReturn = false; this.isReturn = false;
} else if (userInfo && userInfo.WeChat_UserId && userInfo.AuthorityInfo["89a1f248-2113-4d57-84b1-c2e6edb9e8ee"] !== 1) { } else if (userInfo && userInfo.WeChat_UserId && userInfo.AuthorityInfo["89a1f248-2113-4d57-84b1-c2e6edb9e8ee"] !== 1) {
uni.redirectTo({ uni.redirectTo({
url: `/pages/commercialBI/noData?type=homeIndex`, url: `/pages/commercialBI/noData?type=noAuthor`,
}); });
} }

View File

@ -11,6 +11,7 @@ export default {
// apiurl: 'https://erysfeipeng.oicp.net/', // web api // apiurl: 'https://erysfeipeng.oicp.net/', // web api
testApiurl: 'http://dev.eshangtech.com:8001/', // web api测试接口地址 testApiurl: 'http://dev.eshangtech.com:8001/', // web api测试接口地址
apiEsUrl: "https://api.eshangtech.com/", apiEsUrl: "https://api.eshangtech.com/",
samemberUrl: "https://samember.yciccloud.com:8999/",
mobUrl: 'http://192.168.11.125:8000/Coop.Merchant/Handler/handler_ajax.ashx', // 接口 mobUrl: 'http://192.168.11.125:8000/Coop.Merchant/Handler/handler_ajax.ashx', // 接口
testURL1: 'http://192.168.10.123:8000', // 测试ip testURL1: 'http://192.168.10.123:8000', // 测试ip

View File

@ -37,6 +37,9 @@ export default {
$apiPost: function (controller, data) { $apiPost: function (controller, data) {
return Api.request('POST', ApiPath.apiEsUrl + controller, data || {}, true) return Api.request('POST', ApiPath.apiEsUrl + controller, data || {}, true)
}, },
$SamemberApiPost: function (controller, data) {
return Api.request('POST', ApiPath.samemberUrl + controller, data || {}, true)
},
$posGet: function (controller, data) { $posGet: function (controller, data) {
return Api.request('GET', ApiPath.posApiurl + controller, data || {}, true) return Api.request('GET', ApiPath.posApiurl + controller, data || {}, true)
}, },