From bcc0a6d57fe4bb617764640667b79c5e9b9b3f9e Mon Sep 17 00:00:00 2001 From: ZhaoTongYao <531131322@qq.com> Date: Fri, 6 Aug 2021 10:22:33 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=201.7.11=20=E4=B8=80?= =?UTF-8?q?=E9=94=AE=E6=9C=8D=E5=8A=A1=E6=96=B0=E5=A2=9E=E4=BC=81=E4=B8=9A?= =?UTF-8?q?=E5=A1=AB=E6=8A=A5=E5=8A=9F=E8=83=BD=EF=BC=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.json | 5 +- components/selectCascader/selectCascader.js | 94 +++++ components/selectCascader/selectCascader.json | 6 + components/selectCascader/selectCascader.wxml | 12 + components/selectCascader/selectCascader.wxss | 84 ++++ images/xiala.png | Bin 0 -> 600 bytes pages/toRegister/toRegister.js | 2 +- .../oneKeyService/images/shangbaojilu.png | Bin 0 -> 8204 bytes .../companyInformation/companyInformation.js | 359 ++++++++++++++++++ .../companyInformation.json | 8 + .../companyInformation.wxml | 69 ++++ .../companyInformation.wxss | 134 +++++++ .../companyInformationDetail.js | 30 ++ .../companyInformationDetail.json | 4 + .../companyInformationDetail.wxml | 44 +++ .../companyInformationDetail.wxss | 40 ++ .../companyInformationList.js | 75 ++++ .../companyInformationList.json | 7 + .../companyInformationList.wxml | 16 + .../companyInformationList.wxss | 79 ++++ .../pages/moduleList/moduleList.js | 4 + .../pages/suggestDict/suggestDict.wxss | 2 +- utils/api.js | 29 +- 23 files changed, 1099 insertions(+), 4 deletions(-) create mode 100644 components/selectCascader/selectCascader.js create mode 100644 components/selectCascader/selectCascader.json create mode 100644 components/selectCascader/selectCascader.wxml create mode 100644 components/selectCascader/selectCascader.wxss create mode 100644 images/xiala.png create mode 100644 subpages/oneKeyService/images/shangbaojilu.png create mode 100644 subpages/oneKeyService/pages/companyInformation/companyInformation.js create mode 100644 subpages/oneKeyService/pages/companyInformation/companyInformation.json create mode 100644 subpages/oneKeyService/pages/companyInformation/companyInformation.wxml create mode 100644 subpages/oneKeyService/pages/companyInformation/companyInformation.wxss create mode 100644 subpages/oneKeyService/pages/companyInformationDetail/companyInformationDetail.js create mode 100644 subpages/oneKeyService/pages/companyInformationDetail/companyInformationDetail.json create mode 100644 subpages/oneKeyService/pages/companyInformationDetail/companyInformationDetail.wxml create mode 100644 subpages/oneKeyService/pages/companyInformationDetail/companyInformationDetail.wxss create mode 100644 subpages/oneKeyService/pages/companyInformationList/companyInformationList.js create mode 100644 subpages/oneKeyService/pages/companyInformationList/companyInformationList.json create mode 100644 subpages/oneKeyService/pages/companyInformationList/companyInformationList.wxml create mode 100644 subpages/oneKeyService/pages/companyInformationList/companyInformationList.wxss diff --git a/app.json b/app.json index 13468fa..55a0d9b 100644 --- a/app.json +++ b/app.json @@ -147,7 +147,10 @@ "pages/suggestDict/suggestDict", "pages/suggestDictList/suggestDictList", "pages/suggestDetail/suggestDetail", - "pages/remarkOrReply/remarkOrReply" + "pages/remarkOrReply/remarkOrReply", + "pages/companyInformation/companyInformation", + "pages/companyInformationList/companyInformationList", + "pages/companyInformationDetail/companyInformationDetail" ] } ], diff --git a/components/selectCascader/selectCascader.js b/components/selectCascader/selectCascader.js new file mode 100644 index 0000000..1bae551 --- /dev/null +++ b/components/selectCascader/selectCascader.js @@ -0,0 +1,94 @@ +Component({ + properties: { + // 级联选择器数据 + cascaderList: { + type: Array, + value: [ + { + label: '全部', + value: '1', + children: [ + { + label: '云台社区', + value: '333', + children: [], + }, + { + label: '云台社区2', + value: '3333', + children: [], + }, + ], + }, + { + label: '安宁街道', + value: '1268515320847425537', + children: [ + { + label: '云台社区', + value: '333', + children: [], + }, + { + label: '云台社区2', + value: '3333', + children: [], + }, + ], + }, + ], + }, + choosedValue: { + type: Object, + value: { + title: '安宁街道', + id: '1268515320847425537', + }, + }, + value: { + type: Array, + value: ['1268515320847425537'], + }, //默认选中的 + }, + data: { + streetVisible: false, + ifClose: false // + }, + // lifetimes: { + // async attached() {}, + // }, + methods: { + // 显示街道下拉框 + showStreet() { + if(!this.data.ifClose){ + this.setData({ + streetVisible: true, + }) + this.triggerEvent('showSelectStreet') + } else { + this.setData({ + ifClose: false, + }) + } + }, + onChange(e) { + // this.setData({ + // value: e.detail.value, + // 'choosedValue.title': e.detail.options.map((n) => n.label).join('/'), + // deptId: e.detail.value[e.detail.value.length - 1], + // }) + this.triggerEvent('chooseId', e.detail) + }, + onClose() { + this.setData({ + streetVisible: false, + ifClose: true + }) + } + // closeSelect() { + // this.setData({ + // streetVisible: false, + // }) + // }, + }, +}) diff --git a/components/selectCascader/selectCascader.json b/components/selectCascader/selectCascader.json new file mode 100644 index 0000000..90eb18a --- /dev/null +++ b/components/selectCascader/selectCascader.json @@ -0,0 +1,6 @@ +{ + "component": true, + "usingComponents": { + "wux-cascader": "../../dist/cascader/index" + } +} \ No newline at end of file diff --git a/components/selectCascader/selectCascader.wxml b/components/selectCascader/selectCascader.wxml new file mode 100644 index 0000000..0457fdf --- /dev/null +++ b/components/selectCascader/selectCascader.wxml @@ -0,0 +1,12 @@ + + + + + + {{choosedValue.title}} + + + + + + \ No newline at end of file diff --git a/components/selectCascader/selectCascader.wxss b/components/selectCascader/selectCascader.wxss new file mode 100644 index 0000000..4823191 --- /dev/null +++ b/components/selectCascader/selectCascader.wxss @@ -0,0 +1,84 @@ +/* 选择样式 */ +.select-item { + box-sizing: border-box; + width: 690rpx; + background: #fff; + display: flex; + flex-direction: row; + justify-content: space-between; +} + +/* 街道选择样式 */ + +.select-item .select-street { + box-sizing: border-box; + padding: 0 25rpx; + background: #f6f8f8; + position: relative; + min-width: 250rpx; + width: 100%; + height: 70rpx; + /* white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; */ +} + +.select-item .select-street .street-info { + box-sizing: border-box; + width: 100%; + display: flex; + align-items: center; + display: -webkit-flex; + justify-content: space-between; + flex-direction: row; + flex-wrap: wrap; + margin-top: 19rpx; +} + +.select-item .select-street .street-info .image-and-text { + width: 80%; + display: flex; + align-items: center; +} + +.select-item .select-street .street-info .image-and-text image:first-child { + width: 28rpx; + height: 32rpx; +} + +.select-item .select-street .street-info .image-and-text .street-name { + width: 100%; + display: inline-block; + margin-left: 14rpx; + font-size: 28rpx; + font-weight: 500; + color: rgba(122, 122, 122, 1); + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.select-item .select-street .street-info image:last-child { + margin-left: 11rpx; + width: 22rpx; + height: 16rpx; +} + +/* 默认向下 */ + +.reverse { + transform: rotate(0deg); + transform-origin: center 8rpx; + transition: transform 0.4s; +} + +/* 点击向上 */ + +._reverse { + transform: rotate(180deg); + transform-origin: center 8rpx; + transition: transform 0.4s; +} \ No newline at end of file diff --git a/images/xiala.png b/images/xiala.png new file mode 100644 index 0000000000000000000000000000000000000000..8bb47149dce48fed857698e638e0a2c4f5d40bf5 GIT binary patch literal 600 zcmV-e0;m0nP)5(kGkpt|XEhx*fd%a!V2q9QjaioU z7mLOD70_i__HMV^m%-No5hpcZx%rbZrbl-~#PKVDElIm%SvFLY_LE^+o6Tk>gxDJ3 zrii$26Pk1W#u$6oeE`6Gxm@nl=fA+RG$_k@JyVoa8kaVpsfT1K=%;%^#Nk5_>Vu*v zMgTzdtgk&HPTK%3ied`@Gu`(6ejl2ezLsJ7lg)q-Vyt#+3V2(Bgb=$t&*vr|55SHi zIwN8~1!!f1b8afZvureD2|fVJT5j9~p#eCWe1eDvn_VNYgf?mOgUo~gJ7lz`xs6Jq z+SH~tH`QD(;3wMbJT_O>eKgk_IJGwWYHkp4i1gSp?5nv!z%FgJiMz>Bs=%!(p*l@* zlorkPe(g5`j@9N+%?&OI<;~=+&8g+FafS&xMDSxYH#)<<+8nF7Nq`;NTpLDxln21_PuCPS9t#`taF mPXNb2`206XN%%O7-TMuW&uK8f;wyXr0000KLZ*U+5Lu!Sk^o_Z5E4Meg@_7P6crJiNL9pw)e1;Xm069{HJ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rnNxfacV6=#xs%Vt-MN+C@BBv~F$`)1 z)Ad^Dd=15mZX|!|d2OH2>a*)9um2(LAAjn1x@sxV`4IpI(n&gxW&FZ*smJL1*66j-O(Ll$k$GM$_!gQ|uDc&K&sgfg zQ*4!RNY5mKJV{xY6+F>;-4s6v?3nX4dY8?EecS5#Tm&@|@qc}P7t4lnUp*tQ)}g@I z1w6+A+_>*u8*S<~ofJAz&+(_)!w%_GQMX!mekA%i%b(0iOV~fi05YHl4 zRgyUbnz$cpqX-L_*Z+rr?%P4nH)f;zcf@VBa3x5!;y-FD`^~OR`nad z!9ofUuW9~C_`G*-uo6QX0~b}a;sZrI&u@|d6ex&oBZXpM>k-Q@j@Luuvv^7GH`s)f zsiP2d&1U~Xsp2|`k;epmT^jFUnda!%dOMN4D5*a`1Q*VkHf%I60%8ZKVsmpq>BB#% zp^@yfkX0K_PWZal2p)h^Z~BEz!h{{C3~p$p*@!Vd7VRQf1+WYL3g$F$Xu{hKb1@pg zQ+ER;@p%b5sHSAv)%uI)=lCXmx8Eh)#*UCi3SPiH{nq2aj$LYG)U1aXalgRO$iR?W-D5Pp%he^!P#N@$8rGk}97 zgSjM-D;QqYf?SW`W?)}-9Sj>BBD4TKyEgbtV0dpc7aSH z@Jj-B;PzQo4hH~3)5TY<)Bf!ds8}a0#MjvIWrq0000 { + this.setData({ + treeList: res.data.options + }) + }) + }, + getYearsList (smallYears = 1970) { + let nowYears = new Date().getFullYear() + let Years = nowYears - smallYears + let arrYear = [] + let yearsList = [] + for (let i = 0; i <= Years; i++) { + arrYear.push(nowYears--) + } + arrYear.forEach(ele => { + yearsList.push({ + value: ele.toString(), + label: ele + '年' + }) + }) + this.setData({ + yearsList + }) + }, + // 获取字典 - + getFullDictInfo () { + api.getFullDictInfo('enterprise_quarter').then(res => { + if (res.code == 0 && res.msg == 'success') { + let quarterList = [] + res.data.forEach(item => { + let ob = { + label: item.dictName, + value: item.dictValue + } + quarterList.push(ob) + }) + this.setData({ + quarterList + }) + } + }).catch(err => { + console.log(err) + }) + api.getFullDictInfo('enterprise_status').then(res => { + if (res.code == 0 && res.msg == 'success') { + let companyList = [] + res.data.forEach(item => { + let ob = { + label: item.dictName, + value: item.dictValue + } + companyList.push(ob) + }) + this.setData({ + companyList + }) + } + }).catch(err => { + console.log(err) + }) + }, + // 选择所属网格 + chooseTreeId(e) { + this.setData({ + treeVlaue: e.detail.value, + 'treeChoosedValue.title': e.detail.options + .map((n) => n.label) + .join('/'), + // deptId: e.detail.value[e.detail.value.length - 1], + treeId: e.detail.value[e.detail.value.length - 1], + 'dataForm.gridId': e.detail.value[e.detail.value.length - 1] + }) + }, + // 所属年度 start + onShowYearPicker() { + this.setData({ + yearPickerVisible: true, + }) + }, + onCancelYearPicker() { + this.setData({ + yearPickerVisible: false, + }) + }, + onConfirmYearPicker(e) { + console.log(e.detail) + this.setData({ + yearPickerVisible: false, + yearValue: e.detail.value, + 'yearChoosedValue.label': e.detail.label, + 'yearChoosedValue.value': e.detail.value[0], + yearId: e.detail.value[0], + 'dataForm.year': e.detail.value[0] + }) + }, + // 所属年度 end + // 所属季度 start + onShowQuarterPicker() { + this.setData({ + quarterPickerVisible: true, + }) + }, + onCancelQuarterPicker() { + this.setData({ + quarterPickerVisible: false, + }) + }, + onConfirmQuarterPicker(e) { + console.log(e.detail) + this.setData({ + quarterPickerVisible: false, + quarterValue: e.detail.value, + 'quarterChoosedValue.label': e.detail.label, + 'quarterChoosedValue.value': e.detail.value[0], + quarterId: e.detail.value[0], + 'dataForm.quarter': e.detail.value[0] + }) + }, + // 所属季度 end + // 公司经营状态 start + onShowCompanyPicker() { + this.setData({ + companyPickerVisible: true, + }) + }, + onCancelCompanyPicker() { + this.setData({ + companyPickerVisible: false, + }) + }, + onConfirmCompanyPicker(e) { + console.log(e.detail) + this.setData({ + companyPickerVisible: false, + companyValue: e.detail.value, + 'companyChoosedValue.label': e.detail.label, + 'companyChoosedValue.value': e.detail.value[0], + companyId: e.detail.value[0], + 'dataForm.enterpriseStatus': e.detail.value[0] + }) + }, + // 公司经营状态 end + + onInputValue (e) { + let key = e.currentTarget.dataset.code + this.data.dataForm[key] = e.detail.value + this.setData({ + dataForm: this.data.dataForm + }) + }, + + //提交申请 + submitApply () { + if (this.data.lock) { + return false + } + if (!this.data.dataForm.gridId) { + this.showToast("请选择所属网格") + return false + } + if (!this.data.dataForm.year) { + this.showToast("请选择年度") + return false + } + if (!this.data.dataForm.quarter) { + this.showToast("请选择季度") + return false + } + if (!this.data.dataForm.enterpriseName || !this.data.dataForm.enterpriseName.trim('')) { + this.showToast("请填写公司名称") + return false + } + if (this.data.dataForm.enterpriseName.length > 100) { + this.showToast("公司名称不能超过100个字") + return + } + if (!this.data.dataForm.legalPerson || !this.data.dataForm.legalPerson.trim('')) { + this.showToast("请填写法人或联系人") + return false + } + if (this.data.dataForm.legalPerson.length > 20) { + this.showToast("法人姓名不能超过20个字") + return + } + if (!this.data.dataForm.concat || !this.data.dataForm.concat.trim('')) { + this.showToast("请填写联系电话") + return false + } + if (this.data.dataForm.concat.length > 20) { + this.showToast("请输入正确的联系电话") + return + } + if (!this.data.dataForm.enterpriseStatus) { + this.showToast("请选择公司状态") + return false + } + if (!this.data.dataForm.enterpriseIncome) { + this.data.dataForm.enterpriseIncome = '0' + } + if (!this.data.dataForm.enterprisePeopleNum) { + this.data.dataForm.enterprisePeopleNum = '0' + } + if (!this.data.dataForm.question) { + this.data.dataForm.question = '无' + } + wx.showLoading({ + title: "加载中", + }) + this.setData({ + lock: true + }) + const para = { ...this.data.dataForm } + // para.isConReview = this.data.isConReview + console.log('submit apply', para) + let that = this + api.addEnterpriseReport(para).then(res => { + wx.hideLoading() + this.setData({ + lock: false + }) + if(res.code == 0) { + this.setData({ + dialogVisible: !this.data.dialogVisible, + 'dataForm.gridId': '', + violationsCount: 0, + isConReview: false + }) + } else if (res.code == 533) { + this.data.violationsCount++ + console.log(this.data.violationsCount) + if (this.data.violationsCount == 1){ + wx.showToast({ + title: res.msg, + icon: "none", + duration: 2000 + }) + } else if (this.data.violationsCount == 2) { + wx.showModal({ + title: '提示', + content: '您提交的内容再次被判定为违规,您确定是否要提交?', + success (res) { + if (res.confirm) { + console.log('用户点击确定') + that.data.isConReview = true + that.submitApply() + } else if (res.cancel) { + console.log('用户点击取消') + that.setData({ + violationsCount: 0, + isConReview: false + }) + } + } + }) + } + } + }).catch(err => { + console.log('err',err) + wx.hideLoading() + this.setData({ + lock: false + }) + }) + }, + + //简化提示 + showToast (title) { + wx.showToast({ + title: title, + icon: "none", + duration: 2000 + }) + }, + //跳转到我填报的列表 + toApplyList () { + wx.navigateTo({ + url: "/subpages/oneKeyService/pages/companyInformationList/companyInformationList" + }) + }, + + // 关闭弹框 + closeDialog () { + wx.navigateBack() + }, + // 弹框确定按钮 + confirmDialog () { + wx.navigateBack() + } +}) \ No newline at end of file diff --git a/subpages/oneKeyService/pages/companyInformation/companyInformation.json b/subpages/oneKeyService/pages/companyInformation/companyInformation.json new file mode 100644 index 0000000..f958017 --- /dev/null +++ b/subpages/oneKeyService/pages/companyInformation/companyInformation.json @@ -0,0 +1,8 @@ +{ + "navigationBarTitleText": "企业信息填报", + "usingComponents": { + "notice": "../../compontents/notice/notice", + "select-cascader": "../../../../components/selectCascader/selectCascader", + "wux-picker": "../../../../dist/picker/index" + } +} \ No newline at end of file diff --git a/subpages/oneKeyService/pages/companyInformation/companyInformation.wxml b/subpages/oneKeyService/pages/companyInformation/companyInformation.wxml new file mode 100644 index 0000000..0875970 --- /dev/null +++ b/subpages/oneKeyService/pages/companyInformation/companyInformation.wxml @@ -0,0 +1,69 @@ + + + + + + + + *所属网格 + + + + *所属年度 + + {{yearChoosedValue.label||'请选择年度'}} + + + + + + *所属季度 + + {{quarterChoosedValue.label||'请选择季度'}} + + + + + + *公司名称 + + + + *法人或联络人 + + + + *联系电话 + + + + *公司状态 + + {{companyChoosedValue.label||'请选择公司状态'}} + + + + + + 营业收入 + + + + 用工人数 + + + + 存在的困难或需要上级协调解决的问题 + + + + + + 提交 + + + + + + + diff --git a/subpages/oneKeyService/pages/companyInformation/companyInformation.wxss b/subpages/oneKeyService/pages/companyInformation/companyInformation.wxss new file mode 100644 index 0000000..21d1f98 --- /dev/null +++ b/subpages/oneKeyService/pages/companyInformation/companyInformation.wxss @@ -0,0 +1,134 @@ +/* subpages/heart/pages/myApply/myApply.wxss */ +page { + width: 100%; + overflow-y: auto; + background: #f7f7f7; +} +.apply-list { + position: relative; + overflow: hidden; +} +.apply-list .apply-img { + position: absolute; + right: -10rpx; + top: 16rpx; +} +.apply-list .apply-img image { + width: 176rpx; + height: 76rpx; +} +.apply-list .apply-item { + width: 100%; + background-color: white; + display: flex; + flex-direction: column; + align-items: flex-start; + justify-content: center; + padding: 20rpx 30rpx; + margin-top: 16rpx; + box-sizing: border-box; +} +.apply-list .text-item { + /* height: 220rpx; */ +} +.apply-list .apply-item .item-title { + height: 50rpx; + line-height: 50rpx; + font-size: 32rpx; + font-family: PingFang SC; + font-weight: bold; + color: #333333; + margin-bottom: 20rpx; +} +.apply-list .apply-item .item-title .must { + color: #ff0000; +} +.apply-list .apply-item .item-content { + width: 100%; + height: 70rpx; + font-size: 32rpx; + font-family: PingFang SC; + font-weight: 400; + color: #666666; + box-sizing: border-box; + padding: 0 25rpx; + background: #f6f8f8; + display: flex; + align-items: center; +} +.apply-list .apply-item .text-content { + font-weight: 400; + height: 200rpx; + padding-top: 10rpx; + padding-bottom: 10rpx; + border-radius: 0%; + display: flex; + align-items: flex-start; +} +.submit { + width: 592rpx; + height: 116rpx; + position: relative; + margin: 78rpx auto 0rpx; +} +.submit .submit-bk { + width: 100%; + height: 100%; + position: absolute; + z-index: -1; +} +.submit .submit-text { + font-size: 34rpx; + font-family: PingFang SC; + font-weight: 500; + color: #FFFFFF; + height: 100rpx; + line-height: 100rpx; + text-align: center; +} + +.time-group { + width: 100%; + display: flex; + justify-content: space-around; + align-items: center; +} +.time-group .select-time { + width: 304rpx; + height: 50rpx; + /* background: #F7F7F7; */ + border-radius: 25rpx; + display: flex; + justify-content: center; + align-items: center; + font-size: 24rpx; + font-family: PingFang SC; + font-weight: 500; + color: #333333; +} +.time-group .select-time image { + width: 26rpx; + height: 26rpx; + opacity: 0.76; + margin-right: 20rpx; +} + +/* wux-picker start */ + .item-content .select { + color: #7A7A7A; + font-size: 30rpx; + width: 100%; + overflow: hidden; + white-space: nowrap; + text-overflow: ellipsis; + } + + .item-content .trigger { + width: 0; + height: 0; + border: 10rpx solid transparent; + border-top: 12rpx solid #c2c2c2; + position: relative; + top: 6rpx; + } +/* wux-picker end */ \ No newline at end of file diff --git a/subpages/oneKeyService/pages/companyInformationDetail/companyInformationDetail.js b/subpages/oneKeyService/pages/companyInformationDetail/companyInformationDetail.js new file mode 100644 index 0000000..03d19a3 --- /dev/null +++ b/subpages/oneKeyService/pages/companyInformationDetail/companyInformationDetail.js @@ -0,0 +1,30 @@ +const api = require("../../../../utils/api") + +Page({ + + /** + * 页面的初始数据 + */ + data: { + enterpriseId: '', + enterpriseDetails: {} + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + this.setData({ + enterpriseId: options.id + }) + this.getEnterpriseReportDetail() + }, + + getEnterpriseReportDetail () { + api.getEnterpriseReportDetail(this.data.enterpriseId).then(res => { + this.setData({ + enterpriseDetails: res.data + }) + }) + }, +}) \ No newline at end of file diff --git a/subpages/oneKeyService/pages/companyInformationDetail/companyInformationDetail.json b/subpages/oneKeyService/pages/companyInformationDetail/companyInformationDetail.json new file mode 100644 index 0000000..61f0f4a --- /dev/null +++ b/subpages/oneKeyService/pages/companyInformationDetail/companyInformationDetail.json @@ -0,0 +1,4 @@ +{ + "navigationBarTitleText": "详情", + "usingComponents": {} +} \ No newline at end of file diff --git a/subpages/oneKeyService/pages/companyInformationDetail/companyInformationDetail.wxml b/subpages/oneKeyService/pages/companyInformationDetail/companyInformationDetail.wxml new file mode 100644 index 0000000..26ca94c --- /dev/null +++ b/subpages/oneKeyService/pages/companyInformationDetail/companyInformationDetail.wxml @@ -0,0 +1,44 @@ + + + + 所属网格 + {{enterpriseDetails.grid}} + + + 所属年度 + {{enterpriseDetails.year}} + + + 所属季度 + {{enterpriseDetails.quarter}} + + + 公司名称 + {{enterpriseDetails.enterpriseName}} + + + 法人或联络人 + {{enterpriseDetails.legalPerson}} + + + 联系电话 + {{enterpriseDetails.concat}} + + + 公司状态 + {{enterpriseDetails.enterpriseStatus}} + + + 营业收入 + {{enterpriseDetails.enterpriseIncome}} + + + 用工人数 + {{enterpriseDetails.enterprisePeopleNum}} + + + 存在的困难或需要上级协调解决的问题 + {{enterpriseDetails.question}} + + + diff --git a/subpages/oneKeyService/pages/companyInformationDetail/companyInformationDetail.wxss b/subpages/oneKeyService/pages/companyInformationDetail/companyInformationDetail.wxss new file mode 100644 index 0000000..4b9b03b --- /dev/null +++ b/subpages/oneKeyService/pages/companyInformationDetail/companyInformationDetail.wxss @@ -0,0 +1,40 @@ +page { + width: 100%; + height: auto; + overflow-y: auto; + background: #f7f7f7; +} +.apply-detail { + margin-bottom: 60rpx; +} +.apply-detail .apply-item { + width: 100%; + background-color: white; + display: flex; + flex-direction: column; + align-items: flex-start; + justify-content: center; + padding: 40rpx 30rpx; + margin-top: 16rpx; + box-sizing: border-box; +} +.apply-detail .apply-item .item-title { + font-size: 32rpx; + font-family: PingFang SC; + font-weight: bold; + color: #333333; +} +.apply-detail .apply-item .item-content { + font-size: 32rpx; + font-family: PingFang SC; + font-weight: 500; + color: #666666; + margin-top: 28rpx; +} +.apply-detail .apply-item .line { + width: 100%; + height: 1px; + background: #F2F2F2; + border-radius: 1px; + margin: 28rpx 0rpx; +} \ No newline at end of file diff --git a/subpages/oneKeyService/pages/companyInformationList/companyInformationList.js b/subpages/oneKeyService/pages/companyInformationList/companyInformationList.js new file mode 100644 index 0000000..d37f3ba --- /dev/null +++ b/subpages/oneKeyService/pages/companyInformationList/companyInformationList.js @@ -0,0 +1,75 @@ +const api = require("../../../../utils/api") + +Page({ + + /** + * 页面的初始数据 + */ + data: { + pageIndex: 1, + pageSize: 10, + nodata: false, + loadMoreType: 'none', + loadMoreVisible: false, + enterpriselist: [], + quarterList: [] + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad: function (options) { + this.getEnterpriseReportList() + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom: function () { + this.setData({ + loadMoreVisible: true + }) + if (this.data.loadMoreType === "loading") { + this.setData({ + pageIndex: this.data.pageIndex + 1 + }) + this.getEnterpriseReportList() + } + }, + getEnterpriseReportList () { + const para = { + pageIndex: this.data.pageIndex, + pageSize: this.data.pageSize + } + api.getEnterpriseReportList(para).then(res => { + console.log(res) + this.setData({ + enterpriselist: [...this.data.enterpriselist,...res.data], + loadMoreType: res.data.length === this.data.pageSize ? 'loading' : 'none', + loadMoreVisible: res.data.length === this.data.pageSize ? false : true + }) + if (this.data.enterpriselist.length == 0) { + this.setData({ + nodata: true, + loadMoreType: 'none', + loadMoreVisible: false, + }) + } + }).catch(err => { + this.setData({ + enterpriselist: [], + nodata: true, + loadMoreType: 'none', + loadMoreVisible: false, + }) + console.log(err) + }) + }, + //跳转到信息详情 + toApplyDetail (e) { + console.log('跳转详情', e.currentTarget.dataset.id) + wx.navigateTo({ + url: `/subpages/oneKeyService/pages/companyInformationDetail/companyInformationDetail?id=${e.currentTarget.dataset.id}` + }) + } +}) \ No newline at end of file diff --git a/subpages/oneKeyService/pages/companyInformationList/companyInformationList.json b/subpages/oneKeyService/pages/companyInformationList/companyInformationList.json new file mode 100644 index 0000000..4583a89 --- /dev/null +++ b/subpages/oneKeyService/pages/companyInformationList/companyInformationList.json @@ -0,0 +1,7 @@ +{ + "navigationBarTitleText": "填报记录", + "usingComponents": { + "load-more": "/components/loadMore/loadMore", + "no-data": "/components/nodata/nodata" + } +} \ No newline at end of file diff --git a/subpages/oneKeyService/pages/companyInformationList/companyInformationList.wxml b/subpages/oneKeyService/pages/companyInformationList/companyInformationList.wxml new file mode 100644 index 0000000..f0d8e16 --- /dev/null +++ b/subpages/oneKeyService/pages/companyInformationList/companyInformationList.wxml @@ -0,0 +1,16 @@ + + + + {{item.enterpriseName}} + + 所属年度:{{item.year}} + 所属季度:{{item.quarter}} + 提交时间:{{item.createdTime}} + + + + + + + + diff --git a/subpages/oneKeyService/pages/companyInformationList/companyInformationList.wxss b/subpages/oneKeyService/pages/companyInformationList/companyInformationList.wxss new file mode 100644 index 0000000..205aa8e --- /dev/null +++ b/subpages/oneKeyService/pages/companyInformationList/companyInformationList.wxss @@ -0,0 +1,79 @@ +page { + width: 100%; + height: auto; + overflow-y: auto; + background: #f7f7f7; +} +.apply-list { + +} +.apply-list .my-apply-img { + position: absolute; + right: -10rpx; +} +.apply-list .my-apply-img image { + width: 208rpx; + height: 76rpx; +} +.apply-list .apply-item { + width: 100%; + background-color: white; + display: flex; + flex-direction: column; + align-items: flex-start; + justify-content: center; + padding: 30rpx 30rpx; + margin-top: 16rpx; + box-sizing: border-box; +} +.apply-list .text-item { + height: 220rpx; +} +.apply-list .apply-item .item-title { + font-size: 32rpx; + font-family: PingFang SC; + font-weight: bold; + color: #333333; +} +.apply-list .apply-item .item-content { + width: 100%; + height: 44rpx; + line-height: 44rpx; + font-size: 32rpx; + font-family: PingFang SC; + font-weight: 500; + color: #999999; +} +.apply-list .apply-item .text-content { + height: 88rpx; + color: #666666; +} +.apply-list .apply-item .line { + width: 100%; + height: 1px; + background: #F2F2F2; + border-radius: 1px; + margin: 28rpx 0rpx; +} +.apply-list .apply-item .item-time { + font-size: 30rpx; + font-family: PingFang SC; + font-weight: 400; + color: #666666; +} +.apply-list .apply-item .item-state { + margin: 26rpx 0rpx 28rpx; + font-size: 30rpx; + font-family: PingFang SC; + font-weight: 400; + color: #666666; +} +.apply-list .apply-item .item-state .state-0 { + color: #FB9F00; +} +.apply-list .apply-item .item-state .state-1 { + color: #28C896; +} +.apply-list .apply-item .item-state .state-2 { + color: #D80000; +} \ No newline at end of file diff --git a/subpages/oneKeyService/pages/moduleList/moduleList.js b/subpages/oneKeyService/pages/moduleList/moduleList.js index 0cbc30a..79a3049 100644 --- a/subpages/oneKeyService/pages/moduleList/moduleList.js +++ b/subpages/oneKeyService/pages/moduleList/moduleList.js @@ -348,6 +348,10 @@ Page({ wx.navigateTo({ url: "/subpages/oneKeyService/pages/suggestDict/suggestDict" }) + } else if (e.currentTarget.dataset.code == 'notice_jztj_qytb') { + wx.navigateTo({ + url: "/subpages/oneKeyService/pages/companyInformation/companyInformation" + }) } else { wx.showToast({ title: '暂未开放', diff --git a/subpages/oneKeyService/pages/suggestDict/suggestDict.wxss b/subpages/oneKeyService/pages/suggestDict/suggestDict.wxss index dceddf6..c221605 100644 --- a/subpages/oneKeyService/pages/suggestDict/suggestDict.wxss +++ b/subpages/oneKeyService/pages/suggestDict/suggestDict.wxss @@ -13,7 +13,7 @@ page { top: 16rpx; } .suggest-list .suggest-dict-img image { - width: 164rpx; + width: 176rpx; height: 76rpx; } .suggest-list .issue-item { diff --git a/utils/api.js b/utils/api.js index dfa4cfd..76b3f0a 100755 --- a/utils/api.js +++ b/utils/api.js @@ -73,7 +73,13 @@ module.exports = { suggestDictList: suggestDictList, suggestDetail: suggestDetail, getVolunteerDepts: getVolunteerDepts, - getCharityPoints: getCharityPoints + getCharityPoints: getCharityPoints, + // 企业填报 + addEnterpriseReport, + getGridTree, + getFullDictInfo, + getEnterpriseReportList, + getEnterpriseReportDetail, } function getToken (wxCode) { @@ -637,4 +643,25 @@ function getVolunteerDepts () { //志愿者银行-公益积分记录 function getCharityPoints (para) { return fly.get(`points/charityPoints`, para) +} + +// 企业上报 +function addEnterpriseReport (para) { + return fly.post("custom/addEnterpriseReport", para) +} +// 获取网格树 +function getGridTree () { + return fly.get("admin/getDeptTreeWithTypeKey") +} +// 获取字典值 +function getFullDictInfo (dictType) { + return fly.get(`dic/getFullDictInfo/${dictType}`) +} +// 我的填报列表 +function getEnterpriseReportList (para) { + return fly.get("custom/getEnterpriseReportList", para) +} +// 企业详情 +function getEnterpriseReportDetail (id) { + return fly.get(`custom/getEnterpriseReportDetail/${id}`) } \ No newline at end of file