首页消息,首页来款项目,工作组,列表详情
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 841 B |
Binary file not shown.
|
After Width: | Height: | Size: 1014 B |
Binary file not shown.
|
After Width: | Height: | Size: 565 B |
@@ -45,6 +45,12 @@ const UserApi = {
|
||||
projectList: (params) => http.get(`${URL_CONFIG}project/payCommonProject/queryCompanyPageList`, params),
|
||||
// 来款项目详情
|
||||
projectDetail: (params) => http.get(`${URL_CONFIG}project/payCommonProject/queryCompanyById`, params),
|
||||
// 消息提醒列表
|
||||
messageList: (params) => http.get(`${URL_CONFIG}sys/sysAnnouncementSend/getCompanyMyAnnouncementSend`, params),
|
||||
// 消息提醒已读状态
|
||||
messageStatus: (params) => http.post(`${URL_CONFIG}sys/sysAnnouncementSend/editCompanyByAnntIdAndUserId`, params),
|
||||
// 工作组分页
|
||||
workList: (params) => http.get(`${URL_CONFIG}project/payWorkingGroupSubitem/queryCompanyPageList`, params),
|
||||
}
|
||||
|
||||
export default UserApi
|
||||
|
||||
@@ -49,13 +49,13 @@ Component({
|
||||
methods: {
|
||||
closePopup() {
|
||||
this.triggerEvent("close", {
|
||||
visible: this.data.visible
|
||||
visibleDate: this.data.visibleDate
|
||||
})
|
||||
},
|
||||
outClick(){
|
||||
if (this.data.outClickCanClose){
|
||||
this.triggerEvent("close", {
|
||||
visible: this.data.visible
|
||||
visibleDate: this.data.visibleDate
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
@@ -4,10 +4,10 @@
|
||||
<picker-view indicator-style="height: 50px;" style="width: 100%; height: 300px;" value="{{value}}" bindtap="ok"
|
||||
bindchange="bindChange">
|
||||
<picker-view-column>
|
||||
<view wx:for="{{years}}" class="item">{{item}}年</view>
|
||||
<view wx:for="{{years}}" class="item" wx:key="item">{{item}}年</view>
|
||||
</picker-view-column>
|
||||
<picker-view-column wx:if="{{mode === 'month'}}">
|
||||
<view wx:for="{{months}}" class="item">{{item}}月</view>
|
||||
<view wx:for="{{months}}" class="item" wx:key="item">{{item}}月</view>
|
||||
</picker-view-column>
|
||||
</picker-view>
|
||||
</view>
|
||||
|
||||
+109
-46
@@ -1,3 +1,5 @@
|
||||
import UserApi from '../../assets/js/http/userApi'
|
||||
|
||||
// pages/home/home.js
|
||||
Page({
|
||||
|
||||
@@ -5,23 +7,66 @@ Page({
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
date: '',
|
||||
list: [], // 消息列表
|
||||
selectArr: [
|
||||
{ path: '../../assets/images/laikuan.png', text: '来款项目' },
|
||||
{ path: '../../assets/images/gongzuozu.png', text: '工作组' },
|
||||
{ path: '../../assets/images/fenbiaowei.png', text: '分标委' },
|
||||
{ path: '../../assets/images/huiyi.png', text: '会议活动' },
|
||||
{ path: '../../assets/images/ziliao.png', text: '资料网员' },
|
||||
]
|
||||
],
|
||||
titleList: [
|
||||
'会议提醒',
|
||||
'文件提醒',
|
||||
'邮寄提醒',
|
||||
'催款提醒',
|
||||
],
|
||||
index: 0,
|
||||
list: [], // 消息列表
|
||||
searchParams: {
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
titile: '', // 提醒类型 3:会议 6:文件 7:邮寄 8:催款
|
||||
startTime: '', // 开始日期
|
||||
endTime: '' // 结束日期
|
||||
}
|
||||
},
|
||||
loadData(){
|
||||
UserApi.messageList(this.data.searchParams).then(res=>{
|
||||
if(res.success){
|
||||
// 搜索时,把原数据清空,重新筛选
|
||||
if(this.data.searchParams.pageNo === 1) {
|
||||
this.setData({
|
||||
list: []
|
||||
})
|
||||
}
|
||||
const reg = new RegExp("<p>","g")
|
||||
const reg1 = new RegExp("</p>","g")
|
||||
if(res.result.records && res.result.records.length){
|
||||
res.result.records.forEach(item=>{
|
||||
item.msgContent = item.msgContent.replace(reg,"")
|
||||
item.msgContent = item.msgContent.replace(reg1,"")
|
||||
const startIndex = item.msgContent.indexOf("<")
|
||||
const endIndex = item.msgContent.lastIndexOf(">")
|
||||
item.msgContent = item.msgContent.substring(0, startIndex) + item.msgContent.slice(endIndex+1) + '点击报名'
|
||||
})
|
||||
this.setData({
|
||||
list: [...this.data.list, ...res.result.records]
|
||||
})
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
// 点击首页的五个选项跳转页面
|
||||
clickSelect(e){
|
||||
clickSelect(e){
|
||||
let index = e.currentTarget.dataset.index
|
||||
let url = ''
|
||||
if(index === 0) { // 来款项目
|
||||
url = '../project/project'
|
||||
url = '../project/project?type=project'
|
||||
} else if(index === 1) { // 工作组
|
||||
// url = '../work/work'
|
||||
url = '../project/project'
|
||||
url = '../project/project?type=work'
|
||||
} else if(index === 2) { // 分标委
|
||||
url = '../committee/committee'
|
||||
} else if(index === 3) { // 会议活动
|
||||
@@ -34,59 +79,77 @@ Page({
|
||||
url,
|
||||
})
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
|
||||
// 会议去报名,切换已读状态
|
||||
messageDetail(e){
|
||||
const readFlag = e.currentTarget.dataset.message.readFlag
|
||||
const templateCode = e.currentTarget.dataset.message.templateCode
|
||||
if(readFlag == 0) { // 标记已读
|
||||
UserApi.messageStatus({anntId: e.currentTarget.dataset.message.anntId}).then(res=>{
|
||||
wx.showToast({
|
||||
title: '已读成功',
|
||||
icon: 'none'
|
||||
})
|
||||
})
|
||||
}
|
||||
if(templateCode == 'QY_1_HYTZ_WORK_GROUP_CREATE'){ // 去报名页
|
||||
wx.navigateTo({
|
||||
url: 'url',
|
||||
})
|
||||
}
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面初次渲染完成
|
||||
*/
|
||||
onReady: function () {
|
||||
|
||||
// 类型选中
|
||||
bindTitleChange(e){
|
||||
this.data.searchParams.pageNo = 1
|
||||
if(e.detail.value == 0){
|
||||
this.setData({
|
||||
"searchParams.titile": 3,
|
||||
})
|
||||
}else if(e.detail.value == 1){
|
||||
this.setData({
|
||||
"searchParams.titile": 6,
|
||||
})
|
||||
}else if(e.detail.value == 2){
|
||||
this.setData({
|
||||
"searchParams.titile": 7,
|
||||
})
|
||||
}else {
|
||||
this.setData({
|
||||
"searchParams.titile": 8,
|
||||
})
|
||||
}
|
||||
this.loadData()
|
||||
},
|
||||
// 日期选中
|
||||
bindDateChange: function (e) {
|
||||
this.data.searchParams.pageNo = 1
|
||||
this.setData({
|
||||
"searchParams.startTime": e.detail.value,
|
||||
"searchParams.endTime": e.detail.value
|
||||
})
|
||||
this.loadData()
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
|
||||
let searchParams = {
|
||||
pageNo: 1,
|
||||
pageSize: 10,
|
||||
titile: '', // 提醒类型 3:会议 6:文件 7:邮寄 8:催款
|
||||
startTime: '', // 开始日期
|
||||
endTime: '' // 结束日期
|
||||
}
|
||||
this.setData({
|
||||
searchParams
|
||||
})
|
||||
this.loadData()
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面隐藏
|
||||
*/
|
||||
onHide: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面卸载
|
||||
*/
|
||||
onUnload: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面相关事件处理函数--监听用户下拉动作
|
||||
*/
|
||||
onPullDownRefresh: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
* 用户点击右上角分享
|
||||
*/
|
||||
onShareAppMessage: function () {
|
||||
|
||||
this.data.searchParams.pageNo++
|
||||
this.loadData()
|
||||
}
|
||||
})
|
||||
@@ -1,4 +1,7 @@
|
||||
{
|
||||
"usingComponents": {},
|
||||
"usingComponents": {
|
||||
"popup": "../../components/popup/popup",
|
||||
"dateMonth": "../../components/dateMonth/dateMonth"
|
||||
},
|
||||
"navigationStyle": "custom"
|
||||
}
|
||||
+48
-3
@@ -1,11 +1,12 @@
|
||||
<view>
|
||||
<view class="home-bg">
|
||||
<!-- 顶部背景图 mode="scaleToFill" 按照宽高填充,忽略图片原比例-->
|
||||
<image mode="scaleToFill" src="../../assets/images/home-bg.png"></image>
|
||||
<image mode="scaleToFill" src="../../assets/images/home-bg.png"></image>
|
||||
<!-- 顶部选项栏 -->
|
||||
<view class="select-box">
|
||||
<view class="select">
|
||||
<view class="select-item" wx:for="{{selectArr}}" wx:for-item="item" wx:key="path" bindtap="clickSelect" data-item="{{item}}" data-index="{{index}}">
|
||||
<view class="select-item" wx:for="{{selectArr}}" wx:for-item="item" wx:key="path" bindtap="clickSelect"
|
||||
data-item="{{item}}" data-index="{{index}}">
|
||||
<view class="image-box">
|
||||
<image mode="scaleToFill" src="{{item.path}}"></image>
|
||||
</view>
|
||||
@@ -13,5 +14,49 @@
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 消息列表筛选框 -->
|
||||
<view class="list-box">
|
||||
<view class="sign-list">
|
||||
<view class="select-list">
|
||||
<view class="select-item">
|
||||
<picker bindchange="bindTitleChange" value="{{searchParams.titile}}" range="{{titleList}}">
|
||||
<view class="picker">
|
||||
<text wx:if="{{!searchParams.titile}}">类型</text>
|
||||
<text wx:if="{{searchParams.titile}}" wx:if="{{searchParams.titile == 3}}">会议提醒</text>
|
||||
<text wx:if="{{searchParams.titile}}" wx:if="{{searchParams.titile == 6}}">文件提醒</text>
|
||||
<text wx:if="{{searchParams.titile}}" wx:if="{{searchParams.titile == 7}}">邮寄提醒</text>
|
||||
<text wx:if="{{searchParams.titile}}" wx:if="{{searchParams.titile == 8}}">催款提醒</text>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
<view class="select-item">
|
||||
<picker mode="date" value="{{searchParams.startTime}}" start="2021-01-01" end="2030-12-31" bindchange="bindDateChange">
|
||||
<view class="picker">
|
||||
<text wx:if="{{!searchParams.startTime}}">时间</text>
|
||||
<text wx:if="{{searchParams.startTime}}">{{searchParams.startTime}}</text>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<!-- 列表 -->
|
||||
<view class="list-content">
|
||||
<view class="list-content-item" wx:for="{{list}}" wx:key="item" wx:for-item="item" bindtap="messageDetail" data-message="{{item}}">
|
||||
<view class="content-top">
|
||||
<view>
|
||||
<text class="blue" class="">{{item.titile_dictText}}</text>
|
||||
</view>
|
||||
<text class="content-time">{{item.sendTime}}</text>
|
||||
</view>
|
||||
<text class="content-bottom">{{item.msgContent}}</text>
|
||||
<text class="status" wx:if="{{item.readFlag == 0}}"></text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view wx:if="{{list.length === 0}}" class="no-data">
|
||||
<text>暂无数据</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<popup visible="{{visible}}" bindclose="close" outClickCanClose="true" bindok="ok" data="{{data}}"></popup>
|
||||
<!-- <dateMonth visible="{{visibleDate}}" mode="year" outClickCanClose="true" bindok="dateOk" bindclose="close"></dateMonth> -->
|
||||
|
||||
@@ -33,3 +33,76 @@ page{
|
||||
.image-box image{
|
||||
max-height: 100%;
|
||||
}
|
||||
.list-box{
|
||||
margin: 0 15pt;
|
||||
margin-top: -30pt;
|
||||
padding: 15px 0;
|
||||
background: #fff;
|
||||
border-radius: 10px;
|
||||
}
|
||||
|
||||
.sign-list .select-list {
|
||||
height: 40px;
|
||||
font-size: 14px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background-color: #fff;
|
||||
}
|
||||
.sign-list .select-item {
|
||||
flex: 1;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
}
|
||||
.sign-list .select-item image {
|
||||
width: 11px;
|
||||
height: 6px;
|
||||
margin-left: 9px;
|
||||
}
|
||||
.list-content{
|
||||
max-height: 500px;
|
||||
overflow-y: auto;
|
||||
padding: 15px 15pt;
|
||||
border-radius: 10px;
|
||||
}
|
||||
.list-content .list-content-item{
|
||||
height: 60px;
|
||||
border-bottom: 0.5px solid #f5f5f5;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-around;
|
||||
position: relative;
|
||||
}
|
||||
.list-content-item:last-child{
|
||||
border: 0;
|
||||
}
|
||||
.content-top{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
font-size: 11px;
|
||||
color: #999;
|
||||
}
|
||||
.content-top image{
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.content-bottom{
|
||||
color: #555;
|
||||
font-size: 13px;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
overflow: hidden;
|
||||
}
|
||||
.status{
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
right: -5px;
|
||||
display: block;
|
||||
width: 5px;
|
||||
height: 5px;
|
||||
background-color: #FF5E60;
|
||||
border-radius: 50%;
|
||||
}
|
||||
@@ -26,6 +26,11 @@ Page({
|
||||
// 获取成功,倒计时 start
|
||||
if (res.success) {
|
||||
this.countDown()
|
||||
wx.showToast({
|
||||
title: res.message,
|
||||
icon: 'none',
|
||||
duration: 2000
|
||||
})
|
||||
} else {
|
||||
wx.showToast({
|
||||
title: res.message,
|
||||
|
||||
+76
-108
@@ -5,9 +5,8 @@ Page({
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
visible: false,
|
||||
visibleDate: false,
|
||||
index: 0,
|
||||
type: '', // project 是来款项目 work 是工作组
|
||||
list: [], // 项目列表
|
||||
searchParams: {
|
||||
pageNo: 1,
|
||||
@@ -15,141 +14,110 @@ Page({
|
||||
needInvoice: '', // 是否需要发票 0 4
|
||||
pack: '', // 是否打包 0 1
|
||||
year: '', // 运行年份
|
||||
},
|
||||
selects: [ // 自定义选择框参数
|
||||
{
|
||||
select: '发票',
|
||||
active: false,
|
||||
tabIndex: 1
|
||||
},
|
||||
{
|
||||
select: '打包',
|
||||
active: false,
|
||||
tabIndex: 2
|
||||
},
|
||||
{
|
||||
select: '时间',
|
||||
active: false,
|
||||
tabIndex: 3
|
||||
}
|
||||
],
|
||||
data: [
|
||||
{
|
||||
label: '需要',
|
||||
value: 4
|
||||
},{
|
||||
label: '不需要',
|
||||
value: 0
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
// 搜索筛选
|
||||
changeTab(e){
|
||||
this.data.index = e.currentTarget.dataset.index
|
||||
if(this.data.index === 0){
|
||||
// 发票改变
|
||||
bindNeedInvoiceChange(e){
|
||||
console.log(e.detail.value)
|
||||
this.data.searchParams.pageNo = 1
|
||||
if(e.detail.value == 0) {
|
||||
this.setData({
|
||||
visible: true
|
||||
})
|
||||
this.setData({
|
||||
data: [
|
||||
{
|
||||
label: '需要',
|
||||
value: 4
|
||||
},{
|
||||
label: '不需要',
|
||||
value: 0
|
||||
}
|
||||
]
|
||||
})
|
||||
}else if(this.data.index === 1){
|
||||
this.setData({
|
||||
visible: true
|
||||
})
|
||||
this.setData({
|
||||
data: [
|
||||
{
|
||||
label: '是',
|
||||
value: 1
|
||||
},{
|
||||
label: '否',
|
||||
value: 0
|
||||
}
|
||||
]
|
||||
"searchParams.needInvoice": 1,
|
||||
})
|
||||
}else{
|
||||
this.setData({
|
||||
visibleDate: true
|
||||
"searchParams.needInvoice": 0,
|
||||
})
|
||||
}
|
||||
this.loadData()
|
||||
},
|
||||
// 打包改变
|
||||
bindPackChange(e){
|
||||
this.data.searchParams.pageNo = 1
|
||||
if(e.detail.value == 0) {
|
||||
this.setData({
|
||||
"searchParams.pack": 1,
|
||||
})
|
||||
}else{
|
||||
this.setData({
|
||||
"searchParams.pack": 0,
|
||||
})
|
||||
}
|
||||
},
|
||||
// 关闭发票和打包的弹出层
|
||||
close() {
|
||||
this.setData({
|
||||
visible: false
|
||||
})
|
||||
},
|
||||
// 日期选中
|
||||
dateOk(value){
|
||||
this.data.pageNo = 1
|
||||
this.setData({
|
||||
"searchParams.year": value.detail,
|
||||
visibleDate: false
|
||||
})
|
||||
this.loadData()
|
||||
},
|
||||
ok(e){
|
||||
this.data.pageNo = 1
|
||||
if(this.data.index === 0){
|
||||
this.setData({
|
||||
'searchParams.needInvoice': e.detail
|
||||
})
|
||||
}else if(this.data.index === 1){
|
||||
this.setData({
|
||||
'searchParams.pack': e.detail
|
||||
})
|
||||
}
|
||||
bindDateChange(e){
|
||||
this.data.searchParams.pageNo = 1
|
||||
this.setData({
|
||||
"searchParams.year": e.detail.value
|
||||
})
|
||||
this.loadData()
|
||||
},
|
||||
// 项目详情
|
||||
projectDetail(){
|
||||
projectDetail(e){
|
||||
console.log(e)
|
||||
wx.navigateTo({
|
||||
url: '../projectDetail/projectDetail',
|
||||
url: `../projectDetail/projectDetail?id=${e.currentTarget.dataset.project.id}`,
|
||||
})
|
||||
},
|
||||
loadData(){
|
||||
UserApi.projectList(this.data.searchParams).then(res=>{
|
||||
if(res.success){
|
||||
// 搜索时,把原数据清空,重新筛选
|
||||
if(this.data.pageNo === 1) {
|
||||
this.setData({
|
||||
list: []
|
||||
})
|
||||
if(this.data.type == 'project'){
|
||||
UserApi.projectList(this.data.searchParams).then(res=>{
|
||||
if(res.success){
|
||||
// 搜索时,把原数据清空,重新筛选
|
||||
if(this.data.searchParams.pageNo === 1) {
|
||||
this.setData({
|
||||
list: []
|
||||
})
|
||||
}
|
||||
if(res.result.records && res.result.records.length){
|
||||
this.setData({
|
||||
list: [...this.data.list, ...res.result.records]
|
||||
})
|
||||
}
|
||||
}
|
||||
if(res.result.records && res.result.records.length){
|
||||
this.setData({
|
||||
list: [...this.data.list, ...res.result.records]
|
||||
})
|
||||
}
|
||||
}
|
||||
}).catch(err=>{
|
||||
wx.showToast({
|
||||
title: '加载失败',
|
||||
icon: 'fail',
|
||||
duration: 2000
|
||||
}).catch(err=>{
|
||||
wx.showToast({
|
||||
title: '加载失败',
|
||||
icon: 'fail',
|
||||
duration: 2000
|
||||
})
|
||||
})
|
||||
})
|
||||
}else if(this.data.type == 'work'){
|
||||
UserApi.workList(this.data.searchParams).then(res=>{
|
||||
if(res.success){
|
||||
// 搜索时,把原数据清空,重新筛选
|
||||
if(this.data.searchParams.pageNo === 1) {
|
||||
this.setData({
|
||||
list: []
|
||||
})
|
||||
}
|
||||
if(res.result.records && res.result.records.length){
|
||||
this.setData({
|
||||
list: [...this.data.list, ...res.result.records]
|
||||
})
|
||||
}
|
||||
}
|
||||
}).catch(err=>{
|
||||
wx.showToast({
|
||||
title: '加载失败',
|
||||
icon: 'fail',
|
||||
duration: 2000
|
||||
})
|
||||
})
|
||||
}
|
||||
},
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
this.data.type = options.type
|
||||
this.loadData()
|
||||
},
|
||||
/**
|
||||
* 页面上拉触底事件的处理函数
|
||||
*/
|
||||
onReachBottom: function () {
|
||||
this.data.pageNo++
|
||||
this.data.searchParams.pageNo++
|
||||
this.loadData()
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1,19 +1,44 @@
|
||||
<!--pages/meeting/meeting.wxml首页会议活动-->
|
||||
<view class="select-list">
|
||||
<view class="select-item" bindtap="changeTab" data-index="{{index}}" wx:for="{{selects}}" wx:for-item="select" wx:key="tabIndex">
|
||||
<!-- <view class="select-item" bindtap="changeTab" data-index="{{index}}" wx:for="{{selects}}" wx:for-item="select" wx:key="tabIndex">
|
||||
<text>{{select.select}}</text>
|
||||
<image wx:if="{{!select.active}}" src="../../assets/images/toTop.png"></image>
|
||||
<image wx:if="{{select.active}}" src="../../assets/images/toBottom.png"></image>
|
||||
</view> -->
|
||||
<!-- 发票 -->
|
||||
<view class="select-item">
|
||||
<picker bindchange="bindNeedInvoiceChange" value="{{searchParams.needInvoice}}" range="{{['是','否']}}">
|
||||
<view class="picker">
|
||||
<text>发票{{searchParams.needInvoice == '' ? '' : searchParams.needInvoice == 1 ? ' :是' : ' :否'}}</text>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
<!-- 打包 -->
|
||||
<view class="select-item">
|
||||
<picker bindchange="bindPackChange" value="{{searchParams.pack}}" range="{{['是','否']}}">
|
||||
<view class="picker">
|
||||
<text>打包{{searchParams.pack == '' ? '' : searchParams.pack == 1 ? ' :是' : ' :否'}}</text>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
<!-- 年份 -->
|
||||
<view class="select-item">
|
||||
<picker mode="date" fields="year" value="{{searchParams.year}}" start="2021" end="2030" bindchange="bindDateChange">
|
||||
<view class="picker">
|
||||
<text wx:if="{{!searchParams.year}}">时间</text>
|
||||
<text wx:if="{{searchParams.year}}">时间:{{searchParams.year}}年</text>
|
||||
</view>
|
||||
</picker>
|
||||
</view>
|
||||
</view>
|
||||
<view class="list">
|
||||
<view class="list-item" wx:for="{{list}}" bindtap="projectDetail" wx:key="item">
|
||||
<view class="list-item" wx:for="{{list}}" bindtap="projectDetail" wx:key="item" data-project="{{item}}">
|
||||
<view class="title">
|
||||
<text>{{item.chargeUse_dictText}}</text>
|
||||
<text>{{item.chargeProject}}</text>
|
||||
<text>{{item.year}}年</text>
|
||||
</view>
|
||||
<view class="content-text">
|
||||
<text class="all">{{item.needInvoice === 0 ? '不需要发票' : '需要发票'}}</text>
|
||||
<text class="{{item.needInvoice === 0 ? '' : 'all'}}">{{item.needInvoice === 0 ? '不需要发票' : '需要发票'}}</text>
|
||||
<text class="{{item.inAccount === 0 ? '' : item.inAccount === 2 ? 'half' : 'all'}}">到账</text>
|
||||
<text class="{{item.makeInvoice === 0 ? '' : item.makeInvoice === 2 ? 'half' : 'all'}}">开票</text>
|
||||
<text class="{{item.mail === 0 ? '' : item.mail === 2 ? 'half' : 'all'}}">邮寄</text>
|
||||
@@ -24,4 +49,4 @@
|
||||
<text>暂无数据</text>
|
||||
</view>
|
||||
<popup visible="{{visible}}" bindclose="close" outClickCanClose="true" bindok="ok" data="{{data}}"></popup>
|
||||
<dateMonth visible="{{visibleDate}}" mode="year" bindok="dateOk"></dateMonth>
|
||||
<dateMonth visible="{{visibleDate}}" mode="year" outClickCanClose="true" bindok="dateOk" bindclose="close"></dateMonth>
|
||||
@@ -1,18 +1,34 @@
|
||||
// pages/meeting/meeting.js
|
||||
import UserApi from '../../assets/js/http/userApi'
|
||||
import { previewFile, initFileList } from '../../assets/js/preview'
|
||||
Page({
|
||||
|
||||
/**
|
||||
* 页面的初始数据
|
||||
*/
|
||||
data: {
|
||||
|
||||
form: {},
|
||||
noticeFileList: [] // 通知文件
|
||||
},
|
||||
// 预览
|
||||
preview(e){
|
||||
const fileObj = e.currentTarget.dataset.file
|
||||
previewFile(fileObj.id,fileObj.name)
|
||||
},
|
||||
|
||||
/**
|
||||
* 生命周期函数--监听页面加载
|
||||
*/
|
||||
onLoad: function (options) {
|
||||
|
||||
UserApi.projectDetail({id: options.id}).then(res=>{
|
||||
this.setData({
|
||||
form: res.result
|
||||
})
|
||||
// 获取通知文件list
|
||||
initFileList(this.data.form.files).then(res => {
|
||||
this.setData({
|
||||
noticeFileList:res
|
||||
})
|
||||
})
|
||||
})
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -26,7 +42,7 @@ Page({
|
||||
* 生命周期函数--监听页面显示
|
||||
*/
|
||||
onShow: function () {
|
||||
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
@@ -63,4 +79,4 @@ Page({
|
||||
onShareAppMessage: function () {
|
||||
|
||||
}
|
||||
})
|
||||
})
|
||||
|
||||
@@ -2,116 +2,111 @@
|
||||
<view class="basic-info">
|
||||
<view class="meeting-name">
|
||||
<text>项目名称</text>
|
||||
<text>会议名称会议名称</text>
|
||||
<text>{{form.chargeProject}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>款项用途</text>
|
||||
<text>arff4ds8a3s6651</text>
|
||||
<!-- 需求文档上写的固定的 资料网费-->
|
||||
<text>{{form.chargeUse_dictText}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>运行年份</text>
|
||||
<text>找找</text>
|
||||
<text>{{form.year}}年</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>企业负责人</text>
|
||||
<text>张三</text>
|
||||
<text>项目负责人</text>
|
||||
<text>{{form.principalName}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>应付金额</text>
|
||||
<text>500元</text>
|
||||
<text>{{form.receivableAmount ? form.receivableAmount + '元' : '0'}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>实付金额</text>
|
||||
<text>500元</text>
|
||||
<text>{{form.paidAmount ? form.paidAmount + '元' : '0'}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>经办人</text>
|
||||
<text>500元</text>
|
||||
<text>企业联系人</text>
|
||||
<text>{{form.contactsTemporaryName}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>是否打包</text>
|
||||
<text>500元</text>
|
||||
<text>邮寄联系人</text>
|
||||
<text>{{form.mailContactsTemporaryName}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>打包</text>
|
||||
<text>{{form.pack_dictText}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>需要发票</text>
|
||||
<text>500元</text>
|
||||
<text>{{form.needInvoice_dictText}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>付款方式</text>
|
||||
<text>500元</text>
|
||||
<text>{{form.chargeWay_dictText}}</text>
|
||||
</view>
|
||||
<view>
|
||||
<text>备注</text>
|
||||
<text>500元</text>
|
||||
<!-- 付款方式为合同才有 -->
|
||||
<view wx:if="{{form.chargeWay === 2}}">
|
||||
<text>合同</text>
|
||||
<!-- 跳转到合同详情 -->
|
||||
<text class="color-green" bindtap="contractDetail">{{form.contractNo}}</text>
|
||||
</view>
|
||||
<!-- 付款方式为收费通知才有 -->
|
||||
<view wx:if="{{form.chargeWay === 3}}">
|
||||
<text>收费通知号</text>
|
||||
<text>{{form.chargeNoticeNo}}</text>
|
||||
</view>
|
||||
|
||||
<view wx:if="{{form.chargeWay === 3}}" style="height: auto !important;">
|
||||
<text>通知文件</text>
|
||||
<view class="info-file">
|
||||
<text class='color-green' data-file="{{item}}" wx:for="{{noticeFileList}}" wx:key='item'
|
||||
bindtap="preview">{{item.name}}</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="basic-info" style="margin-top: 10px;">
|
||||
<view class="title">
|
||||
<text>到账信息</text>
|
||||
</view>
|
||||
<view style="padding: 0 15px;">
|
||||
<text>2021年到账12021元</text>
|
||||
<view style="padding: 0 15px;" wx:for="{{form.paymentRecord}}" wx:key="item">
|
||||
<text>{{item.paymentDate}}到账{{item.amountReceived}}元</text>
|
||||
</view>
|
||||
</view>
|
||||
<view class="basic-info" style="margin-top: 10px;">
|
||||
<view class="title">
|
||||
<text>开票邮寄信息</text>
|
||||
</view>
|
||||
<view class="way">
|
||||
<image src="../../assets/images/sf.png"></image>
|
||||
<text>顺丰速递</text>
|
||||
</view>
|
||||
<view class="way-info">
|
||||
<view class="way-left">
|
||||
<text class="way-left-text green">票</text>
|
||||
<view class="way-center">
|
||||
<text>开票人:张三</text>
|
||||
<text>开票时间:2021年10月9日</text>
|
||||
</view>
|
||||
<view wx:for="{{form.mailBill}}" wx:key='item' class="way-box">
|
||||
<view class="title">
|
||||
<text>开票邮寄信息</text>
|
||||
</view>
|
||||
<text class="way-right">开票号5465</text>
|
||||
</view>
|
||||
<view class="way-info">
|
||||
<view class="way-left">
|
||||
<text class="way-left-text blue">票</text>
|
||||
<view class="way-center">
|
||||
<text>开票人:张三</text>
|
||||
<text>开票时间:2021年10月9日</text>
|
||||
</view>
|
||||
<view class="way">
|
||||
<image wx:if='{{item.sendMethod === 2}}' src="../../assets/images/sf.png"></image>
|
||||
<image wx:if='{{item.sendMethod === 1}}' src="../../assets/images/ems.png"></image>
|
||||
<text>{{item.sendMethod_dictText}}</text>
|
||||
</view>
|
||||
<text class="way-right">开票号5465</text>
|
||||
</view>
|
||||
<view class="look-progress">
|
||||
<text>金额:200元</text>
|
||||
<text>查看物流</text>
|
||||
</view>
|
||||
<view class="way" style="margin-top: 10px;">
|
||||
<image src="../../assets/images/ems.png"></image>
|
||||
<text>EMS速运</text>
|
||||
</view>
|
||||
<view class="way-info">
|
||||
<view class="way-left">
|
||||
<text class="way-left-text green">票</text>
|
||||
<view class="way-center">
|
||||
<text>开票人:张三</text>
|
||||
<text>开票时间:2021年10月9日</text>
|
||||
<view class="way-info">
|
||||
<view class="way-left">
|
||||
<text class="way-left-text green">票</text>
|
||||
<view class="way-center">
|
||||
<text>开票人:{{item.createBy}}</text>
|
||||
<text>开票时间:{{item.billDate}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="way-right">开票号{{item.billNo}}</text>
|
||||
</view>
|
||||
<text class="way-right">开票号5465</text>
|
||||
</view>
|
||||
<view class="way-info">
|
||||
<view class="way-left">
|
||||
<text class="way-left-text blue">票</text>
|
||||
<view class="way-center">
|
||||
<text>开票人:张三</text>
|
||||
<text>开票时间:2021年10月9日</text>
|
||||
<view class="way-info">
|
||||
<view class="way-left">
|
||||
<text class="way-left-text blue">邮</text>
|
||||
<view class="way-center">
|
||||
<text>邮寄人:{{item.createBy}}</text>
|
||||
<text>邮寄时间:{{item.sendDate}}</text>
|
||||
</view>
|
||||
</view>
|
||||
<text class="way-right">快递号:{{item.postNo}}</text>
|
||||
</view>
|
||||
<view class="look-progress">
|
||||
<text>金额:{{item.invoiceAmount}}元</text>
|
||||
<text wx:if="{{item.postStatus == 1}}">查看物流</text>
|
||||
</view>
|
||||
<text class="way-right">开票号5465</text>
|
||||
</view>
|
||||
<view class="look-progress">
|
||||
<text>金额:200元</text>
|
||||
<text>查看物流</text>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
@@ -125,6 +125,18 @@ page{
|
||||
top: -3px;
|
||||
right: -3px;
|
||||
}
|
||||
.way-box{
|
||||
display: block !important;
|
||||
padding: 0 !important;
|
||||
height: auto !important;
|
||||
}
|
||||
.info-file{
|
||||
padding: 0 !important;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: flex-end !important;
|
||||
height: auto !important;
|
||||
}
|
||||
.basic-info .way{
|
||||
padding: 0 15px;
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user