Authored by 张文文

入驻卖家升级 review by lea.guo

1 -export default "production";  
  1 +export default "development";
@@ -36,76 +36,93 @@ @@ -36,76 +36,93 @@
36 :data="data" 36 :data="data"
37 @on-page-change="onPageChange"> 37 @on-page-change="onPageChange">
38 </LayoutTable> 38 </LayoutTable>
39 - <!--弹出框展示商家详情-->  
40 - <div class="popup-detail-wrapper" :class="{ show: isShowDetail}">  
41 - <i-card class="popup-detail-container">  
42 - <p slot="title">商家详情</p> 39 + <!--弹出框展示商家详情-->
  40 + <div class="popup-detail-wrapper" :class="{ show: isShowDetail}">
  41 + <i-card class="popup-detail-container">
  42 + <p slot="title">商家详情</p>
  43 + <i-button slot="extra" class="btn-close" @click="closePopup">X</i-button>
  44 + <div class="pop-detail-content">
  45 + <i-row>
  46 + <i-col span="4" class="detail-title">UID</i-col>
  47 + <i-col span="8">{{detail.uid || '&nbsp;'}}</i-col>
  48 + <i-col span="4" class="detail-title">商家类型</i-col>
  49 + <i-col span="8">{{['','入驻卖家', '超级入驻', '', '普通卖家'][detail.entryType]}}</i-col>
  50 + </i-row>
  51 + <i-row>
  52 + <i-col span="4" class="detail-title">商家名称</i-col>
  53 + <i-col span="8">{{detail.certName || '--'}}</i-col>
  54 + <i-col span="4" class="detail-title">手机号</i-col>
  55 + <i-col span="8">{{detail.mobile || '--'}}</i-col>
  56 + </i-row>
  57 + <i-row>
  58 + <i-col span="4" class="detail-title">招商人员</i-col>
  59 + <i-col span="8">{{detail.investName || '--'}}</i-col>
  60 + <i-col span="4" class="detail-title">违规次数</i-col>
  61 + <i-col span="8">{{detail.breakRuleTimes || '0'}}</i-col>
  62 + </i-row>
  63 + <i-row>
  64 + <i-col span="4" class="detail-title">账户余额</i-col>
  65 + <i-col span="8" style="color: red;">{{detail.money || '0.00'}}</i-col>
  66 + <i-col span="4" class="detail-title">入驻状态</i-col>
  67 + <i-col span="8">{{detail.validStatusDesc || '--'}}</i-col>
  68 + </i-row>
  69 + <i-row>
  70 + <i-col span="4" class="detail-title">入驻时间</i-col>
  71 + <i-col span="8">{{detail.enterTime || '--'}}</i-col>
  72 + <i-col span="4" class="detail-title">退出入驻时间</i-col>
  73 + <i-col span="8">{{detail.quitTime || '--'}}</i-col>
  74 + </i-row>
  75 + <i-row>
  76 + <i-col span="4" class="detail-title">身份证号</i-col>
  77 + <i-col span="20">{{detail.certNo || '--'}}</i-col>
  78 + </i-row>
  79 + <i-row>
  80 + <i-col span="4" class="detail-title no-border-right" style="min-height: 150px;line-height: 150px;">身份证照片</i-col>
  81 + <i-col span="20" class="border-left" style="min-height: 150px;">
  82 + <img v-if="detail.idCardFrontUrl" class="cert-image" :src="detail.idCardFrontUrl">
  83 + <img v-if="detail.idCardBackUrl" class="cert-image" :src="detail.idCardBackUrl">
  84 + </i-col>
  85 + </i-row>
  86 + </div>
  87 + </i-card>
  88 + </div>
  89 + <!--弹出框绑定招商人员-->
  90 + <div class="popup-invist-wrapper" :class="{ show: isShowInvest}">
  91 + <i-card class="popup-invist-container">
  92 + <p slot="title">绑定招商人</p>
43 <i-button slot="extra" class="btn-close" @click="closePopup">X</i-button> 93 <i-button slot="extra" class="btn-close" @click="closePopup">X</i-button>
44 - <div class="pop-detail-content"> 94 + <div class="popup-invist-content">
45 <i-row> 95 <i-row>
46 - <i-col span="4" class="detail-title">UID</i-col>  
47 - <i-col span="8">{{detail.uid || '&nbsp;'}}</i-col>  
48 - <i-col span="4" class="detail-title">商家类型</i-col>  
49 - <i-col span="8">{{['','入驻卖家', '超级入驻', '', '普通卖家'][detail.entryType]}}</i-col>  
50 - </i-row>  
51 - <i-row>  
52 - <i-col span="4" class="detail-title">商家名称</i-col>  
53 - <i-col span="8">{{detail.certName || '--'}}</i-col>  
54 - <i-col span="4" class="detail-title">手机号</i-col>  
55 - <i-col span="8">{{detail.mobile || '--'}}</i-col>  
56 - </i-row>  
57 - <i-row>  
58 - <i-col span="4" class="detail-title">招商人员</i-col>  
59 - <i-col span="8">{{detail.investName || '--'}}</i-col>  
60 - <i-col span="4" class="detail-title">违规次数</i-col>  
61 - <i-col span="8">{{detail.breakRuleTimes || '0'}}</i-col>  
62 - </i-row>  
63 - <i-row>  
64 - <i-col span="4" class="detail-title">账户余额</i-col>  
65 - <i-col span="8" style="color: red;">{{detail.money || '0.00'}}</i-col>  
66 - <i-col span="4" class="detail-title">入驻状态</i-col>  
67 - <i-col span="8">{{detail.validStatusDesc || '--'}}</i-col>  
68 - </i-row>  
69 - <i-row>  
70 - <i-col span="4" class="detail-title">入驻时间</i-col>  
71 - <i-col span="8">{{detail.enterTime || '--'}}</i-col>  
72 - <i-col span="4" class="detail-title">退出入驻时间</i-col>  
73 - <i-col span="8">{{detail.quitTime || '--'}}</i-col>  
74 - </i-row>  
75 - <i-row>  
76 - <i-col span="4" class="detail-title">身份证号</i-col>  
77 - <i-col span="20">{{detail.certNo || '--'}}</i-col> 96 + <i-col class="invist-title" span="8">招商人员</i-col>
  97 + <i-col span="16">
  98 + <input type="text" v-model="investInfo.investName" placeholder="请输入招商人" style="width: 80%">
  99 + </i-col>
78 </i-row> 100 </i-row>
79 <i-row> 101 <i-row>
80 - <i-col span="4" class="detail-title no-border-right" style="min-height: 150px;line-height: 150px;">身份证照片</i-col>  
81 - <i-col span="20" class="border-left" style="min-height: 150px;">  
82 - <img v-if="detail.idCardFrontUrl" class="cert-image" :src="detail.idCardFrontUrl">  
83 - <img v-if="detail.idCardBackUrl" class="cert-image" :src="detail.idCardBackUrl"> 102 + <i-col span="24" style="text-align: center;">
  103 + <i-button type="success" @click="submitInvist">保存</i-button>
84 </i-col> 104 </i-col>
85 </i-row> 105 </i-row>
86 </div> 106 </div>
87 </i-card> 107 </i-card>
88 - </div>  
89 - <!--弹出框绑定招商人员-->  
90 - <div class="popup-invist-wrapper" :class="{ show: isShowInvest}">  
91 - <i-card class="popup-invist-container">  
92 - <p slot="title">绑定招商人</p>  
93 - <i-button slot="extra" class="btn-close" @click="closePopup">X</i-button>  
94 - <div class="popup-invist-content">  
95 - <i-row>  
96 - <i-col class="invist-title" span="8">招商人员</i-col>  
97 - <i-col span="16">  
98 - <input type="text" v-model="investInfo.investName" placeholder="请输入招商人" style="width: 80%">  
99 - </i-col>  
100 - </i-row>  
101 - <i-row>  
102 - <i-col span="24" style="text-align: center;">  
103 - <i-button type="success" @click="submitInvist">保存</i-button>  
104 - </i-col>  
105 - </i-row>  
106 - </div>  
107 - </i-card>  
108 - </div> 108 + </div>
  109 + <!--弹出框展示卖家升级-->
  110 + <Modal
  111 + v-model="isShowPlus"
  112 + title="升级入驻卖家PLUS"
  113 + :footer-hide='true'
  114 + width="500"
  115 + >
  116 + <Form>
  117 + <FormItem>
  118 + 确定升级,确认以后不能撤销
  119 + </FormItem>
  120 + <FormItem class="btn-container">
  121 + <Button type="default" class="btn" @click="onPlusCancel">取消</Button>
  122 + <Button type="primary" class="btn" @click="onPlusSubmit">确认</Button>
  123 + </FormItem>
  124 + </Form>
  125 + </Modal>
109 </LayoutContent> 126 </LayoutContent>
110 </template> 127 </template>
111 128
@@ -138,6 +155,8 @@ export default { @@ -138,6 +155,8 @@ export default {
138 nowSelectedRow: {}, 155 nowSelectedRow: {},
139 isShowDetail: false, // 显示详情弹框 156 isShowDetail: false, // 显示详情弹框
140 isShowInvest: false, // 显示绑定招商人员 157 isShowInvest: false, // 显示绑定招商人员
  158 + isShowPlus: false, // 显示卖家升级框
  159 + applyPlusUid: '', // 升级卖家uid
141 columns: [{ 160 columns: [{
142 title: 'UID', 161 title: 'UID',
143 key: 'uid', 162 key: 'uid',
@@ -208,6 +227,30 @@ export default { @@ -208,6 +227,30 @@ export default {
208 title: '入驻状态', 227 title: '入驻状态',
209 align: 'center', 228 align: 'center',
210 key: 'validStatusDesc', 229 key: 'validStatusDesc',
  230 + width: 90
  231 + }, {
  232 + title: '操作人',
  233 + align: 'center',
  234 + key: 'operatorName',
  235 + width: 90
  236 + }, {
  237 + title: '操作时间',
  238 + align: 'center',
  239 + key: 'updateTime',
  240 + width: 90
  241 + }, {
  242 + title: '操作',
  243 + align: 'center',
  244 + width: 100,
  245 + render: (h, {row}) => {
  246 + return (
  247 + <div>
  248 + {(row.entryType === 1) ?
  249 + (<i-button type="default" size="small" onClick={() => this.onPopupPlusModal(row)}>卖家升级</i-button>) :
  250 + <i-button type="text" size="small">-</i-button>}
  251 + </div>
  252 + );
  253 + }
211 }, /*{ 254 }, /*{
212 title: '招商人员', 255 title: '招商人员',
213 align: 'center', 256 align: 'center',
@@ -385,6 +428,30 @@ export default { @@ -385,6 +428,30 @@ export default {
385 validStatus: parseInt(params.validStatus) >= 0 ? params.validStatus : void 0, 428 validStatus: parseInt(params.validStatus) >= 0 ? params.validStatus : void 0,
386 entryType: parseInt(params.entryType) >= 0 ? params.entryType : void 0, 429 entryType: parseInt(params.entryType) >= 0 ? params.entryType : void 0,
387 }; 430 };
  431 + },
  432 +
  433 + onPopupPlusModal(row) {
  434 + this.isShowPlus = true;
  435 + this.applyPlusUid = row.uid;
  436 + },
  437 + async onPlusSubmit() {
  438 + this.isShowPlus = false;
  439 +
  440 + this.$Loading.start();
  441 +
  442 + const result = await api._get('/ufoPlatform/storedSeller/applyEntryPlus', {
  443 + uid: this.applyPlusUid
  444 + });
  445 + if (result.code === 200) {
  446 + result.message && this.$Message.success(result.message);
  447 + this.$Loading.finish();
  448 + } else {
  449 + result.message && this.$Message.warning(result.message);
  450 + this.$Loading.error();
  451 + }
  452 + },
  453 + onPlusCancel() {
  454 + this.isShowPlus = false;
388 } 455 }
389 }, 456 },
390 }; 457 };
@@ -438,6 +505,16 @@ export default { @@ -438,6 +505,16 @@ export default {
438 margin: 100px auto; 505 margin: 100px auto;
439 } 506 }
440 507
  508 + .btn-container {
  509 + margin-top: 60px;
  510 + }
  511 +
  512 + .btn {
  513 + width: 45%;
  514 + height: 34px;
  515 + margin-right: 15px;
  516 + }
  517 +
441 .ivu-row:hover { 518 .ivu-row:hover {
442 background-color: lightblue; 519 background-color: lightblue;
443 } 520 }