Ver código fonte

分发列表修改

hebinlong 4 anos atrás
pai
commit
381f767c8a

+ 2 - 2
config/index.js

@@ -9,7 +9,7 @@ module.exports = {
     proxyTable: {
       '/pre': {
         // target: 'http://app.bluefire.top:7999',//后端接口地址
-        target: 'http://192.168.101.15:8081',//后端接口地址
+        target: 'http://192.168.101.104:8081',//后端接口地址
         // target: 'http://192.168.101.104:8081',//后端接口地址
         changeOrigin: true,  //是否跨域
         pathRewrite: {
@@ -20,7 +20,7 @@ module.exports = {
     },
 
     // 本地开发使用
-    host: '192.168.101.18',
+    host: '127.0.0.1',
     port: 9527,
     autoOpenBrowser: true,
     errorOverlay: true,

+ 13 - 1
src/api/orderList.js

@@ -1,6 +1,6 @@
 import request from '@/utils/request'
 
-//订单查询
+// 订单查询
 export function ordersearch(data) {
   return request({
     url: '/orderManagement/search',
@@ -9,3 +9,15 @@ export function ordersearch(data) {
   })
 }
 
+export default {
+  finance: {
+    // /orderManagement/searchFinance
+    Search(data) {
+      return request({
+        url: '/orderManagement/searchFinance',
+        method: 'post',
+        data: data
+      })
+    }
+  }
+}

+ 11 - 0
src/api/userList.js

@@ -0,0 +1,11 @@
+import request from '@/utils/request'
+
+export default {
+  Search(operator) {
+    return request({
+      url: '/customer/info',
+      method: 'get',
+      params: operator
+    })
+  }
+}

+ 8 - 8
src/views/login/index.vue

@@ -27,8 +27,8 @@
                 placeholder="账号"
                 name="username"
                 type="text"
-                @keyup.enter.native="handleLogin"
                 autocomplete="off"
+                @keyup.enter.native="handleLogin"
               >
                 <i slot="prefix" class="">
                   <svg-icon icon-class="user1" />
@@ -169,7 +169,7 @@
           </span>
 
           <span class="other-icon" @click="handleSocial('gitee')">
-            <!--<a href='http://localhost:8081/auth/gitee'>
+            <a href='http://localhost:8081/auth/gitee'>
             <svg
               t="1563366479009"
               class="fa-icon"
@@ -186,10 +186,10 @@
                 p-id="1419"
               />
             </svg>
-            <!--</a>
+            </a>
           </span>
           <span class="other-icon" @click="handleSocial('weixin')">
-            <!--<a href='http://localhost:8081/auth/gitee'
+            <a href='http://localhost:8081/auth/gitee'
             <svg
               t="1566549849419"
               class="icon"
@@ -212,7 +212,7 @@
               fill="#FFFFFF"
               p-id="2081"
             /></svg>
-            <!--</a>
+            </a>
           </span>
         </div>
         <div class="register">
@@ -294,9 +294,9 @@ export default {
   created() {
     // this.refreshCaptcha()
     // this.socialLogin()
-    let array=[{a:1},{a:2},{a:3},{a:4},{a:5}]
-    let ary=array.map(res=>{
-       return res.a
+    const array = [{ a: 1 }, { a: 2 }, { a: 3 }, { a: 4 }, { a: 5 }]
+    const ary = array.map(res => {
+      return res.a
     })
     // console.log(Math.max(ary))
   },

+ 605 - 349
src/views/orderList/Distribute.vue

@@ -1,390 +1,646 @@
 <template>
-  <!-- 分发记录表 -->
-  <div>
+  <div class="app-container">
+    <div class="filter-container" style="margin: 10px 0 10px 0">
+      <!-- <el-row :gutter="20" style="marginBottom:20px">
+          <el-col :span="8"  :xs="12"  :lg="8">
+              <div>
+                  <span class="textSpan">
+                     订单号:
+                  </span>
+                <el-input
+                        v-model="body.orderId"
+                        style="width: 70%;"
+                        placeholder="请输入订单号"
+                        size="small"
+                        clearable
+                    />
+              </div>
+          </el-col>
+          <el-col :span="8"  :xs="12"  :lg="8">
+              <div>
+                  <span class="textSpan">
+                     商户订单号:
+                  </span>
+                <el-input
+                        v-model="body.extorderId"
+                        style="width: 70%;"
+                        placeholder="请输入商户订单号"
+                        size="small"
+                        clearable
+                    />
+              </div>
+          </el-col>
+          <el-col :span="8"  :xs="12"  :lg="8">
+              <div>
+                  <span class="textSpan">
+                     手机号码:
+                  </span>
+                <el-input
+                        v-model="body.usedMobile"
+                        style="width: 70%;"
+                        placeholder="请输入手机号码"
+                        size="small"
+                        clearable
+                    />
+              </div>
+          </el-col>
+      </el-row> -->
+      <div class="flex">
+        <div class="w_input">
+          <span class="textSpan"> 订单号:</span>
+          <el-input
+            v-model="body.orderId"
+            style="width:65%;"
+            placeholder="请输入订单号"
+            size="small"
+            clearable
+          />
+        </div>
+        <div class="w_input">
+          <span class="textSpan">客户订单号:</span>
+          <el-input
+            v-model="body.extorderId"
+            style="width: 65%;"
+            placeholder="请输入客户订单号"
+            size="small"
+            clearable
+          />
+        </div>
+        <div class="w_input stylephone">
+          <div class="textSpan marginphone">通道订单号:</div>
+          <el-input
+            v-model="body.Id"
+            style="width: 67%;"
+            placeholder="请输入通道订单号"
+            size="small"
+            clearable
+          />
+        </div>
+      </div>
+      <div class="flex">
+        <div class="w_date">
+          <span class="textSpan">回调时间:</span>
+          <el-date-picker
+            v-model="checkTimeStart"
+            size="small"
+            type="datetimerange"
+            range-separator="至"
+            style="width:78%"
+            value-format="yyyy-MM-dd HH:mm:ss"
+            :default-time="[&quot;00:00:00&quot;,&quot;23:59:59&quot;]"
+            start-placeholder="开始日期"
+            end-placeholder="结束日期"
+            @change="oncheckTimeStart"
+          />
 
-    <div class="DistributeTable">
-      <el-table v-loading="loading" :data="tableData" border style="width: 100%">
-        <el-table-column type="selection" />
+        </div>
+        <div class="w_date">
+          <span class="textSpan">发送时间:</span>
+          <el-date-picker
+            v-model="applyDateStart"
+            size="small"
+            type="datetimerange"
+            style="width:79%"
+            range-separator="至"
+            value-format="yyyy-MM-dd HH:mm:ss"
+            :default-time="[&quot;00:00:00&quot;,&quot;23:59:59&quot;]"
+            start-placeholder="开始日期"
+            end-placeholder="结束日期"
+            @change="oncustom"
+          />
 
-        <el-table-column label="订单号" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.orderId }}</span>
-          </template>
-        </el-table-column>
+        </div>
 
-        <el-table-column label="分发订单号" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.recId }}</span>
-          </template>
-        </el-table-column>
+      </div>
+      <div class="flex">
+        <div class="w_input">
+          <span class="textSpan">通道名称:</span>
+          <el-input
+            v-model="body.channelIdDesc"
+            style="width:65%;"
+            placeholder="请输入通道名称"
+            size="small"
+            clearable
+          />
+        </div>
+        <div class="w_input">
+          <span class="textSpan"> 订单状态:</span>
+          <el-select v-model="body.status" size="small" clearable placeholder="请选择订单状态" style="width: 65%" @change="changeScope">
+            <el-option
+              v-for="item in status"
+              :key="item.id"
+              :label="item.name"
+              :value="item.id"
+            />
+          </el-select>
+        </div>
+        <div class="w_input">
+          <span class="textSpan">  运营商:</span>
+          <el-select v-model="body.mobileOperator" size="small" clearable placeholder="请选择运营商" style="width: 65%" @change="changeoperator">
+            <el-option
+              v-for="item in mobileOperator"
+              :key="item.id"
+              :label="item.name"
+              :value="item.id"
+            />
+          </el-select>
+        </div>
+      </div>
+      <div class="flex">
+        <div class="w_input">
+          <span class="textSpan">  面额:</span>
+          <el-input
+            v-model="flowAmount"
+            style="width:65%;"
+            placeholder="请输入订单号"
+            size="small"
+            clearable
+            @change="changeflow"
+          />
+        </div>
+        <div class="w_input">
+          <span class="textSpan"> 客户名称:</span>
+          <el-input
+            v-model="body.enterpriseIdDesc"
+            style="width: 65%;"
+            placeholder="请输入客户名称"
+            size="small"
+            clearable
+          />
+        </div>
+        <div class="w_input">
+          <span class="textSpan">  归属地:</span>
+          <el-input
+            v-model="body.mobileHome"
+            style="width: 65%;"
+            placeholder="请选择归属地"
+            size="small"
+            clearable
+          />
+        </div>
+      </div>
+      <div class="flex">
+        <div class="w_input">
+          <span class="textSpan">回调状态:</span>
+          <el-select v-model="body.dealFlag" size="small" clearable placeholder="请选择订单状态" style="width: 65%" @change="changeScope">
+            <el-option
+              v-for="item in dealFlag"
+              :key="item.id"
+              :label="item.name"
+              :value="item.id"
+            />
+          </el-select>
+        </div>
+        <div class="w_input stylephone">
+          <div class="textSpan marginphone">  手机号:</div>
+          <el-input
+            v-model="body.usedMobile"
+            type="textarea"
+            :autosize="{ minRows: 1.1, maxRows: 5}"
+            class="phone"
+            size="small"
+            placeholder="请输入内容"
+            clearable
+          />
 
-        <el-table-column label="手机号" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.mobileNo }}</span>
-          </template>
-        </el-table-column>
+        </div>
+      </div>
+      <div class="flexend">
+        <el-button class="filter-item" type="info" icon="el-icon-edit" plain @click="handleReset">至重发
+        </el-button>
+        <el-button class="filter-item" type="warning" icon="el-icon-message" plain @click="handleReset">至回调
+        </el-button>
 
-        <el-table-column label="流量产品包(参照运营商规格)" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.packageId }}</span>
-          </template>
-        </el-table-column>
+        <el-button class="filter-item" icon="el-icon-delete" type="danger" plain @click="handleReset">至失败
+        </el-button>
+        <el-button class="filter-item" type="success" icon="el-icon-check" plain @click="handleReset">至成功
+        </el-button>
 
-        <el-table-column label="流量产品包(foss平台)" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.fossPackageId }}</span>
-          </template>
-        </el-table-column>
+        <el-button class="classitem" style="marginRight:50px" type="primary" plain icon="el-icon-star-off" @click="handleReset">导出
+        </el-button>
+        <el-button class="filter-item" icon="el-icon-search" type="primary" plain @click="handleSearch">搜索</el-button>
+      </div>
+    </div>
+    <el-table v-loading="loading" :data="tableData" border style="width: 100%">
+      <el-table-column type="selection" width="40" />
 
-        <el-table-column label="流量大小(面额)导数据注意转换" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.flowAmount }}</span>
-          </template>
-        </el-table-column>
+      <el-table-column label="订单号" width="120" align="center" show-overflow-tooltip>
+        <template slot-scope="scope">
+          <span>{{ scope.row.orderId }}</span>
+        </template>
+      </el-table-column>
 
-        <el-table-column label="下发次数" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.sendCount }}</span>
-          </template>
-        </el-table-column>
+      <el-table-column label="分发订单号" width="120" align="center" show-overflow-tooltip>
+        <template slot-scope="scope">
+          <span>{{ scope.row.recId }}</span>
+        </template>
+      </el-table-column>
 
-        <el-table-column label="创建日期" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.createDate }}</span>
-          </template>
-        </el-table-column>
+      <el-table-column label="客户名称" width="100" align="center" show-overflow-tooltip>
+        <template slot-scope="scope">
+          <span>{{ scope.row.user }}</span>
+        </template>
+      </el-table-column>
 
-        <el-table-column label="回调时间" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.modifyDate }}</span>
-          </template>
-        </el-table-column>
+      <el-table-column label="手机号码" width="110" align="center" show-overflow-tooltip>
+        <template slot-scope="scope">
+          <span>{{ scope.row.mobile }}</span>
+        </template>
+      </el-table-column>
 
-        <el-table-column label="发送状态:0-待发 1-已发 2-成功 3-重发 4-失败" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.sendStatus }}</span>
-          </template>
-        </el-table-column>
+      <el-table-column label="流量包ID" width="100" align="center" show-overflow-tooltip>
+        <template slot-scope="scope">
+          <span>{{ scope.row.packageId }}</span>
+        </template>
+      </el-table-column>
 
-        <el-table-column label="网关订单号(供应商订单号)" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.gwSeqNo }}</span>
-          </template>
-        </el-table-column>
+      <el-table-column label="运营商" width="70" align="center" show-overflow-tooltip>
+        <template slot-scope="scope">
+          <span>{{ scope.row.mobileOperator }}</span>
+        </template>
+      </el-table-column>
 
-        <el-table-column label="网关状态" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.gwStatus }}</span>
-          </template>
-        </el-table-column>
+      <el-table-column label="归属地" width="100" align="center" show-overflow-tooltip>
+        <template slot-scope="scope">
+          <span>{{ scope.row.mobileHome }}</span>
+        </template>
+      </el-table-column>
 
-        <el-table-column label="网关错误代码" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.gwErrorCode }}</span>
-          </template>
-        </el-table-column>
+      <el-table-column label="发送时间" width="160" align="center">
+        <template slot-scope="scope">
+          <span>{{ scope.row.limitedDate }}</span>
+        </template>
+      </el-table-column>
 
-        <el-table-column label="网关错误信息" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.gwErrorMsg }}</span>
-          </template>
-        </el-table-column>
+      <el-table-column label="回调时间" width="160" align="center">
+        <template slot-scope="scope">
+          <span>{{ scope.row.callbackTime }}</span>
+        </template>
+      </el-table-column>
 
-        <el-table-column label="归属地市" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.mobileHome }}</span>
-          </template>
-        </el-table-column>
+      <el-table-column label="分发组次数" width="160" align="center">
+        <template slot-scope="scope">
+          <span>{{ scope.row.sendCount }}</span>
+        </template>
+      </el-table-column>
 
-        <el-table-column label="应用ID" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.appId }}</span>
-          </template>
-        </el-table-column>
+      <el-table-column label="通道组次数" width="160" align="center">
+        <template slot-scope="scope">
+          <span>{{ scope.row.batchCount }}</span>
+        </template>
+      </el-table-column>
 
-        <el-table-column label="最后回调信息" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.lastCallbackMsg }}</span>
-          </template>
-        </el-table-column>
+      <el-table-column label="发送状态" width="90" align="center" show-overflow-tooltip>
+        <template slot-scope="scope">
+          <el-tag v-if="scope.row.sendStatus === 2" size="small">已发</el-tag>
+          <el-tag v-if="scope.row.sendStatus === 4" size="small">失败</el-tag>
+          <el-tag v-if="scope.row.sendStatus === 6" size="small">成功</el-tag>
+        </template>
+      </el-table-column>
 
-        <el-table-column label="运营商结算价格 导数据注意转换" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.operatorBalancePrice }}</span>
-          </template>
-        </el-table-column>
+      <el-table-column label="通道名称" width="90" align="center" show-overflow-tooltip>
+        <template slot-scope="scope">
+          <span>{{ scope.row.channelName }}</span>
+        </template>
+      </el-table-column>
 
-        <el-table-column label="通道组次数" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.batchCount }}</span>
-          </template>
-        </el-table-column>
+      <el-table-column
+        label="用时"
+        width="90"
+        align="center"
+        prop="createTime"
+        show-overflow-tooltip
+      >
+        <template slot-scope="scope">
+          <span>{{ scope.row.usedTime }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column
+        label="回调状态"
+        width="90"
+        align="center"
+        prop="createTime"
+        show-overflow-tooltip
+      >
+        <template slot-scope="scope">
+          <!-- <span>{{ scope.row.dealFlag }}</span> -->
+          <el-tag v-if="scope.row.dealFlag === '1'" size="small">成功</el-tag>
+          <el-tag v-if="scope.row.dealFlag === '2'" size="small">失败</el-tag>
+        </template>
+      </el-table-column>
 
-        <el-table-column label="客户产品" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.customerProducts }}</span>
-          </template>
-        </el-table-column>
+      <el-table-column label="客户订单号" width="120" align="center" show-overflow-tooltip>
+        <template slot-scope="scope">
+          <span>{{ scope.row.extorderId }}</span>
+        </template>
+      </el-table-column>
 
-        <el-table-column label="通道产品" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.channelProducts }}</span>
-          </template>
-        </el-table-column>
+      <el-table-column label="通道订单号" width="120" align="center" show-overflow-tooltip>
+        <template slot-scope="scope">
+          <span>{{ scope.row.gwSeqNo }}</span>
+        </template>
+      </el-table-column>
 
-        <el-table-column label="运营商订单号" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.operatorId }}</span>
-          </template>
-        </el-table-column>
+      <el-table-column label="通道错误代码" width="120" align="center" show-overflow-tooltip>
+        <template slot-scope="scope">
+          <span>{{ scope.row.gwErrorCode }}</span>
+        </template>
+      </el-table-column>
+      <el-table-column label="运营商订单号" width="120" align="center" show-overflow-tooltip>
+        <template slot-scope="scope">
+          <span>{{ scope.row.operatorId }}</span>
+        </template>
+      </el-table-column>
 
-        <el-table-column label="分发记录日志" width="200" align="center">
-          <template slot-scope="scope">
-            <span>{{ scope.row.recordLog }}</span>
-          </template>
-        </el-table-column>
+    </el-table>
 
-      </el-table>
+    <!--分页-->
+    <div class="pagination">
+      <el-pagination
+        current-page.sync="body.page"
+        :current-page="body.page"
+        :page-sizes="[10, 20, 30, 50]"
+        :page-size="body.size"
+        layout="total, sizes, prev, pager, next, jumper"
+        background
+        :total="total"
+        @size-change="handleSizeChange"
+        @current-change="handleCurrentChange"
+      />
     </div>
   </div>
 </template>
 
 <script>
+import { ordersearch } from '@/api/orderList'
 export default {
   data() {
     return {
-      tableData: [
-        {
-          recId: '123456789',
-          orderId: '123456789',
-          mobileNo: '123456789',
-          packageNd: 'YDHF100',
-          fossPackageNd: '????',
-          flowAmount: 100,
-          sendCount: 5,
-          createDate: '2021-05-17 00:00:00',
-          modifyDate: '2021-05-17 00:00:00',
-          sendStatus: 0,
-          gwSeqNo: '123456789',
-          gwStatus: 'PASS',
-          gwErrorCode: '???',
-          gwErrorMsg: 'NOT FIND',
-          mobileHome: '四川',
-          appId: '123',
-          lastCallbackMsg: 'CALL OK',
-          operatorBalancePprice: 100.55,
-          batchCount: 5,
-          customerProducts: '???',
-          channelProducts: '??',
-          operatorId: '123456789',
-          recordLog: 'SOURCE'
-        },
-        {
-          recId: '123456789',
-          orderId: '123456789',
-          mobileNo: '123456789',
-          packageNd: 'YDHF100',
-          fossPackageNd: '????',
-          flowAmount: 100,
-          sendCount: 5,
-          createDate: '2021-05-17 00:00:00',
-          modifyDate: '2021-05-17 00:00:00',
-          sendStatus: 0,
-          gwSeqNo: '123456789',
-          gwStatus: 'PASS',
-          gwErrorCode: '???',
-          gwErrorMsg: 'NOT FIND',
-          mobileHome: '四川',
-          appId: '123',
-          lastCallbackMsg: 'CALL OK',
-          operatorBalancePprice: 100.55,
-          batchCount: 5,
-          customerProducts: '???',
-          channelProducts: '??',
-          operatorId: '123456789',
-          recordLog: 'SOURCE'
-        },
-        {
-          recId: '123456789',
-          orderId: '123456789',
-          mobileNo: '123456789',
-          packageNd: 'YDHF100',
-          fossPackageNd: '????',
-          flowAmount: 100,
-          sendCount: 5,
-          createDate: '2021-05-17 00:00:00',
-          modifyDate: '2021-05-17 00:00:00',
-          sendStatus: 0,
-          gwSeqNo: '123456789',
-          gwStatus: 'PASS',
-          gwErrorCode: '???',
-          gwErrorMsg: 'NOT FIND',
-          mobileHome: '四川',
-          appId: '123',
-          lastCallbackMsg: 'CALL OK',
-          operatorBalancePprice: 100.55,
-          batchCount: 5,
-          customerProducts: '???',
-          channelProducts: '??',
-          operatorId: '123456789',
-          recordLog: 'SOURCE'
-        },
-        {
-          recId: '123456789',
-          orderId: '123456789',
-          mobileNo: '123456789',
-          packageNd: 'YDHF100',
-          fossPackageNd: '????',
-          flowAmount: 100,
-          sendCount: 5,
-          createDate: '2021-05-17 00:00:00',
-          modifyDate: '2021-05-17 00:00:00',
-          sendStatus: 0,
-          gwSeqNo: '123456789',
-          gwStatus: 'PASS',
-          gwErrorCode: '???',
-          gwErrorMsg: 'NOT FIND',
-          mobileHome: '四川',
-          appId: '123',
-          lastCallbackMsg: 'CALL OK',
-          operatorBalancePprice: 100.55,
-          batchCount: 5,
-          customerProducts: '???',
-          channelProducts: '??',
-          operatorId: '123456789',
-          recordLog: 'SOURCE'
-        },
-        {
-          recId: '123456789',
-          orderId: '123456789',
-          mobileNo: '123456789',
-          packageNd: 'YDHF100',
-          fossPackageNd: '????',
-          flowAmount: 100,
-          sendCount: 5,
-          createDate: '2021-05-17 00:00:00',
-          modifyDate: '2021-05-17 00:00:00',
-          sendStatus: 0,
-          gwSeqNo: '123456789',
-          gwStatus: 'PASS',
-          gwErrorCode: '???',
-          gwErrorMsg: 'NOT FIND',
-          mobileHome: '四川',
-          appId: '123',
-          lastCallbackMsg: 'CALL OK',
-          operatorBalancePprice: 100.55,
-          batchCount: 5,
-          customerProducts: '???',
-          channelProducts: '??',
-          operatorId: '123456789',
-          recordLog: 'SOURCE'
-        },
-        {
-          recId: '123456789',
-          orderId: '123456789',
-          mobileNo: '123456789',
-          packageNd: 'YDHF100',
-          fossPackageNd: '????',
-          flowAmount: 100,
-          sendCount: 5,
-          createDate: '2021-05-17 00:00:00',
-          modifyDate: '2021-05-17 00:00:00',
-          sendStatus: 0,
-          gwSeqNo: '123456789',
-          gwStatus: 'PASS',
-          gwErrorCode: '???',
-          gwErrorMsg: 'NOT FIND',
-          mobileHome: '四川',
-          appId: '123',
-          lastCallbackMsg: 'CALL OK',
-          operatorBalancePprice: 100.55,
-          batchCount: 5,
-          customerProducts: '???',
-          channelProducts: '??',
-          operatorId: '123456789',
-          recordLog: 'SOURCE'
-        },
-        {
-          recId: '123456789',
-          orderId: '123456789',
-          mobileNo: '123456789',
-          packageNd: 'YDHF100',
-          fossPackageNd: '????',
-          flowAmount: 100,
-          sendCount: 5,
-          createDate: '2021-05-17 00:00:00',
-          modifyDate: '2021-05-17 00:00:00',
-          sendStatus: 0,
-          gwSeqNo: '123456789',
-          gwStatus: 'PASS',
-          gwErrorCode: '???',
-          gwErrorMsg: 'NOT FIND',
-          mobileHome: '四川',
-          appId: '123',
-          lastCallbackMsg: 'CALL OK',
-          operatorBalancePprice: 100.55,
-          batchCount: 5,
-          customerProducts: '???',
-          channelProducts: '??',
-          operatorId: '123456789',
-          recordLog: 'SOURCE'
-        },
-        {
-          recId: '123456789',
-          orderId: '123456789',
-          mobileNo: '123456789',
-          packageNd: 'YDHF100',
-          fossPackageNd: '????',
-          flowAmount: 100,
-          sendCount: 5,
-          createDate: '2021-05-17 00:00:00',
-          modifyDate: '2021-05-17 00:00:00',
-          sendStatus: 0,
-          gwSeqNo: '123456789',
-          gwStatus: 'PASS',
-          gwErrorCode: '???',
-          gwErrorMsg: 'NOT FIND',
-          mobileHome: '四川',
-          appId: '123',
-          lastCallbackMsg: 'CALL OK',
-          operatorBalancePprice: 100.55,
-          batchCount: 5,
-          customerProducts: '???',
-          channelProducts: '??',
-          operatorId: '123456789',
-          recordLog: 'SOURCE'
-        },
-        {
-          recId: '123456789',
-          orderId: '123456789',
-          mobileNo: '123456789',
-          packageNd: 'YDHF100',
-          fossPackageNd: '????',
-          flowAmount: 100,
-          sendCount: 5,
-          createDate: '2021-05-17 00:00:00',
-          modifyDate: '2021-05-17 00:00:00',
-          sendStatus: 0,
-          gwSeqNo: '123456789',
-          gwStatus: 'PASS',
-          gwErrorCode: '???',
-          gwErrorMsg: 'NOT FIND',
-          mobileHome: '四川',
-          appId: '123',
-          lastCallbackMsg: 'CALL OK',
-          operatorBalancePprice: 100.55,
-          batchCount: 5,
-          customerProducts: '???',
-          channelProducts: '??',
-          operatorId: '123456789',
-          recordLog: 'SOURCE'
-        }
+      Name: '',
+      // phone:true,    //控制批量手机号
+      tableData: [],
+      // tableData: [
+      //   { orderId: '1618675202869450462',
+      //     userName: 'test',
+      //     extorderId: 'CD2104253953427952',
+      //     usedMobile: '18820454014',
+      //     applyDateStart: '2021-04-26 00:00:00',
+      //     applyDateEnd: '2021-04-26 23:59:59',
+      //     enterpriseIdDesc: '山东茶蛋信息技术有限公司',
+      //     channelIdDesc: 'BF移动',
+      //     status: '充值成功',
+      //     mobileOperator: '移动',
+      //     flowAmount: '10',
+      //     checkTimeStart: '2021-04-25 00:39:53',
+      //     checkTimeEnd: '2021-04-25 23:39:53',
+      //     dealFlag: '已回调',
+      //     mobileHome: '广东-茂名-移动' },
+      //   { orderId: '1618675202869450462',
+      //     userName: 'test',
+      //     extorderId: 'CD2104253953427952',
+      //     usedMobile: '18820454014',
+      //     applyDateStart: '2021-04-26 00:00:00',
+      //     applyDateEnd: '2021-04-26 23:59:59',
+      //     enterpriseIdDesc: '山东茶蛋信息技术有限公司',
+      //     channelIdDesc: 'BF移动',
+      //     status: '充值成功',
+      //     mobileOperator: '移动',
+      //     flowAmount: '10',
+      //     checkTimeStart: '2021-04-25 00:39:53',
+      //     checkTimeEnd: '2021-04-25 23:39:53',
+      //     dealFlag: '已回调',
+      //     mobileHome: '广东-茂名-移动' },
+      //   { orderId: '1618675202869450462',
+      //     userName: 'test',
+      //     extorderId: 'CD2104253953427952',
+      //     usedMobile: '18820454014',
+      //     applyDateStart: '2021-04-26 00:00:00',
+      //     applyDateEnd: '2021-04-26 23:59:59',
+      //     enterpriseIdDesc: '山东茶蛋信息技术有限公司',
+      //     channelIdDesc: 'BF移动',
+      //     status: '充值成功',
+      //     mobileOperator: '移动',
+      //     flowAmount: '10',
+      //     checkTimeStart: '2021-04-25 00:39:53',
+      //     checkTimeEnd: '2021-04-25 23:39:53',
+      //     dealFlag: '已回调',
+      //     mobileHome: '广东-茂名-移动' },
+      //   { orderId: '1618675202869450462',
+      //     userName: 'test',
+      //     extorderId: 'CD2104253953427952',
+      //     usedMobile: '18820454014',
+      //     applyDateStart: '2021-04-26 00:00:00',
+      //     applyDateEnd: '2021-04-26 23:59:59',
+      //     enterpriseIdDesc: '山东茶蛋信息技术有限公司',
+      //     channelIdDesc: 'BF移动',
+      //     status: '充值成功',
+      //     mobileOperator: '移动',
+      //     flowAmount: '10',
+      //     checkTimeStart: '2021-04-25 00:39:53',
+      //     checkTimeEnd: '2021-04-25 23:39:53',
+      //     dealFlag: '已回调',
+      //     mobileHome: '广东-茂名-移动' }
+      // ],
+      applyDateStart: '', // 发送时间
+      checkTimeStart: '', // 回调时间
+      flowAmount: '', // 面额乘以10000
+      body: {
+        Id: '',
+        orderId: '',
+        extorderId: '',
+        usedMobile: '',
+        applyDateStart: '',
+        applyDateEnd: '',
+        enterpriseIdDesc: '',
+        channelIdDesc: '',
+        status: '',
+        mobileOperator: '',
+        flowAmount: '',
+        checkTimeStart: '',
+        checkTimeEnd: '',
+        dealFlag: '',
+        mobileHome: '',
+        page: 1,
+        size: 10
+      },
+      total: 0, // 总数据
+      loading: false,
+      status: [
+        { id: 1, name: '待发' },
+        { id: 2, name: '已发' },
+        { id: 6, name: '成功' },
+        { id: 4, name: '失败' },
+        { id: 5, name: '风控' }
+      ],
+      mobileOperator: [
+        { id: 'YD', name: '移动' },
+        { id: 'LT', name: '联通' },
+        { id: 'DX', name: '电信' }
+      ],
+      dealFlag: [
+        { id: '0', name: '运营商处理中' },
+        { id: '1', name: '待回调' },
+        { id: '3', name: '以回调' },
+        { id: '2', name: '无需回调' }
       ]
     }
+  },
+  created() {
+    const nowDate = new Date()
+    const date = {
+      year: nowDate.getFullYear(),
+      month: nowDate.getMonth() + 1,
+      date: nowDate.getDate()
+    }
+    const systemTime = date.year + '-' + date.month + '-' + date.date
+    // this.body.applyDateStart = "2021-05-14 + " 00:00:00"
+    this.applyDateStart = [systemTime + ' 00:00:00', systemTime + ' 23:59:59']
+    this.body.applyDateStart = systemTime + ' 00:00:00'
+    this.body.applyDateEnd = systemTime + ' 23:59:59'
+    // this.body.applyDateEnd = systemTime + " 23:59:59"
+    // this.
+    this.getTenantList()
+  },
+  methods: {
+    // 获取数据
+    getTenantList() {
+      this.loading = true
+      ordersearch(this.body).then(res => {
+        this.loading = false
+        // this.tableData=res.data.data.records
+        // limitedDate :发送时间
+        // lastModifyDate :回调
+        // usedTime   :用时
+        const tableData = res.data.data.records
+        const arry = tableData.map((res) => {
+          if (res.lastModifyDate != null && res.lastModifyDate != '') {
+            const limitedDate = res.limitedDate
+            const lastModifyDate = res.lastModifyDate
+            // 发送时间 减去  回调时间
+            const date = new Date(limitedDate)
+            const time = date.valueOf()
+            const modify = new Date(lastModifyDate)
+            const last = modify.valueOf()
+            const used = last - time
+            res.usedTime = used
+          }
+          return res
+        })
+        this.tableData = arry
+        console.log(arry)
+        this.total = res.data.data.total
+        console.log(res.data.data.records)
+      })
+    },
+    // 搜索手机号
+    onphon() {
+      console.log(this.phone)
+    },
+    // 搜索面额
+    changeflow() {
+      const flow = this.flowAmount
+      // let body=this.body.flowAmount;
+      this.body.flowAmount = flow * 10000
+    },
+    // 搜索发送时间
+    oncustom() {
+      const applyDateStart = this.applyDateStart
+      this.body.applyDateStart = applyDateStart[0]
+      this.body.applyDateEnd = applyDateStart[1]
+      // console.log(applyDateStart)
+      // console.log(this.body.applyDateStart)
+    },
+    // 搜索回调时间
+    oncheckTimeStart() {
+      // checkTimeStart:"",
+      //   checkTimeEnd:"",
+      const checkTimeStart = this.checkTimeStart
+      this.body.checkTimeStart = checkTimeStart[0]
+      this.body.checkTimeEnd = checkTimeStart[1]
+    },
+    // 搜索状态
+    changeScope() {
+      console.log(this.body.status)
+    },
+    // 运营商
+    changeoperator() {
+      console.log(this.body.mobileOperator)
+    },
+    // 搜索
+    handleSearch() {
+      console.log(this.applyDateStart)
+      this.body.page = 1
+      if (this.applyDateStart == null) { // 发送时间为空时清空 body 里的发送时间
+        this.body.applyDateEnd = ''
+        this.body.applyDateStart = ''
+      }
+      if (this.checkTimeStart == null) { // 回调时间
+        this.body.checkTimeStart = ''
+        this.body.checkTimeEnd = ''
+      }
+      if (this.flowAmount == null || this.flowAmount == 0) { // 面额
+        this.body.flowAmount = ''
+      }
+      this.currentPage = '1'
+      this.getTenantList()
+    },
+    //
+    handleReset() {
+
+    },
+    // 分页
+    handleSizeChange: function(val) {
+      this.body.size = val
+      this.getTenantList()
+    },
+    // 换页
+    handleCurrentChange: function(val) {
+      this.body.page = val
+      this.getTenantList()
+    }
   }
 }
 </script>
 
-<style>
-
+<style scoped>
+ .textSpan{
+   position: relative;
+   top: 0;
+     font-size: 14px;
+     font-weight: 600;
+     color:rgb(87, 86, 86)
+ }
+ .stylephone{
+    display: flex;
+ }
+ .marginphone{
+   padding-top: 9px;
+ }
+ .flex{
+     width: 100%;
+     display: flex;
+     flex-direction: row;
+     margin-bottom: 10px;
+     /* flex-wrap: wrap; */
+     /* justify-content: space-evenly; */
+ }
+ .w_date{
+     width: 66%;
+ }
+ .w_input{
+     width:33.33%;
+ }
+ .flexend{
+   display: flex;
+   justify-content: flex-end;
+   padding-top:20px;
+   padding-right: 40px;
+ }
+ .phone{
+   width:66.5% !important ;
+   z-index: 100;
+ }
+ /* .classitem{
+   background: salmon;
+ } */
 </style>

+ 664 - 0
src/views/orderList/finance.vue

@@ -0,0 +1,664 @@
+<template>
+  <div class="app-container oderList">
+    <div class="filter-container" style="margin: 10px 0 10px 0">
+      <!-- <el-row :gutter="20" style="marginBottom:20px">
+          <el-col :span="8"  :xs="12"  :lg="8">
+              <div>
+                  <span class="textSpan">
+                     订单号:
+                  </span>
+                <el-input
+                        v-model="body.orderId"
+                        style="width: 70%;"
+                        placeholder="请输入订单号"
+                        size="small"
+                        clearable
+                    />
+              </div>
+          </el-col>
+          <el-col :span="8"  :xs="12"  :lg="8">
+              <div>
+                  <span class="textSpan">
+                     商户订单号:
+                  </span>
+                <el-input
+                        v-model="body.extorderId"
+                        style="width: 70%;"
+                        placeholder="请输入商户订单号"
+                        size="small"
+                        clearable
+                    />
+              </div>
+          </el-col>
+          <el-col :span="8"  :xs="12"  :lg="8">
+              <div>
+                  <span class="textSpan">
+                     手机号码:
+                  </span>
+                <el-input
+                        v-model="body.usedMobile"
+                        style="width: 70%;"
+                        placeholder="请输入手机号码"
+                        size="small"
+                        clearable
+                    />
+              </div>
+          </el-col>
+      </el-row> -->
+      <div class="flex">
+        <div class="w_input">
+          <span class="textSpan"> 订单号:</span>
+          <el-input
+            v-model="body.orderId"
+            style="width: 65%"
+            placeholder="请输入订单号"
+            size="small"
+            clearable
+          />
+        </div>
+        <div class="w_input">
+          <span class="textSpan">客户订单号:</span>
+          <el-input
+            v-model="body.extorderId"
+            style="width: 65%"
+            placeholder="请输入客户订单号"
+            size="small"
+            clearable
+          />
+        </div>
+
+        <div class="w_input stylephone">
+          <div class="textSpan marginphone">  手机号:</div>
+          <el-input
+            v-model="body.usedMobile"
+            type="textarea"
+            :autosize="{ minRows: 1.1, maxRows: 5 }"
+            class="phone"
+            size="small"
+            placeholder="请输入内容"
+            clearable
+          />
+        </div>
+        <!-- <div class="w_input stylephone">
+          <div class="textSpan marginphone">通道订单号:</div>
+          <el-input v-model="body.Id" style="width: 67%" placeholder="请输入通道订单号" size="small" clearable/>
+        </div> -->
+      </div>
+      <div class="flex">
+        <div class="w_date">
+          <span class="textSpan">回调时间:</span>
+          <el-date-picker
+            v-model="checkTimeStart"
+            size="small"
+            type="datetimerange"
+            range-separator="至"
+            style="width: 78%"
+            value-format="yyyy-MM-dd HH:mm:ss"
+            :default-time="['00:00:00', '23:59:59']"
+            start-placeholder="开始日期"
+            end-placeholder="结束日期"
+            @change="oncheckTimeStart"
+          />
+        </div>
+        <div class="w_date">
+          <span class="textSpan">发送时间:</span>
+          <el-date-picker
+            v-model="applyDateStart"
+            size="small"
+            type="datetimerange"
+            style="width: 79%"
+            range-separator="至"
+            value-format="yyyy-MM-dd HH:mm:ss"
+            :default-time="['00:00:00', '23:59:59']"
+            start-placeholder="开始日期"
+            end-placeholder="结束日期"
+            @change="oncustom"
+          />
+        </div>
+      </div>
+      <div class="flex">
+        <div class="w_input">
+          <span class="textSpan">通道名称:</span>
+          <el-input
+            v-model="body.channelIdDesc"
+            style="width: 65%"
+            placeholder="请输入通道名称"
+            size="small"
+            clearable
+          />
+        </div>
+        <div class="w_input">
+          <span class="textSpan"> 订单状态:</span>
+          <el-select
+            v-model="body.status"
+            size="small"
+            clearable
+            placeholder="请选择订单状态"
+            style="width: 65%"
+            @change="changeScope"
+          >
+            <el-option
+              v-for="item in status"
+              :key="item.id"
+              :label="item.name"
+              :value="item.id"
+            />
+          </el-select>
+        </div>
+        <div class="w_input">
+          <span class="textSpan">  运营商:</span>
+          <el-select
+            v-model="body.mobileOperator"
+            size="small"
+            clearable
+            placeholder="请选择运营商"
+            style="width: 65%"
+            @change="changeoperator"
+          >
+            <el-option
+              v-for="item in mobileOperator"
+              :key="item.id"
+              :label="item.name"
+              :value="item.id"
+            />
+          </el-select>
+        </div>
+      </div>
+      <div class="flex">
+        <div class="w_input">
+          <span class="textSpan">  面额:</span>
+          <el-input
+            v-model="flowAmount"
+            style="width: 65%"
+            placeholder="请输入订单号"
+            size="small"
+            clearable
+            @change="changeflow"
+          />
+        </div>
+        <div class="w_input">
+          <span class="textSpan"> 客户名称:</span>
+          <el-input
+            v-model="body.enterpriseIdDesc"
+            style="width: 65%"
+            placeholder="请输入客户名称"
+            size="small"
+            clearable
+          />
+        </div>
+        <div class="w_input">
+          <span class="textSpan">  归属地:</span>
+          <el-input
+            v-model="body.mobileHome"
+            style="width: 65%"
+            placeholder="请选择归属地"
+            size="small"
+            clearable
+          />
+        </div>
+      </div>
+      <div class="flex">
+        <div class="w_input">
+          <span class="textSpan">回调状态:</span>
+          <el-select
+            v-model="body.dealFlag"
+            size="small"
+            clearable
+            placeholder="请选择订单状态"
+            style="width: 65%"
+            @change="changeScope"
+          >
+            <el-option
+              v-for="item in dealFlag"
+              :key="item.id"
+              :label="item.name"
+              :value="item.id"
+            />
+          </el-select>
+        </div>
+      </div>
+      <div class="flexend">
+        <!-- <el-button
+          class="filter-item"
+          type="info"
+          icon="el-icon-edit"
+          plain
+          @click="handleReset"
+          >至重发
+        </el-button>
+        <el-button
+          class="filter-item"
+          type="warning"
+          icon="el-icon-message"
+          plain
+          @click="handleReset"
+          >至回调
+        </el-button>
+
+        <el-button
+          class="filter-item"
+          icon="el-icon-delete"
+          type="danger"
+          plain
+          @click="handleReset"
+          >至失败
+        </el-button>
+        <el-button
+          class="filter-item"
+          type="success"
+          icon="el-icon-check"
+          plain
+          @click="handleReset"
+          >至成功
+        </el-button> -->
+
+        <el-button
+          class="classitem"
+          style="marginright: 50px"
+          type="primary"
+          plain
+          icon="el-icon-star-off"
+          @click="handleReset"
+        >导出
+        </el-button>
+        <el-button
+          class="filter-item"
+          icon="el-icon-search"
+          type="primary"
+          plain
+          @click="handleSearch"
+        >搜索</el-button>
+      </div>
+    </div>
+    <div style="paddingbottom: 15px; marginright: 15px">
+      <el-tag
+        class="money"
+      >客户结算总价:<span class="money_span">{{ sum }}</span></el-tag>
+      <el-tag
+        class="money"
+      >合作伙伴结算总价:<span class="money_span">{{ sum }}</span></el-tag>
+      <el-tag
+        class="money"
+      >运营商结算总价:<span class="money_span">{{ sum }}</span></el-tag>
+    </div>
+
+    <el-table v-loading="loading" :data="tableData" border style="width: 100%">
+      <el-table-column type="selection" width="40" />
+
+      <el-table-column
+        label="订单号"
+        width="120"
+        align="center"
+        show-overflow-tooltip
+      >
+        <template slot-scope="scope">
+          <span>{{ scope.row.orderId }}</span>
+        </template>
+      </el-table-column>
+
+      <el-table-column
+        label="面额"
+        width="70"
+        align="center"
+        show-overflow-tooltip
+      >
+        <template slot-scope="scope">
+          <span>{{ scope.row.flowAmount }}</span>
+        </template>
+      </el-table-column>
+
+      <el-table-column label="客户价格" width="80" align="center">
+        <template slot-scope="scope">
+          <span>{{ scope.row.price }}</span>
+        </template>
+      </el-table-column>
+
+      <el-table-column label="运营商价格" width="100" align="center">
+        <template slot-scope="scope">
+          <span>{{ scope.row.operatorBalancePrice }}</span>
+        </template>
+      </el-table-column>
+
+      <el-table-column label="代理商价格" width="100" align="center">
+        <template slot-scope="scope">
+          <span>{{ scope.row.partnerBalancePrice }}</span>
+        </template>
+      </el-table-column>
+
+      <el-table-column
+        label="运营商"
+        width="70"
+        align="center"
+        show-overflow-tooltip
+      >
+        <template slot-scope="scope">
+          <span>{{ scope.row.mobileOperator }}</span>
+        </template>
+      </el-table-column>
+
+      <el-table-column
+        label="归属地"
+        width="70"
+        align="center"
+        show-overflow-tooltip
+      >
+        <template slot-scope="scope">
+          <span>{{ scope.row.mobileHome }}</span>
+        </template>
+      </el-table-column>
+
+      <el-table-column
+        label="手机号码"
+        width="110"
+        align="center"
+        show-overflow-tooltip
+      >
+        <template slot-scope="scope">
+          <span>{{ scope.row.usedMobile }}</span>
+        </template>
+      </el-table-column>
+
+      <el-table-column
+        label="通道名称"
+        width="90"
+        align="center"
+        show-overflow-tooltip
+      >
+        <template slot-scope="scope">
+          <span>{{ scope.row.channelName }}</span>
+        </template>
+      </el-table-column>
+
+      <el-table-column
+        label="客户名称"
+        width="100"
+        align="center"
+        prop="createTime"
+        show-overflow-tooltip
+      >
+        <template slot-scope="scope">
+          <span>{{ scope.row.customerName }}</span>
+        </template>
+      </el-table-column>
+
+      <el-table-column
+        label="客户订单号"
+        width="120"
+        align="center"
+        show-overflow-tooltip
+      >
+        <template slot-scope="scope">
+          <span>{{ scope.row.extorderId }}</span>
+        </template>
+      </el-table-column>
+
+      <el-table-column
+        label="订单状态"
+        width="90"
+        align="center"
+        show-overflow-tooltip
+      >
+        <template slot-scope="scope">
+          <el-tag v-if="scope.row.status === 1" size="small">充值中</el-tag>
+          <el-tag v-if="scope.row.status === 2" size="small">待充值</el-tag>
+          <el-tag v-if="scope.row.status === 3" size="small">重发</el-tag>
+          <el-tag v-if="scope.row.status === 4" size="small">充值成功</el-tag>
+          <el-tag v-if="scope.row.status === 5" size="small">回调</el-tag>
+          <el-tag v-if="scope.row.status === 6" size="small">充值失败</el-tag>
+        </template>
+      </el-table-column>
+
+      <!-- <el-table-column label="产品ID" width="100" align="center" show-overflow-tooltip>
+        <template slot-scope="scope">
+          <span>{{ scope.row.packageId }}</span>
+        </template>
+      </el-table-column> -->
+
+      <el-table-column label="发送时间" width="160" align="center">
+        <template slot-scope="scope">
+          <span>{{ scope.row.limitedDate }}</span>
+        </template>
+      </el-table-column>
+
+      <el-table-column label="回调时间" width="160" align="center">
+        <template slot-scope="scope">
+          <span>{{ scope.row.lastModifyDate }}</span>
+        </template>
+      </el-table-column>
+    </el-table>
+
+    <!--分页-->
+    <div class="pagination">
+      <el-pagination
+        current-page.sync="body.page"
+        :current-page="body.page"
+        :page-sizes="[10, 20, 30, 50]"
+        :page-size="body.size"
+        layout="total, sizes, prev, pager, next, jumper"
+        background
+        :total="total"
+        @size-change="handleSizeChange"
+        @current-change="handleCurrentChange"
+      />
+    </div>
+  </div>
+</template>
+
+<script>
+import api from '@/api/orderList'
+export default {
+  data() {
+    return {
+      Name: '',
+      // phone:true,    //控制批量手机号
+      tableData: [],
+      applyDateStart: '', // 发送时间
+      checkTimeStart: '', // 回调时间
+      flowAmount: '', // 面额乘以10000
+      body: {
+        Id: '',
+        orderId: '',
+        extorderId: '',
+        usedMobile: '',
+        applyDateStart: '',
+        applyDateEnd: '',
+        enterpriseIdDesc: '',
+        channelIdDesc: '',
+        status: '',
+        mobileOperator: '',
+        flowAmount: '',
+        checkTimeStart: '',
+        checkTimeEnd: '',
+        dealFlag: '',
+        mobileHome: '',
+        page: 1,
+        size: 10
+      },
+      total: 0, // 总数据
+      sum: 10100,
+      loading: false,
+      status: [
+        { id: 1, name: '待发' },
+        { id: 2, name: '已发' },
+        { id: 6, name: '成功' },
+        { id: 4, name: '失败' },
+        { id: 5, name: '风控' }
+      ],
+      mobileOperator: [
+        { id: 'YD', name: '移动' },
+        { id: 'LT', name: '联通' },
+        { id: 'DX', name: '电信' }
+      ],
+      dealFlag: [
+        { id: '0', name: '运营商处理中' },
+        { id: '1', name: '待回调' },
+        { id: '3', name: '以回调' },
+        { id: '2', name: '无需回调' }
+      ]
+    }
+  },
+  created() {
+    const nowDate = new Date()
+    const date = {
+      year: nowDate.getFullYear(),
+      month: nowDate.getMonth() + 1,
+      date: nowDate.getDate()
+    }
+    const systemTime = date.year + '-' + date.month + '-' + date.date
+    // this.body.applyDateStart = "2021-05-14 + " 00:00:00"
+    this.applyDateStart = [systemTime + ' 00:00:00', systemTime + ' 23:59:59']
+    this.body.applyDateStart = systemTime + ' 00:00:00'
+    this.body.applyDateEnd = systemTime + ' 23:59:59'
+    // this.body.applyDateEnd = systemTime + " 23:59:59"
+    // this.
+    this.getTenantList()
+  },
+  methods: {
+    // 获取数据
+    getTenantList() {
+      this.loading = true
+      api.finance.Search(this.body).then((res) => {
+        this.loading = false
+        // this.tableData=res.data.data.records
+        // limitedDate :发送时间
+        // lastModifyDate :回调
+        // usedTime   :用时
+        const tableData = res.data.data.records
+        const arry = tableData.map((res) => {
+          if (res.lastModifyDate != null && res.lastModifyDate != '') {
+            const limitedDate = res.limitedDate
+            const lastModifyDate = res.lastModifyDate
+            // 发送时间 减去  回调时间
+            const date = new Date(limitedDate)
+            const time = date.valueOf()
+            const modify = new Date(lastModifyDate)
+            const last = modify.valueOf()
+            const used = last - time
+            res.usedTime = used
+          }
+          return res
+        })
+        this.tableData = arry
+        console.log(arry)
+        this.total = res.data.data.total
+        console.log(res.data.data.records)
+      })
+    },
+    // 搜索手机号
+    onphon() {
+      console.log(this.phone)
+    },
+    // 搜索面额
+    changeflow() {
+      const flow = this.flowAmount
+      // let body=this.body.flowAmount;
+      this.body.flowAmount = flow * 10000
+    },
+    // 搜索发送时间
+    oncustom() {
+      const applyDateStart = this.applyDateStart
+      this.body.applyDateStart = applyDateStart[0]
+      this.body.applyDateEnd = applyDateStart[1]
+      // console.log(applyDateStart)
+      // console.log(this.body.applyDateStart)
+    },
+    // 搜索回调时间
+    oncheckTimeStart() {
+      // checkTimeStart:"",
+      //   checkTimeEnd:"",
+      const checkTimeStart = this.checkTimeStart
+      this.body.checkTimeStart = checkTimeStart[0]
+      this.body.checkTimeEnd = checkTimeStart[1]
+    },
+    // 搜索状态
+    changeScope() {
+      console.log(this.body.status)
+    },
+    // 运营商
+    changeoperator() {
+      console.log(this.body.mobileOperator)
+    },
+    // 搜索
+    handleSearch() {
+      console.log(this.applyDateStart)
+      this.body.page = 1
+      if (this.applyDateStart == null) {
+        // 发送时间为空时清空 body 里的发送时间
+        this.body.applyDateEnd = ''
+        this.body.applyDateStart = ''
+      }
+      if (this.checkTimeStart == null) {
+        // 回调时间
+        this.body.checkTimeStart = ''
+        this.body.checkTimeEnd = ''
+      }
+      if (this.flowAmount == null || this.flowAmount == 0) {
+        // 面额
+        this.body.flowAmount = ''
+      }
+      this.currentPage = '1'
+      this.getTenantList()
+    },
+    //
+    handleReset() {},
+    // 分页
+    handleSizeChange: function(val) {
+      this.body.size = val
+      this.getTenantList()
+    },
+    // 换页
+    handleCurrentChange: function(val) {
+      this.body.page = val
+      this.getTenantList()
+    }
+  }
+}
+</script>
+
+<style scoped>
+.money {
+  font-size: 15px;
+  font-weight: 650;
+}
+
+.textSpan {
+  position: relative;
+  top: 0;
+  font-size: 14px;
+  font-weight: 600;
+  color: rgb(87, 86, 86);
+}
+.stylephone {
+  display: flex;
+}
+.marginphone {
+  padding-top: 9px;
+}
+.flex {
+  width: 100%;
+  display: flex;
+  flex-direction: row;
+  margin-bottom: 10px;
+  /* flex-wrap: wrap; */
+  /* justify-content: space-evenly; */
+}
+.w_date {
+  width: 66%;
+}
+.w_input {
+  width: 33.33%;
+}
+.flexend {
+  display: flex;
+  justify-content: flex-end;
+  padding-top: 20px;
+  padding-right: 40px;
+}
+.phone {
+  width: 66% !important ;
+  z-index: 100;
+}
+/* .classitem{
+   background: salmon;
+ } */
+</style>

+ 138 - 409
src/views/userList/index.vue

@@ -1,235 +1,271 @@
 <template>
-  <div>
+  <div class="app-container">
+    <div class="filter-container" style="margin: 10px 0 10px 0">
+      <span class="textSpan">客户名称:</span>
+      <el-input v-model="body.supplierName" style="width:200px;" placeholder="客户名称" size="small" clearable />
+      <el-button class="filter-item" icon="el-icon-search" type="primary" plain @click="reLoad">搜索</el-button>
+      <el-button class="classitem" style="marginRight:50px" type="primary" plain icon="el-icon-plus" @click="NewUser">新增</el-button>
+    </div>
+
     <el-table v-loading="loading" :data="tableData" border style="width: 100%">
-      <el-table-column type="selection" />
+      <!-- <el-table-column type="selection" /> -->
 
-      <el-table-column label="客户ID" width="200" align="center">
+      <!-- <el-table-column label="客户ID" width="100" align="center" show-overflow-tooltip>
         <template slot-scope="scope">
           <span>{{ scope.row.customerId }}</span>
         </template>
-      </el-table-column>
+      </el-table-column> -->
 
-      <el-table-column label="代理商提成(按照面额提成,默认0)" width="200" align="center">
+      <!-- <el-table-column label="代理商提成" width="100" align="center" show-overflow-tooltip>
         <template slot-scope="scope">
           <span>{{ scope.row.partnerCommission }}</span>
         </template>
-      </el-table-column>
+      </el-table-column> -->
 
-      <el-table-column label="代理商ID(中间人)" width="200" align="center">
+      <!-- <el-table-column label="代理商ID" width="100" align="center" show-overflow-tooltip>
         <template slot-scope="scope">
           <span>{{ scope.row.partnerId }}</span>
         </template>
-      </el-table-column>
+      </el-table-column> -->
 
-      <el-table-column label="客户身份ID" width="200" align="center">
+      <!-- <el-table-column label="客户身份ID" width="100" align="center" show-overflow-tooltip>
         <template slot-scope="scope">
           <span>{{ scope.row.identityId }}</span>
         </template>
-      </el-table-column>
+      </el-table-column> -->
 
-      <el-table-column label="合作伙伴类型;1:流量营销 2:渠道直充" width="200" align="center">
+      <!-- <el-table-column label="合作伙伴类型" width="110" 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>
+      </el-table-column> -->
 
-      <el-table-column label="客户名称" width="200" align="center">
+      <el-table-column label="客户名称" align="center" show-overflow-tooltip>
         <template slot-scope="scope">
           <span>{{ scope.row.customerName }}</span>
         </template>
       </el-table-column>
 
-      <el-table-column label="客户简称" width="200" align="center">
+      <el-table-column label="客户简称" align="center" show-overflow-tooltip>
         <template slot-scope="scope">
           <span>{{ scope.row.shorterName }}</span>
         </template>
       </el-table-column>
 
-      <el-table-column label="联系人姓名" width="200" align="center">
+      <!-- <el-table-column label="联系人姓名" width="110" align="center" show-overflow-tooltip>
         <template slot-scope="scope">
           <span>{{ scope.row.linkmanName }}</span>
         </template>
-      </el-table-column>
+      </el-table-column> -->
 
-      <el-table-column label="联系人电话" width="200" align="center">
+      <!-- <el-table-column label="联系人电话" width="100" align="center" show-overflow-tooltip>
         <template slot-scope="scope">
           <span>{{ scope.row.linkmanMobile }}</span>
         </template>
-      </el-table-column>
+      </el-table-column> -->
 
-      <el-table-column label="联系人邮箱" width="200" align="center">
+      <!-- <el-table-column label="联系人邮箱" width="100" align="center" show-overflow-tooltip>
         <template slot-scope="scope">
           <span>{{ scope.row.linkmanEmail }}</span>
         </template>
-      </el-table-column>
+      </el-table-column> -->
 
-      <el-table-column label="联系人地址" width="200" align="center">
+      <!-- <el-table-column label="联系人地址" width="100" align="center" show-overflow-tooltip>
         <template slot-scope="scope">
           <span>{{ scope.row.address }}</span>
         </template>
-      </el-table-column>
+      </el-table-column> -->
 
-      <el-table-column label="状态" width="200" align="center">
+      <el-table-column label="状态" align="center">
         <template slot-scope="scope">
-           <el-tag v-if="scope.row.status === 0" size="small">待提交</el-tag>
-           <el-tag v-if="scope.row.status === 1" size="small">商用</el-tag>
-            <el-tag v-if="scope.row.status === 2" size="small">暂停</el-tag>
+          <el-tag v-if="scope.row.status === 0" size="small">待提交</el-tag>
+          <el-tag v-if="scope.row.status === 1" size="small">商用</el-tag>
+          <el-tag v-if="scope.row.status === 2" size="small">暂停</el-tag>
         </template>
       </el-table-column>
 
-      <el-table-column label="登录帐号" width="200" align="center">
+      <!-- <el-table-column label="登录帐号" width="100" align="center" show-overflow-tooltip>
         <template slot-scope="scope">
           <span>{{ scope.row.account }}</span>
         </template>
-      </el-table-column>
+      </el-table-column> -->
 
-      <el-table-column label="登录密码,md5加密字符串" width="200" align="center">
+      <!-- <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> -->
 
-      <el-table-column label="服务密码,有APP终端客户自行修改;初始密码为“888888" width="200" align="center">
+      <!-- <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> -->
 
-      <el-table-column label="支付密码,渠道营销客户无此字段内容" width="200" align="center">
+      <!-- <el-table-column label="支付密码,渠道营销客户无此字段内容" width="200" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.payPasswd }}</span>
         </template>
-      </el-table-column>
+      </el-table-column> -->
 
-      <el-table-column label="Logo图片组ID" width="200" align="center">
+      <!-- <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> -->
 
-      <el-table-column label="Logo图片URL" width="200" align="center">
+      <!-- <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> -->
 
-      <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.twoCode }}</span>
         </template>
-      </el-table-column>
+      </el-table-column> -->
 
-      <el-table-column label="二维码图片URL" width="200" align="center">
+      <!-- <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> -->
 
-      <el-table-column label="Logo图片组ID" width="200" align="center">
+      <!-- <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> -->
 
-      <el-table-column label="Logo图片组ID" width="200" align="center">
+      <!-- <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> -->
 
-      <el-table-column label="微信号" width="200" align="center">
+      <!-- <el-table-column label="微信号" width="200" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.wechatNo }}</span>
         </template>
-      </el-table-column>
+      </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.settlePrice }}</span>
         </template>
-      </el-table-column>
+      </el-table-column> -->
 
-      <el-table-column label="帐号余额" width="200" align="center">
+      <el-table-column label="帐号余额" align="center" show-overflow-tooltip>
         <template slot-scope="scope">
           <span>{{ scope.row.balance }}</span>
         </template>
       </el-table-column>
 
-      <el-table-column label="Logo图片组ID" width="200" align="center">
+      <!-- <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> -->
 
-      <el-table-column label="授信额度" width="200" align="center">
+      <el-table-column label="授信额度" align="center" show-overflow-tooltip>
         <template slot-scope="scope">
           <span>{{ scope.row.creditAmount }}</span>
         </template>
       </el-table-column>
 
-      <el-table-column label="当前费用" width="200" align="center">
+      <el-table-column label="当前费用" align="center" show-overflow-tooltip>
         <template slot-scope="scope">
           <span>{{ scope.row.currentAmount }}</span>
         </template>
       </el-table-column>
 
-      <el-table-column label="是否第一次登录,1:不是0:是" width="200" align="center">
+      <!-- <el-table-column label="是否第一次登录,1:不是0:是" width="200" align="center">
         <template slot-scope="scope">
           <span>{{ scope.row.isFirstLogin }}</span>
         </template>
-      </el-table-column>
+      </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>
+          <el-tag v-if="scope.row.isDeleted==1" type="danger">已删除</el-tag>
+          <el-tag v-if="scope.row.isDeleted==0" type="danger">未删除</el-tag>
         </template>
-      </el-table-column>
+      </el-table-column> -->
 
-      <el-table-column label="创建者" width="200" align="center">
+      <!-- <el-table-column label="创建者" width="100" align="center" show-overflow-tooltip>
         <template slot-scope="scope">
           <span>{{ scope.row.creator }}</span>
         </template>
-      </el-table-column>
+      </el-table-column> -->
 
-      <el-table-column label="创建时间" width="200" align="center">
+      <el-table-column label="创建时间" width="200" align="center" show-overflow-tooltip>
         <template slot-scope="scope">
           <span>{{ scope.row.createTime }}</span>
         </template>
       </el-table-column>
 
-      <el-table-column label="修改者" width="200" align="center">
+      <!-- <el-table-column label="修改者" width="100" align="center" show-overflow-tooltip>
         <template slot-scope="scope">
           <span>{{ scope.row.updator }}</span>
         </template>
-      </el-table-column>
+      </el-table-column> -->
 
-      <el-table-column label="修改时间" width="200" align="center">
+      <!-- <el-table-column label="修改时间" width="200" align="center" show-overflow-tooltip>
         <template slot-scope="scope">
           <span>{{ scope.row.updateTime }}</span>
         </template>
-      </el-table-column>
+      </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">
+      <!-- <el-table-column label="客户登录账户id" width="100" align="center" show-overflow-tooltip>
         <template slot-scope="scope">
           <span>{{ scope.row.userId }}</span>
         </template>
+      </el-table-column> -->
+
+      <el-table-column label="操作" fixed="right" min-width="200" align="center">
+        <template slot-scope="scope">
+          <el-button size="small" icon="el-icon-edit" type="warning" @click="ModifyEdit(scope.row)">编辑</el-button>
+          <el-button size="small" icon="el-icon-delete" type="danger" @click="ModifyDelete(scope.row)">删除</el-button>
+        </template>
       </el-table-column>
 
     </el-table>
+
+    <div class="pagination">
+      <el-pagination
+        current-page.sync="body.current"
+        :current-page="body.current"
+        :page-sizes="[10, 20, 30, 50]"
+        :page-size="body.size"
+        layout="total, sizes, prev, pager, next, jumper"
+        background
+        :total="total"
+        @size-change="handleSizeChange"
+        @current-change="handleCurrentChange"
+      />
+    </div>
+
   </div>
 </template>
 
 <script>
-import { Search } from '@/api/userList'
+import api from '@/api/userList'
 export default {
   data() {
     return {
+      body: {
+        size: 10,
+        current: 1
+      },
+      total: 1,
       tableData: [
         {
           customerId: '123456789',
@@ -253,337 +289,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: '99999',
           creditAmount: '10000',
           currentAmount: '154842',
           isFirstLogin: '1',
@@ -599,19 +305,42 @@ export default {
     }
   },
   created() {
-    this.search()
+    this.reLoad()
   },
   methods: {
-    search: function(operator) {
-      console.log('test')
-      Search(operator).then((res) => {
-        this.tableData = res.data.records
+    NewUser() {
+      console.log('NewUser')
+    },
+    ModifyEdit() {
+      console.log('ModifyEdit')
+    },
+    ModifyDelete() {
+      console.log('ModifyDelete')
+    },
+    reLoad() {
+      api.Search(this.body).then((res) => {
+        this.tableData = res.data.data.records
+        this.total = res.data.data.total
       })
+    },
+    handleSizeChange(val) {
+      this.body.size = val
+      this.reLoad()
+    },
+    handleCurrentChange(val) {
+      this.body.page = val
+      this.reLoad()
     }
   }
 }
 </script>
 
 <style>
-
+.textSpan{
+   position: relative;
+   top: 0;
+     font-size: 14px;
+     font-weight: 600;
+     color:rgb(87, 86, 86)
+ }
 </style>