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

View File

@ -229,7 +229,7 @@ h4 {
background-image: url('/static/images/expense/rzlx.png');
}
.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{
background-image: url('/static/images/expense/dw.png');
@ -274,7 +274,7 @@ h4 {
background-image: url('/static/images/tender/lxr.png');
}
.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{
background-image: url('/static/images/expense/zcmc.png');

View File

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

View File

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

View File

@ -1,138 +1,296 @@
<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="item.type===1?'item itemLeft':'item rightItem'" v-for="(item,index) in dialogueList" :key="index" :style="{marginTop: index!==0?'8px':''}">
<text :id="'printBox' + index" :class="item.type===1?`dialogItem white`:`dialogItem green`">
{{ item.text || '' }}
</text>
<view
:class="item.type === 1 ? 'item itemLeft' : 'item rightItem'"
v-for="(item, index) in dialogueList"
: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 class="loadingBox" v-if="isLoading">
小驿分析中...
</view>
</view>
<view class="loadingBox" v-if="isLoading"> 小驿分析中... </view>
</view>
<view class="inputBox">
<textarea class="searchText" :value="searchText" @input="handleInput"/>
<view class="searchBtn" @click="handleSubmit">
发送
</view>
</view>
<image
class="microphone"
src="https://eshangtech.com/ShopICO/ahyd-BID/robot/microphone.png"
/>
<div class="textBox">
<textarea
class="searchText"
:value="searchText"
@input="handleInput"
placeholder="有问题尽管问我~"
/>
</div>
<view class="searchBtn" @click="handleSubmit"> 发送 </view>
</view>
</view> -->
</template>
<script >
import request from '@/util/index.js'
import request from "@/util/index.js";
export default {
data() {
return {
searchText:'',
dialogueList:[],// list type 1 2
printText:'',
searchText: "",
dialogueList: [], // list type 1 2 searchType default
printText: "",
isLoading: false, //
}
useInfo: {},
menu: {},
};
},
onLoad() {
this.dialogueList.push({text:`您好!我是服务区商业智能助理小驿。\n您想了解服务区哪些方面的信息`,type:1})
this.handlePrintText()
this.menu = uni.getMenuButtonBoundingClientRect();
console.log("menu", this.menu);
this.dialogueList.push({
text: `您好!我是服务区商业智能助理小驿。\n您想了解服务区哪些方面的信息`,
type: 1,
searchType: "default",
});
this.handlePrintText();
// this.printText = `驿<br>`
},
methods: {
handleSubmit() {
let list = this.dialogueList
console.log('this.searchText',this.searchText)
let list = this.dialogueList;
console.log("this.searchText", this.searchText);
if (this.searchText) {
list.push({text:this.searchText,type:2})
this.dialogueList = list
this.$forceUpdate()
this.handleGetData()
this.searchText= ''
list.push({ text: this.searchText, type: 2 });
this.dialogueList = list;
this.$forceUpdate();
this.handleGetData();
this.searchText = "";
}
},
//
handleInput(e) {
console.log('e',e)
this.searchText = e.detail.value
console.log("e", e);
this.searchText = e.detail.value;
},
//
async handleGetData() {
this.isLoading = true
const data = await request.$webGet('CommercialApi/Analysis/TranslateSentence',{Sentence: this.searchText})
console.log('data',data)
this.isLoading = true;
const data = await request.$webGet(
"CommercialApi/Analysis/TranslateSentence",
{ Sentence: this.searchText }
);
console.log("data", data);
if (data.Result_Code === 999) {
this.dialogueList.push({text:`'小驿还无法理解,请换个说法我会不停努力学习的!'`,type:1})
this.dialogueList.push({
text: `'小驿还无法理解,请换个说法我会不停努力学习的!'`,
type: 1,
});
} else {
let str = data.Result_Data.RevenueAnalysis + '\n'
let list = data.Result_Data.ServerpartList
let str = data.Result_Data.RevenueAnalysis + "\n";
let list = data.Result_Data.ServerpartList;
if (list && list.length > 0) {
list.forEach(item=>{
let obj = item['RevenueINC']
list.forEach((item) => {
let obj = item["RevenueINC"];
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 {
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() {
const query = wx.createSelectorQuery();
const contentBox = query.select(`#printBox${this.dialogueList && this.dialogueList.length>0? this.dialogueList.length - 1:0}`)
console.log('contentBox',contentBox)
const contentBox = query.select(
`#printBox${
this.dialogueList && this.dialogueList.length > 0
? this.dialogueList.length - 1
: 0
}`
);
console.log("contentBox", contentBox);
},
formatNumber(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) {
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}`;
}
}
}
},
},
};
</script>
<style scoped lang="scss">
.main {
width: 100%;
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 {
width: 100%;
height: calc(100vh - 90px);
overflow-y: scroll;
box-sizing: border-box;
padding: 12px;
padding: 32rpx;
.item {
display: flex;
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 {
max-width: calc(100vw - 64rpx);
display: block;
max-width: 80vw;
box-sizing: border-box;
padding: 4px;
padding: 24rpx 32rpx;
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 {
border: 1px solid #ccc;
background: #fff;
color: #000;
}
.green {
background: #12A153FF;
background: #12a153ff;
color: #fff;
}
}
@ -152,24 +310,29 @@ export default {
}
.inputBox {
width: 100%;
height: 80px;
background: hsla(0,0%,97%,.98);
border-top: 1px solid #ccc;
height: 180rpx;
background: #fff;
position: fixed;
left: 0;
bottom: 0;
box-sizing: border-box;
padding: 0 8px 4px;
padding: 16rpx 32rpx;
padding-bottom: env(safe-area-inset-bottom);
display: flex;
align-items: center;
.microphone {
width: 48rpx;
height: 48rpx;
margin-right: 16rpx;
}
.textBox {
width: calc(100% - 64rpx);
height: 88rpx;
background: #f2f3f7;
border-radius: 44rpx;
}
.searchText {
background: #fff;
flex: 1;
height: 40px;
box-sizing: border-box;
border-radius: 8px;
padding: 4px 8px 0;
font-size: 14px;
}
.searchBtn {
width: 80px;

View File

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

View File

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