update
This commit is contained in:
parent
838cb3c123
commit
883029c818
15
pages.json
15
pages.json
@ -816,6 +816,21 @@
|
|||||||
"navigationBarTitleText": "测试页面"
|
"navigationBarTitleText": "测试页面"
|
||||||
}
|
}
|
||||||
}]
|
}]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"root": "pages/billOfLading",
|
||||||
|
"pages": [{
|
||||||
|
"path": "index",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "提单"
|
||||||
|
}
|
||||||
|
}, {
|
||||||
|
"path": "detail",
|
||||||
|
"style": {
|
||||||
|
"navigationBarTitleText": "",
|
||||||
|
"navigationStyle": "custom"
|
||||||
|
}
|
||||||
|
}]
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"globalStyle": {
|
"globalStyle": {
|
||||||
|
|||||||
426
pages/billOfLading/detail.vue
Normal file
426
pages/billOfLading/detail.vue
Normal file
@ -0,0 +1,426 @@
|
|||||||
|
<template>
|
||||||
|
<view class="main">
|
||||||
|
<view class="header" :style="{ height: menu.bottom + 'px' }">
|
||||||
|
<image
|
||||||
|
@click="handleBack"
|
||||||
|
class="allowLeft"
|
||||||
|
:style="{ top: menu.top + (menu.height - 24) / 2 + 'px' }"
|
||||||
|
src="https://eshangtech.com/ShopICO/ahyd-BID/examine/leftArrowWhite.svg"
|
||||||
|
></image>
|
||||||
|
</view>
|
||||||
|
<p class="title">提单申请</p>
|
||||||
|
|
||||||
|
<view class="content">
|
||||||
|
<view class="detail">
|
||||||
|
<view
|
||||||
|
class="type"
|
||||||
|
:style="{ color: item.PaymentTerms === 1 ? 'red' : '' }"
|
||||||
|
>{{
|
||||||
|
detailInfo.PaymentTerms === 1
|
||||||
|
? "收款"
|
||||||
|
: detailInfo.PaymentTerms === 0
|
||||||
|
? "退款"
|
||||||
|
: ""
|
||||||
|
}}</view
|
||||||
|
>
|
||||||
|
|
||||||
|
<view class="top">
|
||||||
|
<view class="left">
|
||||||
|
<image
|
||||||
|
class="logo"
|
||||||
|
:src="
|
||||||
|
detailInfo.BUSINESSPROJECT_ICO
|
||||||
|
? detailInfo.BUSINESSPROJECT_ICO
|
||||||
|
: 'https://eshangtech.com/ShopICO/yxcl/projectWarning/defaultImg.svg'
|
||||||
|
"
|
||||||
|
></image>
|
||||||
|
</view>
|
||||||
|
<view class="right">
|
||||||
|
<p class="detailTitle">
|
||||||
|
{{
|
||||||
|
detailInfo.BUSINESSPROCESS_NAME
|
||||||
|
? detailInfo.BUSINESSPROCESS_NAME.split("】")[1]
|
||||||
|
: "-"
|
||||||
|
}}
|
||||||
|
</p>
|
||||||
|
<view class="fixed">
|
||||||
|
<image
|
||||||
|
class="serviceFixed"
|
||||||
|
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/position.svg"
|
||||||
|
></image>
|
||||||
|
<span class="service">{{ detailInfo.SERVERPART_NAME }}</span>
|
||||||
|
</view>
|
||||||
|
<view class="other">
|
||||||
|
<view class="item">
|
||||||
|
<image
|
||||||
|
class="icon"
|
||||||
|
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/user.svg"
|
||||||
|
></image>
|
||||||
|
<span class="value">{{ detailInfo.STAFF_NAME || "-" }}</span>
|
||||||
|
</view>
|
||||||
|
<!-- <view class="item">
|
||||||
|
<image
|
||||||
|
class="icon"
|
||||||
|
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/phone.svg"
|
||||||
|
></image>
|
||||||
|
<span class="value">{{
|
||||||
|
detailInfo.BusinessProcess_StartDate || "-"
|
||||||
|
}}</span>
|
||||||
|
</view> -->
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<view class="bottom">
|
||||||
|
<view class="message">
|
||||||
|
<image
|
||||||
|
class="icon"
|
||||||
|
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/money.svg"
|
||||||
|
></image>
|
||||||
|
<span class="text">退补款</span>
|
||||||
|
<span class="money">{{
|
||||||
|
detailInfo.Liquidation_Amount || "-"
|
||||||
|
}}</span>
|
||||||
|
</view>
|
||||||
|
<view class="message">
|
||||||
|
<image
|
||||||
|
class="icon"
|
||||||
|
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/phone.svg"
|
||||||
|
></image>
|
||||||
|
<span class="text">提单时间</span>
|
||||||
|
<span class="money">{{
|
||||||
|
detailInfo.BUSINESS_ENDDATE
|
||||||
|
? $moment(detailInfo.BUSINESS_ENDDATE).format("YYYY/MM/DD")
|
||||||
|
: "-"
|
||||||
|
}}</span>
|
||||||
|
</view>
|
||||||
|
<view class="message" style="margin-bottom: 0">
|
||||||
|
<image
|
||||||
|
class="icon"
|
||||||
|
src="https://eshangtech.com/ShopICO/yxcl/projectWarning/date.svg"
|
||||||
|
></image>
|
||||||
|
<span class="text">本期时间</span>
|
||||||
|
<span class="money"
|
||||||
|
>{{ detailInfo.STARTDATE || "-" }} -
|
||||||
|
{{ detailInfo.ENDDATE || "-" }}</span
|
||||||
|
>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="contentTextBox">
|
||||||
|
<textarea placeholder="请输入审核意见" v-model="desc"></textarea>
|
||||||
|
</view>
|
||||||
|
|
||||||
|
<view class="bottomBtn" v-if="detailInfo.BillState !== 1">
|
||||||
|
<button class="btn change" @click="handleBillLading">发起提单</button>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
<script>
|
||||||
|
import { mapState } from "vuex";
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
menu: {}, // 手机信息
|
||||||
|
detailInfo: {}, // 结算业务信息
|
||||||
|
desc: "", // 审核意见
|
||||||
|
};
|
||||||
|
},
|
||||||
|
|
||||||
|
computed: {
|
||||||
|
...mapState({
|
||||||
|
user: (state) => {
|
||||||
|
return state.userData;
|
||||||
|
},
|
||||||
|
}),
|
||||||
|
},
|
||||||
|
onLoad(query) {
|
||||||
|
this.menu = uni.getMenuButtonBoundingClientRect();
|
||||||
|
// 推送进的话 直接进来拿id去查详情
|
||||||
|
if (query.id) {
|
||||||
|
console.log("query.id", query.id);
|
||||||
|
this.handleGetDetail(query.id);
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 查详情
|
||||||
|
async handleGetDetail(id) {
|
||||||
|
uni.showLoading({
|
||||||
|
title: "加载中...",
|
||||||
|
});
|
||||||
|
let req = {
|
||||||
|
BUSINESSAPPROVALId: id,
|
||||||
|
};
|
||||||
|
const data = await this.$request.$webGet(
|
||||||
|
"EShangApiMain/BusinessProcess/GetBUSINESSAPPROVALDetail",
|
||||||
|
req
|
||||||
|
);
|
||||||
|
console.log("data", data);
|
||||||
|
this.detailInfo = data.Result_Data;
|
||||||
|
console.log("this.detailInfo", this.detailInfo);
|
||||||
|
|
||||||
|
uni.hideLoading();
|
||||||
|
},
|
||||||
|
// 返回上一页面
|
||||||
|
handleBack() {
|
||||||
|
uni.navigateBack({
|
||||||
|
delta: 1,
|
||||||
|
});
|
||||||
|
},
|
||||||
|
// 发起提单
|
||||||
|
async handleBillLading() {
|
||||||
|
console.log("user", this.user);
|
||||||
|
const req = {
|
||||||
|
businessApprovalID: this.detailInfo.BusinessApproval_ID,
|
||||||
|
approveedInfo: this.desc || "",
|
||||||
|
approveedStaffId: this.user.UserId,
|
||||||
|
approveedStaffName: this.user.UserName,
|
||||||
|
};
|
||||||
|
// const data = await handleGetLadingBill(req);
|
||||||
|
const data = await this.$request.$webGet(
|
||||||
|
"EShangApiMain/Finance/LadingBill",
|
||||||
|
req
|
||||||
|
);
|
||||||
|
uni.showToast({
|
||||||
|
title: data.Result_Desc,
|
||||||
|
icon: "none",
|
||||||
|
});
|
||||||
|
let _this = this;
|
||||||
|
setTimeout(() => {
|
||||||
|
_this.handleGetDetail(_this.BUSINESSAPPROVAL_ID);
|
||||||
|
});
|
||||||
|
|
||||||
|
// if (data.Result_Code === 100) {
|
||||||
|
// setTimeout(() => {
|
||||||
|
// uni.navigateBack({
|
||||||
|
// delta: 1,
|
||||||
|
// });
|
||||||
|
// });
|
||||||
|
// }
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
<style scoped lang="scss">
|
||||||
|
@import "/static/public/font/stylesheet.css";
|
||||||
|
.main {
|
||||||
|
width: 100vw;
|
||||||
|
height: 100vh;
|
||||||
|
box-sizing: border-box;
|
||||||
|
background-image: url("https://eshangtech.com/ShopICO/yxcl/projectWarning/bg.svg");
|
||||||
|
background-size: cover;
|
||||||
|
.header {
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0 16px;
|
||||||
|
position: relative;
|
||||||
|
margin-top: 0;
|
||||||
|
z-index: 222;
|
||||||
|
.allowLeft {
|
||||||
|
position: absolute;
|
||||||
|
width: 24px;
|
||||||
|
height: 24px;
|
||||||
|
left: 16px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.title {
|
||||||
|
font-size: 28px;
|
||||||
|
font-family: Alimama ShuHeiTi;
|
||||||
|
color: #160002;
|
||||||
|
line-height: 39px;
|
||||||
|
margin: 18px 0 16px 16px;
|
||||||
|
background: linear-gradient(180deg, #c25e18 30%, #8c4917 100%);
|
||||||
|
-webkit-background-clip: text;
|
||||||
|
-webkit-text-fill-color: transparent;
|
||||||
|
}
|
||||||
|
|
||||||
|
.content {
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 0 32rpx;
|
||||||
|
.detail {
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
background: linear-gradient(
|
||||||
|
314deg,
|
||||||
|
#fffcf3 0%,
|
||||||
|
#fff0e6 20%,
|
||||||
|
#fff9f5 51%,
|
||||||
|
#fff8e7 73%,
|
||||||
|
#fff6ee 100%
|
||||||
|
);
|
||||||
|
border-radius: 8px;
|
||||||
|
padding: 16px;
|
||||||
|
position: relative;
|
||||||
|
.type {
|
||||||
|
position: absolute;
|
||||||
|
right: 0;
|
||||||
|
top: 55px;
|
||||||
|
background: linear-gradient(
|
||||||
|
270deg,
|
||||||
|
#f8d792 0%,
|
||||||
|
#ffe6b2 50%,
|
||||||
|
#fbc13b 100%
|
||||||
|
);
|
||||||
|
border-radius: 10px 0 0 2px;
|
||||||
|
padding: 2px 8px;
|
||||||
|
font-size: 14px;
|
||||||
|
font-family: PingFangSC-Regular;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #604128;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
.top {
|
||||||
|
width: 100%;
|
||||||
|
height: 168rpx;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
.left {
|
||||||
|
width: 168rpx;
|
||||||
|
height: 168rpx;
|
||||||
|
margin-right: 12px;
|
||||||
|
border-radius: 8px;
|
||||||
|
overflow: hidden;
|
||||||
|
.logo {
|
||||||
|
width: 168rpx;
|
||||||
|
height: 168rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.right {
|
||||||
|
width: calc(100% - 180rpx);
|
||||||
|
//display: flex;
|
||||||
|
//flex-direction: column;
|
||||||
|
//justify-content: space-between;
|
||||||
|
//align-items: flex-start;
|
||||||
|
.detailTitle {
|
||||||
|
font-size: 30rpx;
|
||||||
|
width: 100%;
|
||||||
|
font-family: PingFangSC-Semibold, PingFang SC;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #160002;
|
||||||
|
margin-bottom: 12rpx;
|
||||||
|
line-height: 32rpx;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 2; /* 设置显示的行数 */
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
.fixed {
|
||||||
|
height: 24px;
|
||||||
|
line-height: 24px;
|
||||||
|
padding: 1px 4px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
background: rgba(252, 186, 118, 0.2);
|
||||||
|
border-radius: 4px;
|
||||||
|
display: inline-block;
|
||||||
|
margin-bottom: 12rpx;
|
||||||
|
.serviceFixed {
|
||||||
|
width: 20rpx;
|
||||||
|
height: 24rpx;
|
||||||
|
margin-right: 8rpx;
|
||||||
|
line-height: 24px;
|
||||||
|
}
|
||||||
|
.service {
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-family: PingFangSC-Semibold, PingFang SC;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #6c492a;
|
||||||
|
line-height: 40rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.other {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
.item {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-right: 16px;
|
||||||
|
.icon {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
margin-right: 6px;
|
||||||
|
}
|
||||||
|
.value {
|
||||||
|
font-size: 28rpx;
|
||||||
|
font-family: PingFangSC-Regular, PingFang SC;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #160002;
|
||||||
|
line-height: 40rpx;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.bottom {
|
||||||
|
margin-top: 24px;
|
||||||
|
.message {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-bottom: 8px;
|
||||||
|
.icon {
|
||||||
|
width: 16px;
|
||||||
|
height: 16px;
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
.text {
|
||||||
|
font-size: 14px;
|
||||||
|
font-family: PingFangSC-Regular, PingFang SC;
|
||||||
|
font-weight: 400;
|
||||||
|
color: #786b6c;
|
||||||
|
line-height: 20px;
|
||||||
|
margin-right: 8px;
|
||||||
|
}
|
||||||
|
.money {
|
||||||
|
font-size: 14px;
|
||||||
|
font-family: PingFangSC-Semibold, PingFang SC;
|
||||||
|
font-weight: 600;
|
||||||
|
color: #7d5632;
|
||||||
|
line-height: 20px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.contentTextBox {
|
||||||
|
width: 100%;
|
||||||
|
margin-top: 24rpx;
|
||||||
|
background: #fff;
|
||||||
|
border-radius: 8px;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 16px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bottomBtn {
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 8px 0;
|
||||||
|
margin-top: 24rpx;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
.btn {
|
||||||
|
// width: calc((100% - 32rpx) / 2);
|
||||||
|
width: 100%;
|
||||||
|
height: 41px;
|
||||||
|
background: rgba(125, 86, 50, 0.1);
|
||||||
|
border-radius: 4px;
|
||||||
|
font-size: 16px;
|
||||||
|
font-family: PingFangSC-Medium, PingFang SC;
|
||||||
|
font-weight: 500;
|
||||||
|
color: #6d5f5e;
|
||||||
|
opacity: 0.6;
|
||||||
|
}
|
||||||
|
.change {
|
||||||
|
background: #7d5632;
|
||||||
|
color: #feffff;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
459
pages/billOfLading/index.vue
Normal file
459
pages/billOfLading/index.vue
Normal file
@ -0,0 +1,459 @@
|
|||||||
|
<template>
|
||||||
|
<view class="content">
|
||||||
|
<!-- 顶部筛选菜单 -->
|
||||||
|
<view class="uni-flex ai-center screen-box menu-list">
|
||||||
|
<view
|
||||||
|
class="menu"
|
||||||
|
v-for="(item, index) in menuList"
|
||||||
|
:key="index"
|
||||||
|
@click="handleClick(item)"
|
||||||
|
>
|
||||||
|
<view
|
||||||
|
class="menu-image round"
|
||||||
|
style="height: 75rpx; width: 75rpx; padding: 18rpx"
|
||||||
|
:style="
|
||||||
|
activeType == item.id
|
||||||
|
? 'background:#f0f7fe;'
|
||||||
|
: 'background:#f6f7f8;'
|
||||||
|
"
|
||||||
|
>
|
||||||
|
<image
|
||||||
|
:src="activeType == item.id ? item.active : item.src"
|
||||||
|
mode="aspectFit"
|
||||||
|
style="height: 100%"
|
||||||
|
>
|
||||||
|
</image>
|
||||||
|
</view>
|
||||||
|
<view
|
||||||
|
class="menuName"
|
||||||
|
:style="activeType == item.id ? 'color:#5B96E9' : 'color:#808D97'"
|
||||||
|
>{{ item.name }}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
<scroll-view class="billList" v-if="pageList && pageList.length > 0">
|
||||||
|
<!-- <list-unit
|
||||||
|
v-for="(item, index) in pageList"
|
||||||
|
:key="index"
|
||||||
|
:item="item"
|
||||||
|
:i="index"
|
||||||
|
@goDetail="goDetail"
|
||||||
|
></list-unit> -->
|
||||||
|
<view
|
||||||
|
class="card"
|
||||||
|
v-for="(item, index) in pageList"
|
||||||
|
:key="index"
|
||||||
|
@click="handleGoDetail(item)"
|
||||||
|
>
|
||||||
|
<!-- 卡片第一行数据 -->
|
||||||
|
<view class="firstTitleBox">
|
||||||
|
<!-- 左侧 -->
|
||||||
|
<p class="contentName">{{ item.BusinessProcess_Name || "-" }}</p>
|
||||||
|
</view>
|
||||||
|
<!-- 卡片第一行角标 -->
|
||||||
|
<view class="content-index">{{ index + 1 }}</view>
|
||||||
|
<!-- 卡片第二行数据 -->
|
||||||
|
<view class="secondTitleBox">
|
||||||
|
<!-- 服务区名称 -->
|
||||||
|
<p class="content-type-text">{{ item.Serverpart_Name || "-" }}</p>
|
||||||
|
</view>
|
||||||
|
<!-- 卡片第三行数据 -->
|
||||||
|
<view
|
||||||
|
class="thirdTitleBox"
|
||||||
|
:style="{ color: item.BillState === 1 ? '' : 'red' }"
|
||||||
|
>
|
||||||
|
{{ item.BillState === 1 ? "已提单" : "未提单" }}
|
||||||
|
</view>
|
||||||
|
<!-- 第四行数据 -->
|
||||||
|
<view class="fourthTitleBox">
|
||||||
|
<view
|
||||||
|
class="leftContent"
|
||||||
|
:style="{ color: item.PaymentTerms === 1 ? 'red' : '' }"
|
||||||
|
>
|
||||||
|
{{
|
||||||
|
item.PaymentTerms === 1
|
||||||
|
? "收款"
|
||||||
|
: item.PaymentTerms === 0
|
||||||
|
? "退款"
|
||||||
|
: "-"
|
||||||
|
}}
|
||||||
|
</view>
|
||||||
|
<view class="rightContent">
|
||||||
|
{{
|
||||||
|
item.BusinessProcess_StartDate
|
||||||
|
? $moment(item.BusinessProcess_StartDate).format("YYYY/MM/DD")
|
||||||
|
: ""
|
||||||
|
}}
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</view>
|
||||||
|
</scroll-view>
|
||||||
|
<!-- 无数据时的页面显示 -->
|
||||||
|
<view v-else>
|
||||||
|
<noFound
|
||||||
|
:nodata="pageList && pageList.length > 0 ? false : true"
|
||||||
|
:text="'暂无数据'"
|
||||||
|
>
|
||||||
|
<!-- <text name="other">请选择其它日期进行查询。</text> -->
|
||||||
|
</noFound>
|
||||||
|
</view>
|
||||||
|
<!-- 底部提示 -->
|
||||||
|
<view class="load-more" v-if="pageList.length > 0">
|
||||||
|
<text>{{
|
||||||
|
!pageData.isEnd ? "正在加载,请稍后..." : "——— 我是有底线的 ———"
|
||||||
|
}}</text>
|
||||||
|
</view>
|
||||||
|
<uni-popup
|
||||||
|
:show="showPop"
|
||||||
|
@hidePopup="closePop"
|
||||||
|
type="bottom"
|
||||||
|
@touchmove.prevent
|
||||||
|
round="true"
|
||||||
|
>
|
||||||
|
<view class="pop">
|
||||||
|
<p class="title">服务区名称</p>
|
||||||
|
<picker
|
||||||
|
class="title-clock"
|
||||||
|
mode="selector"
|
||||||
|
@change="pickerChange"
|
||||||
|
:value="pickerIndex"
|
||||||
|
range-key="label"
|
||||||
|
:range="severpartList"
|
||||||
|
>
|
||||||
|
<view class="box-center-title">{{
|
||||||
|
severpartList[pickerIndex].label
|
||||||
|
}}</view>
|
||||||
|
</picker>
|
||||||
|
<p class="title" style="margin-top: 20px">日期</p>
|
||||||
|
<view class="selectTime">
|
||||||
|
<picker
|
||||||
|
class="time"
|
||||||
|
mode="date"
|
||||||
|
@change="handlechangeTime($event, 0)"
|
||||||
|
>
|
||||||
|
<text>{{ "请选择开始时间" }}</text>
|
||||||
|
</picker>
|
||||||
|
-
|
||||||
|
<picker
|
||||||
|
class="time"
|
||||||
|
style="text-align: right"
|
||||||
|
mode="date"
|
||||||
|
@change="handlechangeTime($event, 1)"
|
||||||
|
>
|
||||||
|
<text>{{ "请选择结束时间" }}</text>
|
||||||
|
</picker>
|
||||||
|
</view>
|
||||||
|
<view class="popbtn" @click="reloadList">确定</view>
|
||||||
|
</view>
|
||||||
|
</uni-popup>
|
||||||
|
</view>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
pageMsg: {
|
||||||
|
pageSize: 10,
|
||||||
|
pageIndex: 1,
|
||||||
|
}, // 列表查询条件
|
||||||
|
searchText: "", // 业务名称搜索
|
||||||
|
BillState: "", // 提单状态 1 已提单 0 未提单
|
||||||
|
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, // 选择的提单
|
||||||
|
menuList: [
|
||||||
|
{
|
||||||
|
name: "全部",
|
||||||
|
src: "https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yifq.png",
|
||||||
|
active:
|
||||||
|
"https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yifqz.png",
|
||||||
|
id: 0,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "已提单",
|
||||||
|
src: "https://eshangtech.com/ShopICO/ahyd-BID/expense/type/shenp.png",
|
||||||
|
active:
|
||||||
|
"https://eshangtech.com/ShopICO/ahyd-BID/expense/type/shenpz.png",
|
||||||
|
id: 1,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: "未提单",
|
||||||
|
src: "https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yichl.png",
|
||||||
|
active:
|
||||||
|
"https://eshangtech.com/ShopICO/ahyd-BID/expense/type/yichlz.png",
|
||||||
|
id: 2,
|
||||||
|
},
|
||||||
|
],
|
||||||
|
isFirst: true, // 是第一次
|
||||||
|
};
|
||||||
|
},
|
||||||
|
onLoad() {
|
||||||
|
// 请求列表数据
|
||||||
|
// this.handleGetList();
|
||||||
|
},
|
||||||
|
onShow() {
|
||||||
|
if (!this.isFirst) {
|
||||||
|
this.handleGetList();
|
||||||
|
}
|
||||||
|
if (this.isFirst) {
|
||||||
|
this.isFirst = false;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
// 请求列表数据
|
||||||
|
async handleGetList() {
|
||||||
|
const req = {
|
||||||
|
SearchParameter: {
|
||||||
|
BillState: this.BillState,
|
||||||
|
BusinessProcess_State: 9000,
|
||||||
|
Operation_Type: 11,
|
||||||
|
PendState: 3,
|
||||||
|
},
|
||||||
|
keyWord: this.searchText
|
||||||
|
? { key: "BusinessProcess_Name", Value: this.searchText }
|
||||||
|
: "",
|
||||||
|
PageIndex: this.pageMsg.pageIndex,
|
||||||
|
PageSize: this.pageMsg.pageSize,
|
||||||
|
};
|
||||||
|
uni.showLoading({
|
||||||
|
title: "加载中...",
|
||||||
|
});
|
||||||
|
const data = await this.$request.$webPost(
|
||||||
|
"EShangApiMain/Finance/GetMonthAccountProinst",
|
||||||
|
req
|
||||||
|
);
|
||||||
|
console.log("list", data);
|
||||||
|
let list = data.Result_Data.List;
|
||||||
|
if (list && list.length > 0) {
|
||||||
|
this.pageList = list;
|
||||||
|
} else {
|
||||||
|
this.pageList = [];
|
||||||
|
}
|
||||||
|
|
||||||
|
uni.hideLoading();
|
||||||
|
},
|
||||||
|
// 跳转去详情
|
||||||
|
handleGoDetail(obj) {
|
||||||
|
this.$util.toNextRoute(
|
||||||
|
"navigateTo",
|
||||||
|
`/pages/billOfLading/detail?id=${obj.BusinessApproval_ID}`
|
||||||
|
);
|
||||||
|
},
|
||||||
|
// 修改顶部的tab
|
||||||
|
handleClick(obj) {
|
||||||
|
this.activeType = obj.id;
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped lang="scss">
|
||||||
|
.menu-list {
|
||||||
|
//顶部菜单样式
|
||||||
|
width: 100%;
|
||||||
|
background-color: #fff;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
}
|
||||||
|
.menu {
|
||||||
|
text-align: center;
|
||||||
|
// min-width: 185rpx;
|
||||||
|
width: calc(100% / 3);
|
||||||
|
padding: 24rpx 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
.round {
|
||||||
|
border-radius: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menuName {
|
||||||
|
color: #120e2b;
|
||||||
|
font-size: 24rpx;
|
||||||
|
text-align: center;
|
||||||
|
margin-top: 16rpx;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-image {
|
||||||
|
padding: 12rpx 8rpx;
|
||||||
|
height: 80rpx;
|
||||||
|
box-sizing: border-box;
|
||||||
|
margin: 0 auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-image image {
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.screen-box {
|
||||||
|
background-color: #fff;
|
||||||
|
padding: 0 0rpx;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
.pop {
|
||||||
|
width: 100%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 16px;
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
|
.pop .title {
|
||||||
|
font-size: 14px;
|
||||||
|
font-weight: 600;
|
||||||
|
}
|
||||||
|
.pop .title-clock {
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
.pop .selectTime {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
.pop .selectTime .time {
|
||||||
|
width: 45%;
|
||||||
|
}
|
||||||
|
.pop .popbtn {
|
||||||
|
width: 639rpx;
|
||||||
|
height: 80rpx;
|
||||||
|
line-height: 80rpx;
|
||||||
|
color: #fff;
|
||||||
|
font-size: 28rpx;
|
||||||
|
background: #5b96e9;
|
||||||
|
border-radius: 8rpx;
|
||||||
|
margin: 48rpx auto 24rpx auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.billList {
|
||||||
|
width: 100%;
|
||||||
|
height: calc(100vh - 100px);
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 20rpx 24rpx;
|
||||||
|
.card {
|
||||||
|
width: 100%;
|
||||||
|
box-shadow: 0 0px 6rpx #e2e2e2;
|
||||||
|
box-sizing: border-box;
|
||||||
|
padding: 24rpx;
|
||||||
|
background: #fff;
|
||||||
|
position: relative;
|
||||||
|
margin-bottom: 24rpx;
|
||||||
|
.firstTitleBox {
|
||||||
|
width: 100%;
|
||||||
|
.contentName {
|
||||||
|
width: calc(100% - 48rpx);
|
||||||
|
font-size: 28rpx;
|
||||||
|
// height: 54rpx;
|
||||||
|
margin-left: 36rpx;
|
||||||
|
color: #333333;
|
||||||
|
display: -webkit-box;
|
||||||
|
-webkit-line-clamp: 2; /* 设置显示的行数 */
|
||||||
|
-webkit-box-orient: vertical;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.secondTitleBox {
|
||||||
|
.content-type-text {
|
||||||
|
color: #686868;
|
||||||
|
padding-left: 38rpx;
|
||||||
|
font-size: 22rpx;
|
||||||
|
line-height: 1.6;
|
||||||
|
max-width: 306rpx;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
overflow: hidden;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.thirdTitleBox {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
margin-top: 12rpx;
|
||||||
|
font-size: 18px;
|
||||||
|
line-height: 50px;
|
||||||
|
margin: 0 4px;
|
||||||
|
border-bottom: 2rpx solid #eee;
|
||||||
|
}
|
||||||
|
|
||||||
|
.fourthTitleBox {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 24rpx;
|
||||||
|
.leftContent {
|
||||||
|
color: #686868;
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
.rightContent {
|
||||||
|
color: #686868;
|
||||||
|
font-size: 24rpx;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.content-index {
|
||||||
|
width: 42rpx;
|
||||||
|
height: 32rpx;
|
||||||
|
color: #fff;
|
||||||
|
background-color: #fb8b56;
|
||||||
|
position: absolute;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
position: absolute;
|
||||||
|
left: -4rpx;
|
||||||
|
top: 30rpx;
|
||||||
|
box-shadow: 4rpx 4rpx 2rpx 0 rgba(238, 112, 27, 0.5);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
@ -4694,6 +4694,22 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
|
<!-- <view
|
||||||
|
class="funItem"
|
||||||
|
style="margin-top: 32rpx"
|
||||||
|
@click="goToBillLading"
|
||||||
|
>
|
||||||
|
<view class="funItemContent">
|
||||||
|
<view class="funIconBox">
|
||||||
|
<image
|
||||||
|
class="funIcon"
|
||||||
|
src="https://eshangtech.com/ShopICO/ahyd-BID/newIndex3/statistics.svg"
|
||||||
|
/>
|
||||||
|
</view>
|
||||||
|
<text class="funText">提单申请</text>
|
||||||
|
</view>
|
||||||
|
</view> -->
|
||||||
|
|
||||||
<!-- 数智统计-->
|
<!-- 数智统计-->
|
||||||
<view
|
<view
|
||||||
class="funItem"
|
class="funItem"
|
||||||
@ -6210,6 +6226,9 @@ export default {
|
|||||||
this.$util.toNextRoute("navigateTo", `/pages/robot/index`);
|
this.$util.toNextRoute("navigateTo", `/pages/robot/index`);
|
||||||
// this.$util.toNextRoute("navigateTo", `/pages/testPage/index`);
|
// this.$util.toNextRoute("navigateTo", `/pages/testPage/index`);
|
||||||
},
|
},
|
||||||
|
goToBillLading(){
|
||||||
|
this.$util.toNextRoute("navigateTo", `/pages/billOfLading/index`);
|
||||||
|
},
|
||||||
handleShowTrafficDetail() {
|
handleShowTrafficDetail() {
|
||||||
this.showMonthDetail = !this.showMonthDetail;
|
this.showMonthDetail = !this.showMonthDetail;
|
||||||
},
|
},
|
||||||
|
|||||||
40
util/api.js
40
util/api.js
@ -19,7 +19,7 @@ export default {
|
|||||||
* +-------------------
|
* +-------------------
|
||||||
* @return {Promise} promise 返回promise供后续操作
|
* @return {Promise} promise 返回promise供后续操作
|
||||||
*/
|
*/
|
||||||
request: function(method, url, data, isWebApi) {
|
request: function (method, url, data, isWebApi) {
|
||||||
|
|
||||||
var promise = new Promise((resolve, reject) => {
|
var promise = new Promise((resolve, reject) => {
|
||||||
//init
|
//init
|
||||||
@ -44,37 +44,37 @@ export default {
|
|||||||
}
|
}
|
||||||
let ModuleGuid = ''
|
let ModuleGuid = ''
|
||||||
let obj = Store.state.userData.AuthorityInfo
|
let obj = Store.state.userData.AuthorityInfo
|
||||||
for (let key in obj){
|
for (let key in obj) {
|
||||||
// 经管 财务
|
// 经管 财务
|
||||||
if (key==='f0889950-f98a-40de-a369-613efeed2579' || key==='c021bbca-3c0a-478d-81e7-87e81ef80e05' ){
|
if (key === 'f0889950-f98a-40de-a369-613efeed2579' || key === 'c021bbca-3c0a-478d-81e7-87e81ef80e05') {
|
||||||
if (obj[key]===1){
|
if (obj[key] === 1) {
|
||||||
if (ModuleGuid===''){
|
if (ModuleGuid === '') {
|
||||||
ModuleGuid = key
|
ModuleGuid = key
|
||||||
}else{
|
} else {
|
||||||
ModuleGuid +=`,${key}`
|
ModuleGuid += `,${key}`
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (method == 'POST' && !isWebApi) {
|
if (method == 'POST' && !isWebApi) {
|
||||||
requstOptions.header = {
|
requstOptions.header = {
|
||||||
'content-type': 'application/x-www-form-urlencoded;charset=utf-8',
|
'content-type': 'application/x-www-form-urlencoded;charset=utf-8',
|
||||||
'ServerpartCodes':Store.state.userData.UserCityAuthority,
|
'ServerpartCodes': Store.state.userData.UserCityAuthority,
|
||||||
'ProvinceCode': Store.state.userData.ProvinceCode,
|
'ProvinceCode': Store.state.userData.ProvinceCode,
|
||||||
'ModuleGuid':ModuleGuid,
|
'ModuleGuid': ModuleGuid,
|
||||||
'WeChat_AppId' : 'wxa99ef047735c031e',
|
'WeChat_AppId': 'wxa99ef047735c031e',
|
||||||
'memberShipId' : !data.memberShipId ? (Store.state.userData.Membership_Id || '') :data.memberShipId,
|
'memberShipId': !data.memberShipId ? (Store.state.userData.Membership_Id || '') : data.memberShipId,
|
||||||
'SourcePlatform': 'minProgram'
|
'SourcePlatform': 'minProgram'
|
||||||
}
|
}
|
||||||
}else{
|
} else {
|
||||||
requstOptions.header = {
|
requstOptions.header = {
|
||||||
'ServerpartCodes':Store.state.userData.UserCityAuthority,
|
'ServerpartCodes': Store.state.userData.UserCityAuthority,
|
||||||
'ProvinceCode': Store.state.userData.ProvinceCode,
|
'ProvinceCode': Store.state.userData.ProvinceCode,
|
||||||
'ModuleGuid':ModuleGuid,
|
'ModuleGuid': ModuleGuid,
|
||||||
'WeChat_AppId' : 'wxa99ef047735c031e',
|
'WeChat_AppId': 'wxa99ef047735c031e',
|
||||||
'memberShipId' : !data.memberShipId ? (Store.state.userData.Membership_Id || '') :data.memberShipId,
|
'memberShipId': !data.memberShipId ? (Store.state.userData.Membership_Id || '') : data.memberShipId,
|
||||||
'SourcePlatform': 'minProgram'
|
'SourcePlatform': 'minProgram',
|
||||||
|
"UserID": Store.state.userData.UserIdEncrypted,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
requstOptions.success = (res) => {
|
requstOptions.success = (res) => {
|
||||||
@ -82,7 +82,7 @@ export default {
|
|||||||
//服务器返回数据
|
//服务器返回数据
|
||||||
if (res && (res.statusCode === 200 || res.statusCode === 304 || res.statusCode === 400)) {
|
if (res && (res.statusCode === 200 || res.statusCode === 304 || res.statusCode === 400)) {
|
||||||
if (res.data && ((res.data.ResultCode != '999' && res.data.ResultCode != undefined) ||
|
if (res.data && ((res.data.ResultCode != '999' && res.data.ResultCode != undefined) ||
|
||||||
(res.data.Result_Code != '999' && res.data.Result_Code != undefined))) {
|
(res.data.Result_Code != '999' && res.data.Result_Code != undefined))) {
|
||||||
resolve(res.data);
|
resolve(res.data);
|
||||||
} else if (typeof res.data == 'object') { // 兼容招标投标模块
|
} else if (typeof res.data == 'object') { // 兼容招标投标模块
|
||||||
resolve(res.data);
|
resolve(res.data);
|
||||||
@ -118,7 +118,7 @@ export default {
|
|||||||
}
|
}
|
||||||
//网络请求
|
//网络请求
|
||||||
uni.request(requstOptions)
|
uni.request(requstOptions)
|
||||||
}).catch(function(reason, request) {
|
}).catch(function (reason, request) {
|
||||||
|
|
||||||
uni.showToast({
|
uni.showToast({
|
||||||
title: reason,
|
title: reason,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user