xiaozhen 6 роки тому
батько
коміт
0502e42d92
46 змінених файлів з 286 додано та 520 видалено
  1. 2 2
      dist/200.html
  2. 10 10
      dist/README.md
  3. 0 1
      dist/_nuxt/0736cc865d13161979fb.js
  4. 0 1
      dist/_nuxt/0ee440e9ffc7cf2441e9.js
  5. 0 1
      dist/_nuxt/110db793a252ecfa5ca3.js
  6. 0 1
      dist/_nuxt/153f07e9ce3f607879fd.js
  7. 0 1
      dist/_nuxt/25b2d15bc83504e08164.js
  8. 0 1
      dist/_nuxt/2b2b0b1e8f022a740ed7.js
  9. 0 1
      dist/_nuxt/2cd9205a24056ea04816.js
  10. 0 1
      dist/_nuxt/346f0576eea38130a831.js
  11. 0 1
      dist/_nuxt/3b7ddff9dac8c19b9e39.js
  12. 0 1
      dist/_nuxt/3dc05c3e6c098a753ac9.js
  13. 0 1
      dist/_nuxt/410fa217af0171db6250.js
  14. 0 1
      dist/_nuxt/5442429d857b24b00512.js
  15. 0 2
      dist/_nuxt/5abd89397cbbb6040f39.js
  16. 0 1
      dist/_nuxt/6947be2bf2ec45fb5997.js
  17. 0 1
      dist/_nuxt/74236d9aea0b29851ce2.js
  18. 0 1
      dist/_nuxt/755621853242672f20d8.js
  19. 0 1
      dist/_nuxt/7a001e5d23ea771b2d35.js
  20. 0 1
      dist/_nuxt/82f9bb590835b249003f.js
  21. 0 1
      dist/_nuxt/87c944c162b35a8baead.js
  22. 0 1
      dist/_nuxt/89848892cfdda6454255.js
  23. 0 1
      dist/_nuxt/8c8c9f53224aa31de737.js
  24. 0 1
      dist/_nuxt/972fe2fb91b4f0717145.js
  25. 0 1
      dist/_nuxt/9b38157fb03a4ebafa53.js
  26. 0 2
      dist/_nuxt/9e83a0b45e877af4c9b9.js
  27. 0 1
      dist/_nuxt/a02e53f8e466015d9905.js
  28. 0 1
      dist/_nuxt/a12cc43adf87741c5054.js
  29. 0 1
      dist/_nuxt/afa3d8489f809e6e9141.js
  30. 0 1
      dist/_nuxt/b5dc9e8840875f40d5dc.js
  31. 0 1
      dist/_nuxt/ba402352d64aa48d96a1.js
  32. 0 1
      dist/_nuxt/c5e74de431ebb3afba8c.js
  33. 0 1
      dist/_nuxt/caa6e29c19142d941711.js
  34. 0 1
      dist/_nuxt/ce441e46aebd7a2cb5cc.js
  35. 0 1
      dist/_nuxt/ed193242f2c2b8bad805.js
  36. 0 1
      dist/_nuxt/ed88e3b7b2fc410fcf4f.js
  37. 0 1
      dist/_nuxt/f10c92c208e54ba206a5.js
  38. 0 1
      dist/_nuxt/f52d7bcec462ad902040.js
  39. 0 1
      dist/_nuxt/fe49e6a60b9b96c0f74d.js
  40. 2 2
      dist/index.html
  41. 2 2
      dist/login/index.html
  42. 2 2
      dist/main/index.html
  43. 179 107
      pages/main/index/balance_change.vue
  44. 77 345
      pages/main/index/orders_frozen.vue
  45. 3 3
      pages/main/index/outsource_bill.vue
  46. 9 8
      pages/main/index/user_bills.vue

Різницю між файлами не показано, бо вона завелика
+ 2 - 2
dist/200.html


+ 10 - 10
dist/README.md

@@ -1,10 +1,10 @@
-# STATIC
-
-**This directory is not required, you can delete it if you don't want to use it.**
-
-This directory contains your static files.
-Each file inside this directory is mapped to `/`.
-
-Example: `/static/robots.txt` is mapped as `/robots.txt`.
-
-More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#static).
+# STATIC
+
+**This directory is not required, you can delete it if you don't want to use it.**
+
+This directory contains your static files.
+Each file inside this directory is mapped to `/`.
+
+Example: `/static/robots.txt` is mapped as `/robots.txt`.
+
+More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#static).

Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/0736cc865d13161979fb.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/0ee440e9ffc7cf2441e9.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/110db793a252ecfa5ca3.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/153f07e9ce3f607879fd.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/25b2d15bc83504e08164.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/2b2b0b1e8f022a740ed7.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/2cd9205a24056ea04816.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/346f0576eea38130a831.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/3b7ddff9dac8c19b9e39.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/3dc05c3e6c098a753ac9.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/410fa217af0171db6250.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/5442429d857b24b00512.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 2
dist/_nuxt/5abd89397cbbb6040f39.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/6947be2bf2ec45fb5997.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/74236d9aea0b29851ce2.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/755621853242672f20d8.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/7a001e5d23ea771b2d35.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/82f9bb590835b249003f.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/87c944c162b35a8baead.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/89848892cfdda6454255.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/8c8c9f53224aa31de737.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/972fe2fb91b4f0717145.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/9b38157fb03a4ebafa53.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 2
dist/_nuxt/9e83a0b45e877af4c9b9.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/a02e53f8e466015d9905.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/a12cc43adf87741c5054.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/afa3d8489f809e6e9141.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/b5dc9e8840875f40d5dc.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/ba402352d64aa48d96a1.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/c5e74de431ebb3afba8c.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/caa6e29c19142d941711.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/ce441e46aebd7a2cb5cc.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/ed193242f2c2b8bad805.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/ed88e3b7b2fc410fcf4f.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/f10c92c208e54ba206a5.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/f52d7bcec462ad902040.js


Різницю між файлами не показано, бо вона завелика
+ 0 - 1
dist/_nuxt/fe49e6a60b9b96c0f74d.js


Різницю між файлами не показано, бо вона завелика
+ 2 - 2
dist/index.html


Різницю між файлами не показано, бо вона завелика
+ 2 - 2
dist/login/index.html


Різницю між файлами не показано, бо вона завелика
+ 2 - 2
dist/main/index.html


+ 179 - 107
pages/main/index/balance_change.vue

@@ -1,107 +1,179 @@
-<template>
-  <div>
-    <el-form ref="form" label-width="40px" :model="form">
-      <el-row :gutter="20">
-        <el-col :span="3">
-          <el-form-item label="用户">
-            <el-input placeholder="UID/昵称"></el-input>
-          </el-form-item>
-        </el-col>
-        <el-col :span="3">
-          <el-form-item label="编号">
-            <el-input placeholder="订单编号"></el-input>
-          </el-form-item>
-        </el-col>
-        <el-col :span="7">
-          <el-form-item label="时间范围" label-width="80px">
-            <el-date-picker
-              v-model="value1"
-              type="daterange"
-              range-separator="至"
-              start-placeholder="开始时间"
-              end-placeholder="结束时间">
-            </el-date-picker>
-          </el-form-item>
-        </el-col>
-        <el-button type="primary" plain>筛选</el-button>
-        <el-button plain>导出报表</el-button>
-      </el-row>
-    </el-form>
-    <el-table
-      :data="tableData" border
-      style="width: 100%">
-      <el-table-column
-        prop="date"
-        label="ID"
-        width="180">
-      </el-table-column>
-      <el-table-column
-        prop="name"
-        label="用户"
-        width="180">
-      </el-table-column>
-      <el-table-column
-        prop="address"
-        label="变动金额">
-      </el-table-column>
-      <el-table-column
-        prop="address"
-        label="变动后总金额">
-      </el-table-column>
-      <el-table-column
-        prop="address"
-        label="变动前总金额">
-      </el-table-column>
-      <el-table-column
-        prop="address"
-        label="变动后充值余额">
-      </el-table-column>
-      <el-table-column
-        prop="address"
-        label="变动后收入余额">
-      </el-table-column>
-      <el-table-column
-        prop="address"
-        label="变动前收入余额">
-      </el-table-column>
-      <el-table-column
-        prop="address"
-        label="创建时间">
-      </el-table-column>
-      <el-table-column
-        prop="address"
-        label="更新时间">
-      </el-table-column>
-      <el-table-column
-        prop="address"
-        label="订单编号">
-      </el-table-column>
-    </el-table>
-    <div class="order-footer">
-      <el-pagination
-        background
-        @current-change="getTableData"
-        @size-change="changePageSize"
-        :current-page.sync="currentPage"
-        :page-sizes="[10, 20, 30, 40]"
-        :page-size="20"
-        layout="total, sizes, prev, pager, next, jumper"
-        :total="totalCount"
-      ></el-pagination>
-    </div>
-  </div>
-</template>
-
-<script>
-export default {
-  
-}
-</script>
-
-<style lang="scss" scoped>
-  .order-footer {
-    position: absolute;
-    bottom: 10px;
-    left: 10px;
-  }
-</style>
+<template >
+  <div id="mainBody" v-if="coins">
+    <el-form ref="form" label-width="40px" :model="form">
+      <el-row :gutter="20">
+        <el-col :span="3">
+          <el-form-item label="用户">
+            <el-input placeholder="UID/昵称"></el-input>
+          </el-form-item>
+        </el-col>
+        <el-col :span="3">
+          <el-form-item label="编号">
+            <el-input placeholder="订单编号"></el-input>
+          </el-form-item>
+        </el-col>
+        <el-col :span="7">
+          <el-form-item label="时间范围" label-width="80px">
+            <el-date-picker
+              v-model="value1"
+              type="daterange"
+              range-separator="至"
+              start-placeholder="开始时间"
+              end-placeholder="结束时间">
+            </el-date-picker>
+          </el-form-item>
+        </el-col>
+        <el-button type="primary" plain>筛选</el-button>
+        <el-button plain>导出报表</el-button>
+      </el-row>
+    </el-form>
+    <el-table
+      :data="coins" border
+      style="width: 100%">
+      <el-table-column
+        prop="date"
+        label="ID"
+        width="180">
+        <template slot-scope="scope">
+          {{scope.row.id}}
+        </template>
+      </el-table-column>
+      <el-table-column
+        prop="name"
+        label="用户"
+        width="180">
+        <template slot-scope="scope">
+          {{scope.row.nickname}}({{scope.row.uid}})
+        </template>
+      </el-table-column>
+      <el-table-column
+        prop="address"
+        label="变动金额">
+        <template slot-scope="scope">
+          {{scope.row.use}}
+        </template>
+      </el-table-column>
+      <el-table-column
+        prop="address"
+        label="变动后总金额">
+        <template slot-scope="scope">
+          {{scope.row.total}}
+        </template>
+      </el-table-column>
+      <el-table-column
+        prop="address"
+        label="变动前总金额">
+        <template slot-scope="scope">
+          {{scope.row.before_total_balance/100}}
+        </template>
+      </el-table-column>
+      <el-table-column
+        prop="address"
+        label="变动后充值余额">
+        <template slot-scope="scope">
+          {{scope.row.total_recharge}}
+        </template>
+      </el-table-column>
+      <el-table-column
+        prop="address"
+        label="变动后收入余额">
+        <template slot-scope="scope">
+          {{scope.row.total_income}}
+        </template>
+      </el-table-column>
+      <el-table-column
+        prop="address"
+        label="变动前收入余额">
+        <template slot-scope="scope">
+          {{scope.row.before_income_balance}}
+        </template>
+      </el-table-column>
+      <el-table-column
+        prop="address"
+        label="创建时间">
+        <template slot-scope="scope">
+          {{scope.row.time}}
+        </template>
+      </el-table-column>
+      <el-table-column
+        prop="address"
+        label="更新时间">
+        <template slot-scope="scope">
+          {{scope.row.update_time}}
+        </template>
+      </el-table-column>
+      <el-table-column
+        prop="address"
+        label="订单编号">
+        <template slot-scope="scope">
+          {{scope.row.order_no}}
+        </template>
+      </el-table-column>
+    </el-table>
+    <div class="order-footer">
+      <el-pagination
+        background
+        @current-change="getTableData"
+        @size-change="changePageSize"
+        :current-page.sync="currentPage"
+        :page-sizes="[10, 20, 30, 40]"
+        :page-size="20"
+        layout="total, sizes, prev, pager, next, jumper"
+        :total="totalCount"
+      ></el-pagination>
+    </div>
+  </div>
+</template>
+
+<script>
+export default {
+  data(){
+    return {
+      currentPage:1,
+      currentPageSize:20,
+      coins:[],
+    }
+  },
+  mounted() {
+    this.getFinanceList();
+  },
+  methods: {
+    changePageSize(val) {
+      this.getFinanceList();
+    },
+
+    async getFinanceList() {
+      let body = {
+        page: this.currentPage,
+        size: this.currentPageSize,
+        user:this.$route.query.user,
+      };
+      const res = await this.$post("/api/admin/order/get_coins", body);
+      this.coins = res.data;
+    },
+    async downFinanceList() {
+      let body = {
+        page: this.currentPage,
+        page_size: this.currentPageSize,
+        user:this.$route.query.user
+      };
+      var url = window.location.host + "/api/admin/order/export?" + "artificial_mark=1";
+      window.location.href = "http://" + url;
+    },
+  }
+}
+</script>
+
+<style lang="scss" scoped>
+
+  .order-footer {
+    position: absolute;
+    bottom: 10px;
+    left: 10px;
+  }
+  #mainBody {
+    white-space: nowrap;
+    overflow-x: scroll;
+    height: calc(100% - 40px);
+  }
+</style>

+ 77 - 345
pages/main/index/orders_frozen.vue

@@ -1,13 +1,13 @@
 <template>
-  <div id="cloud-balance">
+  <div id="cloud-balance" v-if="tableData">
     <section class="top">
       <!-- <h3>交易订单中心</h3> -->
       <section>
         <div class="type-boxs">
           <div>
-            <span class="marginr30">待解冻金额:880.00</span>
-            <span class="marginr30">冻结订单数:888</span>
-            <span class="marginr30">待解冻订单数:10</span>
+            <span class="marginr30">待解冻金额:{{totalCoins}}</span>
+            <span class="marginr30">冻结订单数:{{totalCount}}</span>
+            <span class="marginr30">待解冻订单数:{{count}}</span>
           </div>
         </div>
         <div class="type-boxs">
@@ -79,7 +79,7 @@
     </section>-->
     <div class>
       <!-- height="250" -->
-      <el-table :data="tableData3" border style="width: 100%">
+      <el-table :data="tableData" border style="width: 100%">
         <el-table-column label="项目名称">
           <template slot-scope="scope">
             <!-- @click="clickDev(scope.row.uid)"  -->
@@ -88,18 +88,67 @@
             </span>
           </template>
         </el-table-column>
-        <el-table-column prop="name" label="用户"></el-table-column>
+        <el-table-column prop="name" label="用户">
+          <template slot-scope="scope">
+            <!-- @click="clickDev(scope.row.uid)"  -->
+            <span class="lblue point">
+              <nuxt-link :to="{path:'/main/orders_detail?id='+111}">{{scope.row.nickname}}({{scope.row.uid}})</nuxt-link>
+            </span>
+          </template>
+        </el-table-column>
         <!-- <el-table-column label="实际金额">
           <template slot-scope="scope">
             <span :class="parseInt(scope.row.money)>0?'green':'orange'">{{scope.row.money}}</span>
           </template>
         </el-table-column>-->
-        <el-table-column prop="name" label="关联订单ID"></el-table-column>
-        <el-table-column prop="name" label="类型"></el-table-column>
-        <el-table-column prop="name" label="冻结金额"></el-table-column>
-        <el-table-column prop="name" label="冻结方式"></el-table-column>
-        <el-table-column prop="name" label="创建日期"></el-table-column>
-        <el-table-column prop="name" label="解冻日期"></el-table-column>
+        <el-table-column prop="name" label="关联订单ID">
+          <template slot-scope="scope">
+            <!-- @click="clickDev(scope.row.uid)"  -->
+            <span class="lblue point">
+              <nuxt-link :to="{path:'/main/orders_detail?id='+111}">{{scope.row.order_no}}</nuxt-link>
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column prop="name" label="类型">
+          <template slot-scope="scope">
+            <!-- @click="clickDev(scope.row.uid)"  -->
+            <span class="lblue point">
+             {{scope.row.target_type_name}}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column prop="name" label="冻结金额">
+          <template slot-scope="scope">
+            <!-- @click="clickDev(scope.row.uid)"  -->
+            <span class="lblue point">
+             {{scope.row.coins}}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column prop="name" label="冻结方式">
+          <template slot-scope="scope">
+            <!-- @click="clickDev(scope.row.uid)"  -->
+            <span class="lblue point">
+             {{scope.row.target_type_name}}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column prop="name" label="创建日期">
+          <template slot-scope="scope">
+            <!-- @click="clickDev(scope.row.uid)"  -->
+            <span class="lblue point">
+             {{scope.row.create_time}}
+            </span>
+          </template>
+        </el-table-column>
+        <el-table-column prop="name" label="解冻日期">
+          <template slot-scope="scope">
+            <!-- @click="clickDev(scope.row.uid)"  -->
+            <span class="lblue point">
+             {{scope.row.end_time}}
+            </span>
+          </template>
+        </el-table-column>
         <!-- <el-table-column prop="name" width="100" label="订单类型">
           <template slot-scope="scope">
             <span v-if="scope.row.state==1" class="state-success state-border">成功</span>
@@ -108,7 +157,14 @@
             <span v-if="scope.row.state==4" class="state-faile state-border">失败</span>
           </template>
         </el-table-column>-->
-        <el-table-column prop="name" label="当前状态"></el-table-column>
+        <el-table-column prop="name" label="当前状态">
+          <template slot-scope="scope">
+            <!-- @click="clickDev(scope.row.uid)"  -->
+            <span class="lblue point">
+             {{scope.row.status_name}}
+            </span>
+          </template>
+        </el-table-column>
       </el-table>
     </div>
     <div class="order-footer">
@@ -127,69 +183,6 @@
 </template>
 
 <script>
-const tableHeaders = [
-  "项目ID",
-  "核定价格",
-  "托管费用",
-  "押金",
-  "次月托管",
-  "结算周期",
-  "结算金额",
-  "退回金额",
-  "预计发薪",
-  "发薪日期",
-  "状态",
-  "负责人",
-  "操作",
-  "备注",
-  "项目状态",
-  "账单ID",
-  "企业方",
-  "开发者",
-  "试用天数"
-];
-const tableProps = [
-  "job_id",
-  "salary",
-  "company_pay",
-  "p_company_deposit",
-  "next_period_pay",
-  "payAround",
-  "pay_to_dev",
-  "return_money",
-  "pre_send_salary_timeShow", //
-  "send_salary_time",
-  "p_status_name",
-  "chk_user",
-  "operate",
-  "settle_msg",
-  "j_status_name",
-  "id",
-  "company",
-  "dev_realname",
-  "probation_days"
-];
-const tableWidths = [
-  "80",
-  "80",
-  "100",
-  "80",
-  "100",
-  "120",
-  "80",
-  "80",
-  "90",
-  "80",
-  "80",
-  "100",
-  "80",
-  "180",
-  "80",
-  "80",
-  "100",
-  "100",
-  "80"
-];
 
 export default {
   data() {
@@ -271,129 +264,10 @@ export default {
           type: "购买"
         }
       ],
-      pickerOptions2: {
-        shortcuts: [
-          {
-            text: "全部",
-            onClick(picker) {
-              picker.$emit("pick", []);
-            }
-          },
-          {
-            text: "最近7天",
-            onClick(picker) {
-              const end = new Date();
-              const start = new Date();
-              start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
-              picker.$emit("pick", [start, end]);
-            }
-          },
-          {
-            text: "最近30天",
-            onClick(picker) {
-              const end = new Date();
-              const start = new Date();
-              start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
-              picker.$emit("pick", [start, end]);
-            }
-          },
-          {
-            text: "本周",
-            onClick(picker) {
-              var week = new Date().getDay() - 1;
-              console.log(week);
-              if (week == -1) {
-                week = 6;
-              }
-              const end = new Date();
-              const start = new Date();
-              start.setTime(start.getTime() - 3600 * 1000 * 24 * week);
-              picker.$emit("pick", [start, end]);
-            }
-          },
-          {
-            text: "本月",
-            onClick(picker) {
-              var month = new Date().getMonth + 1;
-              var year = new Date().getFullYear();
-              // console.log(month, year);
-              var day = new Date().getDate() - 1;
-              console.log(day);
-
-              const end = new Date();
-              const start = new Date();
-              start.setTime(start.getTime() - 3600 * 1000 * 24 * day);
-              picker.$emit("pick", [start, end]);
-            }
-          },
-          {
-            text: "本年",
-            onClick(picker) {
-              var month = new Date().getMonth + 1;
-              var year = new Date().getFullYear();
-              // console.log(month, year);
-              var day = new Date().getDate() - 1;
-              var firstDay = new Date(year, 0, 1);
-              var dateDiff = new Date() - firstDay;
-              var msPerDay = 1000 * 60 * 60 * 24;
-              //计算天数
-              var diffDays = Math.ceil(dateDiff / msPerDay) - 1;
-              console.log(diffDays);
-              const end = new Date();
-              const start = new Date();
-              start.setTime(start.getTime() - 3600 * 1000 * 24 * diffDays);
-              picker.$emit("pick", [start, end]);
-            }
-          }
-        ]
-      },
       timeRange: "",
       arriveTime: "",
       searchId: "",
-      tableData3: [
-        {
-          date: "2016-05-03",
-          name: "王小虎",
-          money: "200",
-          state: 1
-        },
-        {
-          date: "2016-05-02",
-          name: "王小虎",
-          money: "-100",
-          state: 2
-        },
-        {
-          date: "2016-05-04",
-          name: "王小虎",
-          money: "-100",
-          state: 3
-        },
-        {
-          date: "2016-05-01",
-          name: "王小虎",
-          money: "-100",
-          state: 4
-        },
-        {
-          date: "2016-05-08",
-          name: "王小虎",
-          money: "2100",
-          state: 1
-        },
-        {
-          date: "2016-05-06",
-          name: "王小虎",
-          money: "-1200",
-          state: 4
-        },
-        {
-          date: "2016-05-07",
-          name: "王小虎",
-          money: "-100",
-          state: 1
-        }
-      ],
+      tableData: [],
 
       // 下发的总数据
       totalData: {},
@@ -412,14 +286,7 @@ export default {
       totalCount: 0,
       currentPage: 1,
       currentPageSize: 20,
-      // 列表宽度
-      tableWidths,
-      // 列表头显示内容
-      tableHeaders,
-      // 列表头字段
-      tableProps,
       // 列表数据
-      tableData: [],
       localData: {
         env: "test"
       }
@@ -441,95 +308,15 @@ export default {
   },
   mounted() {
     this.getTableData();
-    this.getEnum();
   },
   methods: {
     // 改变订单类型
-    changeOrder() {
-      var haveAll = false;
-      for (var i = 0; i < this.orderType.length; i++) {
-        if (this.orderType[i] == 0) {
-          haveAll = true;
-        }
-      }
-
-      // 选择其他的时候,去掉全部,全部在第一位
-      if (
-        this.orderType[0] == 0 &&
-        1 < this.orderType.length < this.TypeList.length
-      ) {
-        var arr = [];
-        for (var i = 0; i < this.orderType.length; i++) {
-          if (this.orderType[i] != 0) {
-            arr.push(this.orderType[i]);
-          }
-        }
-
-        this.orderType = arr;
-      }
-      // 选择全部的时候去掉其他,全部在最后一位
-      if (this.orderType[this.orderType.length - 1] == 0) {
-        this.orderType = [0];
-      }
-      if (!haveAll && this.orderType.length == this.TypeList.length - 1) {
-        this.orderType = [0];
-      }
-      if (this.orderType.length == 0) {
-        console.log("sss:", this.orderType);
-        this.orderType = [0];
-      }
-    },
-
-    // 改变支付方式
-    changePay() {
-      var haveAll = false;
-      for (var i = 0; i < this.payType.length; i++) {
-        if (this.payType[i] == 0) {
-          haveAll = true;
-        }
-      }
-
-      // 选择其他的时候,去掉全部,全部在第一位
-      if (
-        this.payType[0] == 0 &&
-        1 < this.payType.length < this.payList.length
-      ) {
-        var arr = [];
-        for (var i = 0; i < this.payType.length; i++) {
-          if (this.payType[i] != 0) {
-            arr.push(this.payType[i]);
-          }
-        }
-
-        this.payType = arr;
-      }
-      // 选择全部的时候去掉其他,全部在最后一位
-      if (this.payType[this.payType.length - 1] == 0) {
-        this.payType = [0];
-      }
-      if (!haveAll && this.payType.length == this.payList.length - 1) {
-        this.payType = [0];
-      }
-      if (this.payType.length == 0) {
-        console.log("sss:", this.orderType);
-        this.payType = [0];
-      }
-    },
     clickExport() {
       window.open("/api/admin/job/get_all_periods?action=export");
     },
     /**
      * 获取筛选值
      */
-    async getEnum() {
-      let { data } = await this.$get("/api/admin/job/getEnum");
-      console.log(data);
-      if (data) {
-        let { jobStatusList, periodStatusList } = data;
-        this.jobStatusList = jobStatusList;
-        this.periodStatusList = periodStatusList;
-      }
-    },
     // 点击操作
     clickOperate({ job_id, id }) {
       if (this.isTest)
@@ -552,49 +339,7 @@ export default {
           `https://rooter.proginn.com/main/wage_details?job_id=${i.job_id}&period_id=${i.id}`
         );
     },
-    // 点击开发者
-    clickDev(uid) {
-      if (this.isTest)
-        window.open(`https://dev.test.proginn.com/rooter/user/${uid}`);
-      else window.open(`https://www.proginn.com/rooter/user/${uid}`);
-    },
-    // 点击企业
-    clickCompany(uid) {
-      if (this.isTest)
-        window.open(`https://dev.test.proginn.com/rooter/user/${uid}`);
-      else window.open(`https://www.proginn.com/rooter/user/${uid}`);
-    },
-    // 点击账单id
-    clickJobID(jobID) {
-      if (this.isTest)
-        window.open(
-          `https://dev.test.proginn.com/rooter/cloudjobitem/${jobID}`
-        );
-      else window.open(`https://www.proginn.com/rooter/cloudjobitem/${jobID}`);
-    },
-    // 点击重试
-    async clickRetry(id) {
-      const res = await this.$post("/api/admin/payment/redoDraw", { id });
-      // console.log(res)
-    },
-    // 根据状态显示图表样式
-    tableRowClassName({ row, rowIndex }) {
-      // console.log({row, rowIndex})
-      let className = "";
-      if (row.j_status_name === "结束合作") className = "end-row";
-      // console.log(className)
-      return className;
-    },
-    // 格式化列表数据
-    formatTableData(data) {
-      return data.map(i => ({
-        ...i,
-        payAround: `${i.start_time}<br>${i.end_time}`,
-        pre_send_salary_timeShow: new Date(
-          i.pre_send_salary_time * 1000
-        ).toLocaleDateString()
-      }));
-    },
+
     /**
      * 点击筛选确认
      */
@@ -609,31 +354,18 @@ export default {
     // 获取列表数据
     async getTableData() {
       this.tableData = [];
-      let url = "/api/admin/job/get_all_periods";
-      let body = { page: this.currentPage, page_size: this.currentPageSize };
+      let url = "/api/admin/order/get_frozen_coins";
+      let body = { page: this.currentPage, size: this.currentPageSize };
       if (this.status) body.j_status = this.status;
       if (this.period) body.p_status = this.period;
       if (this.checkUser) body.chk_user = this.checkUser;
       if (this.jobID) body.job_id = this.jobID;
       const res = await this.$post(url, body);
-      const data = res.data;
-      this.tableData = this.formatTableData(data.list);
-      this.totalData = data;
-      // // console.log(this.tableData)
-      this.totalCount = Number(data.total);
-      this.totalPage = data.totalPage;
-      this.localData.env = data.current_env;
+      this.tableData = res.data.list;
+      this.totalCoins=res.data.total_coins;
+      this.totalCount=res.data.total_count;
+      this.count=res.data.count;
     },
-    async getFinanceList() {
-      let body = {
-        page: this.currentPage,
-        page_size: this.currentPageSize,
-        artificial_mark: 1
-      };
-      const res = await this.$post("/api/admin/order/get_orders", body);
-      var data = res.data;
-      env = data.current_env;
-    }
   },
   created() {
     // console.log(process.env.NODE_ENV);

+ 3 - 3
pages/main/index/outsource_bill.vue

@@ -6,7 +6,7 @@
       </div>
       <el-row :gutter="20">
         <el-col class="" :span="12">
-          <div class="module-title">企业方(尽心焉尔)</div>
+          <div class="module-title">企业方:{{bill.company.nickname}}({{bill.company.uid}})</div>
           <div class="module-content">
             <div>平台报价:¥{{bill.order.amount}}</div>
             <div>实际托管:¥{{Number(bill.order.real_amount/100)}}</div>
@@ -17,7 +17,7 @@
           </div>
         </el-col>
         <el-col :span="12">
-          <div class="module-title">开发者(我是程序员)</div>
+          <div class="module-title">开发者:{{bill.user.nickname}}({{bill.user.uid}})</div>
           <div class="module-content">
             <div>结算金额:¥{{bill.order.real_amount/100}}</div>
             <div>开发款项:¥{{bill.order.amount}}</div>
@@ -54,7 +54,7 @@ export default {
   },
   methods:{
     async getOrderDetail() {
-      const res = await this.$post("/api/admin/project/get_order_detail", { project_id:38856});
+      const res = await this.$post("/api/admin/project/get_order_detail", { project_id:this.$route.query.id});
       //console.log(res.data.order.amount);
       this.bill=res.data;
       //console.log(this.bill);

+ 9 - 8
pages/main/index/user_bills.vue

@@ -2,7 +2,7 @@
   <div>
     <div>
     <div class="user-name">用户:开发者大汪(123132)</div>
-    <div class="user-info">订单数量:100(支付成功 50),收入金额:123.45元(成功 34.45元),支出金额:543.21元(成功 43.21元),当前余额 1000.00元</div>
+    <div class="user-info">订单数量:{{totalCount}}(支付成功 {{successCount}}),收入金额:{{income_sum}}元(成功 {{income_success_sum}}元),支出金额:{{expense_sum}}元(成功 {{expense_success_sum}}元),当前余额 {{balance}}元</div>
     <el-table
       :data="finaceList" border
       style="width: 100%">
@@ -117,12 +117,6 @@
 
         // 下发的总数据
         totalData: {},
-        // 项目ID
-        jobID: "",
-        // 审核人
-        period: "",
-        status: "",
-
         // 负责人
         checkUser: "",
         // 审核人列表
@@ -202,18 +196,25 @@
         let body = {
           page: this.currentPage,
           page_size: this.currentPageSize,
+          user:this.$route.query.user
 
         };
         const res = await this.$post("/api/admin/order/get_user_orders", body);
         var data = res.data;
         this.finaceList = data.orders;
         this.totalCount = Number(data.count);
+        this.successCount=Number(data.successCount);
+        this.income_sum=Number(data.income_sum);
+        this.income_success_sum=Number(data.income_success_sum);
+        this.expense_sum=Number(data.expense_sum);
+        this.expense_success_sum=Number(data.expense_success_sum);
+        this.balance=data.total_balance.total_balance;
       },
       async downFinanceList() {
         let body = {
           page: this.currentPage,
           page_size: this.currentPageSize,
-          user:this.$route.query.uid
+          user:this.$route.query.user
         };
         // const res = await this.$get("/api/admin/order/get_orders", body);
         // http://local-rooter.proginn.com:20201/api/admin/order/get_orders?page=1&page_size=20&artificial_mark=1