diff --git a/src/components/detailPage/FileList.vue b/src/components/detailPage/FileList.vue index 3ef6797..422e3d4 100644 --- a/src/components/detailPage/FileList.vue +++ b/src/components/detailPage/FileList.vue @@ -1,13 +1,12 @@ @@ -59,11 +58,18 @@ const columns = [ ] export default { name: 'FileList', + props: { + dataSource: { + type: Array, + default: () => { + return [] + } + } + }, data() { return { columns, - dataSource: [], - loading: false + fileLoading: false } }, methods: { @@ -72,7 +78,7 @@ export default { * @param record */ handleDownload(record) { - downloadFile(`sys/common/download/${record.fileId}`, record.fileName) + downloadFile(`sys/common/download/${ record.fileId }`, record.fileName) }, /** * 预览 @@ -80,8 +86,8 @@ export default { */ preview(record) { if (record && record.fileId) { - const fileFullUrl = `${window._CONFIG['domianWebSocketURL']}/sys/common/download/${record.fileId}?token=${Vue.ls.get(ACCESS_TOKEN)}&fullfilename=${record.fileName}` - let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}` + const fileFullUrl = `${ window._CONFIG['domianWebSocketURL'] }/sys/common/download/${ record.fileId }?token=${ Vue.ls.get(ACCESS_TOKEN) }&fullfilename=${ record.fileName }` + let url = `${ window._CONFIG['onlinePreviewDomainURL'] }?url=${ encodeURIComponent(fileFullUrl) }` // let url = `${window._CONFIG['onlinePreviewDomainURL']}?url=${encodeURIComponent(fileFullUrl)}` window.open(url) } diff --git a/src/components/detailPage/MeetingList.vue b/src/components/detailPage/MeetingList.vue index 5b76aaf..8cab954 100644 --- a/src/components/detailPage/MeetingList.vue +++ b/src/components/detailPage/MeetingList.vue @@ -60,19 +60,19 @@ const columns = [ align: 'center', width: 100, dataIndex: 'status_dictText', - scopedSlots: { customRender: 'project-approval' } + scopedSlots: { customRender: 'text' } }, { title: '报名状态', align: 'center', width: 100, dataIndex: 'createTime', - scopedSlots: { customRender: 'advice' } + scopedSlots: { customRender: 'text' } }, { title: '会议状态', align: 'center', width: 100, dataIndex: 'bankAccountName', - scopedSlots: { customRender: 'review-material' } + scopedSlots: { customRender: 'text' } }, { title: '操作', dataIndex: 'action', diff --git a/src/config/router.config.js b/src/config/router.config.js index 022f957..a343888 100644 --- a/src/config/router.config.js +++ b/src/config/router.config.js @@ -385,5 +385,20 @@ export const routerData = [ }, name: 'council-detail-page', id: '12' + }, + { + path: '/MessagePage/PaymentVoucher', + component: 'MessagePage/PaymentVoucher', + redirect: null, + hidden: true, + route: '1', + meta: { + icon: '', // 菜单前图标 + componentName: 'PaymentVoucher', + keepAlive: false, + title: '缴费凭证' // 菜单名称 + }, + name: 'payment-voucher', + id: '13' } ] diff --git a/src/utils/util.js b/src/utils/util.js index e74530a..5f8821b 100644 --- a/src/utils/util.js +++ b/src/utils/util.js @@ -595,4 +595,39 @@ export function processingTimestamp(value) { minute = minute < 10 ? ('0' + minute) : minute second = second < 10 ? ('0' + second) : second return y + '-' + m + '-' + d + ' ' + h + ':' + minute + ':' + second +} + +/** + * 补充0 + * */ + +export function addZero(e) { + // (e) => {e.target.value = e.target.value.replace(/[^0-9.]/g,'')} + // console.log(e.target.value) + // 判断是否包含 . + let value = e.target.value + // 判断是否有数据 + if (value && value !== '') { + // 判断是否包含小数点 + if (value.includes('.')) { + // 获取索引 + let index = value.indexOf('.') + console.log('index', index) + // 小树点之前的数 + let beforePointValue = value.slice(0, index + 1) + // 小数点之后的数字 + let afterPointValue = value.slice(index + 1) + // 大于等于2 + if (afterPointValue.length >= 2) { + e.target.value = beforePointValue + afterPointValue + } else { + // 不足2位补0 + afterPointValue = afterPointValue.padEnd(2, '0') + e.target.value = beforePointValue + afterPointValue + } + } else { + // 不包括小数点 + e.target.value = e.target.value + '.00' + } + } } \ No newline at end of file diff --git a/src/utils/validate.js b/src/utils/validate.js index fbdfb8c..ffb6e71 100644 --- a/src/utils/validate.js +++ b/src/utils/validate.js @@ -53,3 +53,13 @@ export function chineseReg(s){ export function postcode(s) { return /^[0-9]\d{5}$/.test(s) } + +/** + * 金额格式,小数点后两位,整数部分十位 + * /^[1-9](\d{1,10})?(\.\d{1,2})$|^0\.([1-9](\d{0,1})|\d[1-9])$|^[1-9]\d{1,10}$|^0$/ ---- 最初的正则,能输入十一位整数 + * @param s + * @returns {boolean} + */ +export function money(s) { + return /^[-]?[0-9](\d{1,9})?(\.\d{1,2})$|^[-]?0\.([1-9](\d{0,1})|\d[1-9])$|^[-]?[1-9]\d{0,9}$|^0$/.test(s) +} \ No newline at end of file diff --git a/src/views/MessagePage/PaymentVoucher.vue b/src/views/MessagePage/PaymentVoucher.vue new file mode 100644 index 0000000..6efdca3 --- /dev/null +++ b/src/views/MessagePage/PaymentVoucher.vue @@ -0,0 +1,298 @@ + + + + + + + + + {{ $route.query.projectName }} + + {{ $route.query.projectName }} + + + + + 应付金额:{{ }}元 + + + 已付金额:{{ }}元 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 缴费凭证 + + + + + + 添加阶段 + + + 审核信息 + + + + + + 申请人: + {{ }} + + + + + 申请时间: + {{ }} + + + + + 缴费金额: + {{ }} + + + + + + + 缴费日期: + {{ }} + + + + + 缴费凭证: + + + + + + 审核结果: + {{ }} + + + + + + + 审核人: + {{ }} + + + + + 审核时间: + {{ }} + + + + + 说明: + {{ }} + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/MessagePage/modules/PaymentVoucherModal.vue b/src/views/MessagePage/modules/PaymentVoucherModal.vue new file mode 100644 index 0000000..259fafc --- /dev/null +++ b/src/views/MessagePage/modules/PaymentVoucherModal.vue @@ -0,0 +1,154 @@ + + + + + + e.target.value = (e.target.value.replace(/[^0-9-.]/g, '')).trim()"> + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/mineProject/MineProject.vue b/src/views/mineProject/MineProject.vue index 2d41b13..ab609f2 100644 --- a/src/views/mineProject/MineProject.vue +++ b/src/views/mineProject/MineProject.vue @@ -36,128 +36,90 @@ - - - - - - - - - - - - - - - - - - - - - - - {{ record.chargeProject }} - - - {{ record.chargeProject }} - - - - - - - - {{ text }} - - {{ text }} - - - - - - - {{ text }}元 - - {{ text }}元 - - - - + + + + + + + + + + + + + + 缴费凭证 + + - + diff --git a/src/views/subBidCommittee/modules/CommitteeUnderStudyFilesModal.vue b/src/views/subBidCommittee/modules/CommitteeUnderStudyFilesModal.vue index ce7a24a..a95accb 100644 --- a/src/views/subBidCommittee/modules/CommitteeUnderStudyFilesModal.vue +++ b/src/views/subBidCommittee/modules/CommitteeUnderStudyFilesModal.vue @@ -12,6 +12,7 @@ ?,.\/]).{8,}$/, + pattern: /^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[~!@#$%^&*()_+`\-={}:";'<>?,./]).{8,30}$/, message: '密码由8位及以上数字、大小写字母和特殊符号组成!' } ], diff --git a/src/views/workTeam/WorkTeam.vue b/src/views/workTeam/WorkTeam.vue index c9640f0..a33d167 100644 --- a/src/views/workTeam/WorkTeam.vue +++ b/src/views/workTeam/WorkTeam.vue @@ -36,55 +36,30 @@ - - - - - - - - - - - - - - - - - - - - - - {{ record.chargeProject }} - - - - - - - {{ text }} - - {{ text }} - - - - - - - {{ text }}元 - - {{ text }}元 - - - - 工作组会议 - - - - - + + + + + + + + + + + + + + 缴费凭证 + + @@ -96,64 +71,55 @@