Commit 0189b35680eb04aafc4f3f81d885bd6b82ef6793
1 parent
6c679290
登录问题
Showing
8 changed files
with
749 additions
and
3 deletions
pages.json
| ... | ... | @@ -466,6 +466,22 @@ |
| 466 | 466 | "navigationBarTitleText" : "分组列表和新建分组", |
| 467 | 467 | "enablePullDownRefresh" : false |
| 468 | 468 | } |
| 469 | + }, | |
| 470 | + { | |
| 471 | + "path" : "pages/companyInfoList/companyInfoList", | |
| 472 | + "style" : | |
| 473 | + { | |
| 474 | + "navigationBarTitleText" : "企业信息采集列表", | |
| 475 | + "enablePullDownRefresh" : false | |
| 476 | + } | |
| 477 | + }, | |
| 478 | + { | |
| 479 | + "path" : "pages/companyInfoList/addComInfo/addComInfo", | |
| 480 | + "style" : | |
| 481 | + { | |
| 482 | + "navigationBarTitleText" : "企业信息表单", | |
| 483 | + "enablePullDownRefresh" : false | |
| 484 | + } | |
| 469 | 485 | } |
| 470 | 486 | |
| 471 | 487 | // { | ... | ... |
pages/companyInfoList/addComInfo/Feedback.scss
0 → 100644
| 1 | +.page{ | |
| 2 | + position: absolute; | |
| 3 | + left: 0; | |
| 4 | + top: 0; | |
| 5 | + width: 100%; | |
| 6 | + height: 100%; | |
| 7 | + background-color: #f6f6f6; | |
| 8 | +} | |
| 9 | +.titleall-box { | |
| 10 | + display: flex; | |
| 11 | + justify-content: space-between; | |
| 12 | + padding: 40rpx 20rpx 20rpx 0; | |
| 13 | + .titleall-left { | |
| 14 | + font-size: 32rpx; | |
| 15 | + font-weight: bold; | |
| 16 | + display: flex; | |
| 17 | + align-items: center; | |
| 18 | + .titleall-left-line { | |
| 19 | + width: 14rpx; | |
| 20 | + height: 36rpx; | |
| 21 | + border-radius: 0 10rpx 10rpx 0; | |
| 22 | + background-color: #E60012; | |
| 23 | + box-shadow: 0 0 10rpx 5rpx #fbdadc; | |
| 24 | + margin-right: 20rpx; | |
| 25 | + } | |
| 26 | + text { | |
| 27 | + font-size: 28rpx; | |
| 28 | + color: #999999; | |
| 29 | + } | |
| 30 | + } | |
| 31 | +} | |
| 32 | +/* 反馈类型 */ | |
| 33 | +.feedback-type{ | |
| 34 | + position: relative; | |
| 35 | + display: flex; | |
| 36 | + align-items: center; | |
| 37 | + justify-content: space-between; | |
| 38 | + width: 94%; | |
| 39 | + height: 100rpx; | |
| 40 | + margin: 20rpx auto; | |
| 41 | + background-color: #FFFFFF; | |
| 42 | + border-radius: 20rpx; | |
| 43 | + padding: 0 4%; | |
| 44 | + .feedback-type-left { | |
| 45 | + color: #909090; | |
| 46 | + } | |
| 47 | + .title{ | |
| 48 | + display: flex; | |
| 49 | + align-items: center; | |
| 50 | + text{ | |
| 51 | + font-size: 26rpx; | |
| 52 | + } | |
| 53 | + } | |
| 54 | + .picker{ | |
| 55 | + position: absolute; | |
| 56 | + width: 100%; | |
| 57 | + height: 100%; | |
| 58 | + opacity: 0; | |
| 59 | + } | |
| 60 | + .more{ | |
| 61 | + display: flex; | |
| 62 | + align-items: center; | |
| 63 | + text{ | |
| 64 | + color: #000; | |
| 65 | + font-size: 34rpx; | |
| 66 | + } | |
| 67 | + image { | |
| 68 | + width: 20rpx; | |
| 69 | + height: 20rpx; | |
| 70 | + margin-left: 10rpx; | |
| 71 | + } | |
| 72 | + } | |
| 73 | + .feedback-type-right { | |
| 74 | + display: flex; | |
| 75 | + align-items: center; | |
| 76 | + } | |
| 77 | +} | |
| 78 | +.example-body { | |
| 79 | + padding: 10px; | |
| 80 | + padding-top: 0; | |
| 81 | + } | |
| 82 | + | |
| 83 | + .custom-image-box { | |
| 84 | + /* #ifndef APP-NVUE */ | |
| 85 | + display: flex; | |
| 86 | + /* #endif */ | |
| 87 | + flex-direction: row; | |
| 88 | + justify-content: space-between; | |
| 89 | + align-items: center; | |
| 90 | + } | |
| 91 | + | |
| 92 | + .text { | |
| 93 | + font-size: 14px; | |
| 94 | + color: #333; | |
| 95 | + } | |
| 96 | +.segmented-control { | |
| 97 | + margin-bottom: 15px; | |
| 98 | + } | |
| 99 | + | |
| 100 | + .button-group { | |
| 101 | + margin-top: 15px; | |
| 102 | + display: flex; | |
| 103 | + justify-content: space-around; | |
| 104 | + } | |
| 105 | + | |
| 106 | + .form-item { | |
| 107 | + display: flex; | |
| 108 | + align-items: center; | |
| 109 | + } | |
| 110 | + | |
| 111 | + .button { | |
| 112 | + display: flex; | |
| 113 | + align-items: center; | |
| 114 | + height: 35px; | |
| 115 | + margin-left: 10px; | |
| 116 | + } | |
| 117 | +/* 反馈内容 */ | |
| 118 | +.feedback-data{ | |
| 119 | + width: 94%; | |
| 120 | + // height: 600rpx; | |
| 121 | + margin: 20rpx auto; | |
| 122 | + background-color: #FFFFFF; | |
| 123 | + border-radius: 20rpx; | |
| 124 | + .content{ | |
| 125 | + padding: 20rpx; | |
| 126 | + textarea{ | |
| 127 | + width: 94%; | |
| 128 | + height: 320rpx; | |
| 129 | + background-color: #f6f6f6; | |
| 130 | + border-radius: 20rpx; | |
| 131 | + padding: 20rpx; | |
| 132 | + font-size: 26rpx; | |
| 133 | + color: #222222; | |
| 134 | + } | |
| 135 | + } | |
| 136 | + .voucher-img{ | |
| 137 | + display: flex; | |
| 138 | + align-items: center; | |
| 139 | + padding: 0 20rpx; | |
| 140 | + height: 240rpx; | |
| 141 | + margin-top: 20rpx; | |
| 142 | + .list{ | |
| 143 | + width: 33%; | |
| 144 | + height: 100%; | |
| 145 | + image{ | |
| 146 | + width: 160rpx; | |
| 147 | + height: 160rpx; | |
| 148 | + border-radius: 10rpx; | |
| 149 | + } | |
| 150 | + } | |
| 151 | + } | |
| 152 | +} | |
| 153 | + | |
| 154 | +/* 联系方式 */ | |
| 155 | +.contact-way{ | |
| 156 | + display: flex; | |
| 157 | + align-items: center; | |
| 158 | + justify-content: center; | |
| 159 | + width: 94%; | |
| 160 | + height: 100rpx; | |
| 161 | + margin: 20rpx auto; | |
| 162 | + background-color: #FFFFFF; | |
| 163 | + border-radius: 20rpx; | |
| 164 | + input{ | |
| 165 | + width: 100%; | |
| 166 | + height: 100%; | |
| 167 | + padding: 0 4%; | |
| 168 | + font-size: 26rpx; | |
| 169 | + color: #222222; | |
| 170 | + } | |
| 171 | +} | |
| 172 | + | |
| 173 | +/* 提交 */ | |
| 174 | +.submit-btn{ | |
| 175 | + display: flex; | |
| 176 | + align-items: center; | |
| 177 | + justify-content: center; | |
| 178 | + width: 94%; | |
| 179 | + height: 80rpx; | |
| 180 | + margin: 30rpx auto; | |
| 181 | + background: #E60012; | |
| 182 | + border-radius: 80rpx; | |
| 183 | + text{ | |
| 184 | + color: #FFFFFF; | |
| 185 | + font-size: 28rpx; | |
| 186 | + } | |
| 187 | +} | |
| 0 | 188 | \ No newline at end of file | ... | ... |
pages/companyInfoList/addComInfo/addComInfo.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <view class="page"> | |
| 3 | + <!-- 反馈内容 --> | |
| 4 | + <view class="feedback-data"> | |
| 5 | + <view class="titleall-box"> | |
| 6 | + <view class="titleall-left"> | |
| 7 | + <view class="titleall-left-line"></view>企业信息 | |
| 8 | + </view> | |
| 9 | + </view> | |
| 10 | + <uni-forms ref="valiForm" :rules="rules" :modelValue="valiFormData" style="width: 96%;margin: 0 auto;"> | |
| 11 | + <uni-forms-item label="公司名称" name="enterpriseName"> | |
| 12 | + <uni-easyinput v-model="valiFormData.enterpriseName" disabled placeholder="请输入" /> | |
| 13 | + </uni-forms-item> | |
| 14 | + <uni-forms-item label="行业类型" name="industry"> | |
| 15 | + <uni-easyinput v-model="valiFormData.industry" disabled placeholder="请输入" /> | |
| 16 | + </uni-forms-item> | |
| 17 | + <uni-forms-item label="公司法人" name="legalPerson"> | |
| 18 | + <uni-easyinput v-model="valiFormData.legalPerson" disabled placeholder="请输入" /> | |
| 19 | + </uni-forms-item> | |
| 20 | + <uni-forms-item label="公司联系人" name="contacts"> | |
| 21 | + <uni-easyinput v-model="valiFormData.contacts" disabled placeholder="请输入" /> | |
| 22 | + </uni-forms-item> | |
| 23 | + <uni-forms-item label="联系人电话" name="contactsPhone"> | |
| 24 | + <uni-easyinput v-model="valiFormData.contactsPhone" disabled placeholder="请输入" /> | |
| 25 | + </uni-forms-item> | |
| 26 | + <uni-forms-item label="从业人数" name="employees"> | |
| 27 | + <uni-easyinput v-model="valiFormData.employees" disabled placeholder="请输入" /> | |
| 28 | + </uni-forms-item> | |
| 29 | + <uni-forms-item label="总产值" name="totalOutputValue"> | |
| 30 | + <uni-easyinput v-model="valiFormData.totalOutputValue" disabled placeholder="请输入" /> | |
| 31 | + </uni-forms-item> | |
| 32 | + <uni-forms-item label="销售收入" name="salesRevenue"> | |
| 33 | + <uni-easyinput v-model="valiFormData.salesRevenue" disabled placeholder="请输入" /> | |
| 34 | + </uni-forms-item> | |
| 35 | + <uni-forms-item label="固投" name="fixedInvestment"> | |
| 36 | + <uni-easyinput v-model="valiFormData.fixedInvestment" disabled placeholder="请输入" /> | |
| 37 | + </uni-forms-item> | |
| 38 | + <uni-forms-item label="税收" name="taxation"> | |
| 39 | + <uni-easyinput v-model="valiFormData.taxation" disabled placeholder="请输入" /> | |
| 40 | + </uni-forms-item> | |
| 41 | + <uni-forms-item label="利润" name="profit"> | |
| 42 | + <uni-easyinput v-model="valiFormData.profit" disabled placeholder="请输入" /> | |
| 43 | + </uni-forms-item> | |
| 44 | + <uni-forms-item label="进口总额" name="imports"> | |
| 45 | + <uni-easyinput v-model="valiFormData.imports" disabled placeholder="请输入" /> | |
| 46 | + </uni-forms-item> | |
| 47 | + <uni-forms-item label="出口总额" name="totalExportValue"> | |
| 48 | + <uni-easyinput v-model="valiFormData.totalExportValue" disabled placeholder="请输入" /> | |
| 49 | + </uni-forms-item> | |
| 50 | + <uni-forms-item label="主要产品" name="mainProducts"> | |
| 51 | + <uni-easyinput v-model="valiFormData.mainProducts" disabled placeholder="请输入" /> | |
| 52 | + </uni-forms-item> | |
| 53 | + <uni-forms-item label="创建用户企业" name="creatorUserEnterprise"> | |
| 54 | + <uni-easyinput v-model="valiFormData.creatorUserEnterprise" disabled placeholder="请输入" /> | |
| 55 | + </uni-forms-item> | |
| 56 | + <uni-forms-item label="企业规模" name="creatorUserEnterprise"> | |
| 57 | + <uni-easyinput v-model="valiFormData.enterpriseScale" disabled placeholder="请输入" /> | |
| 58 | + </uni-forms-item> | |
| 59 | + <!-- <uni-forms-item label="党的建设详细内容"> | |
| 60 | + <uni-easyinput type="textarea" v-model="valiFormData.bodyContent" placeholder="请输入" /> | |
| 61 | + </uni-forms-item> --> | |
| 62 | + </uni-forms> | |
| 63 | + | |
| 64 | + </view> | |
| 65 | + | |
| 66 | + </view> | |
| 67 | +</template> | |
| 68 | + | |
| 69 | +<script> | |
| 70 | + import { | |
| 71 | + data | |
| 72 | + } from '../../../uview-ui/libs/mixin/mixin'; | |
| 73 | + import request from '@/utils/request.js' | |
| 74 | + import utils from '../../../service/utils'; | |
| 75 | + export default { | |
| 76 | + data() { | |
| 77 | + return { | |
| 78 | + userCode: {}, | |
| 79 | + // 选择图片路径 | |
| 80 | + filePath: [], | |
| 81 | + uploadPath: [], | |
| 82 | + type: "", | |
| 83 | + lastModifyUserId: '', | |
| 84 | + // 用户公司ID | |
| 85 | + companyId: '', | |
| 86 | + // 校验表单数据 | |
| 87 | + valiFormData: { | |
| 88 | + enterpriseName: '', | |
| 89 | + industry: '', | |
| 90 | + legalPerson: '', | |
| 91 | + contacts: '', | |
| 92 | + contactsPhone: "", | |
| 93 | + employees: '', | |
| 94 | + totalOutputValue: '', | |
| 95 | + salesRevenue: '', | |
| 96 | + fixedInvestment: '', | |
| 97 | + taxation: '', | |
| 98 | + profit: '', | |
| 99 | + imports: '', | |
| 100 | + totalExportValue: '', | |
| 101 | + mainProducts: '', | |
| 102 | + creatorUserEnterprise: '', | |
| 103 | + enterpriseScale:'', | |
| 104 | + }, | |
| 105 | + creater: '', | |
| 106 | + rules: { | |
| 107 | + enterpriseName: { | |
| 108 | + rules: [{ | |
| 109 | + required: true, | |
| 110 | + errorMessage: '不能为空' | |
| 111 | + }] | |
| 112 | + }, | |
| 113 | + industry: { | |
| 114 | + rules: [{ | |
| 115 | + required: true, | |
| 116 | + errorMessage: '不能为空' | |
| 117 | + }] | |
| 118 | + }, | |
| 119 | + legalPerson: { | |
| 120 | + rules: [{ | |
| 121 | + required: true, | |
| 122 | + errorMessage: '不能为空' | |
| 123 | + }] | |
| 124 | + }, | |
| 125 | + contacts: { | |
| 126 | + rules: [{ | |
| 127 | + required: true, | |
| 128 | + errorMessage: '不能为空' | |
| 129 | + }] | |
| 130 | + }, | |
| 131 | + contactsPhone: { | |
| 132 | + rules: [{ | |
| 133 | + required: true, | |
| 134 | + errorMessage: '不能为空' | |
| 135 | + }] | |
| 136 | + }, | |
| 137 | + employees: { | |
| 138 | + rules: [{ | |
| 139 | + required: true, | |
| 140 | + errorMessage: '不能为空' | |
| 141 | + }] | |
| 142 | + }, | |
| 143 | + salesRevenue: { | |
| 144 | + rules: [{ | |
| 145 | + required: true, | |
| 146 | + errorMessage: '不能为空' | |
| 147 | + }] | |
| 148 | + }, | |
| 149 | + fixedInvestment: { | |
| 150 | + rules: [{ | |
| 151 | + required: true, | |
| 152 | + errorMessage: '不能为空' | |
| 153 | + }] | |
| 154 | + }, | |
| 155 | + taxation: { | |
| 156 | + rules: [{ | |
| 157 | + required: true, | |
| 158 | + errorMessage: '不能为空' | |
| 159 | + }] | |
| 160 | + }, | |
| 161 | + profit: { | |
| 162 | + rules: [{ | |
| 163 | + required: true, | |
| 164 | + errorMessage: '不能为空' | |
| 165 | + }] | |
| 166 | + }, | |
| 167 | + mainProducts: { | |
| 168 | + rules: [{ | |
| 169 | + required: true, | |
| 170 | + errorMessage: '不能为空' | |
| 171 | + }] | |
| 172 | + }, | |
| 173 | + creatorUserEnterprise: { | |
| 174 | + rules: [{ | |
| 175 | + required: true, | |
| 176 | + errorMessage: '不能为空' | |
| 177 | + }] | |
| 178 | + }, | |
| 179 | + totalOutputValue: { | |
| 180 | + rules: [{ | |
| 181 | + required: true, | |
| 182 | + errorMessage: '不能为空' | |
| 183 | + }] | |
| 184 | + }, | |
| 185 | + imports: { | |
| 186 | + rules: [{ | |
| 187 | + required: true, | |
| 188 | + errorMessage: '不能为空' | |
| 189 | + }] | |
| 190 | + }, | |
| 191 | + totalExportValue: { | |
| 192 | + rules: [{ | |
| 193 | + required: true, | |
| 194 | + errorMessage: '不能为空' | |
| 195 | + }] | |
| 196 | + }, | |
| 197 | + }, | |
| 198 | + baseUrl: "http://deyanggaoxin.fengshiyun.com", | |
| 199 | + // 判断是否传了id | |
| 200 | + isId: '', | |
| 201 | + have: false, | |
| 202 | + detailData: [], | |
| 203 | + TypeArray: ['规上', '规下'], | |
| 204 | + TypeIndex: 0, | |
| 205 | + }; | |
| 206 | + | |
| 207 | + }, | |
| 208 | + // onShow() { | |
| 209 | + // this.getType() | |
| 210 | + // }, | |
| 211 | + onLoad(options) { | |
| 212 | + console.log("options", options) | |
| 213 | + let id = JSON.parse(options.data) | |
| 214 | + this.getDetail(id) | |
| 215 | + // if (JSON.stringify(options) == "{}") { | |
| 216 | + // this.have = true | |
| 217 | + // } else { | |
| 218 | + // this.isId = JSON.parse(options.data) | |
| 219 | + // console.log("Id", this.isId) | |
| 220 | + // this.getDetail(this.isId) | |
| 221 | + // } | |
| 222 | + this.getUser() | |
| 223 | + let user = uni.getStorageSync('user') | |
| 224 | + this.lastModifyUserId = user.userInfo.userId | |
| 225 | + | |
| 226 | + }, | |
| 227 | + methods: { | |
| 228 | + /** | |
| 229 | + * 反馈类型 | |
| 230 | + * @param {Object} val | |
| 231 | + */ | |
| 232 | + FeedbackTypeCh(val) { | |
| 233 | + console.log(val); | |
| 234 | + this.TypeIndex = val.detail.value; | |
| 235 | + }, | |
| 236 | + // 获取用户信息 | |
| 237 | + getUser() { | |
| 238 | + if (uni.getStorageSync('user')) { | |
| 239 | + this.userCode = uni.getStorageSync('user').userInfo | |
| 240 | + this.companyId = this.userCode.organizeId | |
| 241 | + // this.valiFormData.creatorUserEnterprise = this.userCode.organizeName | |
| 242 | + // this.userInfo = this.userCode.userAccount | |
| 243 | + // this.userInfo = '123456' | |
| 244 | + console.log('用户已登录!', this.userCode) | |
| 245 | + } else { | |
| 246 | + uni.showToast({ | |
| 247 | + title: '请登录', | |
| 248 | + icon: 'none' | |
| 249 | + }) | |
| 250 | + setTimeout(() => { | |
| 251 | + uni.reLaunch({ | |
| 252 | + url: '/pages/login/index' | |
| 253 | + }) | |
| 254 | + }) | |
| 255 | + } | |
| 256 | + }, | |
| 257 | + | |
| 258 | + | |
| 259 | + // 获取详细信息 | |
| 260 | + getDetail(id) { | |
| 261 | + let that = this | |
| 262 | + request({ | |
| 263 | + url: `/api/SubDev/baseenterprisemanager/${id}`, | |
| 264 | + method: 'get', | |
| 265 | + data: {} | |
| 266 | + }).then(res => { | |
| 267 | + console.log(res) | |
| 268 | + if (res.code === 200) { | |
| 269 | + this.info = res.data | |
| 270 | + that.valiFormData.enterpriseName = this.info.enterpriseName | |
| 271 | + that.valiFormData.industry = this.info.industry | |
| 272 | + that.valiFormData.legalPerson = this.info.legalPerson | |
| 273 | + that.valiFormData.contacts = this.info.contacts | |
| 274 | + that.valiFormData.contactsPhone = this.info.contactsPhone | |
| 275 | + that.valiFormData.employees = this.info.employees | |
| 276 | + that.valiFormData.totalOutputValue = this.info.totalOutputValue | |
| 277 | + that.valiFormData.salesRevenue = this.info.salesRevenue | |
| 278 | + that.valiFormData.fixedInvestment = this.info.fixedInvestment | |
| 279 | + that.valiFormData.taxation = this.info.taxation | |
| 280 | + that.valiFormData.profit = this.info.profit | |
| 281 | + that.valiFormData.imports = this.info.imports | |
| 282 | + that.valiFormData.totalExportValue = this.info.totalExportValue | |
| 283 | + that.valiFormData.mainProducts = this.info.mainProducts | |
| 284 | + that.valiFormData.enterpriseScale = this.info.enterpriseScale | |
| 285 | + that.valiFormData.creatorUserEnterprise = this.info.creatorUserEnterprise | |
| 286 | + } | |
| 287 | + }) | |
| 288 | + }, | |
| 289 | + } | |
| 290 | + } | |
| 291 | +</script> | |
| 292 | + | |
| 293 | +<style scoped lang="scss"> | |
| 294 | + @import 'Feedback.scss'; | |
| 295 | +</style> | |
| 0 | 296 | \ No newline at end of file | ... | ... |
pages/companyInfoList/companyInfoList.vue
0 → 100644
| 1 | +<template> | |
| 2 | + <view class="page"> | |
| 3 | + <!-- 搜索 --> | |
| 4 | + <view class="search-head"> | |
| 5 | + <view class="search"> | |
| 6 | + <image src="../../static/fdj1.png"></image> | |
| 7 | + <text></text> | |
| 8 | + <input type="text" placeholder="搜索关键词" v-model="selectName" @input="getMoHuList()"/> | |
| 9 | + </view> | |
| 10 | + <view class="btn"> | |
| 11 | + <text>搜索</text> | |
| 12 | + </view> | |
| 13 | + <mo-hu-search :show="selectShow" :list="comList" @select="select" label-name="name" | |
| 14 | + value-name="id" style="margin-top: 100rpx;"></mo-hu-search> | |
| 15 | + </view> | |
| 16 | + <view class="" style="margin-top: 110rpx;"> | |
| 17 | + <view class="item" v-for="(it,index) in companyList" :key="index" @click="toAddComInfo(it.id)"> | |
| 18 | + <view class="comName"> | |
| 19 | + {{it.enterpriseName}} | |
| 20 | + </view> | |
| 21 | + | |
| 22 | + <view class="more-content"> | |
| 23 | + <view class="comTime"> | |
| 24 | + {{it.creatorTime}} | |
| 25 | + </view> | |
| 26 | + <view class="more-content-img"> | |
| 27 | + <image src="../../static/right2.png"></image> | |
| 28 | + </view> | |
| 29 | + </view> | |
| 30 | + </view> | |
| 31 | + </view> | |
| 32 | + </view> | |
| 33 | +</template> | |
| 34 | + | |
| 35 | +<script> | |
| 36 | + import request from '@/utils/request.js' | |
| 37 | + import utils from '../../service/utils' | |
| 38 | + import moHuSearch from '../../components/qj-fuzzy-search/index.vue' | |
| 39 | + export default { | |
| 40 | + components:{ | |
| 41 | + moHuSearch | |
| 42 | + }, | |
| 43 | + data() { | |
| 44 | + return { | |
| 45 | + companyList:[], | |
| 46 | + comList:[], | |
| 47 | + selectShow:false, | |
| 48 | + selectName:'', | |
| 49 | + selectId:'', | |
| 50 | + } | |
| 51 | + }, | |
| 52 | + onLoad(){ | |
| 53 | + this.getCompanylist() | |
| 54 | + }, | |
| 55 | + methods: { | |
| 56 | + // 首页模糊查询 | |
| 57 | + getMoHuList(){ | |
| 58 | + this.selectShow = true | |
| 59 | + if(this.selectName === ''){ | |
| 60 | + this.selectShow = false | |
| 61 | + }else{ | |
| 62 | + request({ | |
| 63 | + url:'/api/SubDev/baseenterprisemanager', | |
| 64 | + method:'get', | |
| 65 | + data:{ | |
| 66 | + enterpriseName:this.selectName | |
| 67 | + } | |
| 68 | + }).then(res=>{ | |
| 69 | + console.log('模糊查询',res.data) | |
| 70 | + if(res.code === 200){ | |
| 71 | + let arr = res.data.list | |
| 72 | + this.comList = arr.map(it=>{ | |
| 73 | + return { | |
| 74 | + ...it, | |
| 75 | + name:it.enterpriseName | |
| 76 | + } | |
| 77 | + }) | |
| 78 | + this.comList = JSON.parse(JSON.stringify(this.comList)) | |
| 79 | + console.log('mohu',this.comList) | |
| 80 | + } | |
| 81 | + }) | |
| 82 | + } | |
| 83 | + | |
| 84 | + }, | |
| 85 | + select(item) { | |
| 86 | + this.selectName = item.name; | |
| 87 | + this.selectId = item.id | |
| 88 | + this.toAddComInfo(this.selectId) | |
| 89 | + // if() | |
| 90 | + this.selectShow = false; | |
| 91 | + }, | |
| 92 | + // 跳转到企业采集表单数据详情页面 | |
| 93 | + toAddComInfo(id){ | |
| 94 | + uni.navigateTo({ | |
| 95 | + url:'/pages/companyInfoList/addComInfo/addComInfo?data=' + `${JSON.stringify(id)}` | |
| 96 | + }) | |
| 97 | + }, | |
| 98 | + // 获取企业采集列表 | |
| 99 | + getCompanylist(){ | |
| 100 | + request({ | |
| 101 | + url:'/api/SubDev/baseenterprisemanager', | |
| 102 | + method:'get', | |
| 103 | + data:{} | |
| 104 | + }).then(res=>{ | |
| 105 | + if(res.code == 200){ | |
| 106 | + console.log(res) | |
| 107 | + this.companyList = res.data.list.map(it=>{ | |
| 108 | + return { | |
| 109 | + ...it, | |
| 110 | + creatorTime:utils.formatTime(it.creatorTime) | |
| 111 | + } | |
| 112 | + }) | |
| 113 | + } | |
| 114 | + }) | |
| 115 | + } | |
| 116 | + } | |
| 117 | + } | |
| 118 | +</script> | |
| 119 | + | |
| 120 | +<style lang="scss" scoped> | |
| 121 | +@import 'datain.scss'; | |
| 122 | +</style> | ... | ... |
pages/companyInfoList/datain.scss
0 → 100644
| 1 | +.page { | |
| 2 | + width: 100%; | |
| 3 | + height: 100vh; | |
| 4 | + overflow: scroll; | |
| 5 | + background-color: #F4F4F4 !important; | |
| 6 | +} | |
| 7 | +/* 搜索 */ | |
| 8 | +.search-head { | |
| 9 | + position: fixed; | |
| 10 | + left: 0; | |
| 11 | + // top: 86rpx; | |
| 12 | + z-index: 10; | |
| 13 | + display: flex; | |
| 14 | + justify-content: center; | |
| 15 | + align-items: center; | |
| 16 | + width: 100%; | |
| 17 | + /* #ifdef APP-PLUS */ | |
| 18 | + // height: calc(120rpx + var(--status-bar-height)); | |
| 19 | + /* #endif */ | |
| 20 | + padding: 20rpx; | |
| 21 | + background-color: #F4F4F4; | |
| 22 | + .search { | |
| 23 | + display: flex; | |
| 24 | + align-items: center; | |
| 25 | + width: 100%; | |
| 26 | + height: 80rpx; | |
| 27 | + background: rgba(255, 255, 255, 1); | |
| 28 | + border: 0; | |
| 29 | + border-radius: 30rpx; | |
| 30 | + padding:0 25rpx; | |
| 31 | + image { | |
| 32 | + width: 34rpx; | |
| 33 | + height: 34rpx; | |
| 34 | + } | |
| 35 | + text{ | |
| 36 | + width: 2rpx; | |
| 37 | + height: 24rpx; | |
| 38 | + background-color:#D8D8D8; | |
| 39 | + margin: 0 18rpx; | |
| 40 | + } | |
| 41 | + input { | |
| 42 | + width: 58%; | |
| 43 | + height: 100%; | |
| 44 | + font-size: 28rpx; | |
| 45 | + color: #646464; | |
| 46 | + } | |
| 47 | + } | |
| 48 | + .btn { | |
| 49 | + display: flex; | |
| 50 | + align-items: center; | |
| 51 | + justify-content: center; | |
| 52 | + position: absolute; | |
| 53 | + right: 30rpx; | |
| 54 | + background-color: #D32D25; | |
| 55 | + border-radius: 100rpx; | |
| 56 | + padding: 12rpx 25rpx; | |
| 57 | + text { | |
| 58 | + font-size: 28rpx; | |
| 59 | + color: #fff; | |
| 60 | + } | |
| 61 | + } | |
| 62 | +} | |
| 63 | +.listBox{ | |
| 64 | + position: relative; | |
| 65 | + z-index: 1; | |
| 66 | +} | |
| 67 | +.content { | |
| 68 | + width: 100%; | |
| 69 | +} | |
| 70 | +.item{ | |
| 71 | + width: 98%; | |
| 72 | + padding: 30rpx; | |
| 73 | + border-radius: 20rpx; | |
| 74 | + display: flex; | |
| 75 | + justify-content: space-between; | |
| 76 | + align-items: center; | |
| 77 | + background-color: white; | |
| 78 | + margin: 0 auto; | |
| 79 | + margin-top: 20rpx; | |
| 80 | + .comName{ | |
| 81 | + margin-left: 20rpx; | |
| 82 | + font-size: 30rpx; | |
| 83 | + font-weight: bold; | |
| 84 | + } | |
| 85 | + | |
| 86 | +} | |
| 87 | +.comTime{ | |
| 88 | + margin-right: 20rpx; | |
| 89 | +} | |
| 90 | +.more-content{ | |
| 91 | + display: flex; | |
| 92 | + align-items: center; | |
| 93 | + image{ | |
| 94 | + width: 100rpx; | |
| 95 | + height: 100rpx; | |
| 96 | + border-radius: 100%; | |
| 97 | + } | |
| 98 | + .more-content-img { | |
| 99 | + image { | |
| 100 | + width: 24rpx; | |
| 101 | + height: 24rpx; | |
| 102 | + } | |
| 103 | + } | |
| 104 | + } | |
| 0 | 105 | \ No newline at end of file | ... | ... |
pages/datain/datain.vue
| ... | ... | @@ -127,6 +127,18 @@ |
| 127 | 127 | </view> |
| 128 | 128 | </view> |
| 129 | 129 | </view> |
| 130 | + <view class="user-list" v-show="isAdmin"> | |
| 131 | + <view class="list" @click="toCompanyInfoList()"> | |
| 132 | + <view class="title"> | |
| 133 | + <text>企业信息采集列表查看</text> | |
| 134 | + </view> | |
| 135 | + <view class="more-content"> | |
| 136 | + <view class="more-content-img"> | |
| 137 | + <image src="../../static/right2.png"></image> | |
| 138 | + </view> | |
| 139 | + </view> | |
| 140 | + </view> | |
| 141 | + </view> | |
| 130 | 142 | <view class="user-list" style="padding-top: 0;padding-bottom: 0;" v-for="(item,index) in formList"> |
| 131 | 143 | <view class="list" v-for="(it,index) in item.children"> |
| 132 | 144 | <view class="title" @click="toForm(it)"> |
| ... | ... | @@ -417,6 +429,12 @@ |
| 417 | 429 | console.log(this.startDate, this.endDate) |
| 418 | 430 | this.getPostQing() |
| 419 | 431 | }, |
| 432 | + // 跳转到企业信息采集列表 | |
| 433 | + toCompanyInfoList(){ | |
| 434 | + uni.navigateTo({ | |
| 435 | + url:'/pages/companyInfoList/companyInfoList' | |
| 436 | + }) | |
| 437 | + }, | |
| 420 | 438 | // 跳转到选择通知企业页面 |
| 421 | 439 | toTellInfo() { |
| 422 | 440 | uni.navigateTo({ | ... | ... |
pages/login/index.vue
| ... | ... | @@ -143,14 +143,18 @@ |
| 143 | 143 | } else { |
| 144 | 144 | uni.showToast({ |
| 145 | 145 | icon: "error", |
| 146 | - title: res.msg | |
| 146 | + title: '返回数据不为200' | |
| 147 | 147 | }) |
| 148 | 148 | this.loading = false |
| 149 | 149 | } |
| 150 | 150 | // uni.navigateTo({ |
| 151 | 151 | // url:'/pages/tbDrugIftForm/index' |
| 152 | 152 | // }) |
| 153 | - }).catch(() => { | |
| 153 | + }).catch((res) => { | |
| 154 | + uni.showToast({ | |
| 155 | + icon:'error', | |
| 156 | + title:`${res}` | |
| 157 | + }) | |
| 154 | 158 | this.loading = false |
| 155 | 159 | }) |
| 156 | 160 | } | ... | ... |
pages/postCompany/postCompany.vue
| ... | ... | @@ -318,7 +318,7 @@ import utils from '../../service/utils'; |
| 318 | 318 | imports:that.valiFormData.imports, |
| 319 | 319 | totalExportValue:that.valiFormData.totalExportValue, |
| 320 | 320 | mainProducts:that.valiFormData.mainProducts, |
| 321 | - creatorUserEnterprise:that.companyId, | |
| 321 | + creatorUserEnterprise:that.valiFormData.creatorUserEnterprise, | |
| 322 | 322 | enterpriseScale:enterpriseScale |
| 323 | 323 | } |
| 324 | 324 | console.log(info) | ... | ... |