123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421 |
- <template>
- <view class="container club-info">
- <tui-skeleton
- v-if="skeletonShow"
- backgroundColor="#fafafa"
- borderRadius="10rpx"
- :isLoading="true"
- :loadingType="5"
- ></tui-skeleton>
- <template v-else>
- <view class="info-header clearfix" v-if="clubInfo.describe">
- <view class="pp"
- >描述:<text>{{ clubInfo.describe }}</text></view
- >
- </view>
- <view class="info-content clearfix">
- <view class="info-title">
- <view class="info-title-left">
- <view
- >机构资料:<text>{{ clubInfo.userIdentity === 2 ? '资质机构' : '个人机构' }}</text></view
- >
- </view>
- <view class="info-title-right">
- <view v-if="clubInfo.spType === 0">待分配销售</view>
- <view v-else>已分配销售:{{ saleName }}</view>
- </view>
- </view>
- <view class="info-main">
- <view class="info-h1">注册信息</view>
- <view class="info-p"
- >联系人:<text>{{ clubInfo.linkMan }}</text></view
- >
- <view class="info-p"
- >手机号:<text>{{ clubInfo.contractMobile }}</text></view
- >
- </view>
- <view class="info-main" v-if="clubInfo.userIdentity === 2 || (clubInfo.userIdentity === 4 && (clubInfo.status == 1 || clubInfo.status == 92))">
- <view class="info-h1"
- >升级信息
- <text
- class="info-h1-tag"
- :class="{
- orange: clubInfo.status == 1,
- grey: clubInfo.status == 90,
- warn: clubInfo.status == 92
- }"
- >
- {{ clubInfo.status | statusFilters }}
- </text>
- </view>
- <view class="info-p"
- >机构名称:<text>{{ clubInfo.name }}</text></view
- >
- <view class="info-p"
- >机构简称:<text>{{ clubInfo.shortName }}</text></view
- >
- <view class="info-p"
- >邮箱:<text>{{ clubInfo.contractEmail }}</text></view
- >
- <view class="info-p"
- >联系地址:<text>{{ clubInfo.provincialAddress }}{{ clubInfo.address }}</text></view
- >
- <view class="info-p"
- >营业执照编号:<text>{{ clubInfo.socialCreditCode }}</text></view
- >
- <view class="info-p">营业执照:</view>
- <view class="info-img"><image :src="clubInfo.businessLicense" alt=""/></view>
- <view class="info-p" v-if="clubInfo.shopPhoto">门头照:</view>
- <view class="info-img" v-if="clubInfo.shopPhoto"><image :src="clubInfo.shopPhoto" alt=""/></view>
- <view class="info-p"
- >机构类型:<text>{{ clubInfo.firstClubType | FirstFormat }}</text></view
- >
- <view class="info-p" v-if="clubInfo.medicalPracticeLicense">医疗许可证:</view>
- <view class="info-img" v-if="clubInfo.medicalPracticeLicense"><image :src="clubInfo.medicalPracticeLicense" alt=""/></view>
- <view class="info-p" v-if="clubInfo.secondClubType"
- >科室:<text>{{ clubInfo.secondClubType | TwoFormat }}</text></view
- >
- <view class="info-p"
- >主营内容:<text>{{ clubInfo.mainProduct }}</text></view
- >
- </view>
- <view class="info-main" v-if="clubInfo.contractPhone || clubInfo.fax || clubInfo.profile">
- <view class="info-h1">其他信息</view>
- <view class="info-p" v-if="clubInfo.contractPhone"
- >固定电话:<text>{{ clubInfo.contractPhone ? clubInfo.contractPhone : '无' }}</text></view
- >
- <view class="info-p" v-if="clubInfo.fax"
- >传真:<text>{{ clubInfo.fax ? clubInfo.fax : '无' }}</text></view
- >
- <view class="info-p" v-if="clubInfo.profile"
- >公司介绍:<text>{{ clubInfo.profile ? clubInfo.profile : '无' }}</text></view
- >
- </view>
- </view>
- </template>
- <!-- 按钮 -->
- <template v-if="clubInfo.spType === 0 && isManage">
- <tui-bottom-popup :radius="false" :mask="false" :show="true">
- <view class="tui-popup-box clearfix">
- <view
- class="tui-right-flex tui-popup-btn"
- :style="{ paddingBottom: isIphoneX ? '68rpx' : '34rpx' }"
- >
- <view class="tui-flex-1">
- <view class="tui-button" @click="handleShowSellerpopup">分配销售</view>
- </view>
- </view>
- </view>
- </tui-bottom-popup>
- </template>
- <!-- 选择弹窗 -->
- <cm-seller-popup
- ref="cmresellerpopup"
- v-if="isSellerpopup"
- :show="isSellerpopup"
- @handleChoiceaSeller="handleChoiceaSellerData"
- >
- </cm-seller-popup>
- </view>
- </template>
- <script>
- import { mapState, mapMutations } from 'vuex'
- import authorize from '@/common/config/authorize.js'
- import wxLogin from '@/common/config/wxLogin.js'
- import cmSellerPopup from '../components/cm-seller-popup'
- export default {
- components: {
- cmSellerPopup
- },
- data() {
- return {
- skeletonShow: true,
- saleName: '',
- clubInfo: {},
- isSellerpopup: false,
- isIphoneX: this.$store.state.isIphoneX,
- salesParams: {
- clubId: 0,
- spId: 0
- }
- }
- },
- onLoad(option) {
- wxLogin.wxLoginAuthorize()
- this.salesParams.clubId = option.clubId
- this.userClubRecordLinkage({ clubId: this.salesParams.clubId })
- },
- filters: {
- FirstFormat: function(type) {
- //处理金额
- let name = ''
- switch (type) {
- case 1:
- name = '医美'
- break
- case 2:
- name = '生美'
- break
- case 3:
- name = '项目公司'
- break
- case 4:
- name = '个人'
- break
- case 5:
- name = '其他'
- break
- }
- return name
- },
- TwoFormat: function(type) {
- //处理金额
- let text = ''
- switch (type) {
- case 1:
- text = '诊所'
- break
- case 2:
- text = '门诊'
- break
- case 3:
- text = '医院'
- break
- }
- return text
- },
- statusFilters(value) {
- // 状态
- const map = {
- 1: '待审核',
- 90: '审核通过',
- 92: '审核未通过'
- }
- return map[value]
- }
- },
- computed: {
- ...mapState(['isManage'])
- },
- methods: {
- async userClubRecordLinkage(param) {
- //查询机构信息
- this.SellerService.userClubRecordLinkage(param)
- .then(response => {
- this.clubInfo = response.data.club
- this.saleName = response.data.saleName
- setTimeout(() => {
- this.skeletonShow = false
- }, 1000)
- })
- .catch(error => {
- this.isInvalid = true
- })
- },
- userClubChoseSales(param) {
- //分配或更换协销
- this.SellerService.userClubChoseSales(param)
- .then(response => {
- this.$util.msg('分配成功', 2000, true, 'success')
- setTimeout(() => {
- this.userClubRecordLinkage({ clubId: this.salesParams.clubId })
- }, 1000)
- })
- .catch(error => {
- console.log('分配协销异常')
- })
- },
- handleChoiceaSellerData(data) {
- // 确定搜索
- this.salesParams.spId = data.serviceProviderId
- this.userClubChoseSales(this.salesParams)
- },
- handleShowSellerpopup() {
- //显示选择协销弹窗
- this.isSellerpopup = true
- }
- },
- onShow() {}
- }
- </script>
- <style lang="scss">
- page {
- height: auto;
- }
- .club-info {
- width: 100%;
- .info-header {
- width: 100%;
- height: auto;
- padding: 24rpx;
- float: left;
- box-sizing: border-box;
- background-color: #ffffff;
- .pp {
- width: 100%;
- font-size: 26rpx;
- line-height: 44rpx;
- font-weight: bold;
- color: #333333;
- text {
- font-size: 26rpx;
- color: #666666;
- font-weight: normal;
- line-height: 66rpx;
- }
- }
- }
- .info-content {
- width: 100%;
- height: auto;
- float: left;
- box-sizing: border-box;
- padding: 0 24rpx;
- background-color: #ffffff;
- padding-bottom: 240rpx;
- .info-title {
- width: 100%;
- height: 68rpx;
- border-bottom: 1px solid #f0f0f0;
- .info-title-left {
- width: 50%;
- height: 68rpx;
- font-size: 30rpx;
- font-weight: bold;
- color: #333333;
- float: left;
- line-height: 68rpx;
- text {
- display: inline-block;
- padding: 0 16rpx;
- line-height: 40rpx;
- background-color: #fff2d5;
- font-size: 24rpx;
- border-radius: 20rpx;
- color: #e4aa43;
- text-align: center;
- margin-left: 16rpx;
- font-weight: normal;
- }
- }
- .info-title-right {
- width: 50%;
- height: 68rpx;
- float: right;
- line-height: 68rpx;
- font-size: 24rpx;
- color: #999999;
- text-align: right;
- text-overflow: ellipsis;
- overflow: hidden;
- display: -webkit-box;
- -webkit-line-clamp: 1;
- line-clamp: 1;
- -webkit-box-orient: vertical;
- }
- }
- .info-main {
- width: 100%;
- height: auto;
- .info-h1 {
- width: 100%;
- box-sizing: border-box;
- padding: 0 24rpx;
- position: relative;
- line-height: 80rpx;
- font-size: 30rpx;
- color: #333333;
- &:before {
- content: '';
- width: 6rpx;
- height: 24rpx;
- background-color: #e15616;
- position: absolute;
- left: 0;
- top: 30rpx;
- }
- .info-h1-tag {
- display: inline-block;
- padding: 0 16rpx;
- line-height: 40rpx;
- background-color: #fff2d5;
- font-size: 24rpx;
- border-radius: 20rpx;
- color: #ffffff;
- text-align: center;
- margin-left: 16rpx;
- &.orange{
- background-color: #FFF2D5;
- color: #E4AA43;
- }
- &.grey{
- background-color: #0DB26D;
- }
- &.warn{
- background-color: #F94B4B;
- }
- }
- }
- .info-p {
- width: 100%;
- box-sizing: border-box;
- padding: 0 24rpx;
- position: relative;
- line-height: 66rpx;
- font-size: 30rpx;
- color: #999999;
- text {
- color: #333333;
- }
- }
- .info-img {
- width: 200rpx;
- height: 200rpx;
- image {
- width: 200rpx;
- height: 200rpx;
- display: block;
- margin-left: 24rpx;
- border: 1px dashed #e2e2e2;
- }
- }
- }
- }
- }
- .tui-popup-box {
- position: relative;
- box-sizing: border-box;
- min-height: 100rpx;
- padding: 6rpx 24rpx;
- .tui-popup-content {
- padding-top: 30rpx;
- }
- }
- .tui-popup-btn {
- width: 100%;
- height: auto;
- float: left;
- box-sizing: border-box;
- margin-top: 30rpx;
- .tui-flex-1 {
- width: 100%;
- height: 84rpx;
- display: flex;
- .tui-button {
- flex: 1;
- line-height: 84rpx;
- font-size: $font-size-28;
- text-align: center;
- border-radius: 42rpx;
- padding: 0;
- margin: 0 15rpx;
- box-sizing: border-box;
- background: $btn-confirm;
- color: #ffffff;
- }
- }
- }
- </style>
|