【update】 起草组列表和详情、跳转会议

This commit is contained in:
danshihao
2024-01-15 10:58:07 +08:00
parent 500e51096b
commit d2a8498a27
5 changed files with 116 additions and 40 deletions
+19 -4
View File
@@ -15,7 +15,7 @@ Page({
pageSize: 10, pageSize: 10,
meetingSignUpType: 4, // 可报名:1 全部 0 meetingSignUpType: 4, // 可报名:1 全部 0
meetingStatus: '', // 会议状态 可报名: meetingSignUpType==1 未开始:2 进行中:3 已结束4 meetingStatus: '', // 会议状态 可报名: meetingSignUpType==1 未开始:2 进行中:3 已结束4
meetingType: '', // 工作组会议:1 标协会议 2 国际研讨会 3 其他会议 4 分标委会议 5 meetingType: '', // 工作组会议:1 标协会议 2 国际研讨会 3 其他会议 4 分标委会议 7起草组会议 5
meetingStartTime: '', // 开始时间 meetingStartTime: '', // 开始时间
meetingEndTime: '', // 结束时间 meetingEndTime: '', // 结束时间
// 创建时间倒叙排序 // 创建时间倒叙排序
@@ -25,7 +25,7 @@ Page({
// 会议筛选参数 // 会议筛选参数
meetingStatus: ['可报名', '未开始', '进行中', '已结束','已报名'], meetingStatus: ['可报名', '未开始', '进行中', '已结束','已报名'],
// 会议类型筛选参数 // 会议类型筛选参数
meetingType: ['工作组会议', '标协会议', '国际研讨会', '其他会议', '分标委会议'], meetingType: ['工作组会议', '标协会议', '国际研讨会', '其他会议', '分标委会议', '起草组会议'],
meetingTypeList:[ meetingTypeList:[
{name:'工作组会议',value:'1'}, {name:'工作组会议',value:'1'},
{name:'国际研讨会',value:'3'}, {name:'国际研讨会',value:'3'},
@@ -34,7 +34,8 @@ Page({
{name:'理事会会议',value:'6'}, {name:'理事会会议',value:'6'},
{name:'信息交流会',value:'7'}, {name:'信息交流会',value:'7'},
{name:'培训会',value:'8'}, {name:'培训会',value:'8'},
{name:'宣贯会',value:'9'} {name:'宣贯会',value:'9'},
{name:'起草组会议',value:'10'}
], ],
// 会议列表数据 // 会议列表数据
@@ -177,10 +178,17 @@ Page({
'searchParams.meetingType': '2', 'searchParams.meetingType': '2',
'searchParams.tbMeetingType':'1' 'searchParams.tbMeetingType':'1'
}) })
}else if(index === '10' ){
// 起草组
this.setData({
'searchParams.meetingType': '7',
'searchParams.tbMeetingType': ''
})
}else{ }else{
// 其他类型的会议 // 其他类型的会议
this.setData({ this.setData({
'searchParams.meetingType': index 'searchParams.meetingType': index,
'searchParams.tbMeetingType': ''
}) })
} }
@@ -329,6 +337,13 @@ Page({
'searchParams.meetingType': '1', 'searchParams.meetingType': '1',
}) })
} }
if (!!options.draftingGroupId) {
// 起草组的更多跳转
this.setData({
'searchParams.draftingGroupId': options.draftingGroupId,
'searchParams.meetingType': '7',
})
}
if (!!options.caseCommitteeId) { if (!!options.caseCommitteeId) {
// 分标委的更多跳转 // 分标委的更多跳转
this.setData({ this.setData({
+13 -3
View File
@@ -87,9 +87,19 @@ Page({
}, },
// 项目详情 // 项目详情
projectDetail(e){ projectDetail(e){
wx.navigateTo({ // 工作组id
url: `../projectDetail/projectDetail?id=${e.currentTarget.dataset.project.id}&type=${this.data.type}&workingGroupId=${e.currentTarget.dataset.project.workingGroupId}`, const workingGroupId = e.currentTarget.dataset.project.workingGroupId
}) // 起草组id
const draftingGroupId = e.currentTarget.dataset.project.draftingGroupId
if (workingGroupId) {
wx.navigateTo({
url: `../projectDetail/projectDetail?id=${e.currentTarget.dataset.project.id}&type=${this.data.type}&workingGroupId=${workingGroupId}`,
})
} else if (draftingGroupId) {
wx.navigateTo({
url: `../projectDetail/projectDetail?id=${e.currentTarget.dataset.project.id}&type=${this.data.type}&draftingGroupId=${draftingGroupId}`,
})
}
}, },
loadData(){ loadData(){
const that = this const that = this
+1 -1
View File
@@ -44,7 +44,7 @@
<view class="item-content">负责人电话:{{item.phone || item.principalPhone}}</view> <view class="item-content">负责人电话:{{item.phone || item.principalPhone}}</view>
<view class="item-content">负责人邮箱:{{item.email || item.principalEmail}}</view> <view class="item-content">负责人邮箱:{{item.email || item.principalEmail}}</view>
<view class="item-content"><text>运行周期:</text>{{item.operationCycle || ''}}</view> <view class="item-content"><text>运行周期:</text>{{item.operationCycle || ''}}</view>
<view class="item-content">缴费凭证:{{item.paymentStatus_dictText || '无'}}</view> <view class="item-content" wx:if="{{type !== 'draft'}}">缴费凭证:{{item.paymentStatus_dictText || '无'}}</view>
</block> </block>
<!-- 工作组和起草组有 联系人字段 --> <!-- 工作组和起草组有 联系人字段 -->
<view class="content-btn" wx:if="{{type === 'work' || type === 'draft'}}"> <view class="content-btn" wx:if="{{type === 'work' || type === 'draft'}}">
+47 -3
View File
@@ -9,10 +9,11 @@ Page({
*/ */
data: { data: {
statusBarHeight: wx.getSystemInfoSync()['statusBarHeight'], statusBarHeight: wx.getSystemInfoSync()['statusBarHeight'],
type:'',//区别是哪个项目的项目详情 work工作组 type:'',//区别是哪个项目的项目详情 work工作组 draft起草组
form: {}, form: {},
id: '', // 在工作组id,项目id id: '', // 在工作组id,项目id,起草组id
workingGroupId: '', //工作组id workingGroupId: '', //工作组id
draftingGroupId: '', //起草组id
showMeeting: false, // 会议信息的显隐 showMeeting: false, // 会议信息的显隐
showProjectData:true, // 项目资料的显示隐藏 showProjectData:true, // 项目资料的显示隐藏
projectFileList: [], // 项目资料文件 projectFileList: [], // 项目资料文件
@@ -34,8 +35,17 @@ Page({
}, },
// 获取更多会议信息数据 // 获取更多会议信息数据
goMoreMeeting() { goMoreMeeting() {
let params = ''
switch(this.data.type) {
case 'work':
params = `workingGroupId=${this.data.workingGroupId}`
break
case 'draft':
params = `draftingGroupId=${this.data.draftingGroupId}`
break
}
wx.navigateTo({ wx.navigateTo({
url: `../meeting/meeting?workingGroupId=${this.data.workingGroupId}`, url: `../meeting/meeting?` + params,
}) })
}, },
// 会议详情 // 会议详情
@@ -120,6 +130,7 @@ Page({
} }
this.data.id = options.id this.data.id = options.id
this.data.workingGroupId = options.workingGroupId this.data.workingGroupId = options.workingGroupId
this.data.draftingGroupId = options.draftingGroupId
if (options.type == 'work') { // 工作组项目有会议详情 if (options.type == 'work') { // 工作组项目有会议详情
this.setData({ this.setData({
showMeeting: true, showMeeting: true,
@@ -127,6 +138,39 @@ Page({
}) })
MeetingApi.meetingList({ MeetingApi.meetingList({
workingGroupProjectId: this.data.id, workingGroupProjectId: this.data.id,
meetingType: 1, // 工作组会议
meetingSignUpType: 0, // 显示所有会议
column: 'createTime',
order: 'desc'
}).then(res => {
if (res.success) {
if (res.result.records && res.result.records.length <= 2) {
this.setData({
meetingList: res.result.records
})
} else if (res.result.records && res.result.records.length > 2) {
this.setData({
meetingList: res.result.records.slice(0, 2)
})
}
}
}).catch(err => {
wx.showToast({
title: '加载失败',
icon: 'none',
duration: 2000
})
})
} else if (options.type === 'draft') {
// 起草组项目有会议详情
this.setData({
showMeeting: true,
pageTitle:'起草组详情'
})
MeetingApi.meetingList({
draftingGroupProjectId: this.data.id,
meetingType: 7, // 起草组会议
meetingSignUpType: 0, // 显示所有会议
column: 'createTime', column: 'createTime',
order: 'desc' order: 'desc'
}).then(res => { }).then(res => {
+36 -29
View File
@@ -11,7 +11,7 @@
<text>项目名称</text> <text>项目名称</text>
<text>{{form.chargeProject}}</text> <text>{{form.chargeProject}}</text>
</view> </view>
<view> <view wx:if="{{type !== 'draft'}}">
<text>款项用途</text> <text>款项用途</text>
<!-- 需求文档上写的固定的 资料网费--> <!-- 需求文档上写的固定的 资料网费-->
<text>{{form.chargeUse_dictText}}</text> <text>{{form.chargeUse_dictText}}</text>
@@ -24,39 +24,45 @@
<text>项目负责人</text> <text>项目负责人</text>
<text>{{form.principalName}}</text> <text>{{form.principalName}}</text>
</view> </view>
<view> <block wx:if="{{type !== 'draft'}}">
<text>应付金额</text> <view>
<text>{{form.receivableAmount ? form.receivableAmount + '元' : ''}}</text> <text>应付金额</text>
</view> <text>{{form.receivableAmount ? form.receivableAmount + '元' : ''}}</text>
<view> </view>
<text>实付金额</text> <view>
<text>{{form.paidAmount ? form.paidAmount + '元' : ''}}</text> <text>实付金额</text>
</view> <text>{{form.paidAmount ? form.paidAmount + '元' : ''}}</text>
</view>
</block>
<view> <view>
<text>企业联系人</text> <text>企业联系人</text>
<text>{{form.contactsTemporaryName}}</text> <text>{{form.contactsTemporaryName}}</text>
</view> </view>
<view> <block wx:if="{{type !== 'draft'}}">
<text>邮寄联系人</text> <view>
<text>{{form.mailContactsTemporaryName}}</text> <text>邮寄联系人</text>
</view> <text>{{form.mailContactsTemporaryName}}</text>
<view> </view>
<text>打包</text> <view>
<text>{{form.pack_dictText}}</text> <text>打包</text>
</view> <text>{{form.pack_dictText}}</text>
</view>
</block>
<!-- 工作组项目展示 --> <!-- 工作组项目展示 -->
<view style="height:auto" wx:if="{{type === 'work' }}"> <view style="height:auto" wx:if="{{type === 'work' || type === 'draft' }}">
<text>任务及目标</text> <text>任务及目标</text>
<text>{{form.missionAndObjectives || ''}}</text> <text>{{form.missionAndObjectives || ''}}</text>
</view> </view>
<view> <block wx:if="{{type !== 'draft'}}">
<text>需要发票</text> <view>
<text>{{form.needInvoice_dictText}}</text> <text>需要发票</text>
</view> <text>{{form.needInvoice_dictText}}</text>
<view> </view>
<text>付款方式</text> <view>
<text>{{form.chargeWay_dictText}}</text> <text>付款方式</text>
</view> <text>{{form.chargeWay_dictText}}</text>
</view>
</block>
<!-- 付款方式为合同才有 --> <!-- 付款方式为合同才有 -->
<view wx:if="{{form.chargeWay === 2}}"> <view wx:if="{{form.chargeWay === 2}}">
<text>合同</text> <text>合同</text>
@@ -113,7 +119,8 @@
</view> </view>
<text class="no-data" style="height: 50px;" wx:if="{{!form.paymentRecord}}">暂无到账记录!</text> <text class="no-data" style="height: 50px;" wx:if="{{!form.paymentRecord}}">暂无到账记录!</text>
</view> </view>
<view class="basic-info" style="margin-top: 10px;"> <!-- 起草组不显示开票邮寄信息 -->
<view class="basic-info" style="margin-top: 10px;" wx:if="{{type !== 'draft'}}">
<view class="title"> <view class="title">
<text>开票邮寄信息</text> <text>开票邮寄信息</text>
</view> </view>
@@ -154,5 +161,5 @@
<text class="no-data" style="height: 50px;" wx:if="{{!form.mailBill}}">暂无邮寄记录!</text> <text class="no-data" style="height: 50px;" wx:if="{{!form.mailBill}}">暂无邮寄记录!</text>
</view> </view>
</view> </view>
<!-- 工作组展示 --> <!-- 工作组、起草组展示 -->
<view class="tip" wx:if="{{type === 'work' }}">在研项目和各种分发资料请到pc端查看</view> <view class="tip" wx:if="{{type === 'work' || type === 'draft' }}">在研项目和各种分发资料请到pc端查看</view>