This commit is contained in:
cclu 2025-01-08 18:58:48 +08:00
parent 86fba076cc
commit f3a17650cd
16 changed files with 12485 additions and 5359 deletions

107
App.vue
View File

@ -1,92 +1,87 @@
<script> <script>
import Vue from 'vue' import Vue from "vue";
import util from '@/common/utils' import util from "@/common/utils";
import { import { mapGetters, mapActions, mapMutations } from "vuex";
mapGetters,
mapActions,
mapMutations
} from 'vuex'
export default { export default {
computed: { computed: {
...mapGetters({'user':'getUser'}) ...mapGetters({ user: "getUser" }),
}, },
methods: { methods: {
...mapActions(["memberLogin", "getLoginCode"]),
...mapActions(['memberLogin','getLoginCode']), ...mapMutations(["setVisitChannels"]),
...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 = custom.bottom + custom.top - e.statusBarHeight; Vue.prototype.CustomBar =
Vue.prototype.pageWindowHeight = e.screenHeight-custom.bottom - custom.top + e.statusBarHeight;; 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.handleGetUserInfo() this.$util.addUserBehavior({
intoRoute: "/" + options.path,
this.$util.addUserBehavior( {intoRoute: '/'+options.path, outtoRoute: ''}) // 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) {
@ -97,16 +92,16 @@
// 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>
@ -118,7 +113,6 @@
height: 100%; height: 100%;
background-color: #f8f9fb; background-color: #f8f9fb;
line-height: 1.2; line-height: 1.2;
} }
/* 加载更多 */ /* 加载更多 */
@ -135,18 +129,17 @@
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;
@ -163,15 +156,15 @@
} }
.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 */
@ -195,15 +188,15 @@
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;
} }

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('/static/images/expense/khyh.png'); background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/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');
@ -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('/static/images/expense/zcyz.png'); background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/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');

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('/static/images/tender/zbr.png'); background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/tender/zbr.png');
} }
.ico-jdr:before{ .ico-jdr:before{
background-image: url('/static/images/tender/jdr.png'); background-image: url('https://eshangtech.com/ShopICO/ahyd-BID/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');

View File

@ -2,8 +2,7 @@
"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
@ -11,23 +10,20 @@
}, },
{ {
"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": "驿达数智化看板"
} }
} }
@ -35,21 +31,18 @@
"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": "权限审批",
@ -58,8 +51,7 @@
}, },
{ {
"path": "detail", "path": "detail",
"style": "style": {
{
"navigationBarTitleText": "权限审批", "navigationBarTitleText": "权限审批",
"enablePullDownRefresh": true "enablePullDownRefresh": true
} }
@ -68,8 +60,7 @@
}, },
{ {
"root": "pages/merchantAccount", "root": "pages/merchantAccount",
"pages": [ "pages": [{
{
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
@ -87,26 +78,22 @@
}, },
{ {
"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": "年度结算"
} }
} }
@ -114,32 +101,27 @@
}, },
{ {
"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": "驳回"
} }
} }
@ -148,8 +130,7 @@
{ {
"root": "pages/nationalPage", "root": "pages/nationalPage",
"pages": [ "pages": [{
{
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
@ -172,16 +153,14 @@
}, },
{ {
"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,
@ -190,16 +169,14 @@
}, },
{ {
"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,
@ -210,8 +187,7 @@
}, },
{ {
"root": "pages/earlyWarning", "root": "pages/earlyWarning",
"pages": [ "pages": [{
{
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
@ -249,8 +225,7 @@
}, },
{ {
"root": "pages/revenue", "root": "pages/revenue",
"pages": [ "pages": [{
{
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
@ -275,8 +250,7 @@
}, },
{ {
"root": "pages/revenueStatistics", "root": "pages/revenueStatistics",
"pages": [ "pages": [{
{
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
@ -301,20 +275,17 @@
}, },
{ {
"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": "",
@ -333,15 +304,13 @@
}, },
{ {
"root": "pages/summaryOfPortraits", "root": "pages/summaryOfPortraits",
"pages": [ "pages": [{
{
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
} }]
]
}, },
{ // BI { // BI
@ -457,15 +426,13 @@
{ {
// //
"root": "pages/projectProfitSharing", "root": "pages/projectProfitSharing",
"pages": [ "pages": [{
{
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
"navigationStyle": "custom" "navigationStyle": "custom"
} }
} }]
]
}, },
{ {
@ -491,8 +458,7 @@
// //
{ {
"root": "pages/examine", "root": "pages/examine",
"pages": [ "pages": [{
{
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "", "navigationBarTitleText": "",
@ -511,8 +477,7 @@
}, },
{ {
"root": "pages/projectWarning", "root": "pages/projectWarning",
"pages": [ "pages": [{
{
"path": "index", "path": "index",
"style": { "style": {
"navigationBarTitleText": "分润比例切换" "navigationBarTitleText": "分润比例切换"
@ -529,31 +494,26 @@
}, },
{ {
"root": "pages/robot", "root": "pages/robot",
"pages": [ "pages": [{
{
"path": "index", "path": "index",
"style": "style": {
{ "navigationBarTitleText": "数智助手",
"navigationBarTitleText": "数智助手" "navigationStyle": "custom"
} }
} }]
]
}, },
{ {
"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
@ -568,11 +528,9 @@
}, },
{ {
"root": "pages/operatingStatements", "root": "pages/operatingStatements",
"pages": [ "pages": [{
{
"path": "index", "path": "index",
"style": "style": {
{
"navigationBarTitleText": "经营报表", "navigationBarTitleText": "经营报表",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#647BD1", "navigationBarBackgroundColor": "#647BD1",
@ -581,8 +539,7 @@
}, },
{ {
"path": "detail", "path": "detail",
"style": "style": {
{
"navigationBarTitleText": "经营报表", "navigationBarTitleText": "经营报表",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#647BD1", "navigationBarBackgroundColor": "#647BD1",
@ -591,8 +548,7 @@
}, },
{ {
"path": "operatingTrend", "path": "operatingTrend",
"style": "style": {
{
"navigationBarTitleText": "经营趋势", "navigationBarTitleText": "经营趋势",
"enablePullDownRefresh": false, "enablePullDownRefresh": false,
"navigationBarBackgroundColor": "#647BD1", "navigationBarBackgroundColor": "#647BD1",
@ -603,40 +559,34 @@
}, },
{ {
"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
} }
@ -645,19 +595,16 @@
}, },
{ {
"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": ""
} }
@ -666,27 +613,23 @@
}, },
{ {
"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": "日结校验"
} }
} }
@ -694,19 +637,16 @@
}, },
{ {
"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": "商品审批"
} }
} }
@ -714,51 +654,44 @@
}, },
{ {
"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
} }
@ -767,19 +700,16 @@
}, },
{ {
"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": "投诉建议"
} }
} }
@ -787,19 +717,16 @@
}, },
{ {
"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": "合同审批"
} }
} }
@ -807,26 +734,22 @@
}, },
{ {
"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": "收银稽核反馈"
} }
} }
@ -834,19 +757,16 @@
}, },
{ {
"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": "招商审批"
} }
} }
@ -854,19 +774,16 @@
}, },
{ {
"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": "财务审批"
} }
@ -875,19 +792,16 @@
}, },
{ {
"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": "资质审批"
} }
@ -906,8 +820,7 @@
"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",

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

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

@ -1,138 +1,296 @@
<template> <template>
<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 :class="item.type===1?'item itemLeft':'item rightItem'" v-for="(item,index) in dialogueList" :key="index" :style="{marginTop: index!==0?'8px':''}"> <view
<text :id="'printBox' + index" :class="item.type===1?`dialogItem white`:`dialogItem green`"> :class="item.type === 1 ? 'item itemLeft' : 'item rightItem'"
{{ item.text || '' }} v-for="(item, index) in dialogueList"
</text> :key="index"
: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">
<textarea class="searchText" :value="searchText" @input="handleInput"/> <image
<view class="searchBtn" @click="handleSubmit"> class="microphone"
发送 src="https://eshangtech.com/ShopICO/ahyd-BID/robot/microphone.png"
</view> />
</view> <div class="textBox">
<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 dialogueList: [], // list type 1 2 searchType default
printText:'', printText: "",
isLoading: false, // isLoading: false, //
} useInfo: {},
menu: {},
};
}, },
onLoad() { onLoad() {
this.dialogueList.push({text:`您好!我是服务区商业智能助理小驿。\n您想了解服务区哪些方面的信息`,type:1}) this.menu = uni.getMenuButtonBoundingClientRect();
this.handlePrintText() console.log("menu", this.menu);
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('CommercialApi/Analysis/TranslateSentence',{Sentence: this.searchText}) const data = await request.$webGet(
console.log('data',data) "CommercialApi/Analysis/TranslateSentence",
{ Sentence: this.searchText }
);
console.log("data", data);
if (data.Result_Code === 999) { if (data.Result_Code === 999) {
this.dialogueList.push({text:`'小驿还无法理解,请换个说法我会不停努力学习的!'`,type:1}) this.dialogueList.push({
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 list = data.Result_Data.ServerpartList;
if (list && list.length > 0) { if (list && list.length > 0) {
list.forEach(item=>{ list.forEach((item) => {
let obj = item['RevenueINC'] let obj = item["RevenueINC"];
if (str) { if (str) {
str+=`${item.ServerpartName}${this.formatNumber(obj.curYearData / 10000)}万元${obj.increaseRate>0?',同比增幅':obj.increaseRate<0?'同比降幅':''}${obj.increaseRate ||''}\n` str += `${item.ServerpartName}${this.formatNumber(
obj.curYearData / 10000
)}万元${
obj.increaseRate > 0
? ",同比增幅"
: obj.increaseRate < 0
? ",同比降幅"
: ""
}${obj.increaseRate || ""}\n`;
} else { } else {
str = `${item.ServerpartName}${this.formatNumber(obj.curYearData / 10000)}万元${obj.increaseRate>0?',同比同比增幅':obj.increaseRate<0?'同比降幅':''}${obj.increaseRate || ''}\n` str = `${item.ServerpartName}${this.formatNumber(
obj.curYearData / 10000
)}万元${
obj.increaseRate > 0
? ",同比同比增幅"
: obj.increaseRate < 0
? ",同比降幅"
: ""
}${obj.increaseRate || ""}\n`;
} }
}) });
} }
this.dialogueList.push({text: str,type:1}) this.dialogueList.push({ text: str, type: 1 });
} }
this.isLoading = false this.isLoading = false;
}, },
// //
handlePrintText() { handlePrintText() {
const query = wx.createSelectorQuery(); const query = wx.createSelectorQuery();
const contentBox = query.select(`#printBox${this.dialogueList && this.dialogueList.length>0? this.dialogueList.length - 1:0}`) const contentBox = query.select(
console.log('contentBox',contentBox) `#printBox${
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: 12px; padding: 32rpx;
.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: 4px; padding: 24rpx 32rpx;
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;
} }
} }
@ -152,24 +310,29 @@ export default {
} }
.inputBox { .inputBox {
width: 100%; width: 100%;
height: 80px; height: 180rpx;
background: hsla(0,0%,97%,.98); background: #fff;
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: 0 8px 4px; padding: 16rpx 32rpx;
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

@ -1263,6 +1263,8 @@ 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)
@ -1385,6 +1387,14 @@ 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

@ -107,11 +107,16 @@ 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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB