| | |
| | | // 查询惠企政策 |
| | | export function docList(data) { |
| | | return http.get(`/system/doc/list`, {params: data}); |
| | | } |
| | | // 新注册获取验证码 /verify/getNew |
| | | export function getNewVerify(data) { |
| | | return http.get(`/verify/getNew`, {params: data}); |
| | | } |
| | |
| | | </template> |
| | | |
| | | <script> |
| | | import { registerCompany, checkCode, getCode } from '@/api/auth.js' |
| | | import { registerCompany, checkCode, getNewVerify } from '@/api/auth.js' |
| | | import { upload } from '@/common/upload' |
| | | import { config } from '@/common/config.js' |
| | | export default { |
| | |
| | | uni.showLoading({ |
| | | title: '正在获取验证码' |
| | | }) |
| | | getCode({phone: this.form.companyPhone }).then(val => { |
| | | getNewVerify({phone: this.form.companyPhone }).then(val => { |
| | | if(val.data.code == 200) { |
| | | this.startCountdown() |
| | | uni.hideLoading(); |
| | | this.tips = `${this.countdownTime}s后重新获取` |
| | | uni.$u.toast('验证码已发送'); |
| | | } |
| | | }) |
| | | } else { |
| | | uni.$u.toast('倒计时结束后再发送'); |
| | |
| | | <template> |
| | | <u-popup :show="show" @close="close" @open="open" mode="bottom" round="10" closeable> |
| | | <u-popup :show="show" @close="close" @open="open" :safeAreaInsetBottom="false" mode="bottom" round="10" closeable> |
| | | <view class="page-box"> |
| | | <view class="title"> |
| | | 执法申请审批 |
| | |
| | | <u-popup mode="button" :safeAreaInsetBottom="false" :show="show" @close="close" @open="open" z-index="8000" bgColor="#fff"> |
| | | <view class="bg-box"> |
| | | <view class="title">选择随行人员</view> |
| | | <u-checkbox-group iconPlacement="right" v-model="checkboxValue1" placement="column" @change="checkboxChange"> |
| | | <u-checkbox :customStyle="{marginBottom: '40rpx', }" v-for="(item, index) in checkboxList1" :key="index" |
| | | :name="item.userId" :label="`${item.dept.deptName}--${item.nickName}`"> |
| | | </u-checkbox> |
| | | </u-checkbox-group> |
| | | <view class="set-flex set-flex-content-between"> |
| | | <scroll-view scroll-y="true" style="height: 600rpx;"> |
| | | <u-checkbox-group iconPlacement="right" v-model="checkboxValue1" placement="column" @change="checkboxChange"> |
| | | <u-checkbox :customStyle="{marginBottom: '40rpx', }" v-for="(item, index) in checkboxList1" :key="index" |
| | | :name="item.userId" :label="`${item.dept.deptName}--${item.nickName}`"> |
| | | </u-checkbox> |
| | | </u-checkbox-group> |
| | | </scroll-view> |
| | | <view class="set-flex set-flex-content-between down-options"> |
| | | <view class="button-per"> |
| | | <u-button @click="close">取消</u-button> |
| | | </view> |
| | |
| | | bottom: 0; |
| | | background-color: white; |
| | | border-radius: 20rpx 20rpx 0 0; |
| | | padding: 20rpx 32rpx; |
| | | padding: 20rpx 32rpx 240rpx; |
| | | z-index: 1000000; |
| | | width: 100%; |
| | | box-sizing: border-box; |
| | | min-height: 400rpx; |
| | | max-height: 800rpx; |
| | | } |
| | | .title{ |
| | | font-size: 36rpx; |
| | |
| | | .button-per{ |
| | | width: 48%; |
| | | } |
| | | .down-options{ |
| | | position: fixed; |
| | | bottom: 40rpx; |
| | | width: 100%; |
| | | box-sizing: border-box; |
| | | padding: 0 32rpx; |
| | | left: 0; |
| | | } |
| | | </style> |
| | |
| | | applyDeptName: '', |
| | | enforceType: 1, |
| | | isNoticeCompany: 0, |
| | | regionReason: 0, |
| | | // regionReason: 0, |
| | | planTimeStr: '', |
| | | peers: [], |
| | | orderStatus: 1 |
| | | orderStatus: 1, |
| | | enforceContent: "" |
| | | }, |
| | | show: false, |
| | | columns: [], |
| | |
| | | if(!this.form.enforceTypeName){ |
| | | return '请选择执法类型' |
| | | } |
| | | if(!this.form.regionReason) { |
| | | if(!this.form.enforceContent) { |
| | | return '请填写执法内容' |
| | | } |
| | | if(!this.form.peers.length){ |
| | |
| | | |
| | | this.getInfo() |
| | | }, |
| | | onShow() { |
| | | |
| | | }, |
| | | methods: { |
| | | getScanList(companyCode){ |
| | | getScanList({companyCode}).then(val => { |
| | |
| | | <text>申请时间:</text>{{item.applyTime}} |
| | | </view> |
| | | </view> |
| | | <view class="button" v-if="!isJudege" @click="goStartJudeg(item.orderId)"> |
| | | <view class="button" v-if="!isJudege" @click="goStartJudeg([item.orderId])"> |
| | | 审批 |
| | | </view> |
| | | </view> |
| | |
| | | this.list[index].isSelect = !this.list[index].isSelect |
| | | }, |
| | | allSelect() { |
| | | this.list.map(item => item.isSelect = !this.isAllSelect) |
| | | const value = this.isAllSelect |
| | | this.list.map(item => item.isSelect = !value) |
| | | }, |
| | | moreStart() { |
| | | const value = this.list.some(item => item.isSelect) |
| | | if(value) { |
| | | this.goStartJudeg() |
| | | const valueData = this.list.filter(item => item.isSelect).map(item => item.orderId) |
| | | // console.log(valueData) |
| | | this.goStartJudeg(valueData) |
| | | } else { |
| | | uni.showToast({ |
| | | title: '请选择审批', |
| | |
| | | }, |
| | | entery(form) { |
| | | // 1企业审批,2执法单审批 |
| | | checkUpd({...form, id: this.recordList, checkType: 2}).then(val => { |
| | | checkUpd({...form, ids: this.recordList, checkType: 2}).then(val => { |
| | | if(val.data.code == 200) { |
| | | uni.showToast({ |
| | | title: '审批成功', |