Parcourir la source

客户列表 修改

hebinlong il y a 4 ans
Parent
commit
f170c76efa
1 fichiers modifiés avec 20 ajouts et 424 suppressions
  1. 20 424
      src/views/userList/index.vue

+ 20 - 424
src/views/userList/index.vue

@@ -9,13 +9,13 @@
         </template>
       </el-table-column>
 
-      <el-table-column label="代理商提成(按照面额提成,默认0)" width="200" align="center">
+      <el-table-column label="代理商提成" width="200" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.partnerCommission }}</span>
         </template>
       </el-table-column>
 
-      <el-table-column label="代理商ID(中间人)" width="200" align="center">
+      <el-table-column label="代理商ID" width="200" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.partnerId }}</span>
         </template>
@@ -27,9 +27,10 @@
         </template>
       </el-table-column>
 
-      <el-table-column label="合作伙伴类型;1:流量营销 2:渠道直充" width="200" align="center">
+      <el-table-column label="合作伙伴类型" width="200" align="center">
         <template slot-scope="scope">
-          <span>{{ scope.row.partnerType }}</span>
+          <span v-if="scope.row.partnerType==1">流量营销</span>
+          <span v-if="scope.row.partnerType==2">渠道直充</span>
         </template>
       </el-table-column>
 
@@ -69,81 +70,11 @@
         </template>
       </el-table-column>
 
-      <el-table-column label="状态,0:待提交 1:商用 2:暂停 (1 有效 ,2 无效 3 暂停)" width="200" align="center">
+      <el-table-column label="状态" width="200" align="center">
         <template slot-scope="scope">
-          <span>{{ scope.row.status }}</span>
-        </template>
-      </el-table-column>
-
-      <el-table-column label="登录帐号" width="200" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.account }}</span>
-        </template>
-      </el-table-column>
-
-      <el-table-column label="登录密码,md5加密字符串" width="200" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.passwd }}</span>
-        </template>
-      </el-table-column>
-
-      <el-table-column label="服务密码,有APP终端客户自行修改;初始密码为“888888" width="200" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.svrPasswd }}</span>
-        </template>
-      </el-table-column>
-
-      <el-table-column label="支付密码,渠道营销客户无此字段内容" width="200" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.payPasswd }}</span>
-        </template>
-      </el-table-column>
-
-      <el-table-column label="Logo图片组ID" width="200" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.logoGroupId }}</span>
-        </template>
-      </el-table-column>
-
-      <el-table-column label="Logo图片URL" width="200" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.logoUrl }}</span>
-        </template>
-      </el-table-column>
-
-      <el-table-column label="二维码组ID" width="200" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.twoCode }}</span>
-        </template>
-      </el-table-column>
-
-      <el-table-column label="二维码图片URL" width="200" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.twoCodeUrl }}</span>
-        </template>
-      </el-table-column>
-
-      <el-table-column label="Logo图片组ID" width="200" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.logoGroupId }}</span>
-        </template>
-      </el-table-column>
-
-      <el-table-column label="Logo图片组ID" width="200" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.logoGroupId }}</span>
-        </template>
-      </el-table-column>
-
-      <el-table-column label="微信号" width="200" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.wechatNo }}</span>
-        </template>
-      </el-table-column>
-
-      <el-table-column label="终端结算价格,默认为产品定价,可以由直充渠道合作伙伴统一进行设置" width="200" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.settlePrice }}</span>
+          <span v-if="scope.row.status==1">有效</span>
+          <span v-if="scope.row.status==2">无效</span>
+          <span v-if="scope.row.status==3">暂停</span>
         </template>
       </el-table-column>
 
@@ -153,12 +84,6 @@
         </template>
       </el-table-column>
 
-      <el-table-column label="Logo图片组ID" width="200" align="center">
-        <template slot-scope="scope">
-          <span>{{ scope.row.logoGroupId }}</span>
-        </template>
-      </el-table-column>
-
       <el-table-column label="授信额度" width="200" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.creditAmount }}</span>
@@ -171,19 +96,21 @@
         </template>
       </el-table-column>
 
-      <el-table-column label="是否第一次登录,1:不是0:是" width="200" align="center">
+      <el-table-column label="是否第一次登录" width="200" align="center">
         <template slot-scope="scope">
-          <span>{{ scope.row.isFirstLogin }}</span>
+          <span v-if="scope.row.isFirstLogin==0">是</span>
+          <span v-if="scope.row.isFirstLogin==1">不是</span>
         </template>
       </el-table-column>
 
-      <el-table-column label="删除标识,1:已删除0:未删除" width="200" align="center">
+      <el-table-column label="删除标识" width="100" align="center">
         <template slot-scope="scope">
-          <span>{{ scope.row.isDeleted }}</span>
+          <span v-if="scope.row.isDeleted==0">未删除</span>
+          <span v-if="scope.row.isDeleted==1">已删除</span>
         </template>
       </el-table-column>
 
-      <el-table-column label="创建者" width="200" align="center">
+      <el-table-column label="创建者" width="100" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.creator }}</span>
         </template>
@@ -195,7 +122,7 @@
         </template>
       </el-table-column>
 
-      <el-table-column label="修改者" width="200" align="center">
+      <el-table-column label="修改者" width="100" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.updator }}</span>
         </template>
@@ -207,11 +134,11 @@
         </template>
       </el-table-column>
 
-      <el-table-column label="客户等级" width="200" align="center">
+      <!-- <el-table-column label="客户等级" width="200" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.customerLevel }}</span>
         </template>
-      </el-table-column>
+      </el-table-column> -->
 
       <el-table-column label="客户登录账户id" width="200" align="center">
         <template slot-scope="scope">
@@ -224,7 +151,6 @@
 </template>
 
 <script>
-import { Search } from '@/api/userList'
 export default {
   data() {
     return {
@@ -251,337 +177,7 @@ export default {
           twoCode: 'xxx',
           twoCodeUrl: 'xxx',
           settlePrice: '10.11',
-          balance: '',
-          creditAmount: '10000',
-          currentAmount: '154842',
-          isFirstLogin: '1',
-          isDeleted: 1,
-          creator: 'Admin',
-          createTime: '2021-05-17 00:00:00',
-          updator: 'Admin',
-          updateTime: '2021-05-17 00:00:00',
-          customerLevel: 0,
-          userId: '123'
-        }, {
-          customerId: '123456789',
-          partnerCommission: 0,
-          partnerId: '123456789',
-          identityId: '客户身份ID',
-          partnerType: 1,
-          customerName: 'TEST',
-          shorterName: 'test',
-          linkmanName: '张**',
-          linkmanMobile: '1518512885',
-          linkmanEmail: 'xxx@xxx',
-          address: '四川 成都',
-          status: 1,
-          account: 'TEST',
-          passwd: 'xxxxx',
-          svrPasswd: 'xxxxx',
-          payPasswd: 'xxxxx',
-          logoGroupId: 'xxxxx',
-          logoUrl: 'xxx',
-          twoCode: 'xxx',
-          twoCodeUrl: 'xxx',
-          settlePrice: '10.11',
-          balance: '',
-          creditAmount: '10000',
-          currentAmount: '154842',
-          isFirstLogin: '1',
-          isDeleted: 1,
-          creator: 'Admin',
-          createTime: '2021-05-17 00:00:00',
-          updator: 'Admin',
-          updateTime: '2021-05-17 00:00:00',
-          customerLevel: 0,
-          userId: '123'
-        }, {
-          customerId: '123456789',
-          partnerCommission: 0,
-          partnerId: '123456789',
-          identityId: '客户身份ID',
-          partnerType: 1,
-          customerName: 'TEST',
-          shorterName: 'test',
-          linkmanName: '张**',
-          linkmanMobile: '1518512885',
-          linkmanEmail: 'xxx@xxx',
-          address: '四川 成都',
-          status: 1,
-          account: 'TEST',
-          passwd: 'xxxxx',
-          svrPasswd: 'xxxxx',
-          payPasswd: 'xxxxx',
-          logoGroupId: 'xxxxx',
-          logoUrl: 'xxx',
-          twoCode: 'xxx',
-          twoCodeUrl: 'xxx',
-          settlePrice: '10.11',
-          balance: '',
-          creditAmount: '10000',
-          currentAmount: '154842',
-          isFirstLogin: '1',
-          isDeleted: 1,
-          creator: 'Admin',
-          createTime: '2021-05-17 00:00:00',
-          updator: 'Admin',
-          updateTime: '2021-05-17 00:00:00',
-          customerLevel: 0,
-          userId: '123'
-        }, {
-          customerId: '123456789',
-          partnerCommission: 0,
-          partnerId: '123456789',
-          identityId: '客户身份ID',
-          partnerType: 1,
-          customerName: 'TEST',
-          shorterName: 'test',
-          linkmanName: '张**',
-          linkmanMobile: '1518512885',
-          linkmanEmail: 'xxx@xxx',
-          address: '四川 成都',
-          status: 1,
-          account: 'TEST',
-          passwd: 'xxxxx',
-          svrPasswd: 'xxxxx',
-          payPasswd: 'xxxxx',
-          logoGroupId: 'xxxxx',
-          logoUrl: 'xxx',
-          twoCode: 'xxx',
-          twoCodeUrl: 'xxx',
-          settlePrice: '10.11',
-          balance: '',
-          creditAmount: '10000',
-          currentAmount: '154842',
-          isFirstLogin: '1',
-          isDeleted: 1,
-          creator: 'Admin',
-          createTime: '2021-05-17 00:00:00',
-          updator: 'Admin',
-          updateTime: '2021-05-17 00:00:00',
-          customerLevel: 0,
-          userId: '123'
-        }, {
-          customerId: '123456789',
-          partnerCommission: 0,
-          partnerId: '123456789',
-          identityId: '客户身份ID',
-          partnerType: 1,
-          customerName: 'TEST',
-          shorterName: 'test',
-          linkmanName: '张**',
-          linkmanMobile: '1518512885',
-          linkmanEmail: 'xxx@xxx',
-          address: '四川 成都',
-          status: 1,
-          account: 'TEST',
-          passwd: 'xxxxx',
-          svrPasswd: 'xxxxx',
-          payPasswd: 'xxxxx',
-          logoGroupId: 'xxxxx',
-          logoUrl: 'xxx',
-          twoCode: 'xxx',
-          twoCodeUrl: 'xxx',
-          settlePrice: '10.11',
-          balance: '',
-          creditAmount: '10000',
-          currentAmount: '154842',
-          isFirstLogin: '1',
-          isDeleted: 1,
-          creator: 'Admin',
-          createTime: '2021-05-17 00:00:00',
-          updator: 'Admin',
-          updateTime: '2021-05-17 00:00:00',
-          customerLevel: 0,
-          userId: '123'
-        }, {
-          customerId: '123456789',
-          partnerCommission: 0,
-          partnerId: '123456789',
-          identityId: '客户身份ID',
-          partnerType: 1,
-          customerName: 'TEST',
-          shorterName: 'test',
-          linkmanName: '张**',
-          linkmanMobile: '1518512885',
-          linkmanEmail: 'xxx@xxx',
-          address: '四川 成都',
-          status: 1,
-          account: 'TEST',
-          passwd: 'xxxxx',
-          svrPasswd: 'xxxxx',
-          payPasswd: 'xxxxx',
-          logoGroupId: 'xxxxx',
-          logoUrl: 'xxx',
-          twoCode: 'xxx',
-          twoCodeUrl: 'xxx',
-          settlePrice: '10.11',
-          balance: '',
-          creditAmount: '10000',
-          currentAmount: '154842',
-          isFirstLogin: '1',
-          isDeleted: 1,
-          creator: 'Admin',
-          createTime: '2021-05-17 00:00:00',
-          updator: 'Admin',
-          updateTime: '2021-05-17 00:00:00',
-          customerLevel: 0,
-          userId: '123'
-        }, {
-          customerId: '123456789',
-          partnerCommission: 0,
-          partnerId: '123456789',
-          identityId: '客户身份ID',
-          partnerType: 1,
-          customerName: 'TEST',
-          shorterName: 'test',
-          linkmanName: '张**',
-          linkmanMobile: '1518512885',
-          linkmanEmail: 'xxx@xxx',
-          address: '四川 成都',
-          status: 1,
-          account: 'TEST',
-          passwd: 'xxxxx',
-          svrPasswd: 'xxxxx',
-          payPasswd: 'xxxxx',
-          logoGroupId: 'xxxxx',
-          logoUrl: 'xxx',
-          twoCode: 'xxx',
-          twoCodeUrl: 'xxx',
-          settlePrice: '10.11',
-          balance: '',
-          creditAmount: '10000',
-          currentAmount: '154842',
-          isFirstLogin: '1',
-          isDeleted: 1,
-          creator: 'Admin',
-          createTime: '2021-05-17 00:00:00',
-          updator: 'Admin',
-          updateTime: '2021-05-17 00:00:00',
-          customerLevel: 0,
-          userId: '123'
-        }, {
-          customerId: '123456789',
-          partnerCommission: 0,
-          partnerId: '123456789',
-          identityId: '客户身份ID',
-          partnerType: 1,
-          customerName: 'TEST',
-          shorterName: 'test',
-          linkmanName: '张**',
-          linkmanMobile: '1518512885',
-          linkmanEmail: 'xxx@xxx',
-          address: '四川 成都',
-          status: 1,
-          account: 'TEST',
-          passwd: 'xxxxx',
-          svrPasswd: 'xxxxx',
-          payPasswd: 'xxxxx',
-          logoGroupId: 'xxxxx',
-          logoUrl: 'xxx',
-          twoCode: 'xxx',
-          twoCodeUrl: 'xxx',
-          settlePrice: '10.11',
-          balance: '',
-          creditAmount: '10000',
-          currentAmount: '154842',
-          isFirstLogin: '1',
-          isDeleted: 1,
-          creator: 'Admin',
-          createTime: '2021-05-17 00:00:00',
-          updator: 'Admin',
-          updateTime: '2021-05-17 00:00:00',
-          customerLevel: 0,
-          userId: '123'
-        }, {
-          customerId: '123456789',
-          partnerCommission: 0,
-          partnerId: '123456789',
-          identityId: '客户身份ID',
-          partnerType: 1,
-          customerName: 'TEST',
-          shorterName: 'test',
-          linkmanName: '张**',
-          linkmanMobile: '1518512885',
-          linkmanEmail: 'xxx@xxx',
-          address: '四川 成都',
-          status: 1,
-          account: 'TEST',
-          passwd: 'xxxxx',
-          svrPasswd: 'xxxxx',
-          payPasswd: 'xxxxx',
-          logoGroupId: 'xxxxx',
-          logoUrl: 'xxx',
-          twoCode: 'xxx',
-          twoCodeUrl: 'xxx',
-          settlePrice: '10.11',
-          balance: '',
-          creditAmount: '10000',
-          currentAmount: '154842',
-          isFirstLogin: '1',
-          isDeleted: 1,
-          creator: 'Admin',
-          createTime: '2021-05-17 00:00:00',
-          updator: 'Admin',
-          updateTime: '2021-05-17 00:00:00',
-          customerLevel: 0,
-          userId: '123'
-        }, {
-          customerId: '123456789',
-          partnerCommission: 0,
-          partnerId: '123456789',
-          identityId: '客户身份ID',
-          partnerType: 1,
-          customerName: 'TEST',
-          shorterName: 'test',
-          linkmanName: '张**',
-          linkmanMobile: '1518512885',
-          linkmanEmail: 'xxx@xxx',
-          address: '四川 成都',
-          status: 1,
-          account: 'TEST',
-          passwd: 'xxxxx',
-          svrPasswd: 'xxxxx',
-          payPasswd: 'xxxxx',
-          logoGroupId: 'xxxxx',
-          logoUrl: 'xxx',
-          twoCode: 'xxx',
-          twoCodeUrl: 'xxx',
-          settlePrice: '10.11',
-          balance: '',
-          creditAmount: '10000',
-          currentAmount: '154842',
-          isFirstLogin: '1',
-          isDeleted: 1,
-          creator: 'Admin',
-          createTime: '2021-05-17 00:00:00',
-          updator: 'Admin',
-          updateTime: '2021-05-17 00:00:00',
-          customerLevel: 0,
-          userId: '123'
-        }, {
-          customerId: '123456789',
-          partnerCommission: 0,
-          partnerId: '123456789',
-          identityId: '客户身份ID',
-          partnerType: 1,
-          customerName: 'TEST',
-          shorterName: 'test',
-          linkmanName: '张**',
-          linkmanMobile: '1518512885',
-          linkmanEmail: 'xxx@xxx',
-          address: '四川 成都',
-          status: 1,
-          account: 'TEST',
-          passwd: 'xxxxx',
-          svrPasswd: 'xxxxx',
-          payPasswd: 'xxxxx',
-          logoGroupId: 'xxxxx',
-          logoUrl: 'xxx',
-          twoCode: 'xxx',
-          twoCodeUrl: 'xxx',
-          settlePrice: '10.11',
-          balance: '',
+          balance: '15452218554',
           creditAmount: '10000',
           currentAmount: '154842',
           isFirstLogin: '1',