| | |
| | | <view class="container">
|
| | | <view class="wrap">
|
| | | <u-form labelWidth="70" :model="form" :rules="rules" ref="form">
|
| | |
|
| | | <view class="top item flex j-c-s-b a-i-c" @click="onScan()" v-if="!currentId">
|
| | | <view class="flex a-i-c">
|
| | | <u-icon name="/static/icon/nav-05.png" width="90rpx" height="90rpx"></u-icon>
|
| | | <text class="f-28 ml-10">扫码获取信息</text>
|
| | | </view>
|
| | | <u-icon name="arrow-right" size="20"></u-icon>
|
| | | </view>
|
| | |
|
| | | <view class="item">
|
| | | <!-- u-form-item v-if="!currentId" @click="showPicker = true" class="form-item" labelWidth="100" label="楼栋:"
|
| | | :required="isRequired" :disabled="isDisabled" prop="buildingCode">
|
| | |
| | |
|
| | | import cateSelector from "../components/cateSelector.vue"
|
| | |
|
| | | import {
|
| | | getQrCodeDetail
|
| | | } from "@/api/system/index"
|
| | |
|
| | | export default {
|
| | | mixins: [uploadMixin],
|
| | | components: {
|
| | |
| | | nineTypeValue: "",
|
| | | frontTypeValue: "",
|
| | | isView: false
|
| | |
|
| | |
|
| | | }
|
| | | },
|
| | | created() {
|
| | | this.buildColumn()
|
| | | },
|
| | | // created() {
|
| | | // this.buildColumn()
|
| | | // },
|
| | | options: {
|
| | | styleIsolation: 'shared', // 解除样式隔离
|
| | | },
|
| | |
| | | success: (res) => {
|
| | | // var latitude = res.latitude; // 维度
|
| | | // var longitude = res.longitude; // 经度
|
| | |
|
| | | // this.form.lng = longitude
|
| | | // this.form.lat = latitude
|
| | | // this.form.jwd =
|
| | |
| | | urls: minioBaseUrl + [value],
|
| | | })
|
| | | },
|
| | |
|
| | | onScan() {
|
| | | uni.scanCode({
|
| | | success: (res) => {
|
| | | let obj = this.getUrlParams(res.result);
|
| | | this.getHouseType(obj.stdId);
|
| | | }
|
| | | })
|
| | | },
|
| | |
|
| | | getUrlParams(url) {
|
| | | let urlStr = url.split('?')[1]
|
| | | let obj = {};
|
| | | let paramsArr = urlStr.split('&')
|
| | | for (let i = 0, len = paramsArr.length; i < len; i++) {
|
| | | let arr = paramsArr[i].split('=')
|
| | | obj[arr[0]] = arr[1];
|
| | | }
|
| | | return obj
|
| | | },
|
| | |
|
| | | getHouseType(code) {
|
| | | getQrCodeDetail({
|
| | | roleName: uni.getStorageSync("activeRole").roleName,
|
| | | addressCode: code
|
| | | }).then(res => {
|
| | | let {
|
| | | isJur,
|
| | | doorplateType,
|
| | | addressLevel
|
| | | } = res.data;
|
| | | if ((doorplateType == "中门牌" && addressLevel != 4) || doorplateType == "小门牌") {
|
| | | if (res.data.addressType) {
|
| | | this.addressType = res.data.addressType
|
| | | }
|
| | | this.houseCode = code;
|
| | | this.form.houseCode = code;
|
| | | this.isView = true;
|
| | | this.getBuildingDetail()
|
| | | }
|
| | | })
|
| | | }
|
| | |
|
| | | }
|
| | | }
|
| | | </script>
|
| | |
| | | background-color: #fff;
|
| | | text-align: center;
|
| | | }
|
| | |
|
| | | .top {
|
| | | padding: 20rpx !important;
|
| | | }
|
| | | </style> |