列表倒叙 上传凭证 bug修改
This commit is contained in:
@@ -17,7 +17,10 @@ Page({
|
|||||||
})
|
})
|
||||||
let params = {
|
let params = {
|
||||||
pageNo: this.data.pageNo,
|
pageNo: this.data.pageNo,
|
||||||
pageSize: this.data.pageSize
|
pageSize: this.data.pageSize,
|
||||||
|
// 创建时间倒叙排序
|
||||||
|
column:'createTime',
|
||||||
|
order:'desc'
|
||||||
}
|
}
|
||||||
UserApi.committeeList(params).then(res=>{
|
UserApi.committeeList(params).then(res=>{
|
||||||
if(res.success){
|
if(res.success){
|
||||||
|
|||||||
@@ -12,14 +12,17 @@ Page({
|
|||||||
searchParams: {
|
searchParams: {
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
companyName: ''
|
companyName: '',
|
||||||
|
// 创建时间倒叙排序
|
||||||
|
column:'createTime',
|
||||||
|
order:'desc'
|
||||||
},
|
},
|
||||||
// 数据
|
// 数据
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
// 是否国际研讨会过来的
|
// 是否国际研讨会过来的
|
||||||
page: ""
|
page: ""
|
||||||
},
|
},
|
||||||
// 输入查询条件
|
// 输入查询条件
|
||||||
bindInputCompanyName(e) {
|
bindInputCompanyName(e) {
|
||||||
this.setData({
|
this.setData({
|
||||||
"searchParams.companyName": e.detail.value
|
"searchParams.companyName": e.detail.value
|
||||||
@@ -37,7 +40,7 @@ Page({
|
|||||||
})
|
})
|
||||||
this.search()
|
this.search()
|
||||||
},
|
},
|
||||||
// 创建新的企业
|
// 创建新的企业
|
||||||
addCompany(e) {
|
addCompany(e) {
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: `../addCompany/addCompany?prepage=${e.currentTarget.dataset.prepage}`,
|
url: `../addCompany/addCompany?prepage=${e.currentTarget.dataset.prepage}`,
|
||||||
|
|||||||
+37
-34
@@ -13,39 +13,42 @@ Page({
|
|||||||
meetingStatus: '', // 会议状态
|
meetingStatus: '', // 会议状态
|
||||||
meetingType: '', // 工作组会议:1 标协会议 2 国际研讨会 3 其他会议 4 分标委会议 5
|
meetingType: '', // 工作组会议:1 标协会议 2 国际研讨会 3 其他会议 4 分标委会议 5
|
||||||
meetingStartTime: '', // 开始时间
|
meetingStartTime: '', // 开始时间
|
||||||
meetingEndTime: '' // 结束时间
|
meetingEndTime: '', // 结束时间
|
||||||
|
// 创建时间倒叙排序
|
||||||
|
column: 'createTime',
|
||||||
|
order: 'desc'
|
||||||
},
|
},
|
||||||
// 会议筛选参数
|
// 会议筛选参数
|
||||||
meetingStatus: ['可报名', '未开始', '进行中', '已结束'],
|
meetingStatus: ['可报名', '未开始', '进行中', '已结束'],
|
||||||
// 会议类型筛选参数
|
// 会议类型筛选参数
|
||||||
meetingType: ['工作组会议', '标协会议', '国际研讨会', '其他会议', '分标委会议'],
|
meetingType: ['工作组会议', '标协会议', '国际研讨会', '其他会议', '分标委会议'],
|
||||||
// 会议列表数据
|
// 会议列表数据
|
||||||
meetingList:[],
|
meetingList: [],
|
||||||
// 下拉框送搜索数据
|
// 下拉框送搜索数据
|
||||||
selectData:[],
|
selectData: [],
|
||||||
// 控制弹窗显示的
|
// 控制弹窗显示的
|
||||||
visible:false,
|
visible: false,
|
||||||
// 控制月份选择器显示
|
// 控制月份选择器显示
|
||||||
visibleDate:false,
|
visibleDate: false,
|
||||||
// 是哪个筛选条件
|
// 是哪个筛选条件
|
||||||
index:-1
|
index: -1
|
||||||
},
|
},
|
||||||
// 会议状态筛选
|
// 会议状态筛选
|
||||||
bindStatusChange(e){
|
bindStatusChange(e) {
|
||||||
this.data.searchParams.pageNo = 1
|
this.data.searchParams.pageNo = 1
|
||||||
if(e.detail.value == 0){
|
if (e.detail.value == 0) {
|
||||||
this.setData({
|
this.setData({
|
||||||
'searchParams.meetingSignUpType': 1
|
'searchParams.meetingSignUpType': 1
|
||||||
})
|
})
|
||||||
}else if(e.detail.value == 1){
|
} else if (e.detail.value == 1) {
|
||||||
this.setData({
|
this.setData({
|
||||||
'searchParams.meetingStatus': 2
|
'searchParams.meetingStatus': 2
|
||||||
})
|
})
|
||||||
}else if(e.detail.value == 2){
|
} else if (e.detail.value == 2) {
|
||||||
this.setData({
|
this.setData({
|
||||||
'searchParams.meetingStatus': 3
|
'searchParams.meetingStatus': 3
|
||||||
})
|
})
|
||||||
}else if(e.detail.value == 3){
|
} else if (e.detail.value == 3) {
|
||||||
this.setData({
|
this.setData({
|
||||||
'searchParams.meetingStatus': 4
|
'searchParams.meetingStatus': 4
|
||||||
})
|
})
|
||||||
@@ -53,7 +56,7 @@ Page({
|
|||||||
this.queryMeetingList()
|
this.queryMeetingList()
|
||||||
},
|
},
|
||||||
// 会议类型筛选
|
// 会议类型筛选
|
||||||
bindTypeChange(e){
|
bindTypeChange(e) {
|
||||||
this.data.searchParams.pageNo = 1
|
this.data.searchParams.pageNo = 1
|
||||||
let value = Number(e.detail.value) + 1
|
let value = Number(e.detail.value) + 1
|
||||||
this.setData({
|
this.setData({
|
||||||
@@ -61,7 +64,7 @@ Page({
|
|||||||
})
|
})
|
||||||
this.queryMeetingList()
|
this.queryMeetingList()
|
||||||
},
|
},
|
||||||
bindDateChange(e){
|
bindDateChange(e) {
|
||||||
this.data.searchParams.pageNo = 1
|
this.data.searchParams.pageNo = 1
|
||||||
this.setData({
|
this.setData({
|
||||||
'searchParams.meetingStartTime': e.detail.value,
|
'searchParams.meetingStartTime': e.detail.value,
|
||||||
@@ -70,29 +73,29 @@ Page({
|
|||||||
this.queryMeetingList()
|
this.queryMeetingList()
|
||||||
},
|
},
|
||||||
// 会议详情
|
// 会议详情
|
||||||
meetingDetail(e){
|
meetingDetail(e) {
|
||||||
let meetingInfo =JSON.stringify(e.currentTarget.dataset.meetinginfo)
|
let meetingInfo = JSON.stringify(e.currentTarget.dataset.meetinginfo)
|
||||||
let meetingItem = e.currentTarget.dataset.meetinginfo
|
let meetingItem = e.currentTarget.dataset.meetinginfo
|
||||||
|
|
||||||
// 如果是去报名页面需要在缓存中存储会议信息 当报名结束后 需要清除缓存中的当前会议信息 meetingSignUpType 1 可报名 2报名
|
// 如果是去报名页面需要在缓存中存储会议信息 当报名结束后 需要清除缓存中的当前会议信息 meetingSignUpType 1 可报名 2报名
|
||||||
if(meetingItem.meetingSignUpType === 1){
|
if (meetingItem.meetingSignUpType === 1) {
|
||||||
wx.setStorage({
|
wx.setStorage({
|
||||||
key:"currentMeetingInfo",
|
key: "currentMeetingInfo",
|
||||||
data:e.currentTarget.dataset.meetinginfo,
|
data: e.currentTarget.dataset.meetinginfo,
|
||||||
success(){
|
success() {
|
||||||
// 国际研讨会去国际研讨会的报名页面
|
// 国际研讨会去国际研讨会的报名页面
|
||||||
if(meetingItem.meetingType !== 3){
|
if (meetingItem.meetingType !== 3) {
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url:`../signUpPage/signUpPage`
|
url: `../signUpPage/signUpPage`
|
||||||
})
|
})
|
||||||
}else if(meetingItem.meetingSignUpType === 2){
|
} else if (meetingItem.meetingSignUpType === 2) {
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url:`../signUpPageGuoji/signUpPageGuoji`
|
url: `../signUpPageGuoji/signUpPageGuoji`
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}else if(meetingItem.meetingSignUpType === 2){
|
} else if (meetingItem.meetingSignUpType === 2) {
|
||||||
wx.navigateTo({
|
wx.navigateTo({
|
||||||
url: `../meetingDetailSigned/meetingDetailSigned?meetingInfo=${meetingInfo}`, // (已报名)
|
url: `../meetingDetailSigned/meetingDetailSigned?meetingInfo=${meetingInfo}`, // (已报名)
|
||||||
})
|
})
|
||||||
@@ -100,20 +103,20 @@ Page({
|
|||||||
|
|
||||||
},
|
},
|
||||||
// 获取会议列表数据
|
// 获取会议列表数据
|
||||||
queryMeetingList(){
|
queryMeetingList() {
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title: '加载中...',
|
title: '加载中...',
|
||||||
icon: 'loading'
|
icon: 'loading'
|
||||||
})
|
})
|
||||||
MeetingApi.meetingList(this.data.searchParams).then(res => {
|
MeetingApi.meetingList(this.data.searchParams).then(res => {
|
||||||
if(res.success){
|
if (res.success) {
|
||||||
// 搜索时,把原数据清空,重新筛选
|
// 搜索时,把原数据清空,重新筛选
|
||||||
if(this.data.searchParams.pageNo === 1) {
|
if (this.data.searchParams.pageNo === 1) {
|
||||||
this.setData({
|
this.setData({
|
||||||
meetingList: []
|
meetingList: []
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if(res.result.records && res.result.records.length){
|
if (res.result.records && res.result.records.length) {
|
||||||
this.setData({
|
this.setData({
|
||||||
meetingList: [...this.data.meetingList, ...res.result.records]
|
meetingList: [...this.data.meetingList, ...res.result.records]
|
||||||
})
|
})
|
||||||
@@ -133,18 +136,18 @@ Page({
|
|||||||
*/
|
*/
|
||||||
onLoad: function (options) {
|
onLoad: function (options) {
|
||||||
console.log(options);
|
console.log(options);
|
||||||
if(!!options.workingGroupId){
|
if (!!options.workingGroupId) {
|
||||||
// 工作组的更多跳转
|
// 工作组的更多跳转
|
||||||
this.setData({
|
this.setData({
|
||||||
'searchParams.workingGroupId':options.workingGroupId,
|
'searchParams.workingGroupId': options.workingGroupId,
|
||||||
'searchParams.meetingType':'1',
|
'searchParams.meetingType': '1',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
if(!!options.caseCommitteeId){
|
if (!!options.caseCommitteeId) {
|
||||||
// 分标委的更多跳转
|
// 分标委的更多跳转
|
||||||
this.setData({
|
this.setData({
|
||||||
'searchParams.caseCommitteeId':options.caseCommitteeId,
|
'searchParams.caseCommitteeId': options.caseCommitteeId,
|
||||||
'searchParams.meetingType':'5',
|
'searchParams.meetingType': '5',
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
this.queryMeetingList()
|
this.queryMeetingList()
|
||||||
|
|||||||
@@ -5,7 +5,10 @@ import {
|
|||||||
|
|
||||||
import MeetingApi from '../../assets/js/http/meetingApi'
|
import MeetingApi from '../../assets/js/http/meetingApi'
|
||||||
import signUpApi from '../../assets/js/http/signUp'
|
import signUpApi from '../../assets/js/http/signUp'
|
||||||
import {baseUrl,URL_CONFIG} from '../../assets/js/http/api'
|
import {
|
||||||
|
baseUrl,
|
||||||
|
URL_CONFIG
|
||||||
|
} from '../../assets/js/http/api'
|
||||||
Page({
|
Page({
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -22,13 +25,13 @@ Page({
|
|||||||
// 会议资料文件数组
|
// 会议资料文件数组
|
||||||
meetingDataList: [],
|
meetingDataList: [],
|
||||||
// 缴费凭证id
|
// 缴费凭证id
|
||||||
imageIds:[],
|
imageIds: [],
|
||||||
// 订单后四位
|
// 订单后四位
|
||||||
ordeCode:'',
|
ordeCode: '',
|
||||||
// 缴费凭证的回显
|
// 缴费凭证的回显
|
||||||
payRecordImgSrc:'',
|
payRecordImgSrc: '',
|
||||||
// 签到图片的回显
|
// 签到图片的回显
|
||||||
signImgSrc:''
|
signImgSrc: ''
|
||||||
},
|
},
|
||||||
|
|
||||||
// 获取图片的id
|
// 获取图片的id
|
||||||
@@ -38,32 +41,38 @@ Page({
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 订单后四位
|
// 订单后四位
|
||||||
setOrdeCode(e){
|
setOrdeCode(e) {
|
||||||
this.setData({
|
this.setData({
|
||||||
ordeCode:e.detail.value
|
ordeCode: e.detail.value
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
// 上传汇款凭证
|
// 上传汇款凭证
|
||||||
editPayRecord(){
|
editPayRecord() {
|
||||||
const param = {
|
const param = {
|
||||||
id:this.data.meetingInfo.situationId,
|
id: this.data.meetingInfo.situationId,
|
||||||
orderCode:this.data.ordeCode,
|
orderCode: this.data.ordeCode,
|
||||||
paymentRecord:this.data.imageIds
|
paymentRecord: this.data.imageIds
|
||||||
|
}
|
||||||
|
if(Array.isArray(this.data.imageIds)){
|
||||||
|
param.paymentRecord = this.data.imageIds.join(',')
|
||||||
}
|
}
|
||||||
signUpApi.uploadPayRecord(param).then(res => {
|
signUpApi.uploadPayRecord(param).then(res => {
|
||||||
console.log(res);
|
console.log(res);
|
||||||
if(res.success){
|
if (res.success) {
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title:res.message,
|
title: res.message,
|
||||||
icon: "success",
|
icon: "success",
|
||||||
duration: 800,
|
duration: 2000,
|
||||||
|
success(){
|
||||||
|
wx.navigateBack({
|
||||||
|
delta: 1,
|
||||||
|
})
|
||||||
|
}
|
||||||
});
|
});
|
||||||
wx.navigateBack({
|
|
||||||
delta: 1,
|
} else {
|
||||||
})
|
|
||||||
}else{
|
|
||||||
wx.showToast({
|
wx.showToast({
|
||||||
title:res.message,
|
title: res.message,
|
||||||
icon: "error",
|
icon: "error",
|
||||||
duration: 800,
|
duration: 800,
|
||||||
});
|
});
|
||||||
@@ -78,19 +87,21 @@ Page({
|
|||||||
if (res.success) {
|
if (res.success) {
|
||||||
this.setData({
|
this.setData({
|
||||||
singInPersonInfo: res.result,
|
singInPersonInfo: res.result,
|
||||||
ordeCode:res.result.orderCode
|
ordeCode: res.result.orderCode,
|
||||||
|
// 这是为了不点击图片上传的bug
|
||||||
|
imageIds: res.result.paymentRecord.split(',')
|
||||||
})
|
})
|
||||||
// 已经审核的获取审核凭证的src
|
// 已经审核的获取审核凭证的src
|
||||||
if(res.result.checkResult !== 0){
|
if (res.result.checkResult !== 0) {
|
||||||
this.setData({
|
this.setData({
|
||||||
payRecordImgSrc:baseUrl + URL_CONFIG + 'sys/common/download/' + res.result.paymentRecord
|
payRecordImgSrc: baseUrl + URL_CONFIG + 'sys/common/download/' + res.result.paymentRecord,
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
console.log(this.data.payRecordImgSrc);
|
console.log(this.data.payRecordImgSrc);
|
||||||
// 已经签到的获取签到的图片的src
|
// 已经签到的获取签到的图片的src
|
||||||
if(res.result.checkIn === 1){
|
if (res.result.checkIn === 1) {
|
||||||
this.setData({
|
this.setData({
|
||||||
signImgSrc:baseUrl + URL_CONFIG + 'sys/common/download/' + res.result.checkFile
|
signImgSrc: baseUrl + URL_CONFIG + 'sys/common/download/' + res.result.checkFile
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -136,6 +147,7 @@ Page({
|
|||||||
* 生命周期函数--监听页面加载
|
* 生命周期函数--监听页面加载
|
||||||
*/
|
*/
|
||||||
onLoad: function (options) {
|
onLoad: function (options) {
|
||||||
|
|
||||||
// 获取上一个页面的会议数据
|
// 获取上一个页面的会议数据
|
||||||
const meetingInfo = JSON.parse(options.meetingInfo)
|
const meetingInfo = JSON.parse(options.meetingInfo)
|
||||||
console.log(meetingInfo);
|
console.log(meetingInfo);
|
||||||
@@ -170,9 +182,7 @@ Page({
|
|||||||
/**
|
/**
|
||||||
* 生命周期函数--监听页面初次渲染完成
|
* 生命周期函数--监听页面初次渲染完成
|
||||||
*/
|
*/
|
||||||
onReady: function () {
|
onReady: function () {},
|
||||||
|
|
||||||
},
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 生命周期函数--监听页面显示
|
* 生命周期函数--监听页面显示
|
||||||
|
|||||||
@@ -120,9 +120,8 @@
|
|||||||
<view class="p-20">
|
<view class="p-20">
|
||||||
<text class="validate">缴费凭证</text>
|
<text class="validate">缴费凭证</text>
|
||||||
<!-- 未审核的显示 -->
|
<!-- 未审核的显示 -->
|
||||||
<!-- 这里需要处理回显 -->
|
<view class="payment-text" wx:if="{{singInPersonInfo.checkResult !== 1}}">
|
||||||
<view class="payment-text" wx:if="{{singInPersonInfo.checkResult !== 1}}">
|
<image-upload bindgetIds='getImagesId' maxLength='1' initImgsList="{{singInPersonInfo.paymentRecord}}" id="img"></image-upload>
|
||||||
<image-upload bindgetIds='getImagesId' maxLength='1' initImgsList="{{singInPersonInfo.paymentRecord}}"></image-upload>
|
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
<!-- 审核通过的显示 -->
|
<!-- 审核通过的显示 -->
|
||||||
@@ -141,7 +140,7 @@
|
|||||||
<!-- 审核通过后的订单后四位 -->
|
<!-- 审核通过后的订单后四位 -->
|
||||||
<view class="p-20" wx:if="{{ singInPersonInfo.checkResult === 1 }}">
|
<view class="p-20" wx:if="{{ singInPersonInfo.checkResult === 1 }}">
|
||||||
<text class="validate">缴费订单号后四位数:{{singInPersonInfo.orderCode}}</text>
|
<text class="validate">缴费订单号后四位数:{{singInPersonInfo.orderCode}}</text>
|
||||||
|
|
||||||
</view>
|
</view>
|
||||||
<view class="tip" wx:if="{{singInPersonInfo.payMOde === 2 }}">请在会议期间内上传缴费凭证和缴费订单号后四位</view>
|
<view class="tip" wx:if="{{singInPersonInfo.payMOde === 2 }}">请在会议期间内上传缴费凭证和缴费订单号后四位</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -23,7 +23,10 @@ Page({
|
|||||||
})
|
})
|
||||||
let params = {
|
let params = {
|
||||||
pageNo: this.data.pageNo,
|
pageNo: this.data.pageNo,
|
||||||
pageSize: this.data.pageSize
|
pageSize: this.data.pageSize,
|
||||||
|
// 创建时间倒叙排序
|
||||||
|
column:'createTime',
|
||||||
|
order:'desc'
|
||||||
}
|
}
|
||||||
UserApi.contractList(params).then(res=>{
|
UserApi.contractList(params).then(res=>{
|
||||||
if(res.success && res.result.records && res.result.records.length){
|
if(res.success && res.result.records && res.result.records.length){
|
||||||
|
|||||||
@@ -11,7 +11,9 @@ Page({
|
|||||||
companyId: '',
|
companyId: '',
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
pageSize: 10,
|
pageSize: 10,
|
||||||
name: ''
|
name: '',
|
||||||
|
column:'createTime',
|
||||||
|
order:'desc'
|
||||||
},
|
},
|
||||||
// 数据
|
// 数据
|
||||||
dataSource: [],
|
dataSource: [],
|
||||||
|
|||||||
@@ -14,7 +14,10 @@ Page({
|
|||||||
needInvoice: '', // 是否需要发票 0 4
|
needInvoice: '', // 是否需要发票 0 4
|
||||||
pack: '', // 是否打包 0 1
|
pack: '', // 是否打包 0 1
|
||||||
year: '', // 运行年份
|
year: '', // 运行年份
|
||||||
particularYear:'',// 资料网元的运行年份
|
particularYear:'',// 资料网元的运行年份,
|
||||||
|
// 创建时间倒叙排序
|
||||||
|
column:'createTime',
|
||||||
|
order:'desc'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 发票改变
|
// 发票改变
|
||||||
|
|||||||
Reference in New Issue
Block a user