liujq 2 years ago
parent
commit
ed897808b0

File diff suppressed because it is too large
+ 0 - 0
dist/index.html


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-21afd20a.b27d4069.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/app.c2fb2a5a.js


+ 0 - 0
dist/static/js/chunk-021c3157.030f8343.js → dist/static/js/chunk-021c3157.88dc3c8b.js


+ 0 - 0
dist/static/js/chunk-02eb56e6.b56c86f4.js → dist/static/js/chunk-02eb56e6.7dd9af0c.js


+ 0 - 0
dist/static/js/chunk-060a14dc.d4916f49.js → dist/static/js/chunk-060a14dc.23d7c206.js


+ 0 - 0
dist/static/js/chunk-18bdd0f6.d4102204.js → dist/static/js/chunk-18bdd0f6.96a12268.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-21afd20a.1ce5e934.js


+ 0 - 0
dist/static/js/chunk-3f2695b2.ec39439c.js → dist/static/js/chunk-3f2695b2.d5ffddbd.js


+ 0 - 0
dist/static/js/chunk-42505c22.d9d3c466.js → dist/static/js/chunk-42505c22.52666803.js


+ 0 - 0
dist/static/js/chunk-43338aec.5702bc76.js → dist/static/js/chunk-43338aec.ca5da962.js


+ 0 - 0
dist/static/js/chunk-593f9664.bfcdada9.js → dist/static/js/chunk-593f9664.b6341ccb.js


+ 0 - 0
dist/static/js/chunk-7441b538.8fea7fcb.js → dist/static/js/chunk-7441b538.37fcdce8.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-7e53d73e.4e9eb9dc.js


+ 0 - 0
dist/static/js/chunk-c1bdecce.3ee855ae.js → dist/static/js/chunk-c1bdecce.49897ad6.js


+ 0 - 0
dist/static/js/chunk-e50dc1ce.b6ba6f8b.js → dist/static/js/chunk-e50dc1ce.7e36d966.js


+ 4 - 0
src/utils/index.js

@@ -76,6 +76,10 @@ export function formatTime(time, option) {
     return Math.ceil(diff / 3600) + '小时前'
   } else if (diff < 3600 * 24 * 2) {
     return '1天前'
+  } else if (diff < 3600 * 24 * 3) {
+    return '2天前'
+  } else if (diff < 3600 * 24 * 4) {
+    return '3天前'
   }
   if (option) {
     return parseTime(time, option)

+ 1 - 0
src/views/cust/components/popup/IndexEdit.vue

@@ -64,6 +64,7 @@ export default {
       this.formData = [
         { label: '姓名', key: 'name', class: 'c-2', rules: 1 },
         { label: '电话', key: 'phone', class: 'c-2', rules: 1 },
+        { label: '性别', key: 'sex', class: 'c-2', rules: 1, type: 'select', options: this.$dictData.sex },
         { label: '意向等级', key: 'purpose_level', class: 'c-2', rules: 1, type: 'select', options: this.$dictData.purpose_level },
         { label: '意向楼盘', key: 'estate_id', rules: 1, type: 'selectRemote', class: 'c-2', multiple: true, changeHandle: this.estateChange,
           remoteParams: { skey: 'estate_name', api: `house.admestatelist`, opKey: 'estate_name', opVal: 'id' },

+ 16 - 0
src/views/cust/components/searchForm/Index.vue

@@ -4,6 +4,7 @@
     <div slot="footer">
       <el-button :loading="listLoading" icon="el-icon-search" class="xl-form-btn bgc1" @click="searchHandle">查询</el-button>
       <el-button :loading="listLoading" icon="el-icon-plus" class="xl-form-btn bgc2" @click="addHandle">添加客户</el-button>
+      <el-button :loading="listLoading" icon="el-icon-document" class="xl-form-btn bgc2" @click="toExportExcel">导出</el-button>
     </div>
   </base-form>
   </header-collapse>
@@ -19,6 +20,7 @@ export default {
   data() {
     return {
       searchData: [
+        { label: '登记时间', label2: '登记开始时间', label3: '登记结束时间', key: 'startEndTime', type: 'datePicker'},
         { label: '电话', key: 'phone' },
         { label: '姓名', key: 'name' },
         { label: '意向等级', key: 'purpose_level', type: 'select', options: this.$dictData.purpose_level},
@@ -31,6 +33,20 @@ export default {
     }
   },
   methods: {
+    toExportExcel () {
+      const oldform = this.$refs.ruleForm.baseForm
+      const newForm = { ...oldform }
+      if (newForm.startEndTime) {
+        newForm.start_at = newForm.startEndTime[0]
+        newForm.end_at = newForm.startEndTime[1]
+        delete newForm.startEndTime
+      } else {
+        this.$msgw('请选择导出的时间范围')
+        return
+      }
+      const token = window.sessionStorage.getItem('fp_token')
+      window.open(`https://api.honglouplus.com/adm/customer/export?token=${encodeURIComponent(token)}&start_at=${newForm.start_at}&end_at=${newForm.end_at}`)
+    },
     addHandle () {
       this.parentData.isDtlShow = true
       this.parentData.curObj = {}

+ 1 - 0
src/views/cust/index.vue

@@ -73,6 +73,7 @@ export default {
       rows: [
         { label: '电话', prop: 'phone' },
         { label: '姓名', prop: 'name' },
+        { label: '性别', prop: 'sex' },
         { label: '最新跟进记录', prop: 'newRecord', fullShow: true, minWidth: 150, align: 'left' },
         { label: '意向等级', prop: 'purpose_level', type: 'flag', flags: arrToObj(this.$dictData.purpose_level	) },
         { label: '客户信息', prop: 'user_info', fullShow: true, minWidth: 150, align: 'left' },

+ 3 - 1
src/views/cust/lineup.vue

@@ -28,7 +28,7 @@
   </div>
 </template>
 <script>
-import { arrToObj } from '@/utils'
+import { arrToObj, formatTime } from '@/utils'
 import SearchForm from './components/searchForm/Lineup'
 import PopupEdit from './components/popup/LineupEdit'
 import AppPoint from './components/popup/AppPoint'
@@ -60,6 +60,7 @@ export default {
     tableData2() {
       const arr = [...this.tableData]
       arr.map(item => {
+        item.D = formatTime(+new Date(item.recept_create_at))
       })
       return arr
     }
@@ -73,6 +74,7 @@ export default {
   mounted() {
     this.listConfig = {
       rows: [
+        { label: '最新轮值', prop: 'D' },
         { label: '最新轮值', prop: 'recept_create_at' },
         { label: '轮值总次数', prop: 'recept_count' },
         { label: '置业经理', prop: 'sale_name' },

+ 0 - 4
src/views/house/sale.vue

@@ -1,9 +1,5 @@
 <template>
   <div class="app-container">
-    <!-- <search-form
-      :list-loading="listLoading"
-      @change="searchHandle"
-    /> -->
     <table-list
       :list-loading="listLoading"
       :data="tableData2"

Some files were not shown because too many files changed in this diff