Compare commits

..

No commits in common. "a4b56b1e0c583a648f861a9dfae1a821fc252073" and "898e90adbc4f592268ac18020bfab8bc4a661384" have entirely different histories.

70 changed files with 8192 additions and 20615 deletions

107
App.vue
View File

@ -1,87 +1,92 @@
<script> <script>
import Vue from "vue"; import Vue from 'vue'
import util from "@/common/utils"; import util from '@/common/utils'
import { mapGetters, mapActions, mapMutations } from "vuex"; import {
mapGetters,
mapActions,
mapMutations
} from 'vuex'
export default { export default {
computed:{ computed:{
...mapGetters({ user: "getUser" }), ...mapGetters({'user':'getUser'})
}, },
methods: { methods: {
...mapActions(["memberLogin", "getLoginCode"]),
...mapMutations(["setVisitChannels"]), ...mapActions(['memberLogin','getLoginCode']),
...mapMutations(['setVisitChannels']),
handleGetUserInfo(){ handleGetUserInfo(){
wx.request({ wx.request({
url: "https://qifu-api.baidubce.com/ip/local/geo/v1/district", url: 'https://qifu-api.baidubce.com/ip/local/geo/v1/district',
success(response) { success(response) {
const data = response.data; const data = response.data;
// //
let obj = { let obj = {
...data.data, ...data.data,
ip: data.ip, ip: data.ip
}; }
console.log("obj", obj); console.log('obj',obj)
uni.setStorageSync("userInfo", obj); uni.setStorageSync('userInfo',obj)
}, },
fail(error) { fail(error) {
// //
}, }
}); });
}, }
}, },
onLaunch: function(options) { onLaunch: function(options) {
uni.getSystemInfo({ uni.getSystemInfo({
success: function(e) { success: function(e) {
// #ifndef MP // #ifndef MP
Vue.prototype.StatusBar = e.statusBarHeight; Vue.prototype.StatusBar = e.statusBarHeight;
if (e.platform == "android") { if (e.platform == 'android') {
Vue.prototype.CustomBar = e.statusBarHeight + 50; Vue.prototype.CustomBar = e.statusBarHeight + 50;
} else { } else {
Vue.prototype.CustomBar = e.statusBarHeight + 45; Vue.prototype.CustomBar = e.statusBarHeight + 45;
} };
// #endif // #endif
// #ifdef MP-WEIXIN // #ifdef MP-WEIXIN
Vue.prototype.StatusBar = e.statusBarHeight; Vue.prototype.StatusBar = e.statusBarHeight;
let custom = wx.getMenuButtonBoundingClientRect(); let custom = wx.getMenuButtonBoundingClientRect();
Vue.prototype.Custom = custom; Vue.prototype.Custom = custom;
Vue.prototype.CustomBar = Vue.prototype.CustomBar = custom.bottom + custom.top - e.statusBarHeight;
custom.bottom + custom.top - e.statusBarHeight; Vue.prototype.pageWindowHeight = e.screenHeight-custom.bottom - custom.top + e.statusBarHeight;;
Vue.prototype.pageWindowHeight =
e.screenHeight - custom.bottom - custom.top + e.statusBarHeight;
// #endif // #endif
},
});
let _this = this;
}
})
let _this = this
if (this.user.WeChat_MiniProToken) { if (this.user.WeChat_MiniProToken) {
this.memberLogin(); this.memberLogin()
} else { } else {
this.getLoginCode(); this.getLoginCode()
} }
this.setVisitChannels(options.scene); this.setVisitChannels(options.scene)
const updateManager = uni.getUpdateManager(); const updateManager = uni.getUpdateManager()
updateManager.onUpdateReady(function(res) { updateManager.onUpdateReady(function(res) {
uni.showModal({ uni.showModal({
title: "更新提示", title: '更新提示',
content: "新版本已经准备好,是否重启应用?", content: '新版本已经准备好,是否重启应用?',
success(res) { success(res) {
if (res.confirm) { if (res.confirm) {
// applyUpdate // applyUpdate
updateManager.applyUpdate(); updateManager.applyUpdate();
} }
}, }
});
}); });
this.handleGetUserInfo(); });
this.$util.addUserBehavior({ this.handleGetUserInfo()
intoRoute: "/" + options.path,
outtoRoute: "", this.$util.addUserBehavior( {intoRoute: '/'+options.path, outtoRoute: ''}) //
}); //
}, },
onShow: function() { onShow: function() {
// var pages = getCurrentPages() // // var pages = getCurrentPages() //
// let len = pages.length // let len = pages.length
// if (len > 0) { // if (len > 0) {
@ -92,16 +97,16 @@ export default {
// uni.hideTabBar() // uni.hideTabBar()
}, },
onHide: function(options) { onHide: function(options) {
let pages = getCurrentPages(); // let pages = getCurrentPages() //
let len = pages.length; let len = pages.length
if (len > 0) { if (len > 0) {
let currentPage = pages[len - 1]; // let currentPage = pages[len - 1] //
let nowRoute = "/" + currentPage.route; // url let nowRoute = '/' + currentPage.route // url
this.$util.addUserBehavior({ intoRoute: "", outtoRoute: nowRoute }); // this.$util.addUserBehavior( {intoRoute: '', outtoRoute:nowRoute}) //
}
}
} }
},
};
</script> </script>
<style> <style>
@ -113,6 +118,7 @@ page {
height: 100%; height: 100%;
background-color: #f8f9fb; background-color: #f8f9fb;
line-height: 1.2; line-height: 1.2;
} }
/* 加载更多 */ /* 加载更多 */
@ -129,17 +135,18 @@ page {
padding-bottom: 30rpx; padding-bottom: 30rpx;
} }
.process-box process-unit:nth-last-child(1) .prosess-unit::before{ .process-box process-unit:nth-last-child(1) .prosess-unit::before{
content: ""; content: '';
width: 0rpx; width: 0rpx;
} }
.ico, .ico,
.ico-s { .ico-s {
display: block; display: block;
} }
.ico-s:before, .ico-s:before,
.ico:before { .ico:before {
content: ""; content: '';
width: 36rpx; width: 36rpx;
height: 34rpx; height: 34rpx;
display: block; display: block;
@ -156,15 +163,15 @@ page {
} }
.ico-fj:before { .ico-fj:before {
background-image: url("https://eshangtech.com/ShopICO/ahyd-BID/fjwj.png"); background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/fjwj.png');
} }
.ico-tp:before { .ico-tp:before {
background-image: url("https://eshangtech.com/ShopICO/ahyd-BID/fjtp.png"); background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/fjtp.png');
} }
.ico-bz:before { .ico-bz:before {
background-image: url("https://eshangtech.com/ShopICO/ahyd-BID/tender/yj.png"); background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/tender/yj.png');
} }
/* #ifdef MP-WEIXIN */ /* #ifdef MP-WEIXIN */
@ -188,15 +195,15 @@ page {
checkbox .wx-checkbox-input { checkbox .wx-checkbox-input {
border-radius: 50% ; border-radius: 50% ;
background-color: #d8dfee; background-color: #D8DFEE ;
width: 38rpx ; width: 38rpx ;
height: 38rpx ; height: 38rpx ;
color: #fff; color: #fff;
} }
checkbox .wx-checkbox-input.wx-checkbox-input-checked { checkbox .wx-checkbox-input.wx-checkbox-input-checked {
background-color: #2e6cf6; background-color: #2E6CF6;
border-color: #2e6cf6; border-color: #2E6CF6 ;
color: #fff !important; color: #fff !important;
} }

Binary file not shown.

View File

@ -229,7 +229,7 @@ h4 {
background-image: url('/static/images/expense/rzlx.png'); background-image: url('/static/images/expense/rzlx.png');
} }
.ico-khyh:before{ .ico-khyh:before{
background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/expense/khyh.png'); background-image: url('/static/images/expense/khyh.png');
} }
.ico-dw:before{ .ico-dw:before{
background-image: url('/static/images/expense/dw.png'); background-image: url('/static/images/expense/dw.png');
@ -241,7 +241,7 @@ h4 {
background-image: url('/static/images/expense/ccsy.png'); background-image: url('/static/images/expense/ccsy.png');
} }
.ico-ccry:before{ .ico-ccry:before{
background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/expense/ccry.png'); background-image: url('/static/images/expense/ccry.png');
} }
.ico-xmgl:before{ .ico-xmgl:before{
background-image: url('/static/images/expense/xmgl.png'); background-image: url('/static/images/expense/xmgl.png');
@ -274,7 +274,7 @@ h4 {
background-image: url('/static/images/tender/lxr.png'); background-image: url('/static/images/tender/lxr.png');
} }
.ico-zcyz:before{ .ico-zcyz:before{
background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/expense/zcyz.png'); background-image: url('/static/images/expense/zcyz.png');
} }
.ico-zcmc:before{ .ico-zcmc:before{
background-image: url('/static/images/expense/zcmc.png'); background-image: url('/static/images/expense/zcmc.png');
@ -286,5 +286,5 @@ h4 {
background-image: url('/static/images/expense/gzsl.png'); background-image: url('/static/images/expense/gzsl.png');
} }
.ico-jfmc:before{ .ico-jfmc:before{
background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/expense/jfmc.png'); background-image: url('/static/images/expense/jfmc.png');
} }

View File

@ -187,10 +187,10 @@
background-image: url('/static/images/tender/bgw.png'); background-image: url('/static/images/tender/bgw.png');
} }
.ico-zbr:before{ .ico-zbr:before{
background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/tender/zbr.png'); background-image: url('/static/images/tender/zbr.png');
} }
.ico-jdr:before{ .ico-jdr:before{
background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/tender/jdr.png'); background-image: url('/static/images/tender/jdr.png');
} }
.ico-fdhfqk:before{ .ico-fdhfqk:before{
background-image: url('/static/images/tender/fdhfqk.png'); background-image: url('/static/images/tender/fdhfqk.png');
@ -211,7 +211,7 @@
background-image: url('/static/images/tender/xmgm.png'); background-image: url('/static/images/tender/xmgm.png');
} }
.ico-zbfs:before{ .ico-zbfs:before{
background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/tender/zbfs.png'); background-image: url('/static/images/tender/zbfs.png');
} }
.ico-qtyq:before{ .ico-qtyq:before{
background-image: url('/static/images/tender/yj.png'); background-image: url('/static/images/tender/yj.png');

View File

@ -127,8 +127,7 @@ function noDecimal(s) {
fuhao = '-' fuhao = '-'
} }
s = parseFloat((s + "").replace(/[^\d\.-]/g, "")) + "" s = parseFloat((s + "").replace(/[^\d\.-]/g, "")) + ""
let l = s.split(".")[0].split("").reverse(), let l = s.split(".")[0].split("").reverse(), r = s.split(".")[1];
r = s.split(".")[1];
let t = '' let t = ''
for (let i = 0; i < l.length; i++) { for (let i = 0; i < l.length; i++) {
t += l[i] + ((i + 1) % 3 == 0 && (i + 1) != l.length ? "," : ""); t += l[i] + ((i + 1) % 3 == 0 && (i + 1) != l.length ? "," : "");
@ -145,11 +144,11 @@ function changeStringToDate(s) {
if (s.length === 14) { if (s.length === 14) {
return s.substring(0, 4) + '-' + s.substring(4, 6) + '-' + s.substring(6, 8) + ' ' + return s.substring(0, 4) + '-' + s.substring(4, 6) + '-' + s.substring(6, 8) + ' ' +
s.substring(8, 10) + ':' + s.substring(10, 12) + ':' + s.substring(12, 14); s.substring(8, 10) + ':' + s.substring(10, 12) + ':' + s.substring(12, 14);
} else if (s.length === 8) { }
else if (s.length === 8) {
return s.substring(0, 4) + '-' + s.substring(4, 6) + '-' + s.substring(6, 8); return s.substring(0, 4) + '-' + s.substring(4, 6) + '-' + s.substring(6, 8);
} }
} }
function toNextRoute(type, url) { function toNextRoute(type, url) {
uni[type]({ uni[type]({
url: url, url: url,
@ -162,17 +161,6 @@ function toNextRoute(type, url) {
}) })
} }
function formatNumber(num) {
// 先保留两位小数,不四舍五入
num = Math.floor(num * 100) / 100;
// 添加千分号
let [integer, decimal] = num.toString().split('.');
integer = integer.replace(/\B(?=(\d{3})+(?!\d))/g, ','); // 千分号格式化
return decimal ? `${integer}.${decimal}` : integer; // 如果有小数部分则保留
}
// 记录用户行为的方法 每个页面的onUnload里面要调用 // 记录用户行为的方法 每个页面的onUnload里面要调用
function addUserBehavior(obj) { function addUserBehavior(obj) {
@ -212,7 +200,6 @@ function addUserBehavior(obj) {
}) })
} }
function addUserBehaviorNew(obj) { function addUserBehaviorNew(obj) {
var pages = getCurrentPages() // 获取加载的页面 var pages = getCurrentPages() // 获取加载的页面
@ -283,19 +270,10 @@ function getThisMonthDay(value) {
flag=true flag=true
} }
switch (m){ switch (m){
case 1: case 1: case 3: case 5: case 7: case 8: case 10: case 12:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
howDay=31 howDay=31
break break
case 4: case 4: case 6: case 9: case 11:
case 6:
case 9:
case 11:
howDay=30 howDay=30
break break
case 2 : case 2 :
@ -383,19 +361,10 @@ function getThisMonthDateList(value) {
flag = true flag = true
} }
switch (m){ switch (m){
case 1: case 1: case 3: case 5: case 7: case 8: case 10: case 12:
case 3:
case 5:
case 7:
case 8:
case 10:
case 12:
howDay=31 howDay=31
break break
case 4: case 4: case 6: case 9: case 11:
case 6:
case 9:
case 11:
howDay=30 howDay=30
break break
case 2 : case 2 :
@ -411,10 +380,7 @@ function getThisMonthDateList(value) {
if (i>howDay){ if (i>howDay){
break break
}else{ }else{
list.push({ list.push({label:`${m}${i}`,value:`${y}-${m<10?'0'+m:m}-${i<10?'0'+i:i}`})
label: `${m}${i}`,
value: `${y}-${m<10?'0'+m:m}-${i<10?'0'+i:i}`
})
} }
} }
return list return list
@ -613,7 +579,6 @@ export default {
getThisTimeMonth, getThisTimeMonth,
handleGetMonthDay, handleGetMonthDay,
fmoney, fmoney,
formatNumber,
noDecimal, noDecimal,
changeStringToDate, changeStringToDate,
toNextRoute, toNextRoute,

View File

@ -124,7 +124,7 @@
background-image: url('../../static/images/fileType/rarzip.png'); background-image: url('../../static/images/fileType/rarzip.png');
} }
.ico-more:before{ .ico-more:before{
background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/fileType/more.png'); background-image: url('../../static/images/fileType/more.png');
} }
.ico-wjxz:before{ .ico-wjxz:before{
background-image: url('../../static/images/fileType/downLoad.png'); background-image: url('../../static/images/fileType/downLoad.png');

View File

@ -6,12 +6,12 @@
<image <image
v-if="selectIndex === '/pages/index/index'" v-if="selectIndex === '/pages/index/index'"
class="second" class="second"
src="https://eshangtech.com/ShopICO/ahyd-BID/tabBar/company_active.png" src="/static/images/tabBar/company_active.png"
></image> ></image>
<image <image
v-else-if="selectIndex !== '/pages/index/index'" v-else-if="selectIndex !== '/pages/index/index'"
class="second" class="second"
src="https://eshangtech.com/ShopICO/ahyd-BID/tabBar/company_normal.png" src="/static/images/tabBar/company_normal.png"
></image> ></image>
<text v-if="selectIndex === '/pages/index/index'" class="text red">驿达</text> <text v-if="selectIndex === '/pages/index/index'" class="text red">驿达</text>
<text v-else-if="selectIndex !== '/pages/index/index'" class="text">驿达</text> <text v-else-if="selectIndex !== '/pages/index/index'" class="text">驿达</text>
@ -22,12 +22,12 @@
<image <image
v-if="selectIndex === '/pages/userCenter/userCenter'" v-if="selectIndex === '/pages/userCenter/userCenter'"
class="second" class="second"
src="https://eshangtech.com/ShopICO/ahyd-BID/tabBar/user_active.svg" src="/static/images/tabBar/user_active.svg"
></image> ></image>
<image <image
v-else-if="selectIndex !== '/pages/userCenter/userCenter'" v-else-if="selectIndex !== '/pages/userCenter/userCenter'"
class="second" class="second"
src="https://eshangtech.com/ShopICO/ahyd-BID/tabBar/user_normal.svg" src="/static/images/tabBar/user_normal.svg"
></image> ></image>
<text v-if="selectIndex === '/pages/userCenter/userCenter'" class="text red">我的</text> <text v-if="selectIndex === '/pages/userCenter/userCenter'" class="text red">我的</text>
<text v-else-if="selectIndex !== '/pages/userCenter/userCenter'" class="text">我的</text> <text v-else-if="selectIndex !== '/pages/userCenter/userCenter'" class="text">我的</text>

View File

@ -2,7 +2,8 @@
"pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages "pages": [ //pageshttps://uniapp.dcloud.io/collocation/pages
{ {
"path": "pages/index/index", "path": "pages/index/index",
"style": { "style":
{
"navigationBarTitleText": "驿达数智化看板", "navigationBarTitleText": "驿达数智化看板",
"navigationStyle": "custom", "navigationStyle": "custom",
"enablePullDownRefresh": true "enablePullDownRefresh": true
@ -10,20 +11,23 @@
}, },
{ {
"path": "pages/userCenter/userCenter", "path": "pages/userCenter/userCenter",
"style": { "style":
{
"navigationBarTitleText": "个人中心", "navigationBarTitleText": "个人中心",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "pages/register/register", "path": "pages/register/register",
"style": { "style":
{
"navigationBarTitleText": "授权" "navigationBarTitleText": "授权"
} }
}, },
{ {
"path": "pages/webview/webview", "path": "pages/webview/webview",
"style": { "style":
{
"navigationBarTitleText": "驿达数智化看板" "navigationBarTitleText": "驿达数智化看板"
} }
} }
@ -31,18 +35,21 @@
"subPackages": [ // "subPackages": [ //
{ {
"root": "pages/index/old", "root": "pages/index/old",
"pages": [{ "pages": [
{
"path": "index", "path": "index",
"style":{ "style":{
"navigationBarTitleText": "驿达数智化看板", "navigationBarTitleText": "驿达数智化看板",
"navigationStyle": "custom", "navigationStyle": "custom",
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
}] }
]
}, },
{ {
"root": "pages/authorityApproval", "root": "pages/authorityApproval",
"pages": [{ "pages": [
{
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "权限审批", "navigationBarTitleText": "权限审批",
@ -51,7 +58,8 @@
}, },
{ {
"path": "detail", "path": "detail",
"style": { "style":
{
"navigationBarTitleText": "权限审批", "navigationBarTitleText": "权限审批",
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
@ -60,7 +68,8 @@
}, },
{ {
"root": "pages/merchantAccount", "root": "pages/merchantAccount",
"pages": [{ "pages": [
{
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
@ -78,22 +87,26 @@
}, },
{ {
"root": "pages/settlementApproval", "root": "pages/settlementApproval",
"pages": [{ "pages": [
{
"path": "index", "path": "index",
"style": { "style":
{
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarTitleText": "结算审批" "navigationBarTitleText": "结算审批"
} }
}, },
{ {
"path": "detail", "path": "detail",
"style": { "style":
{
"navigationBarTitleText": "结算审批" "navigationBarTitleText": "结算审批"
} }
}, },
{ {
"path": "yearSettlement", "path": "yearSettlement",
"style": { "style":
{
"navigationBarTitleText": "年度结算" "navigationBarTitleText": "年度结算"
} }
} }
@ -101,27 +114,32 @@
}, },
{ {
"root": "pages/auditingPop", "root": "pages/auditingPop",
"pages": [{ "pages": [
{
"path": "jointlySign", "path": "jointlySign",
"style": { "style":
{
"navigationBarTitleText": "会签" "navigationBarTitleText": "会签"
} }
}, },
{ {
"path": "transfer", "path": "transfer",
"style": { "style":
{
"navigationBarTitleText": "移交" "navigationBarTitleText": "移交"
} }
}, },
{ {
"path": "toExamine", "path": "toExamine",
"style": { "style":
{
"navigationBarTitleText": "审核" "navigationBarTitleText": "审核"
} }
}, },
{ {
"path": "reject", "path": "reject",
"style": { "style":
{
"navigationBarTitleText": "驳回" "navigationBarTitleText": "驳回"
} }
} }
@ -130,7 +148,8 @@
{ {
"root": "pages/nationalPage", "root": "pages/nationalPage",
"pages": [{ "pages": [
{
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
@ -153,14 +172,16 @@
}, },
{ {
"path": "nationalServerpart", "path": "nationalServerpart",
"style": { "style":
{
"navigationBarTitleText": "服务区每日营收", "navigationBarTitleText": "服务区每日营收",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{ {
"path": "rankPage", "path": "rankPage",
"style": { "style":
{
"navigationBarTitleText": "服务区排名", "navigationBarTitleText": "服务区排名",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"disableScroll": true, "disableScroll": true,
@ -169,14 +190,16 @@
}, },
{ {
"path": "testPage", "path": "testPage",
"style": { "style":
{
"navigationBarTitleText": "", "navigationBarTitleText": "",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{ {
"path": "merchantRevenue", "path": "merchantRevenue",
"style": { "style":
{
"navigationBarTitleText": "商户排名", "navigationBarTitleText": "商户排名",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"disableScroll": true, "disableScroll": true,
@ -187,7 +210,8 @@
}, },
{ {
"root": "pages/earlyWarning", "root": "pages/earlyWarning",
"pages": [{ "pages": [
{
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
@ -225,7 +249,8 @@
}, },
{ {
"root": "pages/revenue", "root": "pages/revenue",
"pages": [{ "pages": [
{
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
@ -250,7 +275,8 @@
}, },
{ {
"root": "pages/revenueStatistics", "root": "pages/revenueStatistics",
"pages": [{ "pages": [
{
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
@ -275,17 +301,20 @@
}, },
{ {
"root": "pages/newamine", "root": "pages/newamine",
"pages": [{ "pages": [
{
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}] }
]
}, },
{ {
"root": "pages/commercialBINew", "root": "pages/commercialBINew",
"pages": [{ "pages": [
{
"path": "flowAnalysis", "path": "flowAnalysis",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
@ -304,13 +333,15 @@
}, },
{ {
"root": "pages/summaryOfPortraits", "root": "pages/summaryOfPortraits",
"pages": [{ "pages": [
{
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}] }
]
}, },
{ // BI { // BI
@ -426,13 +457,15 @@
{ {
// //
"root": "pages/projectProfitSharing", "root": "pages/projectProfitSharing",
"pages": [{ "pages": [
{
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}] }
]
}, },
{ {
@ -458,7 +491,8 @@
// //
{ {
"root": "pages/examine", "root": "pages/examine",
"pages": [{ "pages": [
{
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
@ -477,7 +511,8 @@
}, },
{ {
"root": "pages/projectWarning", "root": "pages/projectWarning",
"pages": [{ "pages": [
{
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "分润比例切换" "navigationBarTitleText": "分润比例切换"
@ -494,26 +529,31 @@
}, },
{ {
"root": "pages/robot", "root": "pages/robot",
"pages": [{ "pages": [
{
"path": "index", "path": "index",
"style": { "style":
"navigationBarTitleText": "数智助手", {
"navigationStyle": "custom" "navigationBarTitleText": "数智助手"
} }
}] }
]
}, },
{ {
"root": "pages/map", "root": "pages/map",
"pages": [{ "pages": [
{
"path": "index", "path": "index",
"style": { "style":
{
"navigationBarTitleText": "", "navigationBarTitleText": "",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
}, },
{ {
"path": "detail", "path": "detail",
"style": { "style":
{
"navigationBarTitleText": "", "navigationBarTitleText": "",
"navigationStyle": "custom", "navigationStyle": "custom",
"disableScroll": true "disableScroll": true
@ -528,9 +568,11 @@
}, },
{ {
"root": "pages/operatingStatements", "root": "pages/operatingStatements",
"pages": [{ "pages": [
{
"path": "index", "path": "index",
"style": { "style":
{
"navigationBarTitleText": "经营报表", "navigationBarTitleText": "经营报表",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#647BD1", "navigationBarBackgroundColor": "#647BD1",
@ -539,7 +581,8 @@
}, },
{ {
"path": "detail", "path": "detail",
"style": { "style":
{
"navigationBarTitleText": "经营报表", "navigationBarTitleText": "经营报表",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#647BD1", "navigationBarBackgroundColor": "#647BD1",
@ -548,7 +591,8 @@
}, },
{ {
"path": "operatingTrend", "path": "operatingTrend",
"style": { "style":
{
"navigationBarTitleText": "经营趋势", "navigationBarTitleText": "经营趋势",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#647BD1", "navigationBarBackgroundColor": "#647BD1",
@ -559,34 +603,40 @@
}, },
{ {
"root": "pages/tender", "root": "pages/tender",
"pages": [{ "pages": [
{
"path": "tender", "path": "tender",
"style": { "style":
{
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarTitleText": "招标投标" "navigationBarTitleText": "招标投标"
} }
}, },
{ {
"path": "tenderRecord", "path": "tenderRecord",
"style": { "style":
{
"navigationBarTitleText": "招标备案详情" "navigationBarTitleText": "招标备案详情"
} }
}, },
{ {
"path": "tenderAlteration", "path": "tenderAlteration",
"style": { "style":
{
"navigationBarTitleText": "招标变更详情" "navigationBarTitleText": "招标变更详情"
} }
}, },
{ {
"path": "decisionRecord", "path": "decisionRecord",
"style": { "style":
{
"navigationBarTitleText": "决标备案详情" "navigationBarTitleText": "决标备案详情"
} }
}, },
{ {
"path": "specialProjects", "path": "specialProjects",
"style": { "style":
{
"navigationBarTitleText": "专项工程详情", "navigationBarTitleText": "专项工程详情",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
@ -595,16 +645,19 @@
}, },
{ {
"root": "pages/serviceAreaReimbursement", "root": "pages/serviceAreaReimbursement",
"pages": [{ "pages": [
{
"path": "serviceAreaReimbursement", "path": "serviceAreaReimbursement",
"style": { "style":
{
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarTitleText": "服务区报销" "navigationBarTitleText": "服务区报销"
} }
}, },
{ {
"path": "detail", "path": "detail",
"style": { "style":
{
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarTitleText": "" "navigationBarTitleText": ""
} }
@ -613,23 +666,27 @@
}, },
{ {
"root": "pages/dataSummary", "root": "pages/dataSummary",
"pages": [{ "pages": [
{
"path": "dataSummary", "path": "dataSummary",
"style": { "style":
{
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarTitleText": "日结校验" "navigationBarTitleText": "日结校验"
} }
}, },
{ {
"path": "dayDetail", "path": "dayDetail",
"style": { "style":
{
"navigationBarBackgroundColor": "#EAEBEB", "navigationBarBackgroundColor": "#EAEBEB",
"navigationBarTitleText": "日结校验" "navigationBarTitleText": "日结校验"
} }
}, },
{ {
"path": "detail", "path": "detail",
"style": { "style":
{
"navigationBarTitleText": "日结校验" "navigationBarTitleText": "日结校验"
} }
} }
@ -637,16 +694,19 @@
}, },
{ {
"root": "pages/businessApproval", "root": "pages/businessApproval",
"pages": [{ "pages": [
{
"path": "businessApproval", "path": "businessApproval",
"style": { "style":
{
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarTitleText": "商品审批" "navigationBarTitleText": "商品审批"
} }
}, },
{ {
"path": "productDetail", "path": "productDetail",
"style": { "style":
{
"navigationBarTitleText": "商品审批" "navigationBarTitleText": "商品审批"
} }
} }
@ -654,44 +714,51 @@
}, },
{ {
"root": "pages/everdayRenven", "root": "pages/everdayRenven",
"pages": [{ "pages": [
{
"path": "index", "path": "index",
"style": { "style":
{
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarTitleText": "每日营收汇总" "navigationBarTitleText": "每日营收汇总"
} }
}, },
{ {
"path": "detail", "path": "detail",
"style": { "style":
{
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarTitleText": "每日营收" "navigationBarTitleText": "每日营收"
} }
}, },
{ {
"path": "serviceIndex", "path": "serviceIndex",
"style": { "style":
{
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarTitleText": "服务区每日营收" "navigationBarTitleText": "服务区每日营收"
} }
}, },
{ {
"path": "serviceDetail", "path": "serviceDetail",
"style": { "style":
{
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarTitleText": "服务区每日营收" "navigationBarTitleText": "服务区每日营收"
} }
}, },
{ {
"path": "AnhuiIndex", "path": "AnhuiIndex",
"style": { "style":
{
"navigationBarTitleText": "每日营收汇总", "navigationBarTitleText": "每日营收汇总",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
}, },
{ {
"path": "AnhuiServerpart", "path": "AnhuiServerpart",
"style": { "style":
{
"navigationBarTitleText": "服务区每日营收", "navigationBarTitleText": "服务区每日营收",
"enablePullDownRefresh": false "enablePullDownRefresh": false
} }
@ -700,16 +767,19 @@
}, },
{ {
"root": "pages/suggestion", "root": "pages/suggestion",
"pages": [{ "pages": [
{
"path": "suggestion", "path": "suggestion",
"style": { "style":
{
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarTitleText": "投诉建议" "navigationBarTitleText": "投诉建议"
} }
}, },
{ {
"path": "suggestionDetail", "path": "suggestionDetail",
"style": { "style":
{
"navigationBarTitleText": "投诉建议" "navigationBarTitleText": "投诉建议"
} }
} }
@ -717,16 +787,19 @@
}, },
{ {
"root": "pages/contract", "root": "pages/contract",
"pages": [{ "pages": [
{
"path": "contract", "path": "contract",
"style": { "style":
{
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarTitleText": "合同审批" "navigationBarTitleText": "合同审批"
} }
}, },
{ {
"path": "detail", "path": "detail",
"style": { "style":
{
"navigationBarTitleText": "合同审批" "navigationBarTitleText": "合同审批"
} }
} }
@ -734,22 +807,26 @@
}, },
{ {
"root": "pages/cashAudit", "root": "pages/cashAudit",
"pages": [{ "pages": [
{
"path": "list", "path": "list",
"style": { "style":
{
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarTitleText": "收银稽核" "navigationBarTitleText": "收银稽核"
} }
}, },
{ {
"path": "detail", "path": "detail",
"style": { "style":
{
"navigationBarTitleText": "收银稽核详情" "navigationBarTitleText": "收银稽核详情"
} }
}, },
{ {
"path": "check", "path": "check",
"style": { "style":
{
"navigationBarTitleText": "收银稽核反馈" "navigationBarTitleText": "收银稽核反馈"
} }
} }
@ -757,16 +834,19 @@
}, },
{ {
"root": "pages/investment", "root": "pages/investment",
"pages": [{ "pages": [
{
"path": "investment", "path": "investment",
"style": { "style":
{
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarTitleText": "招商审批" "navigationBarTitleText": "招商审批"
} }
}, },
{ {
"path": "investmentDetail", "path": "investmentDetail",
"style": { "style":
{
"navigationBarTitleText": "招商审批" "navigationBarTitleText": "招商审批"
} }
} }
@ -774,16 +854,19 @@
}, },
{ {
"root": "pages/expenseApproval", "root": "pages/expenseApproval",
"pages": [{ "pages": [
{
"path": "expenseApproval", "path": "expenseApproval",
"style": { "style":
{
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarTitleText": "财务审批" "navigationBarTitleText": "财务审批"
} }
}, },
{ {
"path": "expenseDetail", "path": "expenseDetail",
"style": { "style":
{
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarTitleText": "财务审批" "navigationBarTitleText": "财务审批"
} }
@ -792,45 +875,24 @@
}, },
{ {
"root": "pages/commodity_temp", "root": "pages/commodity_temp",
"pages": [{ "pages": [
{
"path": "index", "path": "index",
"style": { "style":
{
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarTitleText": "资质审批" "navigationBarTitleText": "资质审批"
} }
}, },
{ {
"path": "detail", "path": "detail",
"style": { "style":
{
"enablePullDownRefresh": true, "enablePullDownRefresh": true,
"navigationBarTitleText": "资质审批" "navigationBarTitleText": "资质审批"
} }
} }
] ]
},
{
"root": "pages/testPage",
"pages": [{
"path": "index",
"style": {
"navigationBarTitleText": "测试页面"
}
}]
},
{
"root": "pages/billOfLading",
"pages": [{
"path": "index",
"style": {
"navigationBarTitleText": "提单"
}
}, {
"path": "detail",
"style": {
"navigationBarTitleText": "",
"navigationStyle": "custom"
}
}]
} }
], ],
"globalStyle": { "globalStyle": {
@ -844,7 +906,8 @@
"selectedColor": "#3295f9", "selectedColor": "#3295f9",
"borderStyle": "black", "borderStyle": "black",
"backgroundColor": "#ffffff", "backgroundColor": "#ffffff",
"list": [{ "list": [
{
"pagePath": "pages/index/index", "pagePath": "pages/index/index",
"iconPath": "static/images/tab/home.png", "iconPath": "static/images/tab/home.png",
"selectedIconPath": "static/images/tab/homeActive.png", "selectedIconPath": "static/images/tab/homeActive.png",

View File

@ -9,12 +9,12 @@
<text>请假审批流程</text> <text>请假审批流程</text>
</view> </view>
<!-- <view class="leave-type uni-flex uni-column" :class="{'active':selectType==461}" @tap="choeseSelect(461)"> <!-- <view class="leave-type uni-flex uni-column" :class="{'active':selectType==461}" @tap="choeseSelect(461)">
<image src="https://eshangtech.com/ShopICO/ahyd-BID/leave/fwq-gl.png" mode="aspectFit" style="width: 67upx;height: 61upx;"></image> <image src="../../static/images/leave/fwq-gl.png" mode="aspectFit" style="width: 67upx;height: 61upx;"></image>
<text class="type-title">服务区经营管理者</text> <text class="type-title">服务区经营管理者</text>
<text>请假审批流程</text> <text>请假审批流程</text>
</view> </view>
<view class="leave-type uni-flex uni-column" :class="{'active':selectType==462}" @tap="choeseSelect(462)"> <view class="leave-type uni-flex uni-column" :class="{'active':selectType==462}" @tap="choeseSelect(462)">
<image src="https://eshangtech.com/ShopICO/ahyd-BID/leave/qy.png" mode="aspectFit" style="width: 67upx;height: 61upx;"></image> <image src="../../static/images/leave/qy.png" mode="aspectFit" style="width: 67upx;height: 61upx;"></image>
<text class="type-title">区域员工</text> <text class="type-title">区域员工</text>
<text>请假审批流程</text> <text>请假审批流程</text>
</view> --> </view> -->
@ -87,7 +87,7 @@
}, },
getProde(){ getProde(){
let _this =this let _this =this
let img = ['https://eshangtech.com/ShopICO/ahyd-BID/leave/fwq-yg.png','https://eshangtech.com/ShopICO/ahyd-BID/leave/fwq-gl.png','https://eshangtech.com/ShopICO/ahyd-BID/leave/qy.png'] let img = ['/static/images/leave/fwq-yg.png','/static/images/leave/fwq-gl.png','/static/images/leave/qy.png']
this.$request.$get('GetProdefInfo',{}).then(res=>{ this.$request.$get('GetProdefInfo',{}).then(res=>{
if(res.ResultCode==100){ if(res.ResultCode==100){
_this.selectType = res.Data.List[0].Prodef_Id _this.selectType = res.Data.List[0].Prodef_Id

View File

@ -1,605 +0,0 @@
<template>
<view class="main">
<view class="header" :style="{ height: menu.bottom + 'px' }">
<image
@click="handleBack"
class="allowLeft"
:style="{ top: menu.top + (menu.height - 24) / 2 + 'px' }"
src="https://eshangtech.com/ShopICO/ahyd-BID/examine/leftArrowWhite.svg"
></image>
</view>
<p class="title">{{ item.BillState === 1 ? "已提单" : "提单申请" }}</p>
<view class="content">
<view class="detail">
<view
class="type"
:style="{ color: item.PaymentTerms === 1 ? 'red' : '' }"
>{{
detailInfo.PaymentTerms === 1
? "收款"
: detailInfo.PaymentTerms === 0
? "退款"
: ""
}}</view
>
<view class="top">
<view class="left">
<image
class="logo"
:src="
detailInfo.BUSINESSPROJECT_ICO
? detailInfo.BUSINESSPROJECT_ICO
: 'https://eshangtech.com/ShopICO/yxcl/projectWarning/defaultImg.svg'
"
></image>
</view>
<view class="right">
<p class="detailTitle">
{{
detailInfo.BusinessProcess_Name
? detailInfo.BusinessProcess_Name.split("】")[1]
: "-"
}}
</p>
<view class="fixed">
<image
class="serviceFixed"
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/position.svg"
></image>
<span class="service">{{ detailInfo.Serverpart_Name }}</span>
</view>
<view class="other">
<view class="item">
<image
class="icon"
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/user.svg"
></image>
<span class="value">{{ detailInfo.Staff_Name || "-" }}</span>
</view>
<!-- <view class="item">
<image
class="icon"
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/phone.svg"
></image>
<span class="value">{{
detailInfo.BusinessProcess_StartDate || "-"
}}</span>
</view> -->
</view>
</view>
</view>
<view class="bottom">
<view class="message">
<image
class="icon"
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/money.svg"
></image>
<span class="text">退补款</span>
<span class="money">{{
detailInfo.Liquidation_Amount || "-"
}}</span>
</view>
<view class="message">
<image
class="icon"
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/phone.svg"
></image>
<span class="text">提单时间</span>
<span class="money">{{
detailInfo.BusinessProcess_EndDate
? $moment(detailInfo.BusinessProcess_EndDate).format(
"YYYY/MM/DD"
)
: "-"
}}</span>
</view>
<view class="message" style="margin-bottom: 0">
<image
class="icon"
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/date.svg"
></image>
<span class="text">本期时间</span>
<span class="money"
>{{ detailInfo.STARTDATE || "-" }} -
{{ detailInfo.ENDDATE || "-" }}</span
>
</view>
</view>
</view>
<view class="contentTextBox" v-if="detailInfo.BillState !== 1">
<textarea
v-model="desc"
:disabled="detailInfo.BillState === 1"
></textarea>
</view>
<view class="contain" v-if="detailObj.APPLYAPPROVE_ID">
<view class="box">
<view class="store">
<view class="left">
<image class="img" src="/static/images/right-ico.png"></image>
</view>
<view class="right">
<view class="top">
<p class="storeText">
{{ detailObj.APPLYAPPROVE_NAME }}
{{ detailObj.STAFF_NAME.split("【")[0] }}
</p>
<p class="storeTextRight">
{{ detailObj.APPLYAPPROVE_INFO }}
</p>
</view>
<span class="other">{{ detailObj.APPLYAPPROVE_DATE }}</span>
</view>
</view>
</view>
</view>
<view class="bottomBtn" v-if="detailInfo.BillState !== 1">
<button class="btn change" @click="handleBillLading">发起提单</button>
</view>
<!-- <view class="bottomBtn" v-if="detailInfo.BillState === 1">
<button
:style="{
background: '#e0ba98',
}"
class="btn change"
>
已发起
</button>
</view> -->
</view>
</view>
</template>
<script>
import { mapState } from "vuex";
export default {
data() {
return {
menu: {}, //
detailInfo: {}, //
desc: "项目结算完成,发起提单审批流程", //
isPush: false, //
selectId: "",
detailObj: {}, //
};
},
computed: {
...mapState({
user: (state) => {
return state.userData;
},
}),
},
onLoad(query) {
this.menu = uni.getMenuButtonBoundingClientRect();
//
if (query.ispush) {
this.isPush = true;
}
// id
if (query.id) {
console.log("query.id", query.id);
this.selectId = query.id;
this.handleGetDetail(query.id);
}
},
methods: {
//
async handleGetDetail(id) {
uni.showLoading({
title: "加载中...",
});
const req = {
SearchParameter: {
BusinessApproval_ID: id,
BusinessProcess_State: 9000,
Operation_Type: 11,
PendState: 3,
},
};
const data = await this.$request.$webPost(
"EShangApiMain/Finance/GetMonthAccountProinst",
req
);
console.log("data", data);
let list = data.Result_Data.List;
if (list && list.length > 0) {
this.detailInfo = list[0];
this.detailInfo.Liquidation_Amount = this.$util.formatNumber(
this.detailInfo.Liquidation_Amount
);
}
console.log("this.detailInfo ", this.detailInfo);
if (this.detailInfo.BillState === 1) {
this.handleGetProgressList();
}
// let req = {
// BUSINESSAPPROVALId: id,
// };
// const data = await this.$request.$webGet(
// "EShangApiMain/BusinessProcess/GetBUSINESSAPPROVALDetail",
// req
// );
// console.log("data", data);
// this.detailInfo = data.Result_Data;
// console.log("this.detailInfo", this.detailInfo);
uni.hideLoading();
},
//
//
handleBack() {
if (this.isPush) {
uni.redirectTo({
url: "/pages/billOfLading/index",
});
} else {
uni.navigateBack({
delta: 1,
});
}
},
//
async handleBillLading() {
if (!this.desc) {
uni.showToast({
title: "请先输入审核意见!",
icon: "none",
});
return;
}
console.log("user", this.user);
const req = {
businessApprovalID: this.detailInfo.BusinessApproval_ID,
approveedInfo: this.desc || "",
approveedStaffId: this.user.UserId,
approveedStaffName: this.user.UserName,
};
// const data = await handleGetLadingBill(req);
const data = await this.$request.$webGet(
"EShangApiMain/Finance/LadingBill",
req
);
uni.showToast({
title: data.Result_Desc,
icon: "none",
});
let _this = this;
setTimeout(() => {
_this.handleGetDetail(_this.detailInfo.BusinessApproval_ID);
}, 2000);
// if (data.Result_Code === 100) {
// setTimeout(() => {
// uni.navigateBack({
// delta: 1,
// });
// });
// }
},
//
async handleGetProgressList() {
const data = await this.$request.$webGet(
"EShangApiMain/BusinessProcess/GetBUSINESSAPPROVALDetail",
{ BUSINESSAPPROVALId: this.selectId }
);
let list = data.Result_Data.approveList;
if (list && list.length > 0) {
let obj = list[list.length - 1];
this.detailObj = obj;
console.log("this.detailObj", this.detailObj);
}
},
},
};
</script>
<style scoped lang="scss">
@import "/static/public/font/stylesheet.css";
.main {
width: 100vw;
height: 100vh;
box-sizing: border-box;
background-image: url("https://eshangtech.com/ShopICO/yxcl/projectWarning/bg.svg");
background-size: cover;
.header {
width: 100%;
box-sizing: border-box;
padding: 0 16px;
position: relative;
margin-top: 0;
z-index: 222;
.allowLeft {
position: absolute;
width: 24px;
height: 24px;
left: 16px;
}
}
.title {
font-size: 28px;
font-family: Alimama ShuHeiTi;
color: #160002;
line-height: 39px;
margin: 18px 0 16px 16px;
background: linear-gradient(180deg, #c25e18 30%, #8c4917 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
.content {
width: 100%;
box-sizing: border-box;
padding: 0 32rpx;
.detail {
width: 100%;
box-sizing: border-box;
background: linear-gradient(
314deg,
#fffcf3 0%,
#fff0e6 20%,
#fff9f5 51%,
#fff8e7 73%,
#fff6ee 100%
);
border-radius: 8px;
padding: 16px;
position: relative;
.type {
position: absolute;
right: 0;
top: 55px;
background: linear-gradient(
270deg,
#f8d792 0%,
#ffe6b2 50%,
#fbc13b 100%
);
border-radius: 10px 0 0 2px;
padding: 2px 8px;
font-size: 14px;
font-family: PingFangSC-Regular;
font-weight: 400;
color: #604128;
line-height: 20px;
}
.top {
width: 100%;
height: 168rpx;
display: flex;
align-items: center;
.left {
width: 168rpx;
height: 168rpx;
margin-right: 12px;
border-radius: 8px;
overflow: hidden;
.logo {
width: 168rpx;
height: 168rpx;
}
}
.right {
width: calc(100% - 180rpx);
//display: flex;
//flex-direction: column;
//justify-content: space-between;
//align-items: flex-start;
.detailTitle {
font-size: 30rpx;
width: 100%;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #160002;
margin-bottom: 12rpx;
line-height: 32rpx;
display: -webkit-box;
-webkit-line-clamp: 2; /* 设置显示的行数 */
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
.fixed {
height: 24px;
line-height: 24px;
padding: 1px 4px;
box-sizing: border-box;
background: rgba(252, 186, 118, 0.2);
border-radius: 4px;
display: inline-block;
margin-bottom: 12rpx;
.serviceFixed {
width: 20rpx;
height: 24rpx;
margin-right: 8rpx;
line-height: 24px;
}
.service {
font-size: 28rpx;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #6c492a;
line-height: 40rpx;
}
}
.other {
width: 100%;
display: flex;
align-items: center;
.item {
display: flex;
align-items: center;
margin-right: 16px;
.icon {
width: 16px;
height: 16px;
margin-right: 6px;
}
.value {
font-size: 28rpx;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #160002;
line-height: 40rpx;
white-space: nowrap;
}
}
}
}
}
.bottom {
margin-top: 24px;
.message {
width: 100%;
display: flex;
align-items: center;
margin-bottom: 8px;
.icon {
width: 16px;
height: 16px;
margin-right: 8px;
}
.text {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #786b6c;
line-height: 20px;
margin-right: 8px;
}
.money {
font-size: 14px;
font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600;
color: #7d5632;
line-height: 20px;
}
}
}
}
.contentTextBox {
width: 100%;
margin-top: 24rpx;
background: #fff;
border-radius: 8px;
box-sizing: border-box;
padding: 16px;
}
.contain {
width: 100%;
background: #fff;
border-radius: 8px;
box-sizing: border-box;
padding: 16px;
margin-top: 16px;
display: flex;
.img {
width: 32px;
height: 32px;
}
.text {
margin-left: 8px;
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #160002;
line-height: 24px;
margin-bottom: 8px;
}
.strong {
font-size: 18px;
color: rgba(125, 86, 50, 1);
font-weight: 600;
margin: 0 4px;
}
.box {
width: 100%;
.store {
width: 100%;
display: flex;
margin-bottom: 10px;
.left {
width: 32px;
.img {
width: 20px;
height: 20px;
margin-top: 3px;
}
}
.right {
flex: 1;
width: 100%;
display: inline-block;
.top {
.storeText {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #160002;
line-height: 24px;
white-space: nowrap;
}
.storeTextRight {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #160002;
line-height: 24px;
width: 100%;
text-align: right;
}
}
}
.other {
font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400;
color: #160002;
line-height: 24px;
display: inline-block;
width: 100%;
text-align: right;
}
}
}
}
.bottomBtn {
width: 100%;
box-sizing: border-box;
padding: 8px 0;
margin-top: 24rpx;
display: flex;
justify-content: space-between;
.btn {
// width: calc((100% - 32rpx) / 2);
width: 100%;
height: 41px;
background: rgba(125, 86, 50, 0.1);
border-radius: 4px;
font-size: 16px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #6d5f5e;
opacity: 0.6;
}
.change {
background: #7d5632;
color: #feffff;
opacity: 1;
}
}
}
}
</style>

View File

@ -1,441 +0,0 @@
<template>
<view class="content">
<!-- 顶部筛选菜单 -->
<view class="uni-flex ai-center screen-box menu-list">
<view
class="menu"
v-for="(item, index) in menuList"
:key="index"
@click="handleClick(item)"
>
<view
class="menu-image round"
style="height: 75rpx; width: 75rpx; padding: 18rpx"
:style="
activeType == item.id
? 'background:#f0f7fe;'
: 'background:#f6f7f8;'
"
>
<image
:src="activeType == item.id ? item.active : item.src"
mode="aspectFit"
style="height: 100%"
>
</image>
</view>
<view
class="menuName"
:style="activeType == item.id ? 'color:#5B96E9' : 'color:#808D97'"
>{{ item.name }}
</view>
</view>
</view>
<scroll-view
scroll-y
class="billList"
v-if="pageList && pageList.length > 0"
@scrolltolower="handleScrolltolower"
>
<!-- <list-unit
v-for="(item, index) in pageList"
:key="index"
:item="item"
:i="index"
@goDetail="goDetail"
></list-unit> -->
<view
class="card"
v-for="(item, index) in pageList"
:key="index"
@click="handleGoDetail(item)"
>
<!-- 卡片第一行数据 -->
<view class="firstTitleBox">
<!-- 左侧 -->
<p class="contentName">{{ item.BusinessProcess_Name || "-" }}</p>
</view>
<!-- 卡片第一行角标 -->
<view class="content-index">{{ index + 1 }}</view>
<!-- 卡片第二行数据 -->
<view class="secondTitleBox">
<!-- 服务区名称 -->
<p class="content-type-text">{{ item.Serverpart_Name || "-" }}</p>
</view>
<!-- 卡片第三行数据 -->
<view
class="thirdTitleBox"
:style="{ color: item.BillState === 1 ? '' : 'red' }"
>
{{ item.BillState === 1 ? "已提单" : "未提单" }}
</view>
<!-- 第四行数据 -->
<view class="fourthTitleBox">
<view
class="leftContent"
:style="{ color: item.PaymentTerms === 1 ? 'red' : '' }"
>
{{
item.PaymentTerms === 1
? "收款"
: item.PaymentTerms === 0
? "退款"
: "-"
}}
</view>
<view class="rightContent">
{{
item.BusinessProcess_StartDate
? $moment(item.BusinessProcess_StartDate).format("YYYY/MM/DD")
: ""
}}
</view>
</view>
</view>
<!-- 底部提示 -->
<view class="load-more" v-if="pageList.length > 0">
<text>{{
!pageMsg.isOver ? "正在加载,请稍后..." : "——— 我是有底线的 ———"
}}</text>
</view>
</scroll-view>
<!-- 无数据时的页面显示 -->
<view v-else>
<noFound
:nodata="pageList && pageList.length > 0 ? false : true"
:text="'暂无数据'"
>
<!-- <text name="other">请选择其它日期进行查询</text> -->
</noFound>
</view>
<uni-popup
:show="showPop"
@hidePopup="closePop"
type="bottom"
@touchmove.prevent
round="true"
>
<view class="pop">
<p class="title">服务区名称</p>
<picker
class="title-clock"
mode="selector"
@change="pickerChange"
:value="pickerIndex"
range-key="label"
:range="severpartList"
>
<view class="box-center-title">{{
severpartList[pickerIndex].label
}}</view>
</picker>
<p class="title" style="margin-top: 20px">日期</p>
<view class="selectTime">
<picker
class="time"
mode="date"
@change="handlechangeTime($event, 0)"
>
<text>{{ "请选择开始时间" }}</text>
</picker>
-
<picker
class="time"
style="text-align: right"
mode="date"
@change="handlechangeTime($event, 1)"
>
<text>{{ "请选择结束时间" }}</text>
</picker>
</view>
<view class="popbtn" @click="reloadList">确定</view>
</view>
</uni-popup>
</view>
</template>
<script>
export default {
data() {
return {
pageMsg: {
pageSize: 10,
pageIndex: 1,
isOver: false,
}, //
searchText: "", //
BillState: "", // 1 0
pageList: [], //
activeType: 0, //
menuList: [
{
name: "全部",
src: "https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yifq.png",
active:
"https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yifqz.png",
id: 0,
},
{
name: "已提单",
src: "https://eshangtech.com/ShopICO/ahyd-BID/expense/type/shenp.png",
active:
"https://eshangtech.com/ShopICO/ahyd-BID/expense/type/shenpz.png",
id: 1,
},
{
name: "未提单",
src: "https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yichl.png",
active:
"https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yichlz.png",
id: 2,
},
],
isFirst: true, //
};
},
onLoad() {
//
this.handleGetList();
},
onShow() {
if (!this.isFirst) {
this.handleGetList();
}
if (this.isFirst) {
this.isFirst = false;
}
},
methods: {
//
handleScrolltolower() {
this.pageMsg.pageIndex = this.pageMsg.pageIndex + 1;
this.handleGetList();
},
//
async handleGetList() {
const req = {
SearchParameter: {
BillState: this.BillState,
BusinessProcess_State: 9000,
Operation_Type: 11,
PendState: 3,
},
keyWord: this.searchText
? { key: "BusinessProcess_Name", Value: this.searchText }
: "",
PageIndex: this.pageMsg.pageIndex,
PageSize: this.pageMsg.pageSize,
};
uni.showLoading({
title: "加载中...",
});
const data = await this.$request.$webPost(
"EShangApiMain/Finance/GetMonthAccountProinst",
req
);
console.log("list", data);
let list = data.Result_Data.List;
let oldList = [];
if (this.pageList && this.pageList.length > 0) {
oldList = this.pageList;
}
if (list && list.length > 0) {
list.forEach((item) => {
item.BusinessProcess_Name = item.BusinessProcess_Name.split("】")[1];
});
if (list.length < 10) {
this.pageMsg.isOver = true;
}
}
this.pageList = oldList.concat(list);
uni.hideLoading();
},
//
handleGoDetail(obj) {
this.$util.toNextRoute(
"navigateTo",
`/pages/billOfLading/detail?id=${obj.BusinessApproval_ID}`
);
},
// tab
handleClick(obj) {
this.activeType = obj.id;
this.BillState =
obj.id === 0 ? "" : obj.id === 1 ? 1 : obj.id === 2 ? "0" : "";
this.pageList = [];
this.pageMsg = {
pageSize: 10,
pageIndex: 1,
isOver: false,
};
this.handleGetList();
},
},
};
</script>
<style scoped lang="scss">
.menu-list {
//
width: 100%;
background-color: #fff;
flex-wrap: wrap;
}
.menu {
text-align: center;
// min-width: 185rpx;
width: calc(100% / 3);
padding: 24rpx 0;
box-sizing: border-box;
}
.round {
border-radius: 50%;
}
.menuName {
color: #120e2b;
font-size: 24rpx;
text-align: center;
margin-top: 16rpx;
}
.menu-image {
padding: 12rpx 8rpx;
height: 80rpx;
box-sizing: border-box;
margin: 0 auto;
text-align: center;
}
.menu-image image {
max-width: 100%;
max-height: 100%;
}
.screen-box {
background-color: #fff;
padding: 0 0rpx;
position: sticky;
top: 0;
z-index: 1;
}
.pop {
width: 100%;
box-sizing: border-box;
padding: 16px;
text-align: left;
}
.pop .title {
font-size: 14px;
font-weight: 600;
}
.pop .title-clock {
display: inline-block;
}
.pop .selectTime {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
}
.pop .selectTime .time {
width: 45%;
}
.pop .popbtn {
width: 639rpx;
height: 80rpx;
line-height: 80rpx;
color: #fff;
font-size: 28rpx;
background: #5b96e9;
border-radius: 8rpx;
margin: 48rpx auto 24rpx auto;
text-align: center;
}
.billList {
width: 100%;
height: calc(100vh - 100px);
box-sizing: border-box;
padding: 20rpx 24rpx;
.card {
width: 100%;
box-shadow: 0 0px 6rpx #e2e2e2;
box-sizing: border-box;
padding: 24rpx;
background: #fff;
position: relative;
margin-bottom: 24rpx;
.firstTitleBox {
width: 100%;
.contentName {
width: calc(100% - 48rpx);
font-size: 28rpx;
// height: 54rpx;
margin-left: 36rpx;
color: #333333;
display: -webkit-box;
-webkit-line-clamp: 2; /* 设置显示的行数 */
-webkit-box-orient: vertical;
overflow: hidden;
text-overflow: ellipsis;
}
}
.secondTitleBox {
.content-type-text {
color: #686868;
padding-left: 38rpx;
font-size: 22rpx;
line-height: 1.6;
max-width: 306rpx;
text-overflow: ellipsis;
white-space: nowrap;
overflow: hidden;
}
}
.thirdTitleBox {
display: flex;
justify-content: center;
align-items: center;
margin-top: 12rpx;
font-size: 18px;
line-height: 50px;
margin: 0 4px;
border-bottom: 2rpx solid #eee;
}
.fourthTitleBox {
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
margin-top: 24rpx;
.leftContent {
color: #686868;
font-size: 24rpx;
}
.rightContent {
color: #686868;
font-size: 24rpx;
}
}
.content-index {
width: 42rpx;
height: 32rpx;
color: #fff;
background-color: #fb8b56;
position: absolute;
display: flex;
align-items: center;
justify-content: center;
position: absolute;
left: -4rpx;
top: 30rpx;
box-shadow: 4rpx 4rpx 2rpx 0 rgba(238, 112, 27, 0.5);
}
}
}
</style>

View File

@ -27,7 +27,7 @@
<view class="detailFixed" :style="{top: menu.bottom + 12 +'px'}" v-if="showDetailFixed"> <view class="detailFixed" :style="{top: menu.bottom + 12 +'px'}" v-if="showDetailFixed">
<view class="itemDetail"> <view class="itemDetail">
<text :class="res.RevenueINC.increaseRate>0?'value red':res.RevenueINC.increaseRate<0?'value green':''">{{ res.RevenueINC.increaseRate?res.RevenueINC.increaseRate>0?`+${res.RevenueINC.increaseRate}%`:res.RevenueINC.increaseRate<0?`${res.RevenueINC.increaseRate}%`:'0':'-' }}</text> <text :class="res.RevenueINC.increaseRate>0?'value red':res.RevenueINC.increaseRate<0?'value green':''">{{ res.RevenueINC.increaseRate?res.RevenueINC.increaseRate>0?`+${res.RevenueINC.increaseRate}%`:res.RevenueINC.increaseRate<0?`${res.RevenueINC.increaseRate}%`:'0':'-' }}</text>
<text class="label">对客营收</text> <text class="label">销售明细</text>
</view> </view>
<view class="itemDetail"> <view class="itemDetail">
<text :class="res.BayonetINC.increaseRate>0?'value red':res.BayonetINC.increaseRate<0?'value green':''">{{ res.BayonetINC.increaseRate?res.BayonetINC.increaseRate>0?`+${res.BayonetINC.increaseRate}%`:res.BayonetINC.increaseRate<0?`${res.BayonetINC.increaseRate}%`:'0':'-' }}</text> <text :class="res.BayonetINC.increaseRate>0?'value red':res.BayonetINC.increaseRate<0?'value green':''">{{ res.BayonetINC.increaseRate?res.BayonetINC.increaseRate>0?`+${res.BayonetINC.increaseRate}%`:res.BayonetINC.increaseRate<0?`${res.BayonetINC.increaseRate}%`:'0':'-' }}</text>
@ -41,7 +41,7 @@
<image class="bg" src="https://eshangtech.com/ShopICO/ahyd-BID/warning/detailTopBg1.png"/> <image class="bg" src="https://eshangtech.com/ShopICO/ahyd-BID/warning/detailTopBg1.png"/>
<view class="typeBoxTop" style="display: flex;justify-content: space-between;align-items: center"> <view class="typeBoxTop" style="display: flex;justify-content: space-between;align-items: center">
<view> <view>
<text class="title">对客营收</text> <text class="title">销售明细</text>
<text class="unit">/万元</text> <text class="unit">/万元</text>
</view> </view>
<text class="monthText">{{date || ''}}</text> <text class="monthText">{{date || ''}}</text>
@ -112,7 +112,7 @@
<text class="monthText"> <text class="monthText">
{{selectType===1?`${res.ServerpartName}${date || ''}度车流`:selectType===2?`${res.ServerpartName}${date || ''}车流`:selectType===3?`${res.ServerpartName}${date || ''}车流`:selectType===4?`${res.ServerpartName}${date || ''}车流`:''}} {{selectType===1?`${res.ServerpartName}${date || ''}度车流`:selectType===2?`${res.ServerpartName}${date || ''}车流`:selectType===3?`${res.ServerpartName}${date || ''}车流`:selectType===4?`${res.ServerpartName}${date || ''}车流`:''}}
<text>{{res.BayonetINC.increaseRate>0?'增加':res.BayonetINC.increaseRate<0?'减少':''}}<text :style="{color:res.BayonetINC.increaseRate>0?'#E83944':res.BayonetINC.increaseRate<0?'#127E5B':''}">{{res.BayonetINC.increaseRate?`${Math.abs(res.BayonetINC.increaseRate)}%`:'-'}}</text></text> <text>{{res.BayonetINC.increaseRate>0?'增加':res.BayonetINC.increaseRate<0?'减少':''}}<text :style="{color:res.BayonetINC.increaseRate>0?'#E83944':res.BayonetINC.increaseRate<0?'#127E5B':''}">{{res.BayonetINC.increaseRate?`${Math.abs(res.BayonetINC.increaseRate)}%`:'-'}}</text></text>
{{selectType===1?'对客营收':selectType===2?',门店的营收减少':selectType===3?'对客营收':selectType===4?',对客营收':''}} {{selectType===1?'销售明细':selectType===2?',门店的营收减少':selectType===3?'销售明细':selectType===4?',销售明细':''}}
<text v-if="selectType!==2">{{res.RevenueINC.increaseRate>0?'增加':res.RevenueINC.increaseRate<0?'减少':''}}<text :style="{color:res.RevenueINC.increaseRate>0?'#E83944':res.RevenueINC.increaseRate<0?'#127E5B':''}">{{res.RevenueINC.increaseRate?`${Math.abs(res.RevenueINC.increaseRate)}%`:'-'}}</text></text> <text v-if="selectType!==2">{{res.RevenueINC.increaseRate>0?'增加':res.RevenueINC.increaseRate<0?'减少':''}}<text :style="{color:res.RevenueINC.increaseRate>0?'#E83944':res.RevenueINC.increaseRate<0?'#127E5B':''}">{{res.RevenueINC.increaseRate?`${Math.abs(res.RevenueINC.increaseRate)}%`:'-'}}</text></text>
</text> </text>

View File

@ -154,7 +154,7 @@
</view> </view>
<view class="sortItem" style="width: 25%;justify-content: flex-end" @click="handleChangeSortName(1)"> <view class="sortItem" style="width: 25%;justify-content: flex-end" @click="handleChangeSortName(1)">
<text class="sortName">对客营收</text> <text class="sortName">销售明细</text>
<view class="sortIconBox"> <view class="sortIconBox">
<image class="upIcon" :style="{transform: sortName===1?sortType===1?``:`rotate(180deg)`:``}" :src="sortType===1?'https://eshangtech.com/ShopICO/ahyd-BID/car/upDesc.svg':sortName===1?'https://eshangtech.com/ShopICO/ahyd-BID/car/downDesc.svg':'https://eshangtech.com/ShopICO/ahyd-BID/car/upDesc.svg'"/> <image class="upIcon" :style="{transform: sortName===1?sortType===1?``:`rotate(180deg)`:``}" :src="sortType===1?'https://eshangtech.com/ShopICO/ahyd-BID/car/upDesc.svg':sortName===1?'https://eshangtech.com/ShopICO/ahyd-BID/car/downDesc.svg':'https://eshangtech.com/ShopICO/ahyd-BID/car/upDesc.svg'"/>
<image class="bottomIcon" :style="{transform: sortName===1?sortType===1?``:`rotate(180deg)`:'rotate(-180deg)'}":src="sortType===1 && sortName===1?'https://eshangtech.com/ShopICO/ahyd-BID/car/downDesc.svg':'https://eshangtech.com/ShopICO/ahyd-BID/car/upDesc.svg'"/> <image class="bottomIcon" :style="{transform: sortName===1?sortType===1?``:`rotate(180deg)`:'rotate(-180deg)'}":src="sortType===1 && sortName===1?'https://eshangtech.com/ShopICO/ahyd-BID/car/downDesc.svg':'https://eshangtech.com/ShopICO/ahyd-BID/car/upDesc.svg'"/>
@ -196,7 +196,7 @@
</view> </view>
<view class="secondItemTop"> <view class="secondItemTop">
<view> <view>
<text class="itemTopName">对客营收</text> <text class="itemTopName">销售明细</text>
<text class="itemTopUnit">/万元</text> <text class="itemTopUnit">/万元</text>
</view> </view>
<image v-if="false" class="addReduce" :src="Number(item.RevenueINC.increaseRate)>0?'https://eshangtech.com/ShopICO/ahyd-BID/examine/add.svg':Number(item.RevenueINC.increaseRate)<0?'https://eshangtech.com/ShopICO/ahyd-BID/examine/reduce.svg':''"/> <image v-if="false" class="addReduce" :src="Number(item.RevenueINC.increaseRate)>0?'https://eshangtech.com/ShopICO/ahyd-BID/examine/add.svg':Number(item.RevenueINC.increaseRate)<0?'https://eshangtech.com/ShopICO/ahyd-BID/examine/reduce.svg':''"/>

View File

@ -136,7 +136,7 @@
{ {
name:'借款单申请', name:'借款单申请',
typeId: "401601", typeId: "401601",
src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/jkdsp.png', src: '../../../../../static/images/expense/type/jkdsp.png',
},{ },{
name: '服务区报销', name: '服务区报销',
typeId: "401602", typeId: "401602",
@ -148,11 +148,11 @@
},{ },{
name:'保证金退付', name:'保证金退付',
typeId: "401604", typeId: "401604",
src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/bzjtf.png', src: '../../../../../static/images/expense/type/bzjtf.png',
},{ },{
name:'工程结算单', name:'工程结算单',
typeId: "401605", typeId: "401605",
src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/gcjsd.png', src: '../../../../../static/images/expense/type/gcjsd.png',
} }
] ]
} }
@ -175,7 +175,7 @@
,{ ,{
name:'行政资产申请', name:'行政资产申请',
typeId: "401101", typeId: "401101",
src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/xzzcsp.png', src: '../../../../../static/images/expense/type/xzzcsp.png',
} }
,{ ,{
name: '公务交通', name: '公务交通',
@ -195,7 +195,7 @@
,{ ,{
name:'工程款支付', name:'工程款支付',
typeId: "401203", typeId: "401203",
src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/gcjsd.png', src: '../../../../../static/images/expense/type/gcjsd.png',
} }
,{ ,{
name:'经费预算', name:'经费预算',
@ -210,11 +210,11 @@
,{ ,{
name:'内部转账', name:'内部转账',
typeId: "401301", typeId: "401301",
src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/bzjtf.png', src: '../../../../../static/images/expense/type/bzjtf.png',
} }
,{ ,{
name:'大额支付', name:'大额支付',
src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/dezf.png', src: '../../../../../static/images/expense/type/dezf.png',
typeId: "401302" typeId: "401302"
} }
,{ ,{
@ -225,7 +225,7 @@
,{ ,{
name:'领付款申请', name:'领付款申请',
typeId:"401304", typeId:"401304",
src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/jkdsp.png', src: '../../../../../static/images/expense/type/jkdsp.png',
}, },
] ]

File diff suppressed because it is too large Load Diff

View File

@ -332,7 +332,7 @@
background-image: url('/static/images/investment/wz.png'); background-image: url('/static/images/investment/wz.png');
} }
.ico-jyqk:before { .ico-jyqk:before {
background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/investment/jyqk.png') background-image: url('/static/images/investment/jyqk.png')
} }
.ico-htlx:before { .ico-htlx:before {

View File

@ -53,8 +53,7 @@ const noDecimal = (s) => {
fuhao = '-' fuhao = '-'
} }
s = parseFloat((s + "").replace(/[^\d\.-]/g, "")) + "" s = parseFloat((s + "").replace(/[^\d\.-]/g, "")) + ""
let l = s.split(".")[0].split("").reverse(), let l = s.split(".")[0].split("").reverse(), r = s.split(".")[1];
r = s.split(".")[1];
let t = '' let t = ''
for (let i = 0; i < l.length; i++) { for (let i = 0; i < l.length; i++) {
t += l[i] + ((i + 1) % 3 == 0 && (i + 1) != l.length ? "," : ""); t += l[i] + ((i + 1) % 3 == 0 && (i + 1) != l.length ? "," : "");
@ -110,170 +109,9 @@ const getMoneyNoDecimal = (money) => {
return num; return num;
} }
// 2023年的农历日历
let chineseCalendar2023 = [
'腊月十六',
'腊月十七',
'腊月十八',
'腊月十九',
'腊月二十',
'腊月廿一',
'腊月廿二',
'北小年',
'南小年',
'腊月廿五',
'腊月廿六',
'腊月廿七',
'腊月廿八',
'腊月廿九',
'除夕',
'春节',
'正月初二',
'正月初三',
'正月初四',
'正月初五',
'正月初六',
'正月初七',
'正月初八',
'正月初九',
'正月初十',
'正月十一',
'正月十二',
'正月十三',
'正月十四',
'正月十五',
'正月十六',
'正月十七',
'正月十八',
'正月十九',
'正月二十',
'正月廿一',
'正月廿二',
'正月廿三',
'正月廿四',
'正月廿五',
]
// 2024年的农历日历
let chineseCalendar2024 = [
'腊月十六',
'腊月十七',
'腊月十八',
'腊月十九',
'腊月二十',
'腊月廿一',
'腊月廿二',
'北小年',
'南小年',
'腊月廿五',
'腊月廿六',
'腊月廿七',
'腊月廿八',
'腊月廿九',
'除夕',
'春节',
'正月初二',
'正月初三',
'正月初四',
'正月初五',
'正月初六',
'正月初七',
'正月初八',
'正月初九',
'正月初十',
'正月十一',
'正月十二',
'正月十三',
'正月十四',
'正月十五',
'正月十六',
'正月十七',
'正月十八',
'正月十九',
'正月二十',
'正月廿一',
'正月廿二',
'正月廿三',
'正月廿四',
'正月廿五',
]
// 2025年农历日历
let chineseCalendar2025 = [
'腊月十五',
'腊月十六',
'腊月十七',
'腊月十八',
'腊月十九',
'腊月二十',
'腊月廿一',
'腊月廿二',
'北小年',
'南小年',
'腊月廿五',
'腊月廿六',
'腊月廿七',
'腊月廿八',
'除夕',
'春节',
'正月初二',
'正月初三',
'正月初四',
'正月初五',
'正月初六',
'正月初七',
'正月初八',
'正月初九',
'正月初十',
'正月十一',
'正月十二',
'正月十三',
'正月十四',
'正月十五',
'正月十六',
'正月十七',
'正月十八',
'正月十九',
'正月二十',
'正月廿一',
'正月廿二',
'正月廿三',
'正月廿四',
'正月廿五',
]
// 2023年节假日安排表
let festivalObj2023 = {
"2023-01-01": "元旦",
"2023-04-05": "清明节",
"2023-05-01": "劳动节‌",
"2023-06-22": "端午节‌",
"2023-09-29": "中秋节",
"2023-10-01": "国庆节",
}
// 2024年节假日安排表
let festivalObj2024 = {
"2024-01-01": "元旦",
"2024-04-04": "清明节",
"2024-05-01": "劳动节‌",
"2024-06-10": "端午节‌",
"2024-09-17": "中秋节",
"2024-10-01": "国庆节",
}
// 2025年节假日安排表
let festivalObj2025 = {
"2025-01-01": "元旦",
"2025-04-04": "清明节",
"2025-05-01": "劳动节‌",
"2025-05-31": "端午节‌",
"2025-10-06": "中秋节",
"2025-10-01": "国庆节",
}
const handleRedText = (value)=>{ const handleRedText = (value)=>{
return <text > { return <text>{{value}}</text>
{
value
}
} < /text>
} }
//事件转换函数主要用作格式化x轴为时间轴根据需求自行修改 //事件转换函数主要用作格式化x轴为时间轴根据需求自行修改
@ -291,18 +129,10 @@ const formatDateTime = (timeStamp, returnType) => {
var second = date.getSeconds(); var second = date.getSeconds();
minute = minute < 10 ? ('0' + minute) : minute; minute = minute < 10 ? ('0' + minute) : minute;
second = second < 10 ? ('0' + second) : second; second = second < 10 ? ('0' + second) : second;
if (returnType == 'full') { if(returnType == 'full'){return y + '-' + m + '-' + d + ' '+ h +':' + minute + ':' + second;}
return y + '-' + m + '-' + d + ' ' + h + ':' + minute + ':' + second; if(returnType == 'y-m-d'){return y + '-' + m + '-' + d;}
} if(returnType == 'h:m'){return h +':' + minute;}
if (returnType == 'y-m-d') { if(returnType == 'h:m:s'){return h +':' + minute +':' + second;}
return y + '-' + m + '-' + d;
}
if (returnType == 'h:m') {
return h + ':' + minute;
}
if (returnType == 'h:m:s') {
return h + ':' + minute + ':' + second;
}
return [y, m, d, h, minute, second]; return [y, m, d, h, minute, second];
} }
@ -319,21 +149,11 @@ const cfu = {
"option":{}, "option":{},
//下面是自定义format配置因除H5端外的其他端无法通过props传递函数只能通过此属性对应下标的方式来替换 //下面是自定义format配置因除H5端外的其他端无法通过props传递函数只能通过此属性对应下标的方式来替换
"formatter":{ "formatter":{
"yAxisDemo1": function (val, index, opts) { "yAxisDemo1":function(val, index, opts){return val+'元'},
return val + '元' "yAxisDemo2":function(val, index, opts){return val.toFixed(2)},
}, "xAxisDemo1":function(val, index, opts){return val+'年';},
"yAxisDemo2": function (val, index, opts) { "xAxisDemo2":function(val, index, opts){return formatDateTime(val,'h:m')},
return val.toFixed(2) "seriesDemo1":function(val, index, series, opts){return val+'元'},
},
"xAxisDemo1": function (val, index, opts) {
return val + '年';
},
"xAxisDemo2": function (val, index, opts) {
return formatDateTime(val, 'h:m')
},
"seriesDemo1": function (val, index, series, opts) {
return val + '元'
},
"tooltipDemo1":function(item, category, index, opts){ "tooltipDemo1":function(item, category, index, opts){
if(index==0){ if(index==0){
return '随便用'+item.data+'年' return '随便用'+item.data+'年'
@ -501,109 +321,47 @@ const cfu = {
}, },
"entryCarNumber":function (item, category, index, opts){ "entryCarNumber":function (item, category, index, opts){
console.log('item', item); console.log('item',item)
console.log('category', category); console.log('category',category)
console.log('index', index); console.log('index',index)
console.log('opts', opts); console.log('opts',opts)
// 先拿到节日类型
let festival = opts.selectFestival
// 需要添加在显示文字的节日文字
let otherFestivalTest = ''
// 从opts里面 拿到这一行的详细数据
let detail = opts.series.filter(subItem => subItem.name === item.name)[0]
console.log('detail.realDateList[index]', detail.realDateList[index]);
if (festival === 2) {
// 春节
let resObj = [];
if (item.name === 2023) {
resObj = chineseCalendar2023
} else if (item.name === 2024) {
resObj = chineseCalendar2024
} else if (item.name === 2025) {
resObj = chineseCalendar2025
}
otherFestivalTest = resObj[index]
} else if (festival === 1 || festival === 3 || festival === 4 || festival === 5 || festival === 7 || festival === 8) {
// 非春节和暑期
let resObj = {}
if (item.name === 2023) {
resObj = festivalObj2023
} else if (item.name === 2024) {
resObj = festivalObj2024
} else if (item.name === 2025) {
resObj = festivalObj2025
}
if (detail.realDateList[index]) {
if (resObj[detail.realDateList[index]]) {
otherFestivalTest = resObj[detail.realDateList[index]]
}
}
}
// 日期格式老的太长了修改一下显示
const date = new Date(detail.realDateList[index])
let y = date.getFullYear()
y = y.toString().slice(2, 4)
let m = date.getMonth() + 1
if (m < 10) {
m = '0' + m
}
let d = date.getDate()
if (d < 10) {
d = '0' + d
}
let dateText = `${y}.${m}.${d}`
let add = ''
if (detail.linearIndex > 0) {
// 上一年
let lastYearObj = opts.series[detail.linearIndex - 1]
console.log('lastYearObj', lastYearObj);
// 当前年
let currentYearObj = opts.series[detail.linearIndex]
add = (((currentYearObj.real[index] - lastYearObj.real[index]) / lastYearObj.real[index]) * 100).toFixed(2) + '%'
}
return `${dateText}${otherFestivalTest?`(${otherFestivalTest})`:'' } ${detail.data[index].toFixed(2)}万元${add?detail.data[index]>0?''+add:'':''}`
// return item.name // return item.name
// let data = opts.series.filter(subItem=> subItem.name === item.name)[0].real[index] let data = opts.series.filter(subItem=> subItem.name === item.name)[0].real[index]
// let day = opts.series.filter(subItem=> subItem.name === item.name)[0].howDayNumber let day = opts.series.filter(subItem=> subItem.name === item.name)[0].howDayNumber
// let festivalType = opts.series[0].selectFestival let festivalType = opts.series[0].selectFestival
// console.log('festivalType',festivalType) console.log('festivalType',festivalType)
// console.log('data',data) console.log('data',data)
// console.log('day',day) console.log('day',day)
// let curData = opts.series.filter(subItem=> subItem.name === '24年')[0].real[index] let curData = opts.series.filter(subItem=> subItem.name === '24年')[0].real[index]
// let compareData = opts.series.filter(subItem=> subItem.name === '23年')[0].real[index] let compareData = opts.series.filter(subItem=> subItem.name === '23年')[0].real[index]
// // 显示具体的日期 // 显示具体的日期
// let realDate = opts.series.filter(subItem=> subItem.name === '23年')[0].realDateList[index] let realDate = opts.series.filter(subItem=> subItem.name === '23年')[0].realDateList[index]
// // 显示具体的日期 // 显示具体的日期
// let curDate = opts.series.filter(subItem=> subItem.name === '24年')[0].realDateList[index] let curDate = opts.series.filter(subItem=> subItem.name === '24年')[0].realDateList[index]
// let add = Number(((curData/compareData)-1)*100).toFixed(2) let add = Number(((curData/compareData)-1)*100).toFixed(2)
// if(item.name==='24年'){ if(item.name==='24年'){
// if(data){ if(data){
// return `${curDate}${data?getMoney(data / 10000,2):''}万元${add>0?'+':add<0?'':''}${add?add+'%':''}${ return `${curDate}${data?getMoney(data / 10000,2):''}万元${add>0?'+':add<0?'':''}${add?add+'%':''}${
// festivalType===1 && index===1?'(清明节)': festivalType===1 && index===1?'(清明节)':
// festivalType===2 && index===2?'(劳动节)': festivalType===2 && index===2?'(劳动节)':
// festivalType===3 && index===3?'(端午节)': festivalType===3 && index===3?'(端午节)':
// festivalType===5 && index===3?'(中秋节)': festivalType===5 && index===3?'(中秋节)':
// festivalType===6 && index===1?'(国庆节)': festivalType===6 && index===1?'(国庆节)':
// ''}` ''}`
// }else{ }else{
// return `${curDate}` return `${curDate}`
// } }
// }else{ }else{
// return `${realDate}${data?getMoney(data / 10000,2):''}万元${ return `${realDate}${data?getMoney(data / 10000,2):''}万元${
// festivalType===1 && index===1?'(清明节)': festivalType===1 && index===1?'(清明节)':
// festivalType===2 && index===3?'(劳动节)': festivalType===2 && index===3?'(劳动节)':
// festivalType===3 && index===1?'(端午节)': festivalType===3 && index===1?'(端午节)':
// festivalType===5 && index===1?'(中秋节)': festivalType===5 && index===1?'(中秋节)':
// festivalType===6 && index===3?'(国庆节)': festivalType===6 && index===3?'(国庆节)':
// ''}` ''}`
// } }
// if (item.name==='24年'){ // if (item.name==='24年'){
@ -816,7 +574,8 @@ const cfu = {
"gridType": "dash", "gridType": "dash",
"dashLength": 2, "dashLength": 2,
}, },
"legend": {}, "legend": {
},
"extra": { "extra": {
"line": { "line": {
"type": "curve", "type": "curve",
@ -976,7 +735,8 @@ const cfu = {
"gridType": "dash", "gridType": "dash",
"dashLength": 2, "dashLength": 2,
}, },
"legend": {}, "legend": {
},
"extra": { "extra": {
"line": { "line": {
"type": "straight", "type": "straight",
@ -996,12 +756,15 @@ const cfu = {
"yAxis": { "yAxis": {
"gridType": "dash", "gridType": "dash",
"dashLength": 2, "dashLength": 2,
"data": [{ "data":[
{
"min":0, "min":0,
"max":80 "max":80
}] }
]
},
"legend": {
}, },
"legend": {},
"extra": { "extra": {
"line": { "line": {
"type": "curve", "type": "curve",
@ -1021,12 +784,15 @@ const cfu = {
"yAxis": { "yAxis": {
"gridType": "dash", "gridType": "dash",
"dashLength": 2, "dashLength": 2,
"data": [{ "data":[
{
"min":0, "min":0,
"max":80 "max":80
}] }
]
},
"legend": {
}, },
"legend": {},
"extra": { "extra": {
"area": { "area": {
"type": "curve", "type": "curve",
@ -1046,11 +812,10 @@ const cfu = {
"disableGrid": true, "disableGrid": true,
}, },
"yAxis": { "yAxis": {
"data": [{ "data":[{"min":0}]
"min": 0 },
}] "legend": {
}, },
"legend": {},
"extra": { "extra": {
"column": { "column": {
"type": "group", "type": "group",
@ -1068,11 +833,10 @@ const cfu = {
"disableGrid": true, "disableGrid": true,
}, },
"yAxis": { "yAxis": {
"data": [{ "data":[{"min":0}]
"min": 0 },
}] "legend": {
}, },
"legend": {},
"extra": { "extra": {
"mount": { "mount": {
"type": "mount", "type": "mount",
@ -1090,8 +854,10 @@ const cfu = {
"min":0, "min":0,
"axisLine":false "axisLine":false
}, },
"yAxis": {}, "yAxis": {
"legend": {}, },
"legend": {
},
"extra": { "extra": {
"bar": { "bar": {
"type": "group", "type": "group",
@ -1114,7 +880,8 @@ const cfu = {
"gridType": "dash", "gridType": "dash",
"dashLength": 2, "dashLength": 2,
}, },
"legend": {}, "legend": {
},
"extra": { "extra": {
"area": { "area": {
"type": "straight", "type": "straight",
@ -1206,8 +973,10 @@ const cfu = {
"scrollColor": "#A6A6A6", "scrollColor": "#A6A6A6",
"scrollBackgroundColor": "#EFEBEF" "scrollBackgroundColor": "#EFEBEF"
}, },
"yAxis": {}, "yAxis": {
"legend": {}, },
"legend": {
},
"extra": { "extra": {
"candle": { "candle": {
"color": { "color": {
@ -1226,7 +995,8 @@ const cfu = {
"markLine": { "markLine": {
"type": "dash", "type": "dash",
"dashLength": 5, "dashLength": 5,
"data": [{ "data": [
{
"value": 2150, "value": 2150,
"lineColor": "#f04864", "lineColor": "#f04864",
"showLabel": true "showLabel": true
@ -1258,7 +1028,8 @@ const cfu = {
"showTitle": true, "showTitle": true,
"data": [] "data": []
}, },
"legend": {}, "legend": {
},
"extra": { "extra": {
"mix": { "mix": {
"column": { "column": {
@ -1283,9 +1054,11 @@ const cfu = {
"disableGrid": false, "disableGrid": false,
"gridType":"dash", "gridType":"dash",
}, },
"legend": {}, "legend": {
},
"extra": { "extra": {
"scatter": {}, "scatter": {
},
} }
}, },
"bubble":{ "bubble":{
@ -1308,7 +1081,8 @@ const cfu = {
"max":150 "max":150
}] }]
}, },
"legend": {}, "legend": {
},
"extra": { "extra": {
"bubble": { "bubble": {
"border":2, "border":2,

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -5,7 +5,7 @@
<text class="typeText" :class="item.ISREAD=='1' ? 'typeText-color' : ''">{{item.ISREAD==0 ? '待我查阅': '已查阅'}}</text> <text class="typeText" :class="item.ISREAD=='1' ? 'typeText-color' : ''">{{item.ISREAD==0 ? '待我查阅': '已查阅'}}</text>
</div> </div>
<view class="title-ico "> <view class="title-ico ">
<image src="https://eshangtech.com/ShopICO/ahyd-BID/reader/recive-read.png" mode="aspectFit"></image> <image src="../../../static/images/reader/recive-read.png" mode="aspectFit"></image>
</view> </view>
<view class="uni-flex plr32 " style="" v-show="type==0"> <view class="uni-flex plr32 " style="" v-show="type==0">
<text class="text-gray fs26">发文人员</text> <text class="text-gray fs26">发文人员</text>

View File

@ -125,7 +125,7 @@ import request from '@/util/index.js'
endTime: obj.et, endTime: obj.et,
serverpartId: obj.id, serverpartId: obj.id,
provinceCode: obj.pcode, provinceCode: obj.pcode,
BusinessTrade: obj.BusinessTrade || '', BusinessTrade: obj.BusinessTrade,
SearchKeyName:_this.pageOption.searchKey, SearchKeyName:_this.pageOption.searchKey,
SearchKeyValue:_this.pageOption.searchValue, SearchKeyValue:_this.pageOption.searchValue,
BusinessType:_this.pageOption.BusinessTypeValue>0?_this.pageOption.BusinessTypeValue:'', BusinessType:_this.pageOption.BusinessTypeValue>0?_this.pageOption.BusinessTypeValue:'',

View File

@ -2,193 +2,86 @@
<view class="page-body" > <view class="page-body" >
<!-- <image class="bg" src="https://eshangtech.com/ShopICO/yxcl/projectWarning/bg.svg"></image>--> <!-- <image class="bg" src="https://eshangtech.com/ShopICO/yxcl/projectWarning/bg.svg"></image>-->
<view class="header" :style="{height: menu.bottom + 'px' }"> <view class="header" :style="{height: menu.bottom + 'px' }">
<image <image @click="handleBack" class="allowLeft" :style="{top: menu.top +((menu.height - 24) / 2) + 'px'}" src="https://eshangtech.com/ShopICO/ahyd-BID/examine/leftArrowWhite.svg"></image>
@click="handleBack"
class="allowLeft"
:style="{ top: menu.top + (menu.height - 24) / 2 + 'px' }"
src="https://eshangtech.com/ShopICO/ahyd-BID/examine/leftArrowWhite.svg"
></image>
</view> </view>
<p class="title">分润比例切换</p> <p class="title">分润比例切换</p>
<view class="main"> <view class="main">
<view class="detail"> <view class="detail">
<view class="type">{{ <view class="type">{{dataDetail.BUSINESS_TYPE===1000?'合作经营':dataDetail.BUSINESS_TYPE===2000?'固定租金':''}}</view>
dataDetail.BUSINESS_TYPE === 1000
? "合作经营"
: dataDetail.BUSINESS_TYPE === 2000
? "固定租金"
: ""
}}</view>
<view class="top"> <view class="top">
<view class="left"> <view class="left">
<image <image class="logo" :src="dataDetail.BUSINESSPROJECT_ICO?dataDetail.BUSINESSPROJECT_ICO:'https://eshangtech.com/ShopICO/yxcl/projectWarning/defaultImg.svg'"></image>
class="logo"
:src="
dataDetail.BUSINESSPROJECT_ICO
? dataDetail.BUSINESSPROJECT_ICO
: 'https://eshangtech.com/ShopICO/yxcl/projectWarning/defaultImg.svg'
"
></image>
</view> </view>
<view class="right"> <view class="right">
<p class="detailTitle">{{dataDetail.SERVERPARTSHOP_NAME}}</p> <p class="detailTitle">{{dataDetail.SERVERPARTSHOP_NAME}}</p>
<view class="fixed" > <view class="fixed" >
<image <image class="serviceFixed" src="https://eshangtech.com/ShopICO/yxcl/projectWarning/position.svg"></image>
class="serviceFixed"
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/position.svg"
></image>
<span class="service">{{dataDetail.SERVERPART_NAME}}</span> <span class="service">{{dataDetail.SERVERPART_NAME}}</span>
</view> </view>
<view class="other"> <view class="other">
<view class="item"> <view class="item">
<image <image class="icon" src="https://eshangtech.com/ShopICO/yxcl/projectWarning/user.svg"></image>
class="icon" <span class="value">{{dataDetail.COOPMERCHANTS_LINKMAN || '-'}}</span>
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/user.svg"
></image>
<span class="value">{{
dataDetail.COOPMERCHANTS_LINKMAN || "-"
}}</span>
</view> </view>
<view class="item"> <view class="item">
<image <image class="icon" src="https://eshangtech.com/ShopICO/yxcl/projectWarning/phone.svg"></image>
class="icon" <span class="value">{{dataDetail.COOPMERCHANTS_MOBILEPHONE || '-'}}</span>
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/phone.svg"
></image>
<span class="value">{{
dataDetail.COOPMERCHANTS_MOBILEPHONE || "-"
}}</span>
</view> </view>
</view> </view>
</view> </view>
</view> </view>
<view class="bottom"> <view class="bottom">
<view class="message"> <view class="message">
<image <image class="icon" src="https://eshangtech.com/ShopICO/yxcl/projectWarning/money.svg"></image>
class="icon"
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/money.svg"
></image>
<span class="text">保底租金</span> <span class="text">保底租金</span>
<span class="money">{{ dataDetail.MINTURNOVER || "-" }}</span> <span class="money">{{dataDetail.MINTURNOVER || '-'}}</span>
</view> </view>
<view class="message" > <view class="message" >
<image <image class="icon" src="https://eshangtech.com/ShopICO/yxcl/projectWarning/date.svg"></image>
class="icon"
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/date.svg"
></image>
<span class="text">本期结算</span> <span class="text">本期结算</span>
<span class="money" <span class="money">{{dataDetail.STARTDATE || '-'}} - {{dataDetail.ENDDATE || '-'}}</span>
>{{ dataDetail.STARTDATE || "-" }} -
{{ dataDetail.ENDDATE || "-" }}</span
>
</view> </view>
<view class="message" style="margin-bottom: 0"> <view class="message" style="margin-bottom: 0">
<image <image class="icon" src="https://eshangtech.com/ShopICO/yxcl/projectWarning/date.svg"></image>
class="icon"
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/date.svg"
></image>
<span class="text">合同期限</span> <span class="text">合同期限</span>
<span class="money" <span class="money">{{dataDetail.COMPACT_STARTDATE || '-'}} - {{dataDetail.COMPACT_ENDDATE || '-'}}</span>
>{{ dataDetail.COMPACT_STARTDATE || "-" }} -
{{ dataDetail.COMPACT_ENDDATE || "-" }}</span
>
</view> </view>
</view> </view>
</view> </view>
<view class="contain"> <view class="contain">
<image <image class="img" style="width: 32px;height: 32px" src="https://eshangtech.com/ShopICO/yxcl/projectWarning/question.svg"></image>
class="img"
style="width: 32px; height: 32px"
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/question.svg"
></image>
<view> <view>
<view class="text"> <view class="text">
本项目驿达累计分润已达<span class="strong" 本项目驿达累计分润已达<span class="strong"><span clsas="strong" style="font-size: 14px"></span>{{ dataDetail.ROYALTY_PRICE|| '-' }}</span>,<br/>
><span clsas="strong" style="font-size: 14px"></span <span v-if="dataDetail.EXPENSE_AMOUNT">其中已扣减水电物业费
>{{ dataDetail.ROYALTY_PRICE || "-" }}</span <span class="strong"><span clsas="strong" style="font-size: 14px"></span>{{$util.fmoney(dataDetail.EXPENSE_AMOUNT)}}</span>,
>,<br /> </span><br/>
<span v-if="dataDetail.EXPENSE_AMOUNT" <span v-if="dataDetail.EXPIREDAYS!==0">预计<span class="strong">{{ dataDetail.EXPIREDAYS|| '-' }}</span>后完成</span>
>其中已扣减水电物业费 <span v-if="dataDetail.EXPIREDAYS===0" class="strong">已完成</span>保底
<span class="strong"
><span clsas="strong" style="font-size: 14px"></span
>{{ $util.fmoney(dataDetail.EXPENSE_AMOUNT) }}</span
>, </span
><br />
<span v-if="dataDetail.EXPIREDAYS !== 0"
>预计<span class="strong">{{ dataDetail.EXPIREDAYS || "-" }}</span
>后完成</span
>
<span v-if="dataDetail.EXPIREDAYS === 0" class="strong">已完成</span
>保底
</view> </view>
<view <view class="text" :style="{marginBottom: dataDetail.PROJECTWARNING_STATE===2000?'8px':'0px'}">
class="text" <span v-if="dataDetail.PROJECTWARNING_STATE===9000">{{dataDetail.PROJECTWARNING_DESC}}</span>
:style="{
marginBottom:
dataDetail.PROJECTWARNING_STATE === 2000 ? '8px' : '0px',
}"
>
<span v-if="dataDetail.PROJECTWARNING_STATE === 9000"
>{{ dataDetail.PROJECTWARNING_DESC }}</span
>
<span v-else>是否依合同将分润比例进行切换</span><br/> <span v-else>是否依合同将分润比例进行切换</span><br/>
驿达<span class="strong">{{ YDValue || "-" }}%</span>, 商家<span 驿达<span class="strong">{{YDValue|| '-'}}%</span>,
class="strong" 商家<span class="strong">{{SJValue|| '-'}}%</span>
>{{ SJValue || "-" }}%</span <span v-if="dataDetail.PROJECTWARNING_STATE>0&&dataDetail.PROJECTWARNING_STATE<9000"></span>
>
<span
v-if="
dataDetail.PROJECTWARNING_STATE > 0 &&
dataDetail.PROJECTWARNING_STATE < 9000
"
></span
>
</view> </view>
<view <view v-if='dataDetail.PROJECTWARNING_STATE>0 && dataDetail.PROJECTWARNING_STATE<9000' class="text" style="margin-top: 8px" :style="{marginBottom: dataDetail.PROJECTWARNING_STATE===2000?'8px':'0px'}">
v-if=" <span>{{ `切换日期默认设定:` }}<span class="strong">{{configTime}}</span></span>
dataDetail.PROJECTWARNING_STATE > 0 &&
dataDetail.PROJECTWARNING_STATE < 9000
"
class="text"
style="margin-top: 8px"
:style="{
marginBottom:
dataDetail.PROJECTWARNING_STATE === 2000 ? '8px' : '0px',
}"
>
<span
>{{ `切换日期默认设定:`
}}<span class="strong">{{ configTime }}</span></span
>
</view> </view>
</view> </view>
</view> </view>
<view class="contain" v-if="storeList.length && storeList.length>0"> <view class="contain" v-if="storeList.length && storeList.length>0">
<view class="box"> <view class="box">
<view <view class="store" v-for="(item,index) in storeList" :key="index" :style="{marginBottom:index + 1 === storeList.length?'0px':'10px'}">
class="store"
v-for="(item, index) in storeList"
:key="index"
:style="{
marginBottom: index + 1 === storeList.length ? '0px' : '10px',
}"
>
<view class="left"> <view class="left">
<image <image class="img" :src="item.APPROVED_TYPE!==9999?'/static/images/right-ico.png':'/static/images/wrong-ico.png'"></image>
class="img"
:src="
item.APPROVED_TYPE !== 9999
? '/static/images/right-ico.png'
: '/static/images/wrong-ico.png'
"
></image>
</view> </view>
<view class="right"> <view class="right">
<view class="top"> <view class="top">
<p class="storeText">{{item.APPROVED_NAME}}</p> <p class="storeText">{{item.APPROVED_NAME}}</p>
<p class="storeText"> <p class="storeText">{{item.APPROVED_STAFF}}{{item.APPROVED_INFO}}</p>
{{ item.APPROVED_STAFF }}{{ item.APPROVED_INFO }}
</p>
</view> </view>
<span class="other">{{item.APPROVED_DATE}}</span> <span class="other">{{item.APPROVED_DATE}}</span>
</view> </view>
@ -208,186 +101,165 @@ import Store from "../../store/store";
export default { export default {
data() { data() {
return { return {
PROJECTWARNING_ID: "", PROJECTWARNING_ID:'',
dataDetail:{}, dataDetail:{},
inputValue: "", // inputValue:'',//
useDate:{}, useDate:{},
YDValue: "", // 驿 YDValue:'',// 驿
SJValue: "", // SJValue:'',//
statusBarHeight: "", statusBarHeight:'',
menu: "", menu:'',
time: "", // time:'',//
desc:[],// desc:[],//
type:true,// type:true,//
storeList:[],// storeList:[],//
configTime: "", configTime:''
}; }
}, },
onLoad(query){ onLoad(query){
// //
let systemInfo = uni.getSystemInfoSync(); let systemInfo = uni.getSystemInfoSync()
this.statusBarHeight = Number(systemInfo.statusBarHeight); this.statusBarHeight = Number(systemInfo.statusBarHeight)
this.menu = uni.getMenuButtonBoundingClientRect(); this.menu = uni.getMenuButtonBoundingClientRect()
this.PROJECTWARNING_ID = query.id; this.PROJECTWARNING_ID = query.id
this.handleGetDetail(); this.handleGetDetail()
this.useDate = Store.state.userData; this.useDate = Store.state.userData
if (query.type === "no") { if (query.type==='no'){
this.type = false; this.type = false
} }
this.handleStore(); this.handleStore()
const date = new Date(); const date= new Date()
let m = date.getMonth() + 1; let m = date.getMonth() + 1
if (m === 12){ if (m === 12){
m = 1; m = 1
}else{ }else{
m = m + 1; m = m + 1
} }
this.configTime = `${m}月1日0点`; this.configTime = `${m}月1日0点`
}, },
// //
onUnload() { onUnload() {
// //
this.$util.addUserBehavior(); this.$util.addUserBehavior()
}, },
methods:{ methods:{
// //
handleGetDetail(){ handleGetDetail(){
uni.showLoading({ uni.showLoading({
title: "正在加载", title:'正在加载'
});
this.$request
.$webGet("EShangApiMain/BusinessProject/GetPROJECTWARNINGDetail", {
PROJECTWARNINGId: this.PROJECTWARNING_ID,
}) })
.then((res) => { this.$request.$webGet('EShangApiMain/BusinessProject/GetPROJECTWARNINGDetail',{
uni.hideLoading(); PROJECTWARNINGId:this.PROJECTWARNING_ID
this.dataDetail = res.Result_Data; }).then(res=>{
uni.hideLoading()
this.dataDetail = res.Result_Data
// //
for (let key in this.dataDetail){ for (let key in this.dataDetail){
if ( if (key==='REVENUEDAILY_AMOUNT' || key==='REVENUE_AMOUNT' || key==='ROYALTY_PRICE' || key==='SUBROYALTY_PRICE' || key==='TICKET_FEE' || key==='MINTURNOVER'){
key === "REVENUEDAILY_AMOUNT" || this.dataDetail[key] = this.$util.fmoney(this.dataDetail[key])
key === "REVENUE_AMOUNT" ||
key === "ROYALTY_PRICE" ||
key === "SUBROYALTY_PRICE" ||
key === "TICKET_FEE" ||
key === "MINTURNOVER"
) {
this.dataDetail[key] = this.$util.fmoney(this.dataDetail[key]);
} }
} }
this.YDValue = this.dataDetail.MerchantRatio.split(":")[0]; this.YDValue = this.dataDetail.MerchantRatio.split(':')[0]
this.SJValue = this.dataDetail.MerchantRatio.split(":")[1]; this.SJValue = this.dataDetail.MerchantRatio.split(':')[1]
if (this.dataDetail.PROJECTWARNING_DESC){ if (this.dataDetail.PROJECTWARNING_DESC){
this.time = this.time = this.dataDetail.PROJECTWARNING_DESC.split('【')[1].split('】')[0]
this.dataDetail.PROJECTWARNING_DESC.split("【")[1].split("】")[0]; this.desc[0] = this.dataDetail.PROJECTWARNING_DESC.split('【')[0]
this.desc[0] = this.dataDetail.PROJECTWARNING_DESC.split("【")[0]; this.desc[1] = this.dataDetail.PROJECTWARNING_DESC.split('【')[1].split('')[1]
this.desc[1] =
this.dataDetail.PROJECTWARNING_DESC.split("【")[1].split("")[1];
} }
}); })
}, },
handleStore(){ handleStore(){
this.$request this.$request.$webPost('EShangApiMain/BusinessProject/GetAPPROVEDList',{
.$webPost("EShangApiMain/BusinessProject/GetAPPROVEDList", {
SearchParameter:{ SearchParameter:{
TABLE_ID: this.PROJECTWARNING_ID, TABLE_ID: this.PROJECTWARNING_ID,
TABLE_NAME: "T_PROJECTWARNING", TABLE_NAME: "T_PROJECTWARNING"
}, },
PageIndex: 1, PageIndex: 1,
PageSiz: 99, PageSiz: 99,
SortStr: "APPROVED_DATE desc", SortStr: "APPROVED_DATE desc"
}).then(res=>{
this.storeList = res.Result_Data.List
}) })
.then((res) => {
this.storeList = res.Result_Data.List;
console.log("this.storeList", this.storeList);
});
}, },
// //
handleNoChange(){ handleNoChange(){
let _this = this; let _this = this
uni.showModal({ uni.showModal({
title: "是否暂不切换分润比例?", title: '是否暂不切换分润比例?',
success: function (res) { success: function (res) {
if (res.confirm) { if (res.confirm) {
uni.showLoading({ uni.showLoading({
title: "正在加载", title:'正在加载'
}); })
_this.$request _this.$request.$webGet('EShangApiMain/BusinessProject/ApproveProinst',{
.$webGet("EShangApiMain/BusinessProject/ApproveProinst", {
BusinessId: _this.PROJECTWARNING_ID, // BusinessId: _this.PROJECTWARNING_ID, //
StaffId:_this.useDate.UserId,// StaffId:_this.useDate.UserId,//
StaffName:_this.useDate.UserName,// StaffName:_this.useDate.UserName,//
SwitchRate:_this.dataDetail.ROYALTY_RATE * 100,// SwitchRate:_this.dataDetail.ROYALTY_RATE * 100,//
ApproveState: "9999", // ApproveState:'9999',//
}) }).then(res=>{
.then((res) => { uni.hideLoading()
uni.hideLoading();
uni.showToast({ uni.showToast({
title: res.Result_Desc, title: res.Result_Desc,
icon: "none", icon: 'none'
}); })
_this.handleGetDetail(); _this.handleGetDetail()
uni.navigateBack({ uni.navigateBack({
delta: 1, delta: 1
}); })
}); })
}
} }
},
}); });
}, },
// //
handleChange(){ handleChange(){
let _this = this; let _this = this
uni.showModal({ uni.showModal({
title: "是否切换分润比例?", title: '是否切换分润比例?',
success: function (res) { success: function (res) {
if (res.confirm) { if (res.confirm) {
uni.showLoading({ uni.showLoading({
title: "正在加载", title:'正在加载'
}); })
_this.$request _this.$request.$webGet('EShangApiMain/BusinessProject/ApproveProinst',{
.$webGet("EShangApiMain/BusinessProject/ApproveProinst", {
BusinessId: _this.PROJECTWARNING_ID, // BusinessId: _this.PROJECTWARNING_ID, //
StaffId:_this.useDate.UserId,// StaffId:_this.useDate.UserId,//
StaffName:_this.useDate.UserName,// StaffName:_this.useDate.UserName,//
SwitchRate:_this.dataDetail.ROYALTY_CRATE,// SwitchRate:_this.dataDetail.ROYALTY_CRATE,//
ApproveState: ApproveState:_this.dataDetail.PROJECTWARNING_STATE===1000?'2000':'9000',//
_this.dataDetail.PROJECTWARNING_STATE === 1000 }).then(res=>{
? "2000" uni.hideLoading()
: "9000", //
})
.then((res) => {
uni.hideLoading();
if (_this.dataDetail.PROJECTWARNING_STATE===1000){ if (_this.dataDetail.PROJECTWARNING_STATE===1000){
_this.handleBack(); _this.handleBack()
} }
uni.showToast({ uni.showToast({
title: res.Result_Desc, title: res.Result_Desc,
icon: "none", icon: 'none'
}); })
_this.handleGetDetail(); _this.handleGetDetail()
}); })
}
} }
},
}); });
}, },
handleBack(){ handleBack(){
if (this.type){ if (this.type){
uni.redirectTo({ uni.redirectTo({
url: "/pages/projectWarning/index", url: '/pages/projectWarning/index'
}); });
}else{ }else{
uni.navigateBack({ uni.navigateBack({
delta: 1, delta:1
}); });
} }
}, }
}, }
}; }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
@import "/static/public/font/stylesheet.css"; @import '/static/public/font/stylesheet.css';
.page-body { .page-body {
width: 100vw; width: 100vw;
min-height: 100vh; min-height: 100vh;
@ -422,7 +294,7 @@ export default {
color: #160002; color: #160002;
line-height: 39px; line-height: 39px;
margin: 18px 0 16px 16px; margin: 18px 0 16px 16px;
background: linear-gradient(180deg, #c25e18 30%, #8c4917 100%); background: linear-gradient(180deg, #C25E18 30%, #8C4917 100%);
-webkit-background-clip: text; -webkit-background-clip: text;
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
} }
@ -433,14 +305,7 @@ export default {
.detail{ .detail{
width: 100%; width: 100%;
box-sizing: border-box; box-sizing: border-box;
background: linear-gradient( background: linear-gradient(314deg, #FFFCF3 0%, #FFF0E6 20%, #FFF9F5 51%, #FFF8E7 73%, #FFF6EE 100%);
314deg,
#fffcf3 0%,
#fff0e6 20%,
#fff9f5 51%,
#fff8e7 73%,
#fff6ee 100%
);
border-radius: 8px; border-radius: 8px;
padding: 16px; padding: 16px;
position: relative; position: relative;
@ -448,12 +313,7 @@ export default {
position: absolute; position: absolute;
right: 0; right: 0;
top: 16px; top: 16px;
background: linear-gradient( background: linear-gradient(270deg, #F8D792 0%, #FFE6B2 50%, #FBC13B 100%);
270deg,
#f8d792 0%,
#ffe6b2 50%,
#fbc13b 100%
);
border-radius: 10px 0 0 2px; border-radius: 10px 0 0 2px;
padding:2px 8px; padding:2px 8px;
font-size: 14px; font-size: 14px;
@ -509,7 +369,7 @@ export default {
font-size: 28rpx; font-size: 28rpx;
font-family: PingFangSC-Semibold, PingFang SC; font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600; font-weight: 600;
color: #6c492a; color: #6C492A;
line-height: 40rpx; line-height: 40rpx;
} }
} }
@ -554,7 +414,7 @@ export default {
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Regular, PingFang SC; font-family: PingFangSC-Regular, PingFang SC;
font-weight: 400; font-weight: 400;
color: #786b6c; color: #786B6C;
line-height: 20px; line-height: 20px;
margin-right: 8px; margin-right: 8px;
} }
@ -562,7 +422,7 @@ export default {
font-size: 14px; font-size: 14px;
font-family: PingFangSC-Semibold, PingFang SC; font-family: PingFangSC-Semibold, PingFang SC;
font-weight: 600; font-weight: 600;
color: #7d5632; color: #7D5632;
line-height: 20px; line-height: 20px;
} }
} }
@ -658,14 +518,15 @@ export default {
font-size: 16px; font-size: 16px;
font-family: PingFangSC-Medium, PingFang SC; font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500; font-weight: 500;
color: #6d5f5e; color: #6D5F5E;
opacity: 0.6; opacity: 0.6;
} }
.change{ .change{
background: #7d5632; background: #7D5632;
color: #feffff; color: #FEFFFF;
opacity: 1; opacity: 1;
} }
} }
} }
</style> </style>

View File

@ -33,7 +33,7 @@
<view class="contentTop"> <view class="contentTop">
<view class="contentTopLeft"> <view class="contentTopLeft">
<!-- <span class="contentMonth">{{thisMonth?thisMonth+'月':'累计'}}</span>--> <!-- <span class="contentMonth">{{thisMonth?thisMonth+'月':'累计'}}</span>-->
<span class="contentTitle">对客销售<span class="contentUnit">/万元</span></span> <span class="contentTitle">销售明细<span class="contentUnit">/万元</span></span>
</view> </view>
</view> </view>
@ -67,7 +67,7 @@
<view class="tableBox"> <view class="tableBox">
<view class="tableTop"> <view class="tableTop">
<span class="tableTitle">销售明细</span> <span class="tableTitle">营收明细</span>
<span class="tableUnit">/万元</span> <span class="tableUnit">/万元</span>
</view> </view>

View File

@ -46,7 +46,7 @@
<view class="contentTop"> <view class="contentTop">
<view class="contentTopLeft"> <view class="contentTopLeft">
<!-- <span class="contentMonth">{{thisMonth?thisMonth+'月':'累计'}}</span>--> <!-- <span class="contentMonth">{{thisMonth?thisMonth+'月':'累计'}}</span>-->
<span class="contentTitle">对客销售<span class="contentUnit">/万元</span></span> <span class="contentTitle">销售明细<span class="contentUnit">/万元</span></span>
</view> </view>
<view class="contentTopRight" @click="handleGoSort(1)"> <view class="contentTopRight" @click="handleGoSort(1)">
<span class="moreText">服务区排名</span> <span class="moreText">服务区排名</span>
@ -83,7 +83,7 @@
<view class="tableBox"> <view class="tableBox">
<view class="tableTop"> <view class="tableTop">
<span class="tableTitle">销售明细</span> <span class="tableTitle">营收明细</span>
<span class="tableUnit">/万元</span> <span class="tableUnit">/万元</span>
</view> </view>

View File

@ -40,7 +40,7 @@
<view class="modalTitleBox"> <view class="modalTitleBox">
<view class="modalTitleItem" :style="{width: 'calc(100% - 300rpx)',textAlign:'left'}"> <view class="modalTitleItem" :style="{width: 'calc(100% - 300rpx)',textAlign:'left'}">
<view class="modalIndex"></view> <view class="modalIndex"></view>
<text class="modalText">{{ type===1?'对客销售':type===2?'营业收入':type===3?'入区车流':'' }}</text> <text class="modalText">{{ type===1?'销售明细':type===2?'营业收入':type===3?'入区车流':'' }}</text>
<text class="modalUnit">{{type===3?'/万辆':'/万元'+`${type===2?' (除税)':''}`}}</text> <text class="modalUnit">{{type===3?'/万辆':'/万元'+`${type===2?' (除税)':''}`}}</text>
</view> </view>
</view> </view>

View File

@ -1,297 +1,139 @@
<template> <template>
<web-view src="https://eshangtech.com/deepseek/"></web-view> <view class="main">
<!-- <web-view src="https://ahyd.eshangtech.com/robot/"></web-view> -->
<!-- <web-view src="https://saas.eshangtech.com/robot/robot"></web-view> -->
<!-- <view class="main" v-if="false">
<view
class="mainTop"
:style="{
height: menu.bottom + 6 + 'px',
paddingTop: menu.top - 6 + 'px',
}"
>
<view class="mainTopContent" :style="{ height: menu.height + 12 + 'px' }">
<image
class="backIcon"
src="https://eshangtech.com/ShopICO/ahyd-BID/commercial/navigation-left.svg"
/>
<view class="robotBox">
<image
class="robotImg"
src="https://eshangtech.com/ShopICO/ahyd-BID/robot/robotIcon.png"
/>
<view class="robotDetail">
<span class="name">小驿</span>
<span class="desc">商业智能助理 </span>
</view>
</view>
</view>
</view>
<view class="dialogContentBox"> <view class="dialogContentBox">
<view <view :class="item.type===1?'item itemLeft':'item rightItem'" v-for="(item,index) in dialogueList" :key="index" :style="{marginTop: index!==0?'8px':''}">
:class="item.type === 1 ? 'item itemLeft' : 'item rightItem'" <text :id="'printBox' + index" :class="item.type===1?`dialogItem white`:`dialogItem green`">
v-for="(item, index) in dialogueList" {{ item.text || '' }}
:key="index" </text>
:style="{ marginTop: index !== 0 ? '8px' : '' }"
>
<view
:id="'printBox' + index"
:class="item.type === 1 ? `dialogItem white` : `dialogItem green`"
>
{{ item.text || "" }}
<view class="line" v-if="item.searchType === 'default'"></view>
<view class="defaultBox">
<view>你可能想问</view>
</view> </view>
<view class="loadingBox" v-if="isLoading">
小驿分析中...
</view> </view>
</view> </view>
<view class="loadingBox" v-if="isLoading"> 小驿分析中... </view>
</view>
<view class="inputBox"> <view class="inputBox">
<image <textarea class="searchText" :value="searchText" @input="handleInput"/>
class="microphone" <view class="searchBtn" @click="handleSubmit">
src="https://eshangtech.com/ShopICO/ahyd-BID/robot/microphone.png" 发送
/> </view>
<div class="textBox"> </view>
<textarea
class="searchText"
:value="searchText"
@input="handleInput"
placeholder="有问题尽管问我~"
/>
</div>
<view class="searchBtn" @click="handleSubmit"> 发送 </view>
</view> </view>
</view> -->
</template> </template>
<script > <script >
import request from "@/util/index.js"; import request from '@/util/index.js'
export default { export default {
data(){ data(){
return { return {
searchText: "", searchText:'',
dialogueList: [], // list type 1 2 searchType default dialogueList:[],// list type 1 2
printText: "", printText:'',
isLoading: false,// isLoading: false,//
useInfo: {}, }
menu: {},
};
}, },
onLoad(){ onLoad(){
this.menu = uni.getMenuButtonBoundingClientRect(); this.dialogueList.push({text:`您好!我是服务区商业智能助理小驿。\n您想了解服务区哪些方面的信息`,type:1})
console.log("menu", this.menu); this.handlePrintText()
this.dialogueList.push({
text: `您好!我是服务区商业智能助理小驿。\n您想了解服务区哪些方面的信息`,
type: 1,
searchType: "default",
});
this.handlePrintText();
// this.printText = `驿<br>` // this.printText = `驿<br>`
}, },
methods:{ methods:{
handleSubmit(){ handleSubmit(){
let list = this.dialogueList; let list = this.dialogueList
console.log("this.searchText", this.searchText); console.log('this.searchText',this.searchText)
if(this.searchText){ if(this.searchText){
list.push({ text: this.searchText, type: 2 }); list.push({text:this.searchText,type:2})
this.dialogueList = list; this.dialogueList = list
this.$forceUpdate(); this.$forceUpdate()
this.handleGetData(); this.handleGetData()
this.searchText = ""; this.searchText= ''
} }
}, },
// //
handleInput(e){ handleInput(e){
console.log("e", e); console.log('e',e)
this.searchText = e.detail.value; this.searchText = e.detail.value
}, },
// //
async handleGetData(){ async handleGetData(){
this.isLoading = true; this.isLoading = true
const data = await request.$webGet( const data = await request.$webGet('CommercialApi/Analysis/TranslateSentence',{Sentence: this.searchText})
"CommercialApi/Analysis/TranslateSentence", console.log('data',data)
{ Sentence: this.searchText }
);
console.log("data", data);
if(data.Result_Code === 999){ if(data.Result_Code === 999){
this.dialogueList.push({ this.dialogueList.push({text:`'小驿还无法理解,请换个说法我会不停努力学习的!'`,type:1})
text: `'小驿还无法理解,请换个说法我会不停努力学习的!'`,
type: 1,
});
}else{ }else{
let str = data.Result_Data.RevenueAnalysis + "\n"; let str = data.Result_Data.RevenueAnalysis + '\n'
let list = data.Result_Data.ServerpartList; let obj = data.Result_Data.ServerpartList
if (list && list.length > 0) { if(obj){
list.forEach((item) => { for(let key in obj){
let obj = item["RevenueINC"];
if(str){ if(str){
str += `${item.ServerpartName}${this.formatNumber( str+=`${key}${this.formatNumber(obj[key].curYearData / 10000)}万元,同比${obj[key].increaseRate>0?'增幅':obj[key].increaseRate<0?'降幅':''}${obj[key].increaseRate ||''}\n`
obj.curYearData / 10000
)}万元${
obj.increaseRate > 0
? ",同比增幅"
: obj.increaseRate < 0
? ",同比降幅"
: ""
}${obj.increaseRate || ""}\n`;
}else{ }else{
str = `${item.ServerpartName}${this.formatNumber( str = `${key}${this.formatNumber(obj[key].curYearData / 10000)}万元,同比${obj[key].increaseRate>0?'增幅':obj[key].increaseRate<0?'降幅':''}${obj[key].increaseRate || ''}\n`
obj.curYearData / 10000
)}万元${
obj.increaseRate > 0
? ",同比同比增幅"
: obj.increaseRate < 0
? ",同比降幅"
: ""
}${obj.increaseRate || ""}\n`;
} }
});
} }
this.dialogueList.push({ text: str, type: 1 });
} }
this.isLoading = false;
this.dialogueList.push({text: str,type:1})
}
this.isLoading = false
}, },
// //
handlePrintText(){ handlePrintText(){
const query = wx.createSelectorQuery(); const query = wx.createSelectorQuery();
const contentBox = query.select( const contentBox = query.select(`#printBox${this.dialogueList && this.dialogueList.length>0? this.dialogueList.length - 1:0}`)
`#printBox${ console.log('contentBox',contentBox)
this.dialogueList && this.dialogueList.length > 0
? this.dialogueList.length - 1
: 0
}`
);
console.log("contentBox", contentBox);
}, },
formatNumber(num) { formatNumber(num) {
// //
num = Number(num); num = Number(num);
if (isNaN(num)) return "0.00"; // if (isNaN(num)) return '0.00'; //
// //
let parts = num.toString().split("."); let parts = num.toString().split('.');
// //
let decimalPart = parts[1] ? parts[1].substring(0, 2) : "00"; let decimalPart = parts[1] ? parts[1].substring(0, 2) : '00';
if (decimalPart.length < 2) { if (decimalPart.length < 2) {
decimalPart = decimalPart.padEnd(2, "0"); // decimalPart = decimalPart.padEnd(2, '0'); //
} }
// //
let integerPart = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ","); let integerPart = parts[0].replace(/\B(?=(\d{3})+(?!\d))/g, ',');
// //
return `${integerPart}.${decimalPart}`; return `${integerPart}.${decimalPart}`;
}, }
}, }
}; }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
.main{ .main{
width: 100%; width: 100%;
height: 100vh; height: 100vh;
// background: #f0f0f0; background: #f0f0f0;
background-image: url("https://eshangtech.com/ShopICO/ahyd-BID/robot/robotBackground.png");
background-repeat: no-repeat;
.mainTop {
width: 100%;
box-sizing: border-box;
.mainTopContent {
width: 100%;
box-sizing: border-box;
padding-left: 32rpx;
display: flex;
align-items: center;
.backIcon {
width: 52rpx;
height: 52rpx;
margin-right: 16rpx;
}
.robotBox {
display: flex;
align-items: center;
.robotImg {
width: 68rpx;
height: 68rpx;
margin-right: 16rpx;
}
.robotDetail {
display: flex;
flex-direction: column;
.name {
font-family: PingFangSC, PingFang SC;
font-weight: 600;
font-size: 28rpx;
color: #090c1a;
line-height: 40rpx;
text-align: left;
font-style: normal;
}
.desc {
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 24rpx;
color: #787879;
line-height: 36rpx;
text-align: justify;
font-style: normal;
}
}
}
}
}
.dialogContentBox{ .dialogContentBox{
width: 100%; width: 100%;
height: calc(100vh - 90px); height: calc(100vh - 90px);
overflow-y: scroll; overflow-y: scroll;
box-sizing: border-box; box-sizing: border-box;
padding: 32rpx; padding: 12px;
.item{ .item{
display: flex; display: flex;
align-items: center; align-items: center;
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 30rpx;
color: #090c1a;
line-height: 44rpx;
text-align: left;
font-style: normal;
.dialogItem{ .dialogItem{
max-width: calc(100vw - 64rpx);
display: block; display: block;
max-width: 80vw;
box-sizing: border-box; box-sizing: border-box;
padding: 24rpx 32rpx; padding: 4px;
border-radius: 4px; border-radius: 4px;
background: #ffffff;
border-radius: 0rpx 24rpx 24rpx 24rpx;
.line {
width: 100%;
height: 2rpx;
background: #f2f2f2;
border-radius: 16rpx;
margin: 24rpx 0;
}
.defaultBox {
.clickItem {
font-family: PingFangSC, PingFang SC;
font-weight: 400;
font-size: 30rpx;
color: #2363ff;
line-height: 44rpx;
text-align: left;
font-style: normal;
}
}
} }
.white{ .white{
border: 1px solid #ccc;
background: #fff; background: #fff;
color: #000; color: #000;
} }
.green{ .green{
background: #12a153ff; background: #12A153FF;
color: #fff; color: #fff;
} }
} }
@ -311,29 +153,24 @@ export default {
} }
.inputBox{ .inputBox{
width: 100%; width: 100%;
height: 180rpx; height: 80px;
background: #fff; background: hsla(0,0%,97%,.98);
border-top: 1px solid #ccc;
position: fixed; position: fixed;
left: 0; left: 0;
bottom: 0; bottom: 0;
box-sizing: border-box; box-sizing: border-box;
padding: 16rpx 32rpx; padding: 0 8px 4px;
padding-bottom: env(safe-area-inset-bottom);
display: flex; display: flex;
align-items: center; align-items: center;
.microphone {
width: 48rpx;
height: 48rpx;
margin-right: 16rpx;
}
.textBox {
width: calc(100% - 64rpx);
height: 88rpx;
background: #f2f3f7;
border-radius: 44rpx;
}
.searchText{ .searchText{
background: #fff;
flex: 1;
height: 40px;
box-sizing: border-box;
border-radius: 8px;
padding: 4px 8px 0;
font-size: 14px;
} }
.searchBtn{ .searchBtn{
width: 80px; width: 80px;

View File

@ -89,12 +89,12 @@
} }
,{ ,{
name:'付款审批', name:'付款审批',
src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/jkdsp.png', src: '../../../../../static/images/expense/type/jkdsp.png',
typeId:2000 typeId:2000
} }
,{ ,{
name:'资金拨付', name:'资金拨付',
src: 'https://eshangtech.com/ShopICO/ahyd-BID/expense/type/bzjtf.png', src: '../../../../../static/images/expense/type/bzjtf.png',
typeId:4000 typeId:4000
} }
], ],

View File

@ -1263,8 +1263,6 @@ export default {
// // const data = await request.$webPost('EShangApiMain/Finance/ApplyAccountProinst', req) // // const data = await request.$webPost('EShangApiMain/Finance/ApplyAccountProinst', req)
}else{ }else{
// //
console.log('this.nextPersonValue',this.nextPersonValue) console.log('this.nextPersonValue',this.nextPersonValue)
let [APPOVED_NAME,APPOVED_IDS] = this.nextPersonValue.split('-') let [APPOVED_NAME,APPOVED_IDS] = this.nextPersonValue.split('-')
console.log('APPOVED_IDS',APPOVED_IDS) console.log('APPOVED_IDS',APPOVED_IDS)
@ -1387,14 +1385,6 @@ export default {
}, },
// //
async handleShowApplyForPop(){ async handleShowApplyForPop(){
uni.showToast({
icon:'none',
duration: 2000,
title: '请到电脑端发起结算!',
});
return
let _this = this let _this = this
if(this.detailObj.SETTLEMENT_TYPE===2){ if(this.detailObj.SETTLEMENT_TYPE===2){
// //

View File

@ -296,9 +296,6 @@ export default {
}, },
// //
async getServiceInfo(){ async getServiceInfo(){
if(!this.serviceInfo.Serverpart_ID){
return
}
let req = { let req = {
ServerpartId:this.serviceInfo.Serverpart_ID ServerpartId:this.serviceInfo.Serverpart_ID
} }
@ -596,7 +593,6 @@ export default {
}, },
async getBusinessTypeList(){ async getBusinessTypeList(){
console.log('getBusinessTypeList')
let req let req
if (this.serviceInfo.SERVERPART_NAME==='安徽驿达'){ if (this.serviceInfo.SERVERPART_NAME==='安徽驿达'){
req = { req = {
@ -604,8 +600,8 @@ export default {
StatisticsDate:this.time, StatisticsDate:this.time,
BusinessTradeIds:-1 BusinessTradeIds:-1
} }
// this.businessTypeList = [] this.businessTypeList = []
// return return
}else{ }else{
req = { req = {
ProvinceCode:'340000', ProvinceCode:'340000',

View File

@ -1208,7 +1208,6 @@ export default {
res.Result_Data.OtherData.forEach(item=>{ res.Result_Data.OtherData.forEach(item=>{
list.push({name:item,value:item}) list.push({name:item,value:item})
}) })
console.log('this.carTypeList',list)
this.carTypeList =list this.carTypeList =list
this.isFirst = false this.isFirst = false
} }
@ -1332,8 +1331,6 @@ export default {
this.carTypeTimeDataAll[2] ={categories:result[2].Vehicle_Type?result[2].Vehicle_Type:[], series:[series[5],series[4]]} this.carTypeTimeDataAll[2] ={categories:result[2].Vehicle_Type?result[2].Vehicle_Type:[], series:[series[5],series[4]]}
} }
this.carTypeTimeData = this.carTypeTimeDataAll[this.selectTab]?this.carTypeTimeDataAll[this.selectTab]:[] this.carTypeTimeData = this.carTypeTimeDataAll[this.selectTab]?this.carTypeTimeDataAll[this.selectTab]:[]
console.log('this.carTypeTimeDataAll',this.carTypeTimeDataAll)
console.log('this.carTypeTimeData',this.carTypeTimeData)
}else{ }else{
this.carTypeTimeDataAll = [] this.carTypeTimeDataAll = []
this.carTypeTimeData = [] this.carTypeTimeData = []

View File

@ -62,8 +62,6 @@ export default {
handleTap(e){ handleTap(e){
uChartsInstance[e.target.id].showToolTip(e,{ uChartsInstance[e.target.id].showToolTip(e,{
formatter: (item, category, index, opts) =>{ formatter: (item, category, index, opts) =>{
console.log('item',item)
console.log('opts',opts)
if (this.num===0){ if (this.num===0){
this.num++ this.num++
return '日均车辆' + ":" + opts.series[0].valueList[index] + '辆,占比' + item.data + '%'; return '日均车辆' + ":" + opts.series[0].valueList[index] + '辆,占比' + item.data + '%';

View File

@ -155,9 +155,7 @@ const cfu = {
return item.name + ":" + item.data + '辆'; return item.name + ":" + item.data + '辆';
}, },
carTypeTime:function (item, category, index, opts){ carTypeTime:function (item, category, index, opts){
console.log('item',item) if (this.num===0){
console.log('opts',opts)
if (item.name==='车辆类型'){
this.num++ this.num++
return '日均车辆' + ":" + opts.series[0].valueList[index] + '辆,占比' + item.data + '%'; return '日均车辆' + ":" + opts.series[0].valueList[index] + '辆,占比' + item.data + '%';
}else{ }else{

View File

@ -107,16 +107,11 @@ export default {
}, },
onShow(){ onShow(){
console.log('onShow') console.log('onShow')
console.log('selectPortrait',this.selectPortrait)
this.isShowSwiper = true this.isShowSwiper = true
let seat = uni.getStorageSync('currentService') let seat = uni.getStorageSync('currentService')
console.log('seat',seat) console.log('seat',seat)
this.serviceInfo = seat this.serviceInfo = seat
if(this.selectPortrait){
}else{
this.selectPortrait = this.query.index ? this.query.index: seat.SERVERPART_NAME==='安徽驿达' ? 1:0 this.selectPortrait = this.query.index ? this.query.index: seat.SERVERPART_NAME==='安徽驿达' ? 1:0
}
}, },
onHide(){ onHide(){
this.isShowSwiper = false this.isShowSwiper = false

View File

@ -1,225 +0,0 @@
<template>
<div class="main">
<template v-if="webViewSrc">
<web-view
id="myWebView"
ref="myWebView"
:src="webViewSrc"
@message="onMessage"
></web-view>
</template>
<!-- @load="onMinLoad" -->
<!-- <span @click="handleGetPoint">获取位置信息</span> -->
</div>
<!-- src="https://saas.eshangtech.com/goaliPay/index.html" -->
<!-- src="https://ahyd.eshangtech.com/goaliPay/index.html" -->
</template>
<script>
import { mapGetters } from "vuex";
export default {
data() {
return {
message: "",
webViewSrc: ``,
nowObj: {},
loginType: "",
};
},
computed: {
...mapGetters({
user: "user",
}),
},
async onLoad() {
this.webViewSrc = `https://eshangtech.com/goaliPay/testwx.html`;
return;
let type = uni.getStorageSync("loginType");
console.log("loginType", type);
this.loginType = type;
let obj = {
loginType: type,
phone: this.user.MEMBERSHIP_MOBILEPHONE,
};
this.nowObj = obj;
const jsonString = JSON.stringify(obj);
const encodedData = encodeURIComponent(jsonString);
console.log("encodedData", encodedData);
if (type === "min") {
// const code = await this.login();
// console.log("dasldhasodhbasoudh", code);
// const codeString = JSON.stringify(code);
// const encodedCode = encodeURIComponent(codeString);
// console.log("encodedCode", encodedCode);
this.webViewSrc = `https://eshangtech.com/goaliPay/testwx.html`;
// https://ahyd.eshangtech.com/goaliPay/index.html
// https://saas.eshangtech.com/goaliPay/index.html
} else {
this.webViewSrc = `https://saas.eshangtech.com/goaliPay/index.html#${encodedData}`;
}
console.log("this.webViewSrc", this.webViewSrc);
},
methods: {
async onMinLoad() {
// console.log("111", 11);
// const code = await this.login();
// console.log("dasldhasodhbasoudh", code);
// const codeString = JSON.stringify(code);
// const encodedCode = encodeURIComponent(codeString);
// console.log("encodedCode", encodedCode);
// this.webViewSrc = `https://eshangtech.com/goaliPay/testwx.html#${encodedCode}`;
// this.webViewSrc = `https://eshangtech.com/goaliPay/testwx.html`;
// console.log("this.webViewSrc", this.webViewSrc);
},
handleGetPoint() {
$wanmeiyizhan.handleGetPosition().then((res) => {});
},
onMessage(event) {
let _this = this;
console.log("收到 H5 的消息:", event.detail.data[0]);
if (event.detail.data[0].action === "scanCode") {
uni.scanCode({
success: function (res) {
console.log("res", res);
_this.sendMessageToH5({ type: "scanCode", res: res });
},
});
} else if (event.detail.data[0].action === "position") {
// let req = {
// membershipId: _this.user.MEMBERSHIP_ID,
// };
// _this.$api.$get("/Html5/GetMemberLocation", req).then((res) => {
// console.log("resdasda", res);
// });
plus.geolocation.getCurrentPosition(async function (position) {
console.log("当前位置:", position);
let res = position.coords;
let seatInfo = {
latitude: res.latitude,
longitude: res.longitude,
};
_this.sendMessageToH5({ type: "position", res: seatInfo });
});
} else if (event.detail.data[0].action === "openLocation") {
let obj = event.detail.data[0].res;
console.log("openLocation", obj);
uni.openLocation({
latitude: obj.latitude * 1,
longitude: obj.longitude * 1,
scale: 16, //
name: obj.name,
address: "", //
success(data) {
console.log(data);
},
fail(err) {
console.log(err);
},
});
} else if (event.detail.data[0].action === "openNewPage") {
let obj = event.detail.data[0].res;
console.log("openNewPage", obj);
uni.navigateTo({
url: `/pages/thirdParty/newPage?url=${obj.url}&title=${obj.title}`,
});
} else if (event.detail.data[0].action === "backPage") {
uni.navigateBack({
delta: 1,
});
}
// event.data H5
},
sendMessageToH5(data) {
console.log("收到消息", data);
let obj = this.nowObj;
obj[data.type] = data.res;
this.nowObj = obj;
console.log("obj", obj);
const jsonString = JSON.stringify(obj);
const encodedData = encodeURIComponent(jsonString);
console.log("encodedData", encodedData);
this.webViewSrc = `https://saas.eshangtech.com/goaliPay/index.html#${encodedData}`;
console.log("this.webViewSrc", this.webViewSrc);
// const webView = this.$refs.myWebView;
// webView.postMessage(data);
},
async login() {
let str = Math.random().toString(36).substr(2, 15);
let time = Math.floor(Date.now() / 1000);
let jsapi_ticket = await this.$api.$get(
"/EShangApiMain/WeChat/GetJsapiTicket",
{
appId: "wx4c497eddcec4a0e7",
sourcePlatform: "minprogram",
// minprogram
// publicprogram
}
);
console.log("jsapi_ticket", jsapi_ticket);
const req = {
jsapi_ticket: jsapi_ticket.Result_Data,
appId: "wx4c497eddcec4a0e7",
// wx4c497eddcec4a0e7 min
// wxcf4dbe1815d5d872
timestamp: time,
nonceStr: str,
url: `https://eshangtech.com/goaliPay/testwx.html`,
jsApiList: ["openLocation", "getLocation", "scanQRCode"],
};
console.log("req321312", req);
const data = await this.$api.$post(
"/EShangApiMain/WeChat/GetConfigSignature",
req
);
console.log("datalogin", data);
req.result = data.Result_Data;
return req;
// let str = this.generateNonceStr();
// let time = new Date().getTime();
// fetch(
// `https://api.eshangtech.com/EShangApiMain/WeChat/GetJsapiTicket?appId=wx4c497eddcec4a0e7&sourcePlatform=minprogram`
// )
// .then((response) => response.json())
// .then((data) => {
// wx.config({
// debug: true, //
// appId: "wx4c497eddcec4a0e7", // AppID
// timestamp: time, //
// nonceStr: str, //
// signature: data.signature, //
// jsApiList: ["openLocation", "scanQRCode", "getLocation"], // API
// });
// wx.ready(function () {});
// });
},
generateNonceStr(length = 16) {
let nonceStr = "";
const characters =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
// 使
const timestamp = Date.now();
//
for (let i = 0; i < length; i++) {
nonceStr += characters.charAt(
Math.floor(Math.random() * characters.length)
);
}
return nonceStr + timestamp.toString(36).slice(-4); // 4
},
},
};
</script>
<style scoped lang="less">
.main {
width: 100vw;
height: 100vh;
}
</style>

View File

@ -2,37 +2,17 @@
<view class="main" style="padding-bottom: env(safe-area-inset-bottom)"> <view class="main" style="padding-bottom: env(safe-area-inset-bottom)">
<view class="userBg"> <view class="userBg">
<div class="headerTop" :style="{ height: menu.bottom + 5 + 'px'}"> <div class="headerTop" :style="{ height: menu.bottom + 5 + 'px'}">
<view <view class="news" :style="{ top: menu.top+16 + 'px', lineHeight: menu.bottom - menu.top + 'px' }">
class="news"
:style="{
top: menu.top + 16 + 'px',
lineHeight: menu.bottom - menu.top + 'px',
}"
>
<view class="box"> <view class="box">
<!-- @click="handleNews"--> <!-- @click="handleNews"-->
<image <image class="img" src="https://eshangtech.com/ShopICO/ahyd-BID/index/news.svg" @click="handleNews"></image>
class="img"
src="https://eshangtech.com/ShopICO/ahyd-BID/index/news.svg"
@click="handleNews"
></image>
<view class="red"></view> <view class="red"></view>
</view> </view>
</view> </view>
<view <view class="userTitle" :style="{ top: menu.top + 'px', lineHeight: menu.bottom - menu.top + 'px' }">我的</view>
class="userTitle"
:style="{
top: menu.top + 'px',
lineHeight: menu.bottom - menu.top + 'px',
}"
>我的</view
>
</div> </div>
<div class="userBox" :style="{ top: menu.bottom + 18 + 'px' }"> <div class="userBox" :style="{ top: menu.bottom + 18 + 'px' }">
<image <image class="userBgImg" src="https://eshangtech.com/ShopICO/ahyd-BID/user/userBg.png"></image>
class="userBgImg"
src="https://eshangtech.com/ShopICO/ahyd-BID/user/userBg.png"
></image>
<view class="box" v-if="user.Membership_Id"> <view class="box" v-if="user.Membership_Id">
<view class="headImg"> <view class="headImg">
<image :src="user.Membership_Headimage"></image> <image :src="user.Membership_Headimage"></image>
@ -60,12 +40,7 @@
</view> </view>
<view class="menu" :style="{ top: -(117 - menu.bottom) + 'px' }"> <view class="menu" :style="{ top: -(117 - menu.bottom) + 'px' }">
<userList <userList v-for="(item, index) in dataList" :key="index" :item='item' :lastDay="lastDay" ></userList>
v-for="(item, index) in dataList"
:key="index"
:item="item"
:lastDay="lastDay"
></userList>
</view> </view>
<Tabbar ref="tabbar" :page="page" ></Tabbar> <Tabbar ref="tabbar" :page="page" ></Tabbar>
@ -73,253 +48,210 @@
</template> </template>
<script> <script>
import request from "@/util/index.js"; import request from '@/util/index.js'
import { mapActions, mapState } from "vuex"; import {mapActions, mapState} from 'vuex'
import userList from "./components/userList.vue"; import userList from "./components/userList.vue";
import Tabbar from "../../components/tabbar/tabbar.vue"; import Tabbar from "../../components/tabbar/tabbar.vue";
export default { export default {
data() { data() {
const lastDay = this.$util.cutDate(new Date(), "YYYY-MM-DD", -1); const lastDay = this.$util.cutDate(new Date(), 'YYYY-MM-DD', -1)
return { return {
page: "/pages/userCenter/userCenter", page:'/pages/userCenter/userCenter',
statusBarHeight: "", statusBarHeight:'',
menu: "", menu:'',
lastDay:lastDay, lastDay:lastDay,
userLists: [ userLists:[ { url: 'https://eshangtech.com/ShopICO/ahyd-BID/user/position.svg', name: '我的服务区', value: 1 },
{ { url: 'https://eshangtech.com/ShopICO/ahyd-BID/user/limit.svg', name: '我的权限', value: 2 },],
url: "https://eshangtech.com/ShopICO/ahyd-BID/user/position.svg",
name: "我的服务区",
value: 1,
},
{
url: "https://eshangtech.com/ShopICO/ahyd-BID/user/limit.svg",
name: "我的权限",
value: 2,
},
],
dataList :[ dataList :[
{ {
name: "商业经营", name: '商业经营',
value: 1, value: 1,
list: [ list: [
{ {
id: "74934d31-385a-4eed-80bb-9c9ed7da29b5", id:'74934d31-385a-4eed-80bb-9c9ed7da29b5',
name: "每日营收", name: '每日营收',
homeUrl: "/pages/everdayRenven/index", homeUrl: '/pages/everdayRenven/index',
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/dailyRevenue.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/user/dailyRevenue.svg", bgUrl:'https://eshangtech.com/ShopICO/ahyd-BID/user/firstBg_1.png',
bgUrl:
"https://eshangtech.com/ShopICO/ahyd-BID/user/firstBg_1.png",
isNotice:true, isNotice:true,
value: 1, value: 1,
}, },
{ {
id: "", id:'',
name: "节日特刊", name: '节日特刊',
homeUrl: `/pages/nationalPage/index?time=${lastDay}&type=true`, homeUrl: `/pages/nationalPage/index?time=${lastDay}&type=true`,
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/festival.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/user/festival.svg", bgUrl:'https://eshangtech.com/ShopICO/ahyd-BID/user/firstBg_2.png',
bgUrl:
"https://eshangtech.com/ShopICO/ahyd-BID/user/firstBg_2.png",
isNotice:true, isNotice:true,
value: 1, value: 1,
}, },
{ {
id: "4a34e1d4-47c9-4c06-8e8e-f38c6bd9450b", id:'4a34e1d4-47c9-4c06-8e8e-f38c6bd9450b',
name: "经营报表", name: '经营报表',
homeUrl: "/pages/operatingStatements/index", homeUrl: '/pages/operatingStatements/index',
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/reportForms.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/user/reportForms.svg", bgUrl:'https://eshangtech.com/ShopICO/ahyd-BID/user/firstBg_3.png',
bgUrl:
"https://eshangtech.com/ShopICO/ahyd-BID/user/firstBg_3.png",
isNotice:true, isNotice:true,
value: 1, value: 1,
}, },
], ],
}, },
{ {
name: "商业画像", name: '商业画像',
value: 2, value: 2,
list: [ list: [
{ {
id: "", id:'',
name: "车流", name: '车流',
homeUrl: "/pages/commercialBINew/carPortrait", homeUrl: '/pages/commercialBINew/carPortrait',
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/traffic.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/user/traffic.svg", isNotice:'',
isNotice: "",
type:1, type:1,
value: 2, value: 2,
}, },
{ {
id: "", id:'',
name: "客群", name: '客群',
homeUrl: "/pages/commercialBI/guestPortrait", homeUrl: '/pages/commercialBI/guestPortrait',
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/customerGroup.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/user/customerGroup.svg", isNotice:'',
isNotice: "",
type:2, type:2,
value: 2, value: 2,
}, },
{ {
id: "", id:'',
name: "经营", name: '经营',
homeUrl: "/pages/commercialBI/managePortrait", homeUrl: '/pages/commercialBI/managePortrait',
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/manage.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/user/manage.svg", isNotice:'',
isNotice: "",
type:3, type:3,
value: 2, value: 2,
}, },
{ {
id: "", id:'',
name: "交易", name: '交易',
homeUrl: "/pages/commercialBI/businessPortrait", homeUrl: '/pages/commercialBI/businessPortrait',
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/business.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/user/business.svg", isNotice:'',
isNotice: "",
type:4, type:4,
value: 2, value: 2,
}, },
{ {
id: "", id:'',
name: "品牌", name: '品牌',
homeUrl: "/pages/commercialBI/formatPortrait", homeUrl: '/pages/commercialBI/formatPortrait',
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/brand.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/user/brand.svg", isNotice:'',
isNotice: "",
type:5, type:5,
value: 2, value: 2,
}, },
], ],
}, },
{ {
name: "业务审批", name: '业务审批',
value: 3, value: 3,
list: [ list: [
{ {
id: "1a2907bd-c2f5-4ef9-9ead-70496650ace6", id:'1a2907bd-c2f5-4ef9-9ead-70496650ace6',
name: "财务审批", name: '财务审批',
homeUrl: "/pages/expenseApproval/expenseApproval", homeUrl: '/pages/expenseApproval/expenseApproval',
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/financialApproval.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/user/financialApproval.svg",
notice:0, notice:0,
value: 3, value: 3,
isNotice: false, isNotice:false
}, },
{ {
id: "916cdbb5-f05b-4624-b6c4-9f111d4389fc", id:'916cdbb5-f05b-4624-b6c4-9f111d4389fc',
name: "招标投标", name: '招标投标',
homeUrl: "/pages/tender/tender", homeUrl: '/pages/tender/tender',
notice:0, notice:0,
value: 3, value: 3,
isNotice:false, isNotice:false,
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/bidding.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/user/bidding.svg",
}, },
{ {
id: "8fea5036-d67e-476e-9e56-5f379ba6ae18", id:'8fea5036-d67e-476e-9e56-5f379ba6ae18',
name: "服务区报销", name: '服务区报销',
homeUrl: homeUrl: '/pages/serviceAreaReimbursement/serviceAreaReimbursement',
"/pages/serviceAreaReimbursement/serviceAreaReimbursement",
notice:0, notice:0,
value: 3, value: 3,
isNotice:false, isNotice:false,
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/serviceAreaReimbur.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/user/serviceAreaReimbur.svg",
}, },
{ {
id: "ac661db4-1af1-4732-88db-76bc05eec335", id:'ac661db4-1af1-4732-88db-76bc05eec335',
name: "合同审批", name: '合同审批',
homeUrl: "/pages/contract/contract", homeUrl: '/pages/contract/contract',
notice:0, notice:0,
value: 3, value: 3,
isNotice:false, isNotice:false,
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/contractApproval.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/user/contractApproval.svg",
}, },
{ {
id: "056b29d7-4721-47ee-ad25-660814e1f3a9", id:'056b29d7-4721-47ee-ad25-660814e1f3a9',
name: "商品审批", name: '商品审批',
homeUrl: "/pages/businessApproval/businessApproval", homeUrl: '/pages/businessApproval/businessApproval',
notice:0, notice:0,
value: 3, value: 3,
isNotice:false, isNotice:false,
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/productApproval.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/user/productApproval.svg",
}, },
{ {
id: "2290e96d-c6d7-4dde-b5b7-e699b615ff2f", id:'2290e96d-c6d7-4dde-b5b7-e699b615ff2f',
name: "招商审批", name: '招商审批',
homeUrl: "/pages/investment/investment", homeUrl: '/pages/investment/investment',
notice:0, notice:0,
value: 3, value: 3,
isNotice:false, isNotice:false,
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/promotionApproval.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/user/promotionApproval.svg",
}, },
{ {
id: "c802a38f-3bbd-4db0-89b6-34e404c8d8cc", id:'c802a38f-3bbd-4db0-89b6-34e404c8d8cc',
name: "权限审批", name: '权限审批',
homeUrl: "/pages/authorityApproval/index", homeUrl: '/pages/authorityApproval/index',
notice:0, notice:0,
value: 3, value: 3,
isNotice:false, isNotice:false,
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/authorityApproval.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/user/authorityApproval.svg",
}, },
{ {
id: "b0b63a75-56c9-4f1d-aacb-a26e62b47e3e", id:'b0b63a75-56c9-4f1d-aacb-a26e62b47e3e',
name: "数据校验", name: '数据校验',
homeUrl: "/pages/dataSummary/dataSummary", homeUrl: '/pages/dataSummary/dataSummary',
notice:0, notice:0,
value: 3, value: 3,
isNotice:false, isNotice:false,
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/dataVerification.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/user/dataVerification.svg",
}, },
{ {
id: "b0b63a75-56c9-4f1d-aacb-a26e62b47e3e", id:'b0b63a75-56c9-4f1d-aacb-a26e62b47e3e',
name: "分润切换", name: '分润切换',
homeUrl: "/pages/projectWarning/index", homeUrl: '/pages/projectWarning/index',
notice:0, notice:0,
value: 3, value: 3,
isNotice:false, isNotice:false,
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/index/changeMoney.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/index/changeMoney.svg",
}, },
{ {
id: "a927bf4d-f924-4034-b964-d1a8bd401d09", id:'a927bf4d-f924-4034-b964-d1a8bd401d09',
name: "结算审批", name: '结算审批',
homeUrl: "/pages/settlementApproval/index", homeUrl: '/pages/settlementApproval/index',
notice:0, notice:0,
value: 3, value: 3,
isNotice:false, isNotice:false,
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/index/changeMoney.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/index/changeMoney.svg",
},
{
id: "632e1a7f-de9e-4553-b5c0-f1bc77abc08c",
name: "结算提单",
homeUrl: "/pages/billOfLading/index",
notice: 0,
value: 3,
isNotice: false,
imagePath:
"https://eshangtech.com/ShopICO/ahyd-BID/index/changeMoney.svg",
}, },
], ],
}, },
{ {
name: "现场管理", name: '现场管理',
value: 4, value: 4,
list: [ list: [
{ {
id: "", id:'',
name: "基础信息", name: '基础信息',
homeUrl: "/pages/map/detail?come=user", homeUrl: '/pages/map/detail?come=user',
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/basicInformation.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/user/basicInformation.svg",
isNotice:true, isNotice:true,
notice:0, notice:0,
type:0, type:0,
@ -327,11 +259,10 @@ export default {
value: 4, value: 4,
}, },
{ {
id: "30f0e7d0-4e01-4a63-a65b-613e1f427335", id:'30f0e7d0-4e01-4a63-a65b-613e1f427335',
name: "考评考核", name: '考评考核',
homeUrl: "/pages/examine/index", homeUrl: '/pages/examine/index',
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/assessment.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/user/assessment.svg",
isNotice:false, isNotice:false,
notice:0, notice:0,
summaryOfPortraits: true, summaryOfPortraits: true,
@ -339,21 +270,19 @@ export default {
value: 4, value: 4,
}, },
{ {
id: "d405ae13-3388-41c0-a5f6-d11194d0a943", id:'d405ae13-3388-41c0-a5f6-d11194d0a943',
name: "投诉建议", name: '投诉建议',
homeUrl: "/pages/suggestion/suggestion", homeUrl: '/pages/suggestion/suggestion',
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/complaintSuggest.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/user/complaintSuggest.svg",
isNotice:false, isNotice:false,
notice:0, notice:0,
value: 4, value: 4,
}, },
{ {
id: "ebd8cae4-d36d-4ea0-a7e9-61e566bf9e24", id:'ebd8cae4-d36d-4ea0-a7e9-61e566bf9e24',
name: "收银稽查", name: '收银稽查',
homeUrl: "/pages/cashAudit/list", homeUrl: '/pages/cashAudit/list',
imagePath: imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/cashierInspection.svg',
"https://eshangtech.com/ShopICO/ahyd-BID/user/cashierInspection.svg",
isNotice:false, isNotice:false,
notice:0, notice:0,
value: 4, value: 4,
@ -362,145 +291,132 @@ export default {
}, },
], ],
isTrue:false,// isTrue:false,//
special: false, special:false
}; };
}, },
components:{ components:{
userList, userList,Tabbar
Tabbar,
}, },
computed: { computed: {
...mapState({ ...mapState({
toDoMsg: (state) => { toDoMsg:(state)=>{return state.toDoMsg},
return state.toDoMsg; user: (state)=>{ return state.userData},
},
user: (state) => {
return state.userData;
},
phone: (state)=>{ phone: (state)=>{
let phoneStr = state.userData.Membership_Phone; let phoneStr = state.userData.Membership_Phone
if(phoneStr){ if(phoneStr){
return ( return phoneStr.substr(0,3)+' **** '+phoneStr.substr(phoneStr.length-2,phoneStr.length-1)
phoneStr.substr(0, 3) +
" **** " +
phoneStr.substr(phoneStr.length - 2, phoneStr.length - 1)
);
}else { }else {
return ""; return ''
} }
}, },
}),
})
}, },
onLoad(){ onLoad(){
// //
let systemInfo = uni.getSystemInfoSync(); let systemInfo = uni.getSystemInfoSync()
this.statusBarHeight = Number(systemInfo.statusBarHeight); this.statusBarHeight = Number(systemInfo.statusBarHeight)
// //
this.menu = uni.getMenuButtonBoundingClientRect(); this.menu = uni.getMenuButtonBoundingClientRect()
this.handleGetWarningList(); this.handleGetWarningList()
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 = uni.getStorageSync('vuex')
if ( if (userInfo.userData.AuthorityInfo['89a1f248-2113-4d57-84b1-c2e6edb9e8ee']===1){
userInfo.userData.AuthorityInfo[ this.isTrue = true
"89a1f248-2113-4d57-84b1-c2e6edb9e8ee"
] === 1
) {
this.isTrue = true;
}else{ }else{
this.isTrue = false; this.isTrue = false
uni.navigateTo({ uni.navigateTo({
url: `/pages/commercialBI/noData?type=index`, url:`/pages/commercialBI/noData?type=index`
}); })
} }
}, },
onShow(){ onShow(){
uni.hideTabBar(); uni.hideTabBar()
}, },
onUnload() { onUnload() {
this.$util.addUserBehavior(); this.$util.addUserBehavior()
}, },
methods:{ methods:{
...mapActions(["getTodoList"]), ...mapActions(['getTodoList']),
toPage(url) { toPage(url) {
if (this.isTrue === true){ if (this.isTrue === true){
this.$util.toNextRoute("navigateTo", url); this.$util.toNextRoute('navigateTo', url)
}else{ }else{
uni.showToast({ uni.showToast({
title: "暂无权限请联系管理员", title: '暂无权限请联系管理员',
icon: "none", icon: 'none'
}); })
} }
}, },
// //
handleGetPhone(value) { handleGetPhone(value) {
return value.substring(0, 3) + "****" + value.substring(7); return value.substring(0, 3) + '****' + value.substring(7)
}, },
handleGoEmpower(){ handleGoEmpower(){
this.$util.toNextRoute("navigateTo", "/pages/register/register"); this.$util.toNextRoute('navigateTo', '/pages/register/register')
}, },
handleNews(){ handleNews(){
if (this.special){ if (this.special){
this.$util.toNextRoute("navigateTo", "/pages/commercialBI/specialCase"); this.$util.toNextRoute('navigateTo', '/pages/commercialBI/specialCase')
} }
}, },
handleGetWarningList(){ handleGetWarningList(){
const date = new Date(); const date = new Date()
// //
let h = date.getHours() - 1; let h = date.getHours() - 1
const req= { const req= {
// this.single // this.single
StatisticsDate: this.lastDay, StatisticsDate: this.lastDay,
StatisticsHour:h, StatisticsHour:h,
StatisticsType:1, StatisticsType:1,
ShowCount: 20, ShowCount:20
};
request
.$webGet("CommercialApi/BigData/GetBayonetWarning", req)
.then((res) => {
if (res.Result_Data.List.length > 0) {
this.special = true;
} }
}); request.$webGet('CommercialApi/BigData/GetBayonetWarning',req).then(res=>{
if (res.Result_Data.List.length>0){
this.special = true
}
})
}, },
}, },
}; }
</script> </script>
<style scoped lang="scss"> <style scoped lang="scss">
@ -515,10 +431,9 @@ export default {
position: relative; position: relative;
.headerTop{ .headerTop{
width: 100%; width: 100%;
background: linear-gradient(260deg, #fea199 0%, #ffd6a7 100%); background: linear-gradient(260deg, #FEA199 0%, #FFD6A7 100%);
position: fixed; position: fixed;
top: 0; top: 0;left:0;
left: 0;
box-sizing: border-box; box-sizing: border-box;
padding: 0 15px; padding: 0 15px;
z-index:9999999; z-index:9999999;
@ -544,10 +459,9 @@ export default {
position: absolute; position: absolute;
width: 8px; width: 8px;
height: 8px; height: 8px;
background: #d7000f; background: #D7000F;
border-radius: 50%; border-radius: 50%;
right: 0; right:0;top: 4px;
top: 4px;
} }
} }
} }
@ -612,7 +526,7 @@ export default {
border-radius: 5px; border-radius: 5px;
overflow: hidden; overflow: hidden;
padding: 0 5px; padding: 0 5px;
border: 1px solid #fea001; border:1px solid #FEA001;
//background: linear-gradient(134deg, rgba(255, 165, 0, 1), rgba(220, 55, 7, 1)); //background: linear-gradient(134deg, rgba(255, 165, 0, 1), rgba(220, 55, 7, 1));
.personName { .personName {
display: flex; display: flex;
@ -651,11 +565,7 @@ export default {
.other { .other {
width: 100%; width: 100%;
height: 40px; height: 40px;
background: linear-gradient( background: linear-gradient(315deg, rgba(255, 141, 149, 0.2), rgba(255, 220, 168, 0.2));
315deg,
rgba(255, 141, 149, 0.2),
rgba(255, 220, 168, 0.2)
);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
@ -682,7 +592,7 @@ export default {
} }
} }
.item:first-child:after { .item:first-child:after {
content: ""; content: '';
width: 1px; width: 1px;
height: 24px; height: 24px;
background: #782717; background: #782717;
@ -738,13 +648,13 @@ export default {
} }
} }
.firstBg_1 { .firstBg_1 {
background: url("https://eshangtech.com/ShopICO/ahyd-BID/index/firstBg_1.png"); background: url('https://eshangtech.com/ShopICO/ahyd-BID/index/firstBg_1.png');
} }
.firstBg_2 { .firstBg_2 {
background: url("https://eshangtech.com/ShopICO/ahyd-BID/index/firstBg_2.png"); background: url('https://eshangtech.com/ShopICO/ahyd-BID/index/firstBg_2.png');
} }
.firstBg_3 { .firstBg_3 {
background: url("https://eshangtech.com/ShopICO/ahyd-BID/index/firstBg_3.png"); background: url('https://eshangtech.com/ShopICO/ahyd-BID/index/firstBg_3.png');
} }
} }
.second { .second {

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -0,0 +1,44 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>商业bi/车流画像备份_3@2x</title>
<defs>
<linearGradient x1="-1.11022302e-14%" y1="50%" x2="100%" y2="50%" id="linearGradient-1">
<stop stop-color="#30C8ED" offset="0%"></stop>
<stop stop-color="#0B9353" offset="100%"></stop>
</linearGradient>
<linearGradient x1="100%" y1="50%" x2="0%" y2="50%" id="linearGradient-2">
<stop stop-color="#30C8ED" offset="0%"></stop>
<stop stop-color="#0B9353" offset="100%"></stop>
</linearGradient>
<path d="M17,18 C18.6568542,18 20,19.3431458 20,21 L20,22 L12,22 L12,21 C12,19.3431458 13.3431458,18 15,18 L17,18 Z M16,13 C17.1045695,13 18,13.8954305 18,15 C18,16.1045695 17.1045695,17 16,17 C14.8954305,17 14,16.1045695 14,15 C14,13.8954305 14.8954305,13 16,13 Z" id="path-3"></path>
<filter x="-75.0%" y="-66.7%" width="250.0%" height="233.3%" filterUnits="objectBoundingBox" id="filter-4">
<feOffset dx="0" dy="0" in="SourceAlpha" result="shadowOffsetOuter1"></feOffset>
<feGaussianBlur stdDeviation="2" in="shadowOffsetOuter1" result="shadowBlurOuter1"></feGaussianBlur>
<feColorMatrix values="0 0 0 0 0.0549019608 0 0 0 0 0.592156863 0 0 0 0 0.368627451 0 0 0 1 0" type="matrix" in="shadowBlurOuter1"></feColorMatrix>
</filter>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-5">
<stop stop-color="#C3F4FF" offset="0%"></stop>
<stop stop-color="#B9FFEC" offset="100%"></stop>
</linearGradient>
<linearGradient x1="50%" y1="0%" x2="50%" y2="100%" id="linearGradient-6">
<stop stop-color="#C3F4FF" offset="0%"></stop>
<stop stop-color="#B9FFEC" offset="100%"></stop>
</linearGradient>
</defs>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="驿达小程序-首页0311" transform="translate(-259.000000, -2228.000000)">
<g id="编组-32" transform="translate(115.000000, 2228.000000)">
<g id="编组" transform="translate(144.000000, 0.000000)">
<circle id="椭圆形" fill="url(#linearGradient-1)" cx="16" cy="16" r="15"></circle>
<path d="M15.0008365,1.03285964 C22.8184728,1.5478546 29,8.05204078 29,16 C29,23.9479592 22.8184728,30.4521454 15.0008365,30.9671404 C7.18205513,30.4527008 1,23.9482986 1,16 C1,8.13518552 7.05287201,1.68409506 14.7543616,1.05098303 Z" id="形状结合" fill="url(#linearGradient-2)"></path>
<g id="形状结合">
<use fill="black" fill-opacity="1" filter="url(#filter-4)" xlink:href="#path-3"></use>
<use fill="#EAFBFF" fill-rule="evenodd" xlink:href="#path-3"></use>
</g>
<rect id="矩形" fill="url(#linearGradient-5)" transform="translate(22.303301, 22.303301) rotate(-45.000000) translate(-22.303301, -22.303301) " x="21.3033009" y="19.8033009" width="2" height="5" rx="1"></rect>
<circle id="椭圆形" stroke="url(#linearGradient-6)" stroke-width="2" cx="16" cy="16" r="7"></circle>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>首页图标/本月计划备份_2@2x</title>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="驿达小程序-首页0311" transform="translate(-315.000000, -2176.000000)">
<g id="分润门店" transform="translate(315.000000, 2176.000000)">
<rect id="矩形" stroke="#EDDFDF" stroke-width="2" x="8" y="3" width="9" height="11" rx="4.5"></rect>
<rect id="矩形" fill="#E3D2D2" x="2" y="9" width="21" height="20" rx="2"></rect>
<circle id="椭圆形" fill="#DF6866" cx="24.02" cy="22.02" r="7.02"></circle>
<path d="M9.5,14 C9.5,15.6568542 10.8431458,17 12.5,17 C14.1568542,17 15.5,15.6568542 15.5,14" id="路径" stroke="#FFFFFF" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path>
<path d="M23.000061,15.0735562 L23,27 C23,27.7460616 22.5914971,28.3967122 21.9859636,28.7404796 C19.1004411,27.8683451 17,25.1894647 17,22.02 C17,18.4893739 19.6064063,15.5675067 23.000061,15.0735562 Z" id="形状结合" fill="#92066B"></path>
<path d="M24.02,17.4540667 C24.3182338,17.4540667 24.56,17.6958329 24.56,17.9940667 L24.56,18.6010667 L25.613,18.6015667 C25.9261455,18.6015667 26.18,18.8554213 26.18,19.1685667 L26.18,19.1820667 C26.18,19.4952122 25.9261455,19.7490667 25.613,19.7490667 L23.66,19.7490667 C23.2804298,19.7490667 22.9694606,20.06114 22.9419749,20.4569739 L22.94,20.5140667 L22.94,20.7053167 C22.94,21.1086101 23.233716,21.4390149 23.6062656,21.4682184 L23.66,21.4703167 L24.739,21.4695667 L24.7400138,21.5085766 C25.5616134,21.6857832 26.18,22.4575705 26.18,23.3828167 L26.18,23.5740667 C26.18,24.565435 25.4700701,25.3806269 24.5609067,25.4770278 L24.56,26.0940667 C24.56,26.3923005 24.3182338,26.6340667 24.02,26.6340667 C23.7217662,26.6340667 23.48,26.3923005 23.48,26.0940667 L23.48,25.4860667 L22.427,25.4865667 C22.1138545,25.4865667 21.86,25.2327122 21.86,24.9195667 L21.86,24.9060667 C21.86,24.5929213 22.1138545,24.3390667 22.427,24.3390667 L22.733,24.3390667 L22.746,24.3405667 L24.38,24.3390667 C24.7595702,24.3390667 25.0705394,24.0269934 25.0980251,23.6311596 L25.1,23.5740667 L25.1,23.3828167 C25.1,22.9795233 24.806284,22.6491185 24.4337344,22.619915 L24.38,22.6178167 L23.301,22.61862 L23.3009863,22.5797722 C22.4788884,22.4029764 21.86,21.6309383 21.86,20.7053167 L21.86,20.5140667 C21.86,19.522334 22.570452,18.7069071 23.4800961,18.6109996 L23.48,17.9940667 C23.48,17.6958329 23.7217662,17.4540667 24.02,17.4540667 Z" id="形状结合" fill="#FFFFFF"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="32px" height="32px" viewBox="0 0 32 32" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>首页图标/本月计划备份_17@2x</title>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="驿达小程序-首页0311" transform="translate(-363.000000, -2176.000000)">
<g id="首页图标/本月计划备份-17" transform="translate(363.000000, 2176.000000)">
<g id="编组-3" transform="translate(0.000000, 3.000000)">
<circle id="椭圆形" fill="#E3D2D2" cx="13" cy="13" r="13"></circle>
<path d="M12.6666667,5.375 C13.1499158,5.375 13.5416667,5.76675084 13.5416667,6.25 L13.5416667,7.25 L15.2291667,7.25 C15.7469336,7.25 16.1666667,7.66973305 16.1666667,8.1875 C16.1666667,8.70526695 15.7469336,9.125 15.2291667,9.125 L14.9996667,9.124 L14.9996667,9.125 L12.0833333,9.125 C11.468289,9.125 10.9644037,9.63492362 10.9198667,10.281711 L10.9166667,10.375 L10.9166667,10.6875 C10.9166667,11.3464761 11.3925954,11.8863532 11.9962636,11.9340714 L12.0833333,11.9375 L13.8326667,11.937 L13.8333159,12.0000075 C15.1646314,12.2895443 16.1666667,13.5506447 16.1666667,15.0625 L16.1666667,15.375 C16.1666667,16.9951189 15.015982,18.3272841 13.5424917,18.4844823 L13.5416667,19.5 C13.5416667,19.9832492 13.1499158,20.375 12.6666667,20.375 C12.1834175,20.375 11.7916667,19.9832492 11.7916667,19.5 L11.7916667,18.499 L10.1041667,18.5 C9.58639971,18.5 9.16666667,18.080267 9.16666667,17.5625 C9.16666667,17.044733 9.58639971,16.625 10.1041667,16.625 L13.25,16.625 C13.8650444,16.625 14.3689297,16.1150764 14.4134667,15.468289 L14.4166667,15.375 L14.4166667,15.0625 C14.4166667,14.4035239 13.940738,13.8636468 13.3370697,13.8159286 L13.25,13.8125 L11.5006667,13.813 L11.5000175,13.7499925 C10.1687019,13.4604557 9.16666667,12.1993553 9.16666667,10.6875 L9.16666667,10.375 C9.16666667,8.75451636 10.3178695,7.42211611 11.7918368,7.26541167 L11.7916667,6.25 C11.7916667,5.76675084 12.1834175,5.375 12.6666667,5.375 Z" id="形状结合" fill="#FFFFFF"></path>
<path d="M23,11.5 C23,10.1192881 24.1192881,9 25.5,9 C26.8807119,9 28,10.1192881 28,11.5 L28,12 L29.630178,12 C30.4059829,12 31.0537798,12.5915776 31.1240179,13.3641964 L31.8512906,21.3641964 C31.9262928,22.1892213 31.3182793,22.9188375 30.4932544,22.9938398 C30.4481029,22.9979445 30.4027885,23 30.3574508,23 L20.6425492,23 C19.8141221,23 19.1425492,22.3284271 19.1425492,21.5 C19.1425492,21.4546623 19.1446047,21.4093479 19.1487094,21.3641964 L19.8759821,13.3641964 C19.9462202,12.5915776 20.5940171,12 21.369822,12 L23,12 L23,11.5 Z" id="形状结合" fill="#1FB6C3"></path>
<path d="M25.3743318,9.00412115 C25.7805581,10.2630557 26,11.6059011 26,13 C26,17.0210992 24.1743311,20.6157906 21.3066705,23.0003971 L20.6425492,23 C19.8141221,23 19.1425492,22.3284271 19.1425492,21.5 C19.1425492,21.4546623 19.1446047,21.4093479 19.1487094,21.3641964 L19.8759821,13.3641964 C19.9462202,12.5915776 20.5940171,12 21.369822,12 L23,12 L23,11.5 C23,10.1745166 24.0315359,9.08996133 25.3356243,9.00531768 Z" id="形状结合" fill="#057962"></path>
</g>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

BIN
static/images/leave/qy.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>首页@3x</title>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="驿达小程序-个人中心0311" transform="translate(-188.000000, -1626.000000)">
<g id="编组" transform="translate(188.000000, 1626.000000)">
<path d="M12,2.5 C13.3807119,2.5 14.6307119,3.05964406 15.5355339,3.96446609 C16.4403559,4.86928813 17,6.11928813 17,7.5 C17,8.88071187 16.4403559,10.1307119 15.5355339,11.0355339 C14.6307119,11.9403559 13.3807119,12.5 12,12.5 C10.6192881,12.5 9.36928813,11.9403559 8.46446609,11.0355339 C7.55964406,10.1307119 7,8.88071187 7,7.5 C7,6.11928813 7.55964406,4.86928813 8.46446609,3.96446609 C9.36928813,3.05964406 10.6192881,2.5 12,2.5 Z" id="椭圆形" stroke="#D7000F" stroke-width="2"></path>
<rect id="矩形" fill="#D7000F" opacity="0.5" x="10" y="5.5" width="1.5" height="3" rx="0.75"></rect>
<rect id="矩形备份" fill="#D7000F" opacity="0.5" x="13" y="5.5" width="1.5" height="3" rx="0.75"></rect>
<path d="M16.9688711,15.5 C17.8681781,15.5 18.6971182,15.8348275 19.3291179,16.3927455 C19.9611176,16.9506636 20.3961768,17.7316723 20.5077221,18.6240347 L20.5077221,18.6240347 L20.7267134,20.3759653 C20.7609647,20.6499752 20.6809089,20.9119278 20.5237878,21.1139406 C20.376461,21.3033607 20.1613774,21.4400811 19.9092393,21.4846273 L19.9092393,21.4846273 L4.26556444,21.5 C3.98942206,21.5 3.73942206,21.3880712 3.55845766,21.2071068 C3.38815575,21.0368049 3.27899389,20.8053629 3.26672139,20.5485303 L3.26672139,20.5485303 L3.49227788,18.6240347 C3.60382318,17.7316723 4.03888243,16.9506636 4.6708821,16.3927455 C5.30288177,15.8348275 6.13182186,15.5 7.03112887,15.5 L7.03112887,15.5 Z" id="矩形" stroke="#D7000F" stroke-width="2"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<title>首页备份@3x</title>
<g id="页面-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g id="驿达小程序-个人中心0311" transform="translate(-228.000000, -1626.000000)">
<g id="编组" transform="translate(228.000000, 1626.000000)">
<path d="M12,2.5 C13.3807119,2.5 14.6307119,3.05964406 15.5355339,3.96446609 C16.4403559,4.86928813 17,6.11928813 17,7.5 C17,8.88071187 16.4403559,10.1307119 15.5355339,11.0355339 C14.6307119,11.9403559 13.3807119,12.5 12,12.5 C10.6192881,12.5 9.36928813,11.9403559 8.46446609,11.0355339 C7.55964406,10.1307119 7,8.88071187 7,7.5 C7,6.11928813 7.55964406,4.86928813 8.46446609,3.96446609 C9.36928813,3.05964406 10.6192881,2.5 12,2.5 Z" id="椭圆形" stroke="#A69E9F" stroke-width="2"></path>
<rect id="矩形" fill="#A69E9F" opacity="0.5" x="10" y="5.5" width="1.5" height="3" rx="0.75"></rect>
<rect id="矩形备份" fill="#A69E9F" opacity="0.5" x="13" y="5.5" width="1.5" height="3" rx="0.75"></rect>
<path d="M16.9688711,15.5 C17.8681781,15.5 18.6971182,15.8348275 19.3291179,16.3927455 C19.9611176,16.9506636 20.3961768,17.7316723 20.5077221,18.6240347 L20.5077221,18.6240347 L20.7267134,20.3759653 C20.7609647,20.6499752 20.6809089,20.9119278 20.5237878,21.1139406 C20.376461,21.3033607 20.1613774,21.4400811 19.9092393,21.4846273 L19.9092393,21.4846273 L4.26556444,21.5 C3.98942206,21.5 3.73942206,21.3880712 3.55845766,21.2071068 C3.38815575,21.0368049 3.27899389,20.8053629 3.26672139,20.5485303 L3.26672139,20.5485303 L3.49227788,18.6240347 C3.60382318,17.7316723 4.03888243,16.9506636 4.6708821,16.3927455 C5.30288177,15.8348275 6.13182186,15.5 7.03112887,15.5 L7.03112887,15.5 Z" id="矩形" stroke="#A69E9F" stroke-width="2"></path>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

View File

@ -20,6 +20,7 @@ export default {
* @return {Promise} promise 返回promise供后续操作 * @return {Promise} promise 返回promise供后续操作
*/ */
request: function(method, url, data, isWebApi) { request: function(method, url, data, isWebApi) {
var promise = new Promise((resolve, reject) => { var promise = new Promise((resolve, reject) => {
//init //init
Store.state.isLoading = true Store.state.isLoading = true
@ -34,6 +35,8 @@ export default {
data.memberShipId = !data.memberShipId ? (Store.state.userData.Membership_Id || '') : data.memberShipId = !data.memberShipId ? (Store.state.userData.Membership_Id || '') :
data.memberShipId // ||'3255' 1170386 1125717 // data.memberShipId // ||'3255' 1170386 1125717 //
let requstOptions = { let requstOptions = {
url: url, url: url,
data: data, data: data,
@ -53,6 +56,7 @@ export default {
} }
} }
} }
if (method == 'POST' && !isWebApi) { if (method == 'POST' && !isWebApi) {
requstOptions.header = { requstOptions.header = {
'content-type': 'application/x-www-form-urlencoded;charset=utf-8', 'content-type': 'application/x-www-form-urlencoded;charset=utf-8',
@ -70,8 +74,7 @@ export default {
'ModuleGuid':ModuleGuid, 'ModuleGuid':ModuleGuid,
'WeChat_AppId' : 'wxa99ef047735c031e', 'WeChat_AppId' : 'wxa99ef047735c031e',
'memberShipId' : !data.memberShipId ? (Store.state.userData.Membership_Id || '') :data.memberShipId, 'memberShipId' : !data.memberShipId ? (Store.state.userData.Membership_Id || '') :data.memberShipId,
'SourcePlatform': 'minProgram', 'SourcePlatform': 'minProgram'
"UserId": Store.state.userData.UserId,
} }
} }
requstOptions.success = (res) => { requstOptions.success = (res) => {