update
This commit is contained in:
parent
883029c818
commit
c8aa5edef1
@ -127,7 +127,8 @@ function noDecimal(s){
|
|||||||
fuhao = '-'
|
fuhao = '-'
|
||||||
}
|
}
|
||||||
s = parseFloat((s + "").replace(/[^\d\.-]/g, "")) + ""
|
s = parseFloat((s + "").replace(/[^\d\.-]/g, "")) + ""
|
||||||
let l = s.split(".")[0].split("").reverse(), r = s.split(".")[1];
|
let l = s.split(".")[0].split("").reverse(),
|
||||||
|
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 ? "," : "");
|
||||||
@ -144,11 +145,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,
|
||||||
@ -161,6 +162,17 @@ 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) {
|
||||||
|
|
||||||
@ -200,6 +212,7 @@ function addUserBehavior(obj) {
|
|||||||
|
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
function addUserBehaviorNew(obj) {
|
function addUserBehaviorNew(obj) {
|
||||||
|
|
||||||
var pages = getCurrentPages() // 获取加载的页面
|
var pages = getCurrentPages() // 获取加载的页面
|
||||||
@ -270,10 +283,19 @@ function getThisMonthDay(value){
|
|||||||
flag = true
|
flag = true
|
||||||
}
|
}
|
||||||
switch (m) {
|
switch (m) {
|
||||||
case 1: case 3: case 5: case 7: case 8: case 10: case 12:
|
case 1:
|
||||||
|
case 3:
|
||||||
|
case 5:
|
||||||
|
case 7:
|
||||||
|
case 8:
|
||||||
|
case 10:
|
||||||
|
case 12:
|
||||||
howDay = 31
|
howDay = 31
|
||||||
break
|
break
|
||||||
case 4: case 6: case 9: case 11:
|
case 4:
|
||||||
|
case 6:
|
||||||
|
case 9:
|
||||||
|
case 11:
|
||||||
howDay = 30
|
howDay = 30
|
||||||
break
|
break
|
||||||
case 2:
|
case 2:
|
||||||
@ -361,10 +383,19 @@ function getThisMonthDateList(value){
|
|||||||
flag = true
|
flag = true
|
||||||
}
|
}
|
||||||
switch (m) {
|
switch (m) {
|
||||||
case 1: case 3: case 5: case 7: case 8: case 10: case 12:
|
case 1:
|
||||||
|
case 3:
|
||||||
|
case 5:
|
||||||
|
case 7:
|
||||||
|
case 8:
|
||||||
|
case 10:
|
||||||
|
case 12:
|
||||||
howDay = 31
|
howDay = 31
|
||||||
break
|
break
|
||||||
case 4: case 6: case 9: case 11:
|
case 4:
|
||||||
|
case 6:
|
||||||
|
case 9:
|
||||||
|
case 11:
|
||||||
howDay = 30
|
howDay = 30
|
||||||
break
|
break
|
||||||
case 2:
|
case 2:
|
||||||
@ -380,7 +411,10 @@ function getThisMonthDateList(value){
|
|||||||
if (i > howDay) {
|
if (i > howDay) {
|
||||||
break
|
break
|
||||||
} else {
|
} else {
|
||||||
list.push({label:`${m}月${i}日`,value:`${y}-${m<10?'0'+m:m}-${i<10?'0'+i:i}`})
|
list.push({
|
||||||
|
label: `${m}月${i}日`,
|
||||||
|
value: `${y}-${m<10?'0'+m:m}-${i<10?'0'+i:i}`
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return list
|
return list
|
||||||
@ -579,6 +613,7 @@ export default {
|
|||||||
getThisTimeMonth,
|
getThisTimeMonth,
|
||||||
handleGetMonthDay,
|
handleGetMonthDay,
|
||||||
fmoney,
|
fmoney,
|
||||||
|
formatNumber,
|
||||||
noDecimal,
|
noDecimal,
|
||||||
changeStringToDate,
|
changeStringToDate,
|
||||||
toNextRoute,
|
toNextRoute,
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
src="https://eshangtech.com/ShopICO/ahyd-BID/examine/leftArrowWhite.svg"
|
src="https://eshangtech.com/ShopICO/ahyd-BID/examine/leftArrowWhite.svg"
|
||||||
></image>
|
></image>
|
||||||
</view>
|
</view>
|
||||||
<p class="title">提单申请</p>
|
<p class="title">{{ item.BillState === 1 ? "已提单" : "提单申请" }}</p>
|
||||||
|
|
||||||
<view class="content">
|
<view class="content">
|
||||||
<view class="detail">
|
<view class="detail">
|
||||||
@ -38,8 +38,8 @@
|
|||||||
<view class="right">
|
<view class="right">
|
||||||
<p class="detailTitle">
|
<p class="detailTitle">
|
||||||
{{
|
{{
|
||||||
detailInfo.BUSINESSPROCESS_NAME
|
detailInfo.BusinessProcess_Name
|
||||||
? detailInfo.BUSINESSPROCESS_NAME.split("】")[1]
|
? detailInfo.BusinessProcess_Name.split("】")[1]
|
||||||
: "-"
|
: "-"
|
||||||
}}
|
}}
|
||||||
</p>
|
</p>
|
||||||
@ -48,7 +48,7 @@
|
|||||||
class="serviceFixed"
|
class="serviceFixed"
|
||||||
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/position.svg"
|
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/position.svg"
|
||||||
></image>
|
></image>
|
||||||
<span class="service">{{ detailInfo.SERVERPART_NAME }}</span>
|
<span class="service">{{ detailInfo.Serverpart_Name }}</span>
|
||||||
</view>
|
</view>
|
||||||
<view class="other">
|
<view class="other">
|
||||||
<view class="item">
|
<view class="item">
|
||||||
@ -56,7 +56,7 @@
|
|||||||
class="icon"
|
class="icon"
|
||||||
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/user.svg"
|
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/user.svg"
|
||||||
></image>
|
></image>
|
||||||
<span class="value">{{ detailInfo.STAFF_NAME || "-" }}</span>
|
<span class="value">{{ detailInfo.Staff_Name || "-" }}</span>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="item">
|
<!-- <view class="item">
|
||||||
<image
|
<image
|
||||||
@ -88,8 +88,10 @@
|
|||||||
></image>
|
></image>
|
||||||
<span class="text">提单时间</span>
|
<span class="text">提单时间</span>
|
||||||
<span class="money">{{
|
<span class="money">{{
|
||||||
detailInfo.BUSINESS_ENDDATE
|
detailInfo.BusinessProcess_EndDate
|
||||||
? $moment(detailInfo.BUSINESS_ENDDATE).format("YYYY/MM/DD")
|
? $moment(detailInfo.BusinessProcess_EndDate).format(
|
||||||
|
"YYYY/MM/DD"
|
||||||
|
)
|
||||||
: "-"
|
: "-"
|
||||||
}}</span>
|
}}</span>
|
||||||
</view>
|
</view>
|
||||||
@ -107,13 +109,23 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="contentTextBox">
|
<view class="contentTextBox" v-if="detailInfo.BillState !== 1">
|
||||||
<textarea placeholder="请输入审核意见" v-model="desc"></textarea>
|
<textarea v-model="desc"></textarea>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="bottomBtn" v-if="detailInfo.BillState !== 1">
|
<view class="bottomBtn" v-if="detailInfo.BillState !== 1">
|
||||||
<button class="btn change" @click="handleBillLading">发起提单</button>
|
<button class="btn change" @click="handleBillLading">发起提单</button>
|
||||||
</view>
|
</view>
|
||||||
|
<view class="bottomBtn" v-if="detailInfo.BillState === 1">
|
||||||
|
<button
|
||||||
|
:style="{
|
||||||
|
background: '#e0ba98',
|
||||||
|
}"
|
||||||
|
class="btn change"
|
||||||
|
>
|
||||||
|
已发起
|
||||||
|
</button>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</template>
|
</template>
|
||||||
@ -124,7 +136,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
menu: {}, // 手机信息
|
menu: {}, // 手机信息
|
||||||
detailInfo: {}, // 结算业务信息
|
detailInfo: {}, // 结算业务信息
|
||||||
desc: "", // 审核意见
|
desc: "项目结算完成,发起提单审批流程", // 审核意见
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -149,17 +161,40 @@ export default {
|
|||||||
uni.showLoading({
|
uni.showLoading({
|
||||||
title: "加载中...",
|
title: "加载中...",
|
||||||
});
|
});
|
||||||
let req = {
|
|
||||||
BUSINESSAPPROVALId: id,
|
const req = {
|
||||||
|
SearchParameter: {
|
||||||
|
BusinessApproval_ID: id,
|
||||||
|
BusinessProcess_State: 9000,
|
||||||
|
Operation_Type: 11,
|
||||||
|
PendState: 3,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
const data = await this.$request.$webGet(
|
const data = await this.$request.$webPost(
|
||||||
"EShangApiMain/BusinessProcess/GetBUSINESSAPPROVALDetail",
|
"EShangApiMain/Finance/GetMonthAccountProinst",
|
||||||
req
|
req
|
||||||
);
|
);
|
||||||
console.log("data", data);
|
console.log("data", data);
|
||||||
this.detailInfo = data.Result_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);
|
console.log("this.detailInfo ", this.detailInfo);
|
||||||
|
|
||||||
|
// 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();
|
uni.hideLoading();
|
||||||
},
|
},
|
||||||
// 返回上一页面
|
// 返回上一页面
|
||||||
@ -170,6 +205,14 @@ export default {
|
|||||||
},
|
},
|
||||||
// 发起提单
|
// 发起提单
|
||||||
async handleBillLading() {
|
async handleBillLading() {
|
||||||
|
if (!this.desc) {
|
||||||
|
uni.showToast({
|
||||||
|
title: "请先输入审核意见!",
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
console.log("user", this.user);
|
console.log("user", this.user);
|
||||||
const req = {
|
const req = {
|
||||||
businessApprovalID: this.detailInfo.BusinessApproval_ID,
|
businessApprovalID: this.detailInfo.BusinessApproval_ID,
|
||||||
@ -189,7 +232,7 @@ export default {
|
|||||||
let _this = this;
|
let _this = this;
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
_this.handleGetDetail(_this.BUSINESSAPPROVAL_ID);
|
_this.handleGetDetail(_this.BUSINESSAPPROVAL_ID);
|
||||||
});
|
}, 2000);
|
||||||
|
|
||||||
// if (data.Result_Code === 100) {
|
// if (data.Result_Code === 100) {
|
||||||
// setTimeout(() => {
|
// setTimeout(() => {
|
||||||
|
|||||||
@ -31,7 +31,12 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<scroll-view class="billList" v-if="pageList && pageList.length > 0">
|
<scroll-view
|
||||||
|
scroll-y
|
||||||
|
class="billList"
|
||||||
|
v-if="pageList && pageList.length > 0"
|
||||||
|
@scrolltolower="handleScrolltolower"
|
||||||
|
>
|
||||||
<!-- <list-unit
|
<!-- <list-unit
|
||||||
v-for="(item, index) in pageList"
|
v-for="(item, index) in pageList"
|
||||||
:key="index"
|
:key="index"
|
||||||
@ -87,6 +92,12 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
<!-- 底部提示 -->
|
||||||
|
<view class="load-more" v-if="pageList.length > 0">
|
||||||
|
<text>{{
|
||||||
|
!pageMsg.isOver ? "正在加载,请稍后..." : "——— 我是有底线的 ———"
|
||||||
|
}}</text>
|
||||||
|
</view>
|
||||||
</scroll-view>
|
</scroll-view>
|
||||||
<!-- 无数据时的页面显示 -->
|
<!-- 无数据时的页面显示 -->
|
||||||
<view v-else>
|
<view v-else>
|
||||||
@ -97,12 +108,7 @@
|
|||||||
<!-- <text name="other">请选择其它日期进行查询。</text> -->
|
<!-- <text name="other">请选择其它日期进行查询。</text> -->
|
||||||
</noFound>
|
</noFound>
|
||||||
</view>
|
</view>
|
||||||
<!-- 底部提示 -->
|
|
||||||
<view class="load-more" v-if="pageList.length > 0">
|
|
||||||
<text>{{
|
|
||||||
!pageData.isEnd ? "正在加载,请稍后..." : "——— 我是有底线的 ———"
|
|
||||||
}}</text>
|
|
||||||
</view>
|
|
||||||
<uni-popup
|
<uni-popup
|
||||||
:show="showPop"
|
:show="showPop"
|
||||||
@hidePopup="closePop"
|
@hidePopup="closePop"
|
||||||
@ -156,57 +162,11 @@ export default {
|
|||||||
pageMsg: {
|
pageMsg: {
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
pageIndex: 1,
|
pageIndex: 1,
|
||||||
|
isOver: false,
|
||||||
}, // 列表查询条件
|
}, // 列表查询条件
|
||||||
searchText: "", // 业务名称搜索
|
searchText: "", // 业务名称搜索
|
||||||
BillState: "", // 提单状态 1 已提单 0 未提单
|
BillState: "", // 提单状态 1 已提单 0 未提单
|
||||||
pageList: [
|
pageList: [], // 数据值
|
||||||
{
|
|
||||||
Accept_Code: null,
|
|
||||||
ApproveStaff_ID: null,
|
|
||||||
ApproveStaff_Name: "",
|
|
||||||
BUSINESSPROJECT_ID: 540,
|
|
||||||
BUSINESSPROJECT_NAME: "龙门寺服务区特产零售项目",
|
|
||||||
BillState: null,
|
|
||||||
BusinessApproval_ID: 10045,
|
|
||||||
BusinessProcess_Desc: "已审核,拟同意!请复核",
|
|
||||||
BusinessProcess_EndDate: "2025/01/13 10:14:21",
|
|
||||||
BusinessProcess_ID: 540,
|
|
||||||
BusinessProcess_Name: "龙门寺服务区特产零售项目年度结算",
|
|
||||||
BusinessProcess_StartDate: "2024/11/20 16:15:07",
|
|
||||||
BusinessProcess_State: 9000,
|
|
||||||
BusinessProcess_StateSearch: null,
|
|
||||||
ENDDATE: "2024/01/31",
|
|
||||||
Liquidation_Amount: 12873.78,
|
|
||||||
MERCHANTS_ID: -1128,
|
|
||||||
MERCHANTS_NAME: "安徽马郢乡村旅游农民专业合作社",
|
|
||||||
ModuleGuid: null,
|
|
||||||
NextState: null,
|
|
||||||
Operation_Type: "11",
|
|
||||||
PaymentTerms: 0,
|
|
||||||
PendState: 1,
|
|
||||||
Proinst_ID: 1891,
|
|
||||||
REGISTERCOMPACT_ID: null,
|
|
||||||
REVENUE_AMOUNT: null,
|
|
||||||
RejectStaff_Name: "",
|
|
||||||
Reject_Info: "",
|
|
||||||
SHOPROYALTY_ID: 1891,
|
|
||||||
STARTDATE: "2023/02/01",
|
|
||||||
ServerpartShop_ID: "958,959",
|
|
||||||
ServerpartShop_Name: "东区马郢特产店,西区马郢特产店",
|
|
||||||
Serverpart_Codes: null,
|
|
||||||
Serverpart_ID: 419,
|
|
||||||
Serverpart_IDS: null,
|
|
||||||
Serverpart_Name: "龙门寺服务区",
|
|
||||||
Staff_ID: 906,
|
|
||||||
Staff_Name: "肖方俊【龙门寺服务区】",
|
|
||||||
},
|
|
||||||
{},
|
|
||||||
{},
|
|
||||||
{},
|
|
||||||
{},
|
|
||||||
{},
|
|
||||||
{},
|
|
||||||
], // 数据值
|
|
||||||
activeType: 0, // 选择的提单
|
activeType: 0, // 选择的提单
|
||||||
menuList: [
|
menuList: [
|
||||||
{
|
{
|
||||||
@ -236,7 +196,7 @@ export default {
|
|||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
// 请求列表数据
|
// 请求列表数据
|
||||||
// this.handleGetList();
|
this.handleGetList();
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
if (!this.isFirst) {
|
if (!this.isFirst) {
|
||||||
@ -247,6 +207,11 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
// 下拉到底部 触发的事件
|
||||||
|
handleScrolltolower() {
|
||||||
|
this.pageMsg.pageIndex = this.pageMsg.pageIndex + 1;
|
||||||
|
this.handleGetList();
|
||||||
|
},
|
||||||
// 请求列表数据
|
// 请求列表数据
|
||||||
async handleGetList() {
|
async handleGetList() {
|
||||||
const req = {
|
const req = {
|
||||||
@ -271,12 +236,20 @@ export default {
|
|||||||
);
|
);
|
||||||
console.log("list", data);
|
console.log("list", data);
|
||||||
let list = data.Result_Data.List;
|
let list = data.Result_Data.List;
|
||||||
if (list && list.length > 0) {
|
let oldList = [];
|
||||||
this.pageList = list;
|
if (this.pageList && this.pageList.length > 0) {
|
||||||
} else {
|
oldList = this.pageList;
|
||||||
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();
|
uni.hideLoading();
|
||||||
},
|
},
|
||||||
// 跳转去详情
|
// 跳转去详情
|
||||||
@ -289,6 +262,15 @@ export default {
|
|||||||
// 修改顶部的tab
|
// 修改顶部的tab
|
||||||
handleClick(obj) {
|
handleClick(obj) {
|
||||||
this.activeType = obj.id;
|
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();
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
@ -1203,14 +1203,18 @@
|
|||||||
selectVersion3Obj["累计"].RevenueINC
|
selectVersion3Obj["累计"].RevenueINC
|
||||||
.curYearData || "-"
|
.curYearData || "-"
|
||||||
}}</text>
|
}}</text>
|
||||||
<text class="label">{{(Math.floor(index / 12) + 2023)}}年/万元</text>
|
<text class="label"
|
||||||
|
>{{ Math.floor(index / 12) + 2023 }}年/万元</text
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="rightBox carRight">
|
<div class="rightBox carRight">
|
||||||
<text class="value">{{
|
<text class="value">{{
|
||||||
selectVersion3Obj["累计"].RevenueINC.lYearData ||
|
selectVersion3Obj["累计"].RevenueINC.lYearData ||
|
||||||
"-"
|
"-"
|
||||||
}}</text>
|
}}</text>
|
||||||
<text class="label">{{(Math.floor(index / 12) + 2022)}}年/万元</text>
|
<text class="label"
|
||||||
|
>{{ Math.floor(index / 12) + 2022 }}年/万元</text
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
<img
|
<img
|
||||||
class="pkLogo"
|
class="pkLogo"
|
||||||
@ -1304,14 +1308,18 @@
|
|||||||
selectVersion3Obj["累计"].AccountINC
|
selectVersion3Obj["累计"].AccountINC
|
||||||
.curYearData || "-"
|
.curYearData || "-"
|
||||||
}}</text>
|
}}</text>
|
||||||
<text class="label">{{(Math.floor(index / 12) + 2023)}}年/万元</text>
|
<text class="label"
|
||||||
|
>{{ Math.floor(index / 12) + 2023 }}年/万元</text
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="rightBox qmCarRight">
|
<div class="rightBox qmCarRight">
|
||||||
<text class="value">{{
|
<text class="value">{{
|
||||||
selectVersion3Obj["累计"].AccountINC.lYearData ||
|
selectVersion3Obj["累计"].AccountINC.lYearData ||
|
||||||
"-"
|
"-"
|
||||||
}}</text>
|
}}</text>
|
||||||
<text class="label">{{(Math.floor(index / 12) + 2022)}}年/万元</text>
|
<text class="label"
|
||||||
|
>{{ Math.floor(index / 12) + 2022 }}年/万元</text
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
<img
|
<img
|
||||||
class="pkLogo"
|
class="pkLogo"
|
||||||
@ -1405,14 +1413,18 @@
|
|||||||
selectVersion3Obj["累计"].BayonetINC
|
selectVersion3Obj["累计"].BayonetINC
|
||||||
.curYearData || "-"
|
.curYearData || "-"
|
||||||
}}</text>
|
}}</text>
|
||||||
<text class="label">{{(Math.floor(index / 12) + 2023)}}年/万元</text>
|
<text class="label"
|
||||||
|
>{{ Math.floor(index / 12) + 2023 }}年/万元</text
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
<div class="rightBox summerHolidayRightBox">
|
<div class="rightBox summerHolidayRightBox">
|
||||||
<text class="value">{{
|
<text class="value">{{
|
||||||
selectVersion3Obj["累计"].BayonetINC.lYearData ||
|
selectVersion3Obj["累计"].BayonetINC.lYearData ||
|
||||||
"-"
|
"-"
|
||||||
}}</text>
|
}}</text>
|
||||||
<text class="label">{{(Math.floor(index / 12) + 2022)}}年/万元</text>
|
<text class="label"
|
||||||
|
>{{ Math.floor(index / 12) + 2022 }}年/万元</text
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
<img
|
<img
|
||||||
class="pkLogo"
|
class="pkLogo"
|
||||||
@ -4694,9 +4706,10 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- <view
|
<view
|
||||||
class="funItem"
|
class="funItem"
|
||||||
style="margin-top: 32rpx"
|
style="margin-top: 32rpx"
|
||||||
|
v-if="false"
|
||||||
@click="goToBillLading"
|
@click="goToBillLading"
|
||||||
>
|
>
|
||||||
<view class="funItemContent">
|
<view class="funItemContent">
|
||||||
@ -4708,7 +4721,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<text class="funText">提单申请</text>
|
<text class="funText">提单申请</text>
|
||||||
</view>
|
</view>
|
||||||
</view> -->
|
</view>
|
||||||
|
|
||||||
<!-- 数智统计-->
|
<!-- 数智统计-->
|
||||||
<view
|
<view
|
||||||
|
|||||||
@ -2,17 +2,37 @@
|
|||||||
<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 class="news" :style="{ top: menu.top+16 + 'px', lineHeight: menu.bottom - menu.top + 'px' }">
|
<view
|
||||||
|
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 class="img" src="https://eshangtech.com/ShopICO/ahyd-BID/index/news.svg" @click="handleNews"></image>
|
<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 class="userTitle" :style="{ top: menu.top + 'px', lineHeight: menu.bottom - menu.top + 'px' }">我的</view>
|
<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 class="userBgImg" src="https://eshangtech.com/ShopICO/ahyd-BID/user/userBg.png"></image>
|
<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>
|
||||||
@ -40,7 +60,12 @@
|
|||||||
</view>
|
</view>
|
||||||
|
|
||||||
<view class="menu" :style="{ top: -(117 - menu.bottom) + 'px' }">
|
<view class="menu" :style="{ top: -(117 - menu.bottom) + 'px' }">
|
||||||
<userList v-for="(item, index) in dataList" :key="index" :item='item' :lastDay="lastDay" ></userList>
|
<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>
|
||||||
@ -48,210 +73,253 @@
|
|||||||
</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:[ { url: 'https://eshangtech.com/ShopICO/ahyd-BID/user/position.svg', name: '我的服务区', value: 1 },
|
userLists: [
|
||||||
{ 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: 'https://eshangtech.com/ShopICO/ahyd-BID/user/dailyRevenue.svg',
|
imagePath:
|
||||||
bgUrl:'https://eshangtech.com/ShopICO/ahyd-BID/user/firstBg_1.png',
|
"https://eshangtech.com/ShopICO/ahyd-BID/user/dailyRevenue.svg",
|
||||||
|
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: 'https://eshangtech.com/ShopICO/ahyd-BID/user/festival.svg',
|
imagePath:
|
||||||
bgUrl:'https://eshangtech.com/ShopICO/ahyd-BID/user/firstBg_2.png',
|
"https://eshangtech.com/ShopICO/ahyd-BID/user/festival.svg",
|
||||||
|
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: 'https://eshangtech.com/ShopICO/ahyd-BID/user/reportForms.svg',
|
imagePath:
|
||||||
bgUrl:'https://eshangtech.com/ShopICO/ahyd-BID/user/firstBg_3.png',
|
"https://eshangtech.com/ShopICO/ahyd-BID/user/reportForms.svg",
|
||||||
|
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: 'https://eshangtech.com/ShopICO/ahyd-BID/user/traffic.svg',
|
imagePath:
|
||||||
isNotice:'',
|
"https://eshangtech.com/ShopICO/ahyd-BID/user/traffic.svg",
|
||||||
|
isNotice: "",
|
||||||
type: 1,
|
type: 1,
|
||||||
value: 2,
|
value: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id:'',
|
id: "",
|
||||||
name: '客群',
|
name: "客群",
|
||||||
homeUrl: '/pages/commercialBI/guestPortrait',
|
homeUrl: "/pages/commercialBI/guestPortrait",
|
||||||
imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/customerGroup.svg',
|
imagePath:
|
||||||
isNotice:'',
|
"https://eshangtech.com/ShopICO/ahyd-BID/user/customerGroup.svg",
|
||||||
|
isNotice: "",
|
||||||
type: 2,
|
type: 2,
|
||||||
value: 2,
|
value: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id:'',
|
id: "",
|
||||||
name: '经营',
|
name: "经营",
|
||||||
homeUrl: '/pages/commercialBI/managePortrait',
|
homeUrl: "/pages/commercialBI/managePortrait",
|
||||||
imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/manage.svg',
|
imagePath:
|
||||||
isNotice:'',
|
"https://eshangtech.com/ShopICO/ahyd-BID/user/manage.svg",
|
||||||
|
isNotice: "",
|
||||||
type: 3,
|
type: 3,
|
||||||
value: 2,
|
value: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id:'',
|
id: "",
|
||||||
name: '交易',
|
name: "交易",
|
||||||
homeUrl: '/pages/commercialBI/businessPortrait',
|
homeUrl: "/pages/commercialBI/businessPortrait",
|
||||||
imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/business.svg',
|
imagePath:
|
||||||
isNotice:'',
|
"https://eshangtech.com/ShopICO/ahyd-BID/user/business.svg",
|
||||||
|
isNotice: "",
|
||||||
type: 4,
|
type: 4,
|
||||||
value: 2,
|
value: 2,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id:'',
|
id: "",
|
||||||
name: '品牌',
|
name: "品牌",
|
||||||
homeUrl: '/pages/commercialBI/formatPortrait',
|
homeUrl: "/pages/commercialBI/formatPortrait",
|
||||||
imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/brand.svg',
|
imagePath:
|
||||||
isNotice:'',
|
"https://eshangtech.com/ShopICO/ahyd-BID/user/brand.svg",
|
||||||
|
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: 'https://eshangtech.com/ShopICO/ahyd-BID/user/financialApproval.svg',
|
imagePath:
|
||||||
notice:0,
|
"https://eshangtech.com/ShopICO/ahyd-BID/user/financialApproval.svg",
|
||||||
value: 3,
|
|
||||||
isNotice:false
|
|
||||||
},
|
|
||||||
{
|
|
||||||
id:'916cdbb5-f05b-4624-b6c4-9f111d4389fc',
|
|
||||||
name: '招标投标',
|
|
||||||
homeUrl: '/pages/tender/tender',
|
|
||||||
notice: 0,
|
notice: 0,
|
||||||
value: 3,
|
value: 3,
|
||||||
isNotice: false,
|
isNotice: false,
|
||||||
imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/bidding.svg',
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id:'8fea5036-d67e-476e-9e56-5f379ba6ae18',
|
id: "916cdbb5-f05b-4624-b6c4-9f111d4389fc",
|
||||||
name: '服务区报销',
|
name: "招标投标",
|
||||||
homeUrl: '/pages/serviceAreaReimbursement/serviceAreaReimbursement',
|
homeUrl: "/pages/tender/tender",
|
||||||
notice: 0,
|
notice: 0,
|
||||||
value: 3,
|
value: 3,
|
||||||
isNotice: false,
|
isNotice: false,
|
||||||
imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/serviceAreaReimbur.svg',
|
imagePath:
|
||||||
|
"https://eshangtech.com/ShopICO/ahyd-BID/user/bidding.svg",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id:'ac661db4-1af1-4732-88db-76bc05eec335',
|
id: "8fea5036-d67e-476e-9e56-5f379ba6ae18",
|
||||||
name: '合同审批',
|
name: "服务区报销",
|
||||||
homeUrl: '/pages/contract/contract',
|
homeUrl:
|
||||||
|
"/pages/serviceAreaReimbursement/serviceAreaReimbursement",
|
||||||
notice: 0,
|
notice: 0,
|
||||||
value: 3,
|
value: 3,
|
||||||
isNotice: false,
|
isNotice: false,
|
||||||
imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/contractApproval.svg',
|
imagePath:
|
||||||
|
"https://eshangtech.com/ShopICO/ahyd-BID/user/serviceAreaReimbur.svg",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id:'056b29d7-4721-47ee-ad25-660814e1f3a9',
|
id: "ac661db4-1af1-4732-88db-76bc05eec335",
|
||||||
name: '商品审批',
|
name: "合同审批",
|
||||||
homeUrl: '/pages/businessApproval/businessApproval',
|
homeUrl: "/pages/contract/contract",
|
||||||
notice: 0,
|
notice: 0,
|
||||||
value: 3,
|
value: 3,
|
||||||
isNotice: false,
|
isNotice: false,
|
||||||
imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/productApproval.svg',
|
imagePath:
|
||||||
|
"https://eshangtech.com/ShopICO/ahyd-BID/user/contractApproval.svg",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id:'2290e96d-c6d7-4dde-b5b7-e699b615ff2f',
|
id: "056b29d7-4721-47ee-ad25-660814e1f3a9",
|
||||||
name: '招商审批',
|
name: "商品审批",
|
||||||
homeUrl: '/pages/investment/investment',
|
homeUrl: "/pages/businessApproval/businessApproval",
|
||||||
notice: 0,
|
notice: 0,
|
||||||
value: 3,
|
value: 3,
|
||||||
isNotice: false,
|
isNotice: false,
|
||||||
imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/promotionApproval.svg',
|
imagePath:
|
||||||
|
"https://eshangtech.com/ShopICO/ahyd-BID/user/productApproval.svg",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id:'c802a38f-3bbd-4db0-89b6-34e404c8d8cc',
|
id: "2290e96d-c6d7-4dde-b5b7-e699b615ff2f",
|
||||||
name: '权限审批',
|
name: "招商审批",
|
||||||
homeUrl: '/pages/authorityApproval/index',
|
homeUrl: "/pages/investment/investment",
|
||||||
notice: 0,
|
notice: 0,
|
||||||
value: 3,
|
value: 3,
|
||||||
isNotice: false,
|
isNotice: false,
|
||||||
imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/authorityApproval.svg',
|
imagePath:
|
||||||
|
"https://eshangtech.com/ShopICO/ahyd-BID/user/promotionApproval.svg",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id:'b0b63a75-56c9-4f1d-aacb-a26e62b47e3e',
|
id: "c802a38f-3bbd-4db0-89b6-34e404c8d8cc",
|
||||||
name: '数据校验',
|
name: "权限审批",
|
||||||
homeUrl: '/pages/dataSummary/dataSummary',
|
homeUrl: "/pages/authorityApproval/index",
|
||||||
notice: 0,
|
notice: 0,
|
||||||
value: 3,
|
value: 3,
|
||||||
isNotice: false,
|
isNotice: false,
|
||||||
imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/user/dataVerification.svg',
|
imagePath:
|
||||||
|
"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/projectWarning/index',
|
homeUrl: "/pages/dataSummary/dataSummary",
|
||||||
notice: 0,
|
notice: 0,
|
||||||
value: 3,
|
value: 3,
|
||||||
isNotice: false,
|
isNotice: false,
|
||||||
imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/index/changeMoney.svg',
|
imagePath:
|
||||||
|
"https://eshangtech.com/ShopICO/ahyd-BID/user/dataVerification.svg",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
id:'a927bf4d-f924-4034-b964-d1a8bd401d09',
|
id: "b0b63a75-56c9-4f1d-aacb-a26e62b47e3e",
|
||||||
name: '结算审批',
|
name: "分润切换",
|
||||||
homeUrl: '/pages/settlementApproval/index',
|
homeUrl: "/pages/projectWarning/index",
|
||||||
notice: 0,
|
notice: 0,
|
||||||
value: 3,
|
value: 3,
|
||||||
isNotice: false,
|
isNotice: false,
|
||||||
imagePath: 'https://eshangtech.com/ShopICO/ahyd-BID/index/changeMoney.svg',
|
imagePath:
|
||||||
|
"https://eshangtech.com/ShopICO/ahyd-BID/index/changeMoney.svg",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
id: "a927bf4d-f924-4034-b964-d1a8bd401d09",
|
||||||
|
name: "结算审批",
|
||||||
|
homeUrl: "/pages/settlementApproval/index",
|
||||||
|
notice: 0,
|
||||||
|
value: 3,
|
||||||
|
isNotice: false,
|
||||||
|
imagePath:
|
||||||
|
"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: 'https://eshangtech.com/ShopICO/ahyd-BID/user/basicInformation.svg',
|
imagePath:
|
||||||
|
"https://eshangtech.com/ShopICO/ahyd-BID/user/basicInformation.svg",
|
||||||
isNotice: true,
|
isNotice: true,
|
||||||
notice: 0,
|
notice: 0,
|
||||||
type: 0,
|
type: 0,
|
||||||
@ -259,10 +327,11 @@ import Tabbar from "../../components/tabbar/tabbar.vue";
|
|||||||
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: 'https://eshangtech.com/ShopICO/ahyd-BID/user/assessment.svg',
|
imagePath:
|
||||||
|
"https://eshangtech.com/ShopICO/ahyd-BID/user/assessment.svg",
|
||||||
isNotice: false,
|
isNotice: false,
|
||||||
notice: 0,
|
notice: 0,
|
||||||
summaryOfPortraits: true,
|
summaryOfPortraits: true,
|
||||||
@ -270,19 +339,21 @@ import Tabbar from "../../components/tabbar/tabbar.vue";
|
|||||||
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: 'https://eshangtech.com/ShopICO/ahyd-BID/user/complaintSuggest.svg',
|
imagePath:
|
||||||
|
"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: 'https://eshangtech.com/ShopICO/ahyd-BID/user/cashierInspection.svg',
|
imagePath:
|
||||||
|
"https://eshangtech.com/ShopICO/ahyd-BID/user/cashierInspection.svg",
|
||||||
isNotice: false,
|
isNotice: false,
|
||||||
notice: 0,
|
notice: 0,
|
||||||
value: 4,
|
value: 4,
|
||||||
@ -291,132 +362,145 @@ import Tabbar from "../../components/tabbar/tabbar.vue";
|
|||||||
},
|
},
|
||||||
],
|
],
|
||||||
isTrue: false, //最外面一层判断是否能跳转的依据
|
isTrue: false, //最外面一层判断是否能跳转的依据
|
||||||
special:false
|
special: false,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
components: {
|
components: {
|
||||||
userList,Tabbar
|
userList,
|
||||||
|
Tabbar,
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
...mapState({
|
...mapState({
|
||||||
toDoMsg:(state)=>{return state.toDoMsg},
|
toDoMsg: (state) => {
|
||||||
user: (state)=>{ return state.userData},
|
return state.toDoMsg;
|
||||||
|
},
|
||||||
|
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 phoneStr.substr(0,3)+' **** '+phoneStr.substr(phoneStr.length-2,phoneStr.length-1)
|
return (
|
||||||
|
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 (userInfo.userData.AuthorityInfo['89a1f248-2113-4d57-84b1-c2e6edb9e8ee']===1){
|
if (
|
||||||
this.isTrue = true
|
userInfo.userData.AuthorityInfo[
|
||||||
|
"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=>{
|
request
|
||||||
|
.$webGet("CommercialApi/BigData/GetBayonetWarning", req)
|
||||||
|
.then((res) => {
|
||||||
if (res.Result_Data.List.length > 0) {
|
if (res.Result_Data.List.length > 0) {
|
||||||
this.special = true
|
this.special = true;
|
||||||
}
|
}
|
||||||
})
|
});
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
};
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
@ -431,9 +515,10 @@ import Tabbar from "../../components/tabbar/tabbar.vue";
|
|||||||
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;left:0;
|
top: 0;
|
||||||
|
left: 0;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: 0 15px;
|
padding: 0 15px;
|
||||||
z-index: 9999999;
|
z-index: 9999999;
|
||||||
@ -459,9 +544,10 @@ import Tabbar from "../../components/tabbar/tabbar.vue";
|
|||||||
position: absolute;
|
position: absolute;
|
||||||
width: 8px;
|
width: 8px;
|
||||||
height: 8px;
|
height: 8px;
|
||||||
background: #D7000F;
|
background: #d7000f;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
right:0;top: 4px;
|
right: 0;
|
||||||
|
top: 4px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -526,7 +612,7 @@ import Tabbar from "../../components/tabbar/tabbar.vue";
|
|||||||
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;
|
||||||
@ -565,7 +651,11 @@ import Tabbar from "../../components/tabbar/tabbar.vue";
|
|||||||
.other {
|
.other {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 40px;
|
height: 40px;
|
||||||
background: linear-gradient(315deg, rgba(255, 141, 149, 0.2), rgba(255, 220, 168, 0.2));
|
background: linear-gradient(
|
||||||
|
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;
|
||||||
@ -592,7 +682,7 @@ import Tabbar from "../../components/tabbar/tabbar.vue";
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.item:first-child:after {
|
.item:first-child:after {
|
||||||
content: '';
|
content: "";
|
||||||
width: 1px;
|
width: 1px;
|
||||||
height: 24px;
|
height: 24px;
|
||||||
background: #782717;
|
background: #782717;
|
||||||
@ -648,13 +738,13 @@ import Tabbar from "../../components/tabbar/tabbar.vue";
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.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 {
|
||||||
|
|||||||
@ -20,7 +20,6 @@ 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
|
||||||
@ -35,8 +34,6 @@ 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,
|
||||||
@ -74,7 +71,7 @@ export default {
|
|||||||
'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.UserIdEncrypted,
|
"UserId": Store.state.userData.UserId,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
requstOptions.success = (res) => {
|
requstOptions.success = (res) => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user