|
@@ -20,68 +20,52 @@
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<status v-else :status="form.status" :updateTime="form.updateTime" :remark="form.remark"></status>
|
|
<status v-else :status="form.status" :updateTime="form.updateTime" :remark="form.remark"></status>
|
|
|
- <view v-if="tab == 1" class="tab-top">
|
|
|
|
|
|
|
+ <view v-if="tab == 1" :class="title == '申请入驻'?'tab-top':''" >
|
|
|
<form>
|
|
<form>
|
|
|
- <!-- <view class="borderRadiu">
|
|
|
|
|
- <view class="flex cu-form-group margin-top1 ">
|
|
|
|
|
- <view class="content ">
|
|
|
|
|
- <text class="text-bold" >选择所属供应商</text>
|
|
|
|
|
- <i class="text-bg " ></i>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="cu-form-group ">
|
|
|
|
|
- <view class="title">供应商</view>
|
|
|
|
|
- <picker @change="PickerChange" :value="form.purveyorId" range-key="purveyorName"
|
|
|
|
|
- :range="supplierOption">
|
|
|
|
|
- <view class="picker" v-if="form.purveyorId">
|
|
|
|
|
- {{ supplierOption.find(e => e.id == form.purveyorId).purveyorName }}
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="picker" v-else style="color: #999999;">
|
|
|
|
|
- 请选择
|
|
|
|
|
- </view>
|
|
|
|
|
- </picker>
|
|
|
|
|
- </view>
|
|
|
|
|
- </view> -->
|
|
|
|
|
|
|
|
|
|
<view class="borderRadiu">
|
|
<view class="borderRadiu">
|
|
|
<view class="flex cu-form-group margin-top1 ">
|
|
<view class="flex cu-form-group margin-top1 ">
|
|
|
<view class="content ">
|
|
<view class="content ">
|
|
|
- <text class="text-bold">账户信息</text>
|
|
|
|
|
|
|
+ <text class="text-bold">推荐人邀请码</text>
|
|
|
<i class="text-bg "></i>
|
|
<i class="text-bg "></i>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class=" cu-form-group ">
|
|
<view class=" cu-form-group ">
|
|
|
- <view class="title">姓名</view>
|
|
|
|
|
- <input placeholder="请输入联系人姓名" v-model="form.name" name="input"></input>
|
|
|
|
|
|
|
+ <view class="title"> <span>*</span> 邀请码</view>
|
|
|
|
|
+ <input placeholder="输入邀请码(选填)" v-model="form.referenceCode" name="input"></input>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
- </form>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view v-if="tab == 2" class="tab-top" :style="title == '店铺信息' ? 'margin-top: 120upx' : ''">
|
|
|
|
|
- <form>
|
|
|
|
|
- <view class="borderRadiu">
|
|
|
|
|
|
|
+
|
|
|
|
|
+ <view class="borderRadiu" style="height: 67vh;overflow-y: auto;">
|
|
|
<view class="flex cu-form-group margin-top1">
|
|
<view class="flex cu-form-group margin-top1">
|
|
|
<view class="content ">
|
|
<view class="content ">
|
|
|
<text class="text-bold">提交经营主体资料</text>
|
|
<text class="text-bold">提交经营主体资料</text>
|
|
|
- <i class="text-bg "></i>
|
|
|
|
|
|
|
+ <i class="text-bg"></i>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="customize">
|
|
|
|
|
+ <view class="title" style="text-align: center;">营业执照</view>
|
|
|
|
|
+ <view style="border-bottom: 1px solid #EEEEEE;">
|
|
|
|
|
+ <view class="business-img flex align-center">
|
|
|
|
|
+ <image :src="businessLicenseImg ? businessLicenseImg : '/static/login/yingyezhizhao.png'" mode=""
|
|
|
|
|
+ @click="businessChange('businessLicense')">
|
|
|
|
|
+ </image>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="business-prompt">
|
|
|
|
|
+ 请上传营业执照照片或复印件,复印件需加盖公司公章,仅支持jpg、png格式;图片需清晰、完整、无反光、无PS、无不相关水印、非拍屏
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
<view class=" cu-form-group">
|
|
<view class=" cu-form-group">
|
|
|
<view class="title">主体类型</view>
|
|
<view class="title">主体类型</view>
|
|
|
- <!-- <uni-data-checkbox v-model="form.type" :localdata="hobby"></uni-data-checkbox> -->
|
|
|
|
|
- <radio-group @change="typeChang($event, 'type')" v-model="form.type">
|
|
|
|
|
- <label class="margin-left-sm">
|
|
|
|
|
- <radio :class="form.type == '1' ? 'checked blue' : ''" :checked="form.type == '1' ? true : false"
|
|
|
|
|
- value="1"></radio>
|
|
|
|
|
- <!-- <checkbox class=' blue' :class="form.type?'checked':''" :checked="form.type?true:false" value="1"></checkbox> -->
|
|
|
|
|
- <text class="margin-left-sm">普通企业</text>
|
|
|
|
|
- </label>
|
|
|
|
|
- <label class="margin-left-sm">
|
|
|
|
|
- <radio :class="form.type == '2' ? 'checked blue' : ''" :checked="form.type == '2' ? true : false"
|
|
|
|
|
- value="2"></radio>
|
|
|
|
|
- <text class="margin-left-sm">个体工商户</text>
|
|
|
|
|
- </label>
|
|
|
|
|
- </radio-group>
|
|
|
|
|
|
|
+ <view style="display: flex;width: 74%;justify-content: space-between;" @click="showSelectLocality = true">
|
|
|
|
|
+ <view style="font-size: 30rpx;">
|
|
|
|
|
+ <text v-if="typeLabel"> {{ typeLabel }}</text>
|
|
|
|
|
+ <text v-else style="color: grey">请选择主体类型</text>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <u-icon name="arrow-right" style="margin-left: 17rpx;color: #C7C6CA"></u-icon>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <!-- <u-select v-model="showSelectLocality" :list="selectLocality" @confirm="confirmLocality"></u-select> -->
|
|
|
</view>
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
<view class="cu-form-group">
|
|
|
<view class="title">公司名称</view>
|
|
<view class="title">公司名称</view>
|
|
@@ -92,7 +76,7 @@
|
|
|
<input placeholder="请输入统一社会信用代码" v-model="form.creditCode" name="input"></input>
|
|
<input placeholder="请输入统一社会信用代码" v-model="form.creditCode" name="input"></input>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
<view class="cu-form-group">
|
|
|
- <view class="title">有效期 </view>
|
|
|
|
|
|
|
+ <view class="title">证件期限 </view>
|
|
|
<!-- <uni-data-checkbox v-model="form.lifespan" :localdata="lifespanOption"></uni-data-checkbox> -->
|
|
<!-- <uni-data-checkbox v-model="form.lifespan" :localdata="lifespanOption"></uni-data-checkbox> -->
|
|
|
<radio-group @change="typeChang($event, 'lifespanType')" v-model="form.lifespanType">
|
|
<radio-group @change="typeChang($event, 'lifespanType')" v-model="form.lifespanType">
|
|
|
<label class="margin-left-sm">
|
|
<label class="margin-left-sm">
|
|
@@ -107,53 +91,31 @@
|
|
|
<text class="margin-left-sm">固定期限</text>
|
|
<text class="margin-left-sm">固定期限</text>
|
|
|
</label>
|
|
</label>
|
|
|
</radio-group>
|
|
</radio-group>
|
|
|
- <!-- <radio-group @change="typeChang($event, 'lifespan')" v-model="form.lifespan">
|
|
|
|
|
- <label class="margin-left-sm">
|
|
|
|
|
- <radio class="blue radio" value="1" checked></radio>
|
|
|
|
|
- <text class="margin-left-sm">长期有效</text>
|
|
|
|
|
- </label>
|
|
|
|
|
- <label class="margin-left-sm">
|
|
|
|
|
- <radio class="blue radio" value="2"></radio>
|
|
|
|
|
- <text class="margin-left-sm">固定期限</text>
|
|
|
|
|
- </label>
|
|
|
|
|
- </radio-group> -->
|
|
|
|
|
</view>
|
|
</view>
|
|
|
<view class="cu-form-group" v-if="form.lifespanType == 2">
|
|
<view class="cu-form-group" v-if="form.lifespanType == 2">
|
|
|
<view class="title">有效期起</view>
|
|
<view class="title">有效期起</view>
|
|
|
- <picker mode="date" :value="form.lifespanBegin" @change="typeChang($event, 'lifespanBegin')">
|
|
|
|
|
- <view class="picker" v-if="form.lifespanBegin">
|
|
|
|
|
- {{ form.lifespanBegin }}
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="picker" v-else style="color: #999999;">
|
|
|
|
|
- 请选择
|
|
|
|
|
- </view>
|
|
|
|
|
- </picker>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="cu-form-group" v-if="form.lifespanType == 2">
|
|
|
|
|
- <view class="title">有效期止</view>
|
|
|
|
|
- <picker mode="date" :value="form.lifespanEnd" @change="typeChang($event, 'lifespanEnd')">
|
|
|
|
|
- <view class="picker" v-if="form.lifespanEnd">
|
|
|
|
|
- {{ form.lifespanEnd }}
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="picker" v-else style="color: #999999;">
|
|
|
|
|
- 请选择
|
|
|
|
|
- </view>
|
|
|
|
|
- </picker>
|
|
|
|
|
- </view>
|
|
|
|
|
- <view class="customize">
|
|
|
|
|
- <view class="title">营业执照</view>
|
|
|
|
|
- <view style="border-bottom: 1px solid #EEEEEE;">
|
|
|
|
|
- <view class="business-img flex align-center">
|
|
|
|
|
- <image :src="businessLicenseImg ? businessLicenseImg : '/static/login/yingyezhizhao.png'" mode=""
|
|
|
|
|
- @click="businessChange('businessLicense')">
|
|
|
|
|
- </image>
|
|
|
|
|
|
|
+ <view style="display: flex;width: 74%;justify-content: space-between;" @click="selectDate">
|
|
|
|
|
+ <view style="font-size: 30rpx;">
|
|
|
|
|
+ <text v-if="form.lifespanBegin"> {{ form.lifespanBegin }}--{{form.lifespanEnd}}</text>
|
|
|
|
|
+ <text v-else style="color: grey">请选择</text>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ <u-icon name="arrow-right" style="margin-left: 17rpx;color: #C7C6CA"></u-icon>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="business-prompt">
|
|
|
|
|
- 请上传营业执照照片或复印件,复印件需加盖公司公章,仅支持jpg、png格式;图片需清晰、完整、无反光、无PS、无不相关水印、非拍屏
|
|
|
|
|
|
|
+ <rangTime ref="rangTime" :mode="mode" @onSubmit="onEndTimeChange" />
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="cu-form-group" style="display: block;">
|
|
|
|
|
+ <view class="title">经营范围</view>
|
|
|
|
|
+ <view class="scope" style="width: 100%;height: auto;">
|
|
|
|
|
+ <u-input v-model="form.businessScope" type="textarea"
|
|
|
|
|
+ style="width: 100%;min-height: 165rpx;max-height: 300rpx; background-color:#F7F8FC;padding: 0 16rpx;margin: 0;overflow-y: auto;" />
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+
|
|
|
|
|
+ </form>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view v-if="tab == 2" :class="title=='申请入驻'?'tab-top':''" :style="title == '店铺信息' ? 'margin-top: 120upx' : ''">
|
|
|
|
|
+ <form>
|
|
|
<view class="borderRadiu" style="margin-bottom: 114upx;">
|
|
<view class="borderRadiu" style="margin-bottom: 114upx;">
|
|
|
<view class="flex cu-form-group margin-top1 ">
|
|
<view class="flex cu-form-group margin-top1 ">
|
|
|
<view class="content ">
|
|
<view class="content ">
|
|
@@ -193,9 +155,9 @@
|
|
|
</view>
|
|
</view>
|
|
|
</form>
|
|
</form>
|
|
|
</view>
|
|
</view>
|
|
|
- <view v-if="tab == 3" class="tab-top" :style="title == '店铺信息' ? 'margin-top: 120upx' : ''">
|
|
|
|
|
|
|
+ <view v-if="tab == 3" :class="title == '申请入驻'?'tab-top':''" :style="title == '店铺信息' ? 'margin-top: 120upx' : ''">
|
|
|
<form>
|
|
<form>
|
|
|
- <view class="borderRadiu" style="margin-bottom: 114upx;">
|
|
|
|
|
|
|
+ <view class="borderRadiu">
|
|
|
<view class="flex cu-form-group margin-top1">
|
|
<view class="flex cu-form-group margin-top1">
|
|
|
<view class="content ">
|
|
<view class="content ">
|
|
|
<text class="text-bold">提交门店信息</text>
|
|
<text class="text-bold">提交门店信息</text>
|
|
@@ -216,28 +178,23 @@
|
|
|
</view>
|
|
</view>
|
|
|
<u-icon name="arrow-right" style="margin-left: 17rpx;color: #C7C6CA"></u-icon>
|
|
<u-icon name="arrow-right" style="margin-left: 17rpx;color: #C7C6CA"></u-icon>
|
|
|
</view>
|
|
</view>
|
|
|
- <!-- <input disabled="true" @mousedown="$refs.picker.show()" placeholder="请选择所在地区" ref="inputRef"
|
|
|
|
|
- name="input" v-model="form.locality"></input>
|
|
|
|
|
- <text class='cuIcon-right' style="color: #C7C6CA ;" @click="$refs.picker.show();mapIsHidden='none'"></text> -->
|
|
|
|
|
-
|
|
|
|
|
</view>
|
|
</view>
|
|
|
<view class="cu-form-group">
|
|
<view class="cu-form-group">
|
|
|
<view class="title">门店地址</view>
|
|
<view class="title">门店地址</view>
|
|
|
<input placeholder="请输入门店地址详细地址" v-model="form.address" name="input"></input>
|
|
<input placeholder="请输入门店地址详细地址" v-model="form.address" name="input"></input>
|
|
|
</view>
|
|
</view>
|
|
|
- <view class="customize">
|
|
|
|
|
|
|
+ <!-- <view class="customize">
|
|
|
<view class="title">地理位置</view>
|
|
<view class="title">地理位置</view>
|
|
|
<view class=" booder-top" style="padding-bottom: 16upx" :style="{ 'display': mapIsHidden }">
|
|
<view class=" booder-top" style="padding-bottom: 16upx" :style="{ 'display': mapIsHidden }">
|
|
|
<map style="width: 100%; height: 218upx;" :latitude="latitude" scale="14" zIndex="100"
|
|
<map style="width: 100%; height: 218upx;" :latitude="latitude" scale="14" zIndex="100"
|
|
|
:longitude="longitude" :markers="marker" @tap="handleMarkerTap"></map>
|
|
:longitude="longitude" :markers="marker" @tap="handleMarkerTap"></map>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <!-- <aMap class=" booder-top" style="padding-bottom: 7px;"></aMap> -->
|
|
|
|
|
<view class="business-prompt">
|
|
<view class="business-prompt">
|
|
|
若位置有误直接影响客户到店,请在地图中仔细核对,可拖拽地图确保位置正确
|
|
若位置有误直接影响客户到店,请在地图中仔细核对,可拖拽地图确保位置正确
|
|
|
</view>
|
|
</view>
|
|
|
- </view>
|
|
|
|
|
- <view class="customize">
|
|
|
|
|
|
|
+ </view> -->
|
|
|
|
|
+ <!-- <view class="customize">
|
|
|
<view class="title">门头照片</view>
|
|
<view class="title">门头照片</view>
|
|
|
<view class="grid col-3 grid-square flex-sub booder-top">
|
|
<view class="grid col-3 grid-square flex-sub booder-top">
|
|
|
<view class="bg-img" v-for="(item, index) in headPhotoImg" :key="index" @tap="ViewImage"
|
|
<view class="bg-img" v-for="(item, index) in headPhotoImg" :key="index" @tap="ViewImage"
|
|
@@ -254,6 +211,22 @@
|
|
|
<view class="business-prompt">
|
|
<view class="business-prompt">
|
|
|
门店照片需包含完整的门店入口和招牌名称,建议现场拍摄门头照;最多可上传5张,支持格式bmp、png、jpeg、jpg,单个图片不超过5MB,建议尺寸在2000*1500px以上
|
|
门店照片需包含完整的门店入口和招牌名称,建议现场拍摄门头照;最多可上传5张,支持格式bmp、png、jpeg、jpg,单个图片不超过5MB,建议尺寸在2000*1500px以上
|
|
|
</view>
|
|
</view>
|
|
|
|
|
+ </view> -->
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="borderRadiu" style="margin-bottom: 114upx;">
|
|
|
|
|
+ <view class="flex cu-form-group margin-top1">
|
|
|
|
|
+ <view class="content ">
|
|
|
|
|
+ <text class="text-bold">提交门店负责人信息</text>
|
|
|
|
|
+ <i class="text-bg "></i>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="cu-form-group">
|
|
|
|
|
+ <view class="title">姓名</view>
|
|
|
|
|
+ <input placeholder="门店负责人姓名" v-model="form.leaderName" name="input"></input>
|
|
|
|
|
+ </view>
|
|
|
|
|
+ <view class="cu-form-group">
|
|
|
|
|
+ <view class="title">手机号</view>
|
|
|
|
|
+ <input placeholder="门店负责人手机号" v-model="form.leaderPhone" name="input"></input>
|
|
|
</view>
|
|
</view>
|
|
|
</view>
|
|
</view>
|
|
|
</form>
|
|
</form>
|
|
@@ -272,7 +245,7 @@
|
|
|
<view v-if="tab == 3" class="padding flex sub-bottom">
|
|
<view v-if="tab == 3" class="padding flex sub-bottom">
|
|
|
<button class="cu-btn round line-blue shadow" @click="tab = 2">{{ title == '申请入驻' ? '上一步' : '上一页'
|
|
<button class="cu-btn round line-blue shadow" @click="tab = 2">{{ title == '申请入驻' ? '上一步' : '上一页'
|
|
|
}}</button>
|
|
}}</button>
|
|
|
- <button style="margin-left: 12upx;width:77%" class="cu-btn bg-blue round " @click="sumbit">提交审核</button>
|
|
|
|
|
|
|
+ <button style="margin-left: 12upx;width:77%" class="cu-btn bg-blue round " @click="sumbit">提交审核</button>
|
|
|
</view>
|
|
</view>
|
|
|
<view class="cu-load load-modal" v-if="lodingshow">
|
|
<view class="cu-load load-modal" v-if="lodingshow">
|
|
|
<image src="/static/logo.png" mode="aspectFit"></image>
|
|
<image src="/static/logo.png" mode="aspectFit"></image>
|
|
@@ -280,6 +253,7 @@
|
|
|
</view>
|
|
</view>
|
|
|
<w-picker class="picker-style" :visible.sync="visible" ref="picker" mode="region" :value="form.locality"
|
|
<w-picker class="picker-style" :visible.sync="visible" ref="picker" mode="region" :value="form.locality"
|
|
|
@confirm="onConfirm($event, 'region')"></w-picker>
|
|
@confirm="onConfirm($event, 'region')"></w-picker>
|
|
|
|
|
+ <selectType v-if="showSelectLocality" @transmitType="confirmLocality" @cutPopup="showSelectLocality = false"></selectType>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
</template>
|
|
</template>
|
|
@@ -289,15 +263,21 @@
|
|
|
} from 'vue'
|
|
} from 'vue'
|
|
|
import configService from '../../common/service/config.service'
|
|
import configService from '../../common/service/config.service'
|
|
|
import regionPicker from "../../components/w-picker/region-picker.vue"
|
|
import regionPicker from "../../components/w-picker/region-picker.vue"
|
|
|
|
|
+ import selectType from "../../components/selectType.vue"
|
|
|
// import aMap from "./map.vue"
|
|
// import aMap from "./map.vue"
|
|
|
import status from "../store/components/status.vue"
|
|
import status from "../store/components/status.vue"
|
|
|
- import {ACCESS_TOKEN, USER_INFO} from "@/common/util/constants";
|
|
|
|
|
- import * as $p from "@/uni_modules/uni-easyinput/components/uni-easyinput/common";
|
|
|
|
|
-
|
|
|
|
|
|
|
+ import {
|
|
|
|
|
+ ACCESS_TOKEN,
|
|
|
|
|
+ USER_INFO
|
|
|
|
|
+ } from "@/common/util/constants";
|
|
|
|
|
+ import * as $p from "@/uni_modules/uni-easyinput/components/uni-easyinput/common";
|
|
|
|
|
+ import rangTime from '../../components/dengrq-datetime-picker/dateSelector/index.vue'
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
|
regionPicker,
|
|
regionPicker,
|
|
|
- status
|
|
|
|
|
|
|
+ status,
|
|
|
|
|
+ rangTime,
|
|
|
|
|
+ selectType
|
|
|
// aMap
|
|
// aMap
|
|
|
},
|
|
},
|
|
|
data() {
|
|
data() {
|
|
@@ -317,8 +297,10 @@
|
|
|
corporateName: null,
|
|
corporateName: null,
|
|
|
creditCode: null,
|
|
creditCode: null,
|
|
|
lifespanType: 1,
|
|
lifespanType: 1,
|
|
|
- lifespanBegin: this.timestampToTime(),
|
|
|
|
|
- lifespanEnd: '9999-12-31',
|
|
|
|
|
|
|
+ // lifespanBegin: this.timestampToTime(),
|
|
|
|
|
+ // lifespanEnd: '9999-12-31',
|
|
|
|
|
+ lifespanBegin: null,
|
|
|
|
|
+ lifespanEnd: null,
|
|
|
businessLicense: null,
|
|
businessLicense: null,
|
|
|
legalPerson: null,
|
|
legalPerson: null,
|
|
|
legalPersonCode: null,
|
|
legalPersonCode: null,
|
|
@@ -329,21 +311,24 @@
|
|
|
headPhoto: '',
|
|
headPhoto: '',
|
|
|
passWord: uni.getStorageSync('password'),
|
|
passWord: uni.getStorageSync('password'),
|
|
|
phone: uni.getStorageSync('phone'),
|
|
phone: uni.getStorageSync('phone'),
|
|
|
- ordinaryUserId:null,
|
|
|
|
|
|
|
+ ordinaryUserId: null,
|
|
|
},
|
|
},
|
|
|
formName: {
|
|
formName: {
|
|
|
- name: '姓名',
|
|
|
|
|
|
|
+ // name: '姓名',
|
|
|
type: '主体类型',
|
|
type: '主体类型',
|
|
|
corporateName: '公司名称',
|
|
corporateName: '公司名称',
|
|
|
creditCode: '统一代码',
|
|
creditCode: '统一代码',
|
|
|
lifespanType: '有效期',
|
|
lifespanType: '有效期',
|
|
|
- headPhoto: '门头照片',
|
|
|
|
|
|
|
+ // headPhoto: '门头照片',
|
|
|
legalPerson: '法人姓名',
|
|
legalPerson: '法人姓名',
|
|
|
legalPersonCode: '法人证件号',
|
|
legalPersonCode: '法人证件号',
|
|
|
storeName: '门店名称',
|
|
storeName: '门店名称',
|
|
|
locality: '所在地区',
|
|
locality: '所在地区',
|
|
|
address: '门店地址',
|
|
address: '门店地址',
|
|
|
- businessLicense: '营业执照'
|
|
|
|
|
|
|
+ businessLicense: '营业执照',
|
|
|
|
|
+ businessScope: '经营范围',
|
|
|
|
|
+ leaderName: '负责人姓名',
|
|
|
|
|
+ leaderPhone: '负责人手机号'
|
|
|
},
|
|
},
|
|
|
tab: 1,
|
|
tab: 1,
|
|
|
supplierOption: [],
|
|
supplierOption: [],
|
|
@@ -359,7 +344,10 @@
|
|
|
// }]
|
|
// }]
|
|
|
markers: [],
|
|
markers: [],
|
|
|
headPhotoImg: [],
|
|
headPhotoImg: [],
|
|
|
- loginType:'',
|
|
|
|
|
|
|
+ loginType: '',
|
|
|
|
|
+ showSelectLocality: false, //选择主体类型弹窗显隐
|
|
|
|
|
+ mode: 1,
|
|
|
|
|
+ typeLabel:''
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
watch: {
|
|
watch: {
|
|
@@ -380,38 +368,56 @@
|
|
|
|
|
|
|
|
},
|
|
},
|
|
|
async onLoad(data) {
|
|
async onLoad(data) {
|
|
|
- if (data.loginType){
|
|
|
|
|
- // data.loginType =2 需要根据merchantId查询商户临时数据
|
|
|
|
|
- // data.loginType =3 不需要回显
|
|
|
|
|
- this.loginType = data.loginType;
|
|
|
|
|
- if(data.loginType === '3') {
|
|
|
|
|
- this.form.ordinaryUserId =data.ordinaryUserId;
|
|
|
|
|
- this.form.name = (data.name==null || data.name =='null') ?"":data.name,
|
|
|
|
|
- this.form.passWord =data.passWord;
|
|
|
|
|
- this.form.phone =data.phone;
|
|
|
|
|
- }
|
|
|
|
|
- }else{
|
|
|
|
|
- if (data.params) {
|
|
|
|
|
- let obj = JSON.parse(decodeURIComponent(data.params));
|
|
|
|
|
- this.title = '店铺信息'
|
|
|
|
|
- this.tab = 2
|
|
|
|
|
- obj.lifespanType = obj.lifespanType ? obj.lifespanType : '1'
|
|
|
|
|
- this.markers = this.form.longitude && this.form.latitude ? [{
|
|
|
|
|
- longitude: this.form.longitude,
|
|
|
|
|
- latitude: this.form.latitude,
|
|
|
|
|
- iconPath: '../../static/boiaoji.png'
|
|
|
|
|
- }] : []
|
|
|
|
|
- this.businessLicenseImg = configService.apiUrl + '/' + obj.businessLicense
|
|
|
|
|
- this.identityOneImg = configService.apiUrl + '/' + obj.identityOne
|
|
|
|
|
- this.headPhotoImg = obj.headPhoto ? obj.headPhoto.split(',').filter(id => id !== '') : []
|
|
|
|
|
- obj.headPhoto = obj.headPhoto ? obj.headPhoto.split(',').filter(id => id !== '') : []
|
|
|
|
|
- this.identityTwoImg = configService.apiUrl + '/' + obj.identityTwo
|
|
|
|
|
- obj.locality = obj.locality ? obj.locality : ''
|
|
|
|
|
- this.form = obj
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (data.loginType) {
|
|
|
|
|
+ // data.loginType =2 需要根据merchantId查询商户临时数据
|
|
|
|
|
+ // data.loginType =3 不需要回显
|
|
|
|
|
+ this.loginType = data.loginType;
|
|
|
|
|
+ if (data.loginType === '3') {
|
|
|
|
|
+ this.form.ordinaryUserId = data.ordinaryUserId;
|
|
|
|
|
+ this.form.name = (data.name == null || data.name == 'null') ? "" : data.name,
|
|
|
|
|
+ this.form.passWord = data.passWord;
|
|
|
|
|
+ this.form.phone = data.phone;
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ if (data.params) {
|
|
|
|
|
+ let obj = JSON.parse(decodeURIComponent(data.params));
|
|
|
|
|
+ this.title = '店铺信息'
|
|
|
|
|
+ this.tab = 2
|
|
|
|
|
+ obj.lifespanType = obj.lifespanType ? obj.lifespanType : '1'
|
|
|
|
|
+ this.markers = this.form.longitude && this.form.latitude ? [{
|
|
|
|
|
+ longitude: this.form.longitude,
|
|
|
|
|
+ latitude: this.form.latitude,
|
|
|
|
|
+ iconPath: '../../static/boiaoji.png'
|
|
|
|
|
+ }] : []
|
|
|
|
|
+ this.businessLicenseImg = configService.apiUrl + '/' + obj.businessLicense
|
|
|
|
|
+ this.identityOneImg = configService.apiUrl + '/' + obj.identityOne
|
|
|
|
|
+ this.headPhotoImg = obj.headPhoto ? obj.headPhoto.split(',').filter(id => id !== '') : []
|
|
|
|
|
+ obj.headPhoto = obj.headPhoto ? obj.headPhoto.split(',').filter(id => id !== '') : []
|
|
|
|
|
+ this.identityTwoImg = configService.apiUrl + '/' + obj.identityTwo
|
|
|
|
|
+ obj.locality = obj.locality ? obj.locality : ''
|
|
|
|
|
+ this.form = obj
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+ //选择主题类型
|
|
|
|
|
+ confirmLocality(data) {
|
|
|
|
|
+ this.form.type = data.value
|
|
|
|
|
+ this.typeLabel = data.label
|
|
|
|
|
+ this.showSelectLocality =false
|
|
|
|
|
+ },
|
|
|
|
|
+ //选择证件有效时间
|
|
|
|
|
+ onEndTimeChange(val) {
|
|
|
|
|
+ console.log(val)
|
|
|
|
|
+ this.form.lifespanBegin = val.startDate
|
|
|
|
|
+ this.form.lifespanEnd = val.endDate
|
|
|
|
|
+ this.$forceUpdate(); // 强制刷新视图
|
|
|
|
|
+ },
|
|
|
|
|
+ //选择时间显示
|
|
|
|
|
+ selectDate() {
|
|
|
|
|
+ // this.isSelectDate = true
|
|
|
|
|
+ this.$refs.rangTime.open()
|
|
|
|
|
+ },
|
|
|
getCurrentLocation() {
|
|
getCurrentLocation() {
|
|
|
uni.getStorage({
|
|
uni.getStorage({
|
|
|
key: 'currentAddress',
|
|
key: 'currentAddress',
|
|
@@ -439,7 +445,7 @@
|
|
|
display: 'ALWAYS'
|
|
display: 'ALWAYS'
|
|
|
}
|
|
}
|
|
|
}];
|
|
}];
|
|
|
-this.$forceUpdate();
|
|
|
|
|
|
|
+ this.$forceUpdate();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
},
|
|
},
|
|
@@ -465,10 +471,10 @@ this.$forceUpdate();
|
|
|
width: 30,
|
|
width: 30,
|
|
|
height: 30
|
|
height: 30
|
|
|
}];
|
|
}];
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
fail() {
|
|
fail() {
|
|
|
-
|
|
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
});
|
|
});
|
|
|
|
|
|
|
@@ -637,6 +643,7 @@ this.$forceUpdate();
|
|
|
obj = {
|
|
obj = {
|
|
|
corporateName: data1.company ? data1.company : '', //公司名称
|
|
corporateName: data1.company ? data1.company : '', //公司名称
|
|
|
creditCode: data1.socialCreditCode ? data1.socialCreditCode : '', //统一社会信用代码
|
|
creditCode: data1.socialCreditCode ? data1.socialCreditCode : '', //统一社会信用代码
|
|
|
|
|
+ businessScope: data1.businessScope ? data1.businessScope : '', //经营范围
|
|
|
lifespanBegin: data1.registerDate ? data1.registerDate.substr(0,
|
|
lifespanBegin: data1.registerDate ? data1.registerDate.substr(0,
|
|
|
4) + '-' + data1.registerDate.substr(5, 2) + '-' + data1.registerDate
|
|
4) + '-' + data1.registerDate.substr(5, 2) + '-' + data1.registerDate
|
|
|
.substr(8, 2) : '',
|
|
.substr(8, 2) : '',
|
|
@@ -689,67 +696,71 @@ this.$forceUpdate();
|
|
|
},
|
|
},
|
|
|
sumbit() {
|
|
sumbit() {
|
|
|
if (this.title == '申请入驻') {
|
|
if (this.title == '申请入驻') {
|
|
|
- if(this.loginType){
|
|
|
|
|
- if(this.loginType === '3'){
|
|
|
|
|
- //普通用户没有商户新增
|
|
|
|
|
- for (let j in this.form) {
|
|
|
|
|
- console.log(j)
|
|
|
|
|
- console.log(this.form[j])
|
|
|
|
|
- console.log(this.formName[j])
|
|
|
|
|
- if (!this.form[j]) {
|
|
|
|
|
- if (this.form['lifespanType'] == 2 && (this.form['lifespanBegin'] == null || this.form['lifespanEnd'] ==
|
|
|
|
|
- null)) {
|
|
|
|
|
- this.$tip.alert('请选择日期!')
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
- if (this.form['businessLicense'] == null) {
|
|
|
|
|
- this.$tip.alert('请上传营业执照!')
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
- if (this.formName[j]) {
|
|
|
|
|
- this.$tip.alert(`请填写${this.formName[j]}!`)
|
|
|
|
|
- return
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
- let data = {
|
|
|
|
|
- ...this.form,
|
|
|
|
|
- source: 2,
|
|
|
|
|
- headPhoto: Array.isArray(this.form.headPhoto) ? this.form.headPhoto.join(',') : this.form.headPhoto,
|
|
|
|
|
- longitude: this.markers.length > 0 ? this.markers[0].longitude : '',
|
|
|
|
|
- latitude: this.markers.length > 0 ? this.markers[0].latitude : ''
|
|
|
|
|
- }
|
|
|
|
|
- this.$http.post('/merchant/app/add', data).then(res => {
|
|
|
|
|
- if (res.data.code==200) {
|
|
|
|
|
- //放入session
|
|
|
|
|
- const result = res.data.result
|
|
|
|
|
- const userInfo = result.userInfo
|
|
|
|
|
- uni.setStorageSync(ACCESS_TOKEN,result.token);
|
|
|
|
|
- uni.setStorageSync(USER_INFO,userInfo);
|
|
|
|
|
- this.$store.commit('SET_TOKEN', result.token)
|
|
|
|
|
- this.$store.commit('SET_NAME', { username: userInfo.username,realname: userInfo.realname})
|
|
|
|
|
- this.$store.commit('SET_AVATAR', userInfo.avatar)
|
|
|
|
|
- // #ifdef APP-PLUS
|
|
|
|
|
- uni.switchTab({
|
|
|
|
|
- url: '/pages/index/index'
|
|
|
|
|
- })
|
|
|
|
|
- // #endif
|
|
|
|
|
- // #ifndef APP-PLUS
|
|
|
|
|
- this.$tip.success('登录成功!')
|
|
|
|
|
- this.$Router.replaceAll({
|
|
|
|
|
- name: 'index'
|
|
|
|
|
- })
|
|
|
|
|
- // #endif
|
|
|
|
|
- } else {
|
|
|
|
|
- this.$tip.error(res.data.message);
|
|
|
|
|
- }
|
|
|
|
|
- })
|
|
|
|
|
- }
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ if (this.loginType) {
|
|
|
|
|
+ if (this.loginType === '3') {
|
|
|
|
|
+ //普通用户没有商户新增
|
|
|
|
|
+ for (let j in this.form) {
|
|
|
|
|
+ console.log(j)
|
|
|
|
|
+ console.log(this.form[j])
|
|
|
|
|
+ console.log(this.formName[j])
|
|
|
|
|
+ if (!this.form[j]) {
|
|
|
|
|
+ if (this.form['lifespanType'] == 2 && (this.form['lifespanBegin'] == null || this.form[
|
|
|
|
|
+ 'lifespanEnd'] ==
|
|
|
|
|
+ null)) {
|
|
|
|
|
+ this.$tip.alert('请选择日期!')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.form['businessLicense'] == null) {
|
|
|
|
|
+ this.$tip.alert('请上传营业执照!')
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+ if (this.formName[j]) {
|
|
|
|
|
+ this.$tip.alert(`请填写${this.formName[j]}!`)
|
|
|
|
|
+ return
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ let data = {
|
|
|
|
|
+ ...this.form,
|
|
|
|
|
+ source: 2,
|
|
|
|
|
+ headPhoto: Array.isArray(this.form.headPhoto) ? this.form.headPhoto.join(',') : this.form.headPhoto,
|
|
|
|
|
+ longitude: this.markers.length > 0 ? this.markers[0].longitude : '',
|
|
|
|
|
+ latitude: this.markers.length > 0 ? this.markers[0].latitude : ''
|
|
|
|
|
+ }
|
|
|
|
|
+ this.$http.post('/merchant/app/add', data).then(res => {
|
|
|
|
|
+ if (res.data.code == 200) {
|
|
|
|
|
+ //放入session
|
|
|
|
|
+ const result = res.data.result
|
|
|
|
|
+ const userInfo = result.userInfo
|
|
|
|
|
+ uni.setStorageSync(ACCESS_TOKEN, result.token);
|
|
|
|
|
+ uni.setStorageSync(USER_INFO, userInfo);
|
|
|
|
|
+ this.$store.commit('SET_TOKEN', result.token)
|
|
|
|
|
+ this.$store.commit('SET_NAME', {
|
|
|
|
|
+ username: userInfo.username,
|
|
|
|
|
+ realname: userInfo.realname
|
|
|
|
|
+ })
|
|
|
|
|
+ this.$store.commit('SET_AVATAR', userInfo.avatar)
|
|
|
|
|
+ // #ifdef APP-PLUS
|
|
|
|
|
+ uni.switchTab({
|
|
|
|
|
+ url: '/pages/index/index'
|
|
|
|
|
+ })
|
|
|
|
|
+ // #endif
|
|
|
|
|
+ // #ifndef APP-PLUS
|
|
|
|
|
+ this.$tip.success('登录成功!')
|
|
|
|
|
+ this.$Router.replaceAll({
|
|
|
|
|
+ name: 'index'
|
|
|
|
|
+ })
|
|
|
|
|
+ // #endif
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$tip.error(res.data.message);
|
|
|
|
|
+ }
|
|
|
|
|
+ })
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
} else {
|
|
} else {
|
|
|
- console.log("编辑")
|
|
|
|
|
|
|
+ console.log("编辑")
|
|
|
let data = {
|
|
let data = {
|
|
|
...this.form,
|
|
...this.form,
|
|
|
source: 2,
|
|
source: 2,
|
|
@@ -779,7 +790,12 @@ this.$forceUpdate();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.cu-form-group .title {
|
|
.cu-form-group .title {
|
|
|
- width: 190upx;
|
|
|
|
|
|
|
+ width: 154rpx;
|
|
|
|
|
+ padding: 0;
|
|
|
|
|
+
|
|
|
|
|
+ span {
|
|
|
|
|
+ color: red;
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.cu-bg {
|
|
.cu-bg {
|
|
@@ -792,6 +808,7 @@ this.$forceUpdate();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.borderRadiu {
|
|
.borderRadiu {
|
|
|
|
|
+ height: auto;
|
|
|
border-radius: 8px;
|
|
border-radius: 8px;
|
|
|
padding-bottom: 10px;
|
|
padding-bottom: 10px;
|
|
|
background-color: #ffffff;
|
|
background-color: #ffffff;
|
|
@@ -970,4 +987,8 @@ this.$forceUpdate();
|
|
|
z-index: 100000;
|
|
z-index: 100000;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ ::v-deep .cu-form-group uni-textarea {
|
|
|
|
|
+ margin: 0;
|
|
|
|
|
+ }
|
|
|
</style>
|
|
</style>
|