liujq 2 years ago
parent
commit
7abc234237

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-1de0c324.e7215311.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-4d39caf6.34b463d5.css


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


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


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-1de0c324.207cc73e.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-4d39caf6.295f2b0f.js


+ 8 - 2
src/api/cust.js

@@ -4,10 +4,16 @@
 import { getRequest, getRequestNoSort } from '@/utils/request'
 
 export default {
-  admreportlist: params => { // 报备客户列表
+  admreportlist: params => { // 报备 - 客户列表
     return getRequestNoSort('/adm/report/list', params, 'loading')
   },
-  admreportdetail: params => { // 报备客户详情
+  admreportdetail: params => { // 报备 - 客户详情
     return getRequestNoSort('/adm/report/detail', params, 'loading')
   },
+  admreportstateadd: params => { // 报备 - 更改报备状态
+    return getRequestNoSort('/adm/report/state/add', params, 'loading')
+  },
+  admreportstepadd: params => { // 报备 - 更改报备进度
+    return getRequestNoSort('/adm/report/step/add', params, 'loading')
+  },
 }

+ 126 - 43
src/views/cust/components/popup/IndexRecord.vue

@@ -4,43 +4,72 @@
       :show-close="false"
       :close-on-click-modal="false"
       :visible.sync="isShow"
-      :title="`${curObj.name}的跟进记录`"
+      :title="`${curObj.name}的报备详情`"
       :fullscreen="false"
-      width="700px"
+      width="800px"
       custom-class="xl-dialog"
       center
     >
-      <table-list
-        :list-loading="listLoading"
-        :data="tableData2"
-        :columns="listConfig"
-        :current-page="currentPage"
-        :page-size="pageSize"
-        :total-records="totalRecords"
-        @currentChange="pageHandle"
-        @sizeChange="sizeChange"
-        :isAdd="true"
-        @add="openPopup"
-      />
-      <div class="xl-form">
+      <div class="scoped-info">
+        <div class="si-row">
+          <div class="si-col">昵称:{{dtlObj.name}}</div>
+          <div class="si-col">手机号:{{dtlObj.phone}}</div>
+          <div class="si-col">性别:{{dtlObj.sex}}</div>
+        </div>
+        <div class="si-row">
+          <div class="si-col">客户状态:{{reportStateStr}}</div>
+          <div class="si-col">报备进度:{{reportStepStr}}</div>
+        </div>
+        <div class="si-row">
+          <div class="si-col">报备日期:{{dtlObj.create_at}}</div>
+          <div class="si-col">保护期止:{{dtlObj.lock_at}}</div>
+          <div class="si-col">报备楼盘:{{dtlObj.estate_name}}</div>
+        </div>
+      </div>
+      <div class="scoped-table">
+        <table-list
+          :list-loading="listLoading"
+          :data="reportFlow"
+          :columns="listConfig"
+          :current-page="currentPage"
+          :page-size="-1"
+          >
+        </table-list>
+      </div>
+      <div class="xl-form" style="padding-top: 20px;">
         <div class="xl-form-footer">
-          <el-button class="xl-form-btn t2" @click="close">关 闭</el-button>
+            <div class="scoped-btn-more">
+              <el-button type="small" icon="el-icon-plus" class="xl-form-btn bgc2" @click="openPopup">更新报备进度</el-button>
+              <el-button type="small" icon="el-icon-warning" class="xl-form-btn bgc4" @click="openStatePopup">修改状态</el-button>
+            </div>
+          <el-button class="xl-form-btn t2" @click="close">关闭弹窗</el-button>
         </div>
       </div>
     </el-dialog>
     <record-edit
       :isShow="isDtlShow"
-      :pObj="curObj"
+      :pObj="dtlObj"
       :curObj="subObj"
       @close="closePopup"
     />
+    <state-edit
+      :isShow="isStateShow"
+      :pObj="dtlObj"
+      :curObj="subObj"
+      @close="closeStatePopup"
+    />
   </div>
 </template>
 <script>
 import RecordEdit from './RecordEdit'
+import StateEdit from './StateEdit'
 import baseTable from '_m/baseTable.js'
+import { arrToObj } from '@/utils'
 export default {
-  components: { RecordEdit },
+  components: {
+    RecordEdit,
+    StateEdit,
+  },
   mixins: [...mixins, baseTable],
   props: {
     isShow: Boolean,
@@ -49,61 +78,68 @@ export default {
   inject: ['parentData'],
   data() {
     return {
-      apiStr: 'user.admcustomerrecordlist',
+      apiStr: 'cust.admreportdetail',
       noCreated: true,
       searchForm: {},
       aList: [],
       subObj: {},
       isDtlShow: false,
+      reportFlow: [],
+      dtlObj: {},
+      isStateShow: false,
     }
   },
   mounted() {
     this.listConfig = {
       rows: [
-        { label: '楼盘名称', prop: 'estate_name' },
-        { label: '保护期', prop: 'protect_at' },
-        { label: '其它', prop: 'remark', fullShow: true, minWidth: 200, align: 'left' },
-        { label: '创建时间', prop: 'create_at' },
-        { label: '操作', width: 120, type: 'handle2', operations:
-          [
-            { label: '编辑', func: this.openPopup, btnType: 'primary' },
-            { label: '删除', func: this.delHandle, btnType: 'danger' },
-          ]
-        }
+        { label: '客户状态', prop: 'report_state', type: 'tag', tags: arrToObj(this.$dictData.report_state	), tagTypeObj: {'1': 'success', '2': 'warning', '3': 'danger'}},
+        { label: '报备进度', prop: 'report_step', type: 'flag', flags: arrToObj(this.$dictData.report_step	) },
+        { label: '更新时间', prop: 'create_at' },
+        { label: '备注', prop: 'describe', fullShow: true, minWidth: 200, align: 'left' },
+        // { label: '操作', width: 120, type: 'handle2', operations:
+        //   [
+        //     { label: '编辑', func: this.openPopup, btnType: 'primary' },
+        //     { label: '删除', func: this.delHandle, btnType: 'danger' },
+        //   ]
+        // }
       ]
     }
   },
   computed: {
     tableData2 () {
       let arr = [...this.tableData]
-      arr.map(item => {
-        if (item.protect_at === '1970-01-01') item.protect_at = ''
-      })
+      arr.map(item => {})
       return arr
+    },
+    reportStepStr () {
+      return arrToObj(this.$dictData.report_step)[this.dtlObj.report_step]
+    },
+    reportStateStr () {
+      return arrToObj(this.$dictData.report_state)[this.dtlObj.report_state]
     }
   },
   watch: {
     isShow: function(val) {
       if (val) {
-        this.searchForm = {customer_id: this.curObj.id, page_size: 5}
-        this.fetchData()
+        this.getData()
       }
     },
   },
   methods: {
-    // getMoreData (res) {
-    //   const data = res.answer_list || {}
-    //   this.aList = data.list || []
-    //   if (this.currentPage === 1) this.pageSize = data.page_size || 1
-    //   this.totalRecords = data.total ? Number(data.total) : 0
-    // },
+    getData () {
+      this.$api.cust.admreportdetail({id: this.curObj.id}).then(res => {
+        console.log(res)
+        this.dtlObj = res || {}
+        this.reportFlow = res.report_flow || []
+      })
+    },
     delHandle(row) {
       this.$msg(`您确定要删除该跟进记录吗?`, 'confirm', () => {
         this.$api.user.admcustomerrecorddel({
           id: row.id
         }).then(data => {
           this.$msgs(`已删除!`)
-          this.fetchData()
+          this.getData()
         })
       }, null, true)
     },
@@ -121,11 +157,58 @@ export default {
     closePopup(obj) {
       this.isDtlShow = false
       if (obj) {
-        this.fetchData()
+        this.getData()
       }
-    }
+    },
+    openStatePopup(row) {
+      if (row && row.id) {
+        this.subObj = row
+      } else {
+        this.subObj = {}
+      }
+      this.isStateShow = true
+    },
+    closeStatePopup(obj) {
+      this.isStateShow = false
+      if (obj) {
+        this.getData()
+      }
+    },
   }
 }
 </script>
 <style lang="scss" scoped>
+.scoped-info {
+  border-left: 1px solid #dcdcdc;
+  border-top: 1px solid #dcdcdc;
+  margin-bottom: 10px;
+  .si-row {
+    display: flex;
+    border-bottom: 1px solid #dcdcdc;
+  }
+  .si-col {
+    width: 33.33%;
+    box-sizing: border-box;
+    padding: 10px 20px;
+    border-right: 1px solid #dcdcdc;
+  }
+}
+
+.scoped-table {
+  max-height: 300px;
+  overflow-y: auto;
+  position: relative;
+  box-shadow: 0 0 2px #ccc;
+  // border-top: 1px solid #dcdcdc;
+  // border-bottom: 1px solid #dcdcdc;
+  ::v-deep .xl-pagination {
+    position: absolute;
+  }
+}
+
+
+.scoped-btn-more {
+  position: absolute;
+  left: 25px;
+}
 </style>

+ 0 - 91
src/views/cust/components/popup/LineUpRecordEdit.vue

@@ -1,91 +0,0 @@
-<template>
-  <div>
-    <el-dialog
-      v-loading="loading"
-      :show-close="false"
-      :close-on-click-modal="false"
-      :visible.sync="isShow"
-      :title="curObj.id ? '编辑轮值记录' : '新增轮值记录'"
-      :fullscreen="false"
-      width="800px"
-      custom-class="xl-dialog"
-      center
-    >
-      <base-form ref="ruleForm" class="lib-edit" :data="formData" :is-inline="false" label-width="80px">
-      </base-form>
-      <div class="xl-form">
-        <div class="xl-form-footer">
-          <el-button class="xl-form-btn t2" @click="close">关 闭</el-button>
-          <el-button class="xl-form-btn t1" @click="close('confirm')">确定</el-button>
-        </div>
-      </div>
-    </el-dialog>
-  </div>
-</template>
-<script>
-import { arrToObj } from '@/utils'
-export default {
-  components: { },
-  mixins,
-  props: {
-    isShow: Boolean,
-    curObj: Object
-  },
-  inject: ['parentData'],
-  data() {
-    return {
-      loading: false,
-      formData: [],
-    }
-  },
-  watch: {
-    isShow: function(val) {
-      if (val) {
-        this.getDef()
-      }
-    },
-  },
-  methods: {
-    getDef (str) {
-      let params = { ...this.curObj }
-      this.formData = [
-        { label: '客户信息', key: 'remark', type: 'textarea' },
-        { label: '关联客户', key: 'customer_id', type: 'selectRemote',
-          remoteParams: { skey: 'name', api: `user.admcustomerlist`, opKey: 'name', opVal: 'id' },
-          remoteOptions: [{ keyRO: params.customer_name, valRO: params.customer_id }],
-        },
-      ]
-      this.setDefaultValue(params)
-    },
-    close (str) {
-      if (str === 'confirm') {
-        this.$refs['ruleForm'].$refs['baseForm'].validate((valid) => {
-          if (valid) {
-            const oldform = this.$refs.ruleForm.baseForm
-            const newForm = { ...oldform }
-            if (this.curObj.id) newForm.id = this.curObj.id
-            let apiStr = 'admreceptbindcustomer'
-            this.$api.user[apiStr](newForm).then(data => {
-              this.$msgs(newForm.estate_id ? '编辑成功' : '新增成功')
-              this.$emit('close', newForm)
-            })
-          }
-        })
-      } else {
-        this.$emit('close')
-        this.setDefaultValue()
-      }
-    },
-  }
-}
-</script>
-<style lang="scss" scoped>
-@import '../../../../styles/libEdit.scss';
-.lib-edit {
-  padding-top: 0;
-  width: 700px;
-  ::v-deep .el-date-editor.el-input {
-    width: 100%;
-  }
-}
-</style>

+ 24 - 19
src/views/cust/components/popup/RecordEdit.vue

@@ -5,12 +5,13 @@
       :show-close="false"
       :close-on-click-modal="false"
       :visible.sync="isShow"
-      :title="curObj.id ? '编辑跟进记录' : '新增跟进记录'"
+      :title="curObj.id ? '编辑报备进度' : '更新报备进度'"
       :fullscreen="false"
-      width="500px"
+      width="400px"
       custom-class="xl-dialog"
       center
     >
+      <div class="scoped-tips">当前报备进度:<span class="t">{{reportStepStr}}</span></div>
       <base-form ref="ruleForm" class="lib-edit" :data="formData" :is-inline="false" label-width="110px">
         <div slot="footer" style="padding-top: 20px;">
           <el-button class="xl-form-btn t2" @click="close">关 闭</el-button>
@@ -21,7 +22,7 @@
   </div>
 </template>
 <script>
-
+import { arrToObj } from '@/utils'
 export default {
   components: { },
   mixins,
@@ -39,6 +40,11 @@ export default {
       curEstateObj: {},
     }
   },
+  computed: {
+    reportStepStr () {
+      return arrToObj(this.$dictData.report_step)[this.pObj.report_step]
+    }
+  },
   watch: {
     isShow: function(val) {
       if (val) {
@@ -49,33 +55,23 @@ export default {
   methods: {
     getDef() {
       let params = { ...this.curObj }
-      if (params.protect_at === '1970-01-01') params.protect_at = ''
       this.formData = [
-        { label: '带看楼盘', key: 'estate_id', type: 'selectRemote', changeHandle: this.estateChange,
-          remoteParams: { skey: 'estate_name', api: `house.admestatelist`, opKey: 'estate_name', opVal: 'id' },
-        },
-        { label: '保护期', key: 'protect_at', type: 'datePicker', type2: 'date' },
-        { label: '其它信息', label2: '相关接待置业顾问、房源', key: 'remark', type: 'textarea', rules: 1 },
+        { label: '新报备进度', key: 'report_step', rules: 1, type: 'select', options: this.$dictData.report_step },
+        { label: '备注', key: 'remark', type: 'textarea' },
       ]
       this.setDefaultValue(params)
     },
-    estateChange (val, op, item) {
-      this.curEstateObj = item
-    },
     close(str) {
       if (str === 'confirm') {
         this.$refs['ruleForm'].$refs['baseForm'].validate((valid) => {
           if (valid) {
             const oldform = this.$refs.ruleForm.baseForm
             const newForm = { ...oldform }
-            if (this.curObj.id) {
-              newForm.id = this.curObj.id
+            let apiStr = 'admreportstepadd'
+            if (this.pObj.id) {
+              newForm.id = this.pObj.id
             }
-            newForm.customer_id = this.pObj.id
-            newForm.estate_name = this.curEstateObj.estate_name
-            let apiStr = 'admcustomerrecordadd'
-            if (newForm.id) apiStr = 'admcustomerrecordedit'
-            this.$api.user[apiStr](newForm).then(data => {
+            this.$api.cust[apiStr](newForm).then(data => {
               this.$msgs(newForm.id ? '编辑成功' : '新增成功')
               this.$emit('close', newForm)
             })
@@ -90,4 +86,13 @@ export default {
 }
 </script>
 <style lang="scss" scoped>
+.scoped-tips {
+  padding-bottom: 6px;
+  text-align: center;
+  .t {
+    font-size: 18px;
+    font-weight: bold;
+    color: #0c78b1;
+  }
+}
 </style>

+ 27 - 25
src/views/cust/components/popup/LineupEdit.vue → src/views/cust/components/popup/StateEdit.vue

@@ -5,12 +5,13 @@
       :show-close="false"
       :close-on-click-modal="false"
       :visible.sync="isShow"
-      :title="curObj.id ? '编辑排班轮值人员' : '新增排班轮值人员'"
+      :title="curObj.id ? '编辑报备进度' : '更新报备进度'"
       :fullscreen="false"
-      width="700px"
+      width="400px"
       custom-class="xl-dialog"
       center
     >
+      <div class="scoped-tips">当前客户报备状态:<span class="t">{{reportStateStr}}</span></div>
       <base-form ref="ruleForm" class="lib-edit" :data="formData" :is-inline="false" label-width="110px">
         <div slot="footer" style="padding-top: 20px;">
           <el-button class="xl-form-btn t2" @click="close">关 闭</el-button>
@@ -21,13 +22,14 @@
   </div>
 </template>
 <script>
-
+import { arrToObj } from '@/utils'
 export default {
   components: { },
   mixins,
   props: {
     isShow: Boolean,
-    curObj: Object
+    curObj: Object,
+    pObj: Object,
   },
   inject: ['parentData'],
   data() {
@@ -35,7 +37,7 @@ export default {
       formData: [],
       loading: true,
       cObj: {},
-      isShowMap: false
+      curEstateObj: {},
     }
   },
   watch: {
@@ -45,16 +47,19 @@ export default {
       }
     },
   },
+  computed: {
+    reportStateStr () {
+      return arrToObj(this.$dictData.report_state)[this.pObj.report_state]
+    }
+  },
   methods: {
     getDef() {
-      let disabled = false
-      if (this.curObj.id) disabled = true
+      let params = { ...this.curObj }
       this.formData = [
-        { label: '标签', key: 'question_tag', rules: 1, type: 'select', options: this.$dictData.question_tag },
-        { label: '问题', key: 'question_cont', type: 'textarea', rules: 1 },
-        { label: '答案', key: 'answer_cont', type: 'textarea', rules: 1 },
+        { label: '新报备状态', key: 'report_state', rules: 1, type: 'select', options: this.$dictData.report_state },
+        { label: '备注', key: 'remark', type: 'textarea' },
       ]
-      this.setDefaultValue(this.curObj)
+      this.setDefaultValue(params)
     },
     close(str) {
       if (str === 'confirm') {
@@ -62,13 +67,11 @@ export default {
           if (valid) {
             const oldform = this.$refs.ruleForm.baseForm
             const newForm = { ...oldform }
-            if (this.curObj.id) {
-              newForm.id = this.curObj.id
+            let apiStr = 'admreportstateadd'
+            if (this.pObj.id) {
+              newForm.id = this.pObj.id
             }
-            let apiStr = 'admqaadd'
-            // newForm.question_tag = newForm.question_tag.join(',')
-            if (newForm.id) apiStr = 'admqaedit'
-            this.$api.other[apiStr](newForm).then(data => {
+            this.$api.cust[apiStr](newForm).then(data => {
               this.$msgs(newForm.id ? '编辑成功' : '新增成功')
               this.$emit('close', newForm)
             })
@@ -83,14 +86,13 @@ export default {
 }
 </script>
 <style lang="scss" scoped>
-@import '../../../../styles/libEdit.scss';
-.lib-edit {
-  padding-top: 0;
-  ::v-deep .el-form-item {
-    margin-bottom: 10px;
-  }
-  ::v-deep .el-date-editor.el-input {
-    width: 100%;
+.scoped-tips {
+  padding-bottom: 6px;
+  text-align: center;
+  .t {
+    font-size: 18px;
+    font-weight: bold;
+    color: #0c78b1;
   }
 }
 </style>

+ 8 - 6
src/views/cust/components/searchForm/Index.vue

@@ -1,10 +1,12 @@
 <template>
-  <base-form slot="content" ref="ruleForm" :data="searchData">
-    <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> -->
-    </div>
-  </base-form>
+  <header-collapse>
+    <base-form slot="content" ref="ruleForm" :data="searchData">
+      <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> -->
+      </div>
+    </base-form>
+  </header-collapse>
 </template>
 <script>
 export default {

+ 0 - 71
src/views/cust/components/searchForm/LineUpRecord.vue

@@ -1,71 +0,0 @@
-<template>
-  <base-form slot="content" ref="ruleForm" :data="searchData">
-    <div slot="footer">
-      <el-button :loading="listLoading" icon="el-icon-search" class="xl-form-btn bgc1" @click="searchHandle">查询:{{name}}</el-button>
-      <!-- <el-button :loading="listLoading" icon="el-icon-plus" class="xl-form-btn bgc2" @click="addHandle">添加成交价</el-button>
-      <el-button v-if="!isHidePut" :loading="listLoading" icon="el-icon-document" class="xl-form-btn bgc4" @click="pushToUser">推送给关注{{name}}的用户</el-button> -->
-      <!-- <el-button :loading="listLoading" icon="el-icon-document" class="xl-form-btn bgc2" @click="toExportExcel">导出{{ this.$route.meta.title }}信息</el-button> -->
-    </div>
-  </base-form>
-</template>
-<script>
-export default {
-  props: {
-    listLoading: Boolean
-  },
-  inject: ['parentData'],
-  mixins,
-  data() {
-    return {
-      searchData: [],
-      isHidePut: false,
-    }
-  },
-  computed: {
-    name () {
-      return this.parentData.$route.query.name || ''
-    }
-  },
-  mounted () {
-    this.getDef()
-  },
-  methods: {
-    addHandle () {
-      this.parentData.isDtlShow = true
-      this.parentData.curObj = {}
-    },
-    getDef (str) {
-      let params = { ...this.$refs.ruleForm.baseForm }
-      const query = this.$route.query
-      let saleName = query.name || ''
-      params.user_id = query.id ? Number(query.id) : ''
-      this.searchData = [
-        { label: '选择轮值人员', key: 'user_id', type: 'selectRemote', changeHandle: this.searchChange,
-          remoteParams: { skey: 'sale_name', api: `user.admreceptsalelist`, opKey: 'sale_name', opVal: 'id' },
-          remoteOptions: [{ keyRO: saleName, valRO: params.user_id }]
-        },
-        { label: '轮值日期', label2: '开始时间', label3: '结束时间', key: 'startEndTime', type: 'datePicker', rules: 1},
-        { label: '轮值备注', key: 'remark' },
-        { label: '购房需求', key: 'demand' },
-        { label: '客户后续', key: 'purchased' },
-      ]
-      this.setDefaultValue(params, 'searchData')
-    },
-    searchChange (val, options, curItem) {
-      this.$router.push(`/cust/lineUpRecord?id=${val}&name=${curItem.sale_name}`)
-      this.searchHandle()
-    },
-    searchHandle() {
-      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
-      // newForm.estate_id = this.parentData.searchForm.estate_id
-      this.$emit('change', newForm)
-    }
-  }
-}
-</script>

+ 0 - 42
src/views/cust/components/searchForm/Lineup.vue

@@ -1,42 +0,0 @@
-<template>
-  <base-form slot="content" ref="ruleForm" :data="searchData">
-    <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-document" class="xl-form-btn bgc2" @click="toExportExcel">导出{{ this.$route.meta.title }}信息</el-button> -->
-    </div>
-  </base-form>
-</template>
-<script>
-export default {
-  mixins: [],
-  props: {
-    listLoading: Boolean
-  },
-  inject: ['parentData'],
-  mixins,
-  data() {
-    return {
-      searchData: []
-    }
-  },
-  mounted () {
-    this.getDef()
-  },
-  methods: {
-    searchHandle() {
-      const oldform = this.$refs.ruleForm.baseForm
-      const newForm = { ...oldform }
-      this.$emit('change', newForm)
-    },
-    getDef () {
-      let params = { ...this.$refs.ruleForm.baseForm }
-      params.store_type = "hqc1"
-      this.searchData = [
-        { label: '门店', key: 'store_type', type: 'select', options: this.$dictData.store_type},
-        { label: '置业经理名称', key: 'sale_name' },
-      ]
-      this.setDefaultValue(params, 'searchData')
-    },
-  }
-}
-</script>

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

@@ -103,14 +103,14 @@ export default {
         { label: '客户状态', prop: 'report_state', type: 'tag', tags: arrToObj(this.$dictData.report_state	), tagTypeObj: {'1': 'success', '2': 'warning', '3': 'danger'}},
         { label: '报备进度', prop: 'report_step', type: 'flag', flags: arrToObj(this.$dictData.report_step	) },
         { label: '备注', prop: 'remark', fullShow: true },
-        { label: '创建人', prop: 'create_by' },
-        // { label: '操作', width: 190, type: 'handle2', operations:
-        //   [
-        //     { label: '跟进记录', func: this.openQPopup, btnType: 'success' },
-        //     { label: '编辑', func: this.openPopup, btnType: 'primary' },
-        //     { label: '删除', func: this.delHandle, btnType: 'danger' },
-        //   ]
-        // }
+        { label: '报备人', prop: 'create_by' },
+        { label: '操作', width: 90, type: 'handle2', operations:
+          [
+            { label: '报备详情', func: this.openQPopup, btnType: 'primary' },
+            // { label: '修改状态', func: this.openPopup, btnType: 'warning' },
+            // { label: '删除', func: this.delHandle, btnType: 'danger' },
+          ]
+        }
       ]
     }
   },

+ 0 - 107
src/views/cust/lineUpRecord.vue

@@ -1,107 +0,0 @@
-<template>
-  <div class="app-container">
-    <search-form
-      :list-loading="listLoading"
-      @change="searchHandle"
-    />
-    <table-list
-      :list-loading="listLoading"
-      :data="tableData2"
-      :columns="listConfig"
-      :current-page="currentPage"
-      :page-size="pageSize"
-      :total-records="totalRecords"
-      @currentChange="pageHandle"
-      @sizeChange="sizeChange"
-    />
-    <popup-edit
-      :isShow="isDtlShow"
-      :curObj="curObj"
-      @close="closePopup"
-    />
-  </div>
-</template>
-<script>
-import { arrToObj } from '@/utils'
-import SearchForm from './components/searchForm/LineUpRecord'
-import PopupEdit from './components/popup/LineUpRecordEdit'
-import baseTable from '_m/baseTable.js'
-export default {
-  name: 'price',
-  components: {
-    SearchForm,
-    PopupEdit,
-  },
-  provide() {
-    return {
-      parentData: this
-    }
-  },
-  mixins: [baseTable],
-  data() {
-    return {
-      apiStr: 'user.admreceptlist',
-      searchForm: {},
-      isDtlShow: false,
-      // noCreated: true,
-      curObj: {},
-    }
-  },
-  computed: {
-    tableData2() {
-      const arr = [...this.tableData]
-      arr.map(item => {
-        item.floor = `${item.cur_layer}/${item.layer}`
-      })
-      return arr
-    }
-  },
-  created() {
-    const query = this.$route.query
-    this.searchForm.user_id = query.id || ''
-  },
-  mounted() {
-    this.listConfig = {
-      rows: [
-        { label: '轮值时间', prop: 'create_at'},
-        { label: '备注', prop: 'remark'},
-        { label: '关联客户名称', prop: 'customer_name'},
-        { label: '购房需求', prop: 'customer_demand'},
-        { label: '客户后续', prop: 'customer_purchased'},
-        { label: '操作', width: 120, type: 'handle2', operations:
-          [
-            { label: '绑定客户', func: this.openPopup, btnType: 'success' },
-            // { label: '删除', func: this.delHandle, btnType: 'danger' },
-          ]
-        }
-      ]
-    }
-  },
-  methods: {
-    delHandle(row) {
-      this.$msg(`您确定要删除该记录吗?`, 'confirm', () => {
-        // this.$api.house.admpricedel({
-        //   id: row.id,
-        // }).then(data => {
-        //   this.$msgs(`已删除!`)
-        //   this.fetchData()
-        // })
-      }, null, true)
-    },
-    openPopup(row) {
-      if (row && row.id) {
-        this.curObj = row
-      } else {
-        this.curObj = {}
-      }
-      this.isDtlShow = true
-    },
-    closePopup(obj) {
-      this.isDtlShow = false
-      if (obj) {
-        this.fetchData()
-      }
-    }
-  }
-}
-</script>

+ 0 - 112
src/views/cust/lineup.vue

@@ -1,112 +0,0 @@
-<template>
-  <div class="app-container">
-    <search-form
-      :list-loading="listLoading"
-      @change="searchHandle"
-    />
-    <table-list
-      :list-loading="listLoading"
-      :data="tableData2"
-      :columns="listConfig"
-      :current-page="currentPage"
-      :page-size="pageSize"
-      :total-records="totalRecords"
-      @currentChange="pageHandle"
-      @sizeChange="sizeChange"
-      :operationsDefaultLength="6"
-    />
-    <popup-edit
-      :isShow="isDtlShow"
-      :curObj="curObj"
-      @close="closePopup"
-    />
-  </div>
-</template>
-<script>
-import { arrToObj } from '@/utils'
-import SearchForm from './components/searchForm/Lineup'
-import PopupEdit from './components/popup/LineupEdit'
-import baseTable from '_m/baseTable.js'
-export default {
-  name: 'index',
-  components: {
-    SearchForm,
-    PopupEdit,
-  },
-  provide() {
-    return {
-      parentData: this
-    }
-  },
-  mixins: [baseTable],
-  data() {
-    return {
-      apiStr: 'user.admreceptsalelist',
-      searchForm: {},
-      isDtlShow: false,
-      curObj: {},
-      noCreated: true,
-    }
-  },
-  computed: {
-    tableData2() {
-      const arr = [...this.tableData]
-      arr.map(item => {
-      })
-      return arr
-    }
-  },
-  created() {
-    this.searchForm = {
-      store_type: 'hqc1'
-    }
-    this.fetchData()
-  },
-  mounted() {
-    this.listConfig = {
-      rows: [
-        { label: '最新轮值', prop: 'recept_create_at' },
-        { label: '轮值总次数', prop: 'recept_count' },
-        { label: '置业经理', prop: 'sale_name' },
-        { label: '头像', prop: 'sale_avatar', type: 'img' },
-        { label: '门店', prop: 'store_type', type: 'flag', flags: arrToObj(this.$dictData.store_type	) },
-        { label: '分类', prop: 'sale_type', type: 'flag', flags: arrToObj(this.$dictData.sale_type	) },
-        { label: '操作', width: 90, type: 'handle2', operations:
-          [
-            { label: '轮值记录', func: this.linkRecord, btnType: 'success' },
-          ]
-        }
-      ]
-    }
-  },
-  methods: {
-    linkRecord (row) {
-      this.$router.push(`/cust/lineUpRecord?id=${row.user_id}&name=${row.sale_name}`)
-    },
-    delHandle(row) {
-      this.$msg(`您确定要删除该规则吗?`, 'confirm', () => {
-        this.$api.user.admsaleuserdel({
-          id: row.id
-        }).then(data => {
-          this.$msgs(`已删除!`)
-          this.fetchData()
-        })
-      }, null, true)
-    },
-    openPopup(row) {
-      if (row && row.id) {
-        this.curObj = row
-      } else {
-        this.curObj = {}
-      }
-      this.isDtlShow = true
-    },
-    closePopup(obj) {
-      this.isDtlShow = false
-      if (obj) {
-        this.fetchData()
-      }
-    }
-  }
-}
-</script>

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