liujq 3 years ago
parent
commit
517b75f324

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-5dc9e51c.5c7b5943.css


+ 0 - 0
dist/static/css/chunk-03961392.4d0a9fd9.css → dist/static/css/chunk-9f050880.4d0a9fd9.css


File diff suppressed because it is too large
+ 0 - 0
dist/static/css/chunk-c3ccccc8.ac113115.css


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


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-5dc9e51c.e5734363.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-9f050880.e8106661.js


File diff suppressed because it is too large
+ 0 - 0
dist/static/js/chunk-c3ccccc8.085dfb20.js


+ 3 - 0
src/api/user.js

@@ -91,4 +91,7 @@ export default {
   admwechatusersale: params => { //  用户 -  用户角色设置 - 置业经理 普通用户
     return getRequestNoSort('/adm/wechat/user/sale', params, 'loading')
   },
+  admsaleuserlist: params => { // 销售列表 置业经理
+    return getRequest('/adm/sale/user/list', params)
+  },
 }

+ 6 - 0
src/views/house/components/popup/OldEdit.vue

@@ -183,6 +183,12 @@ export default {
           { label: '业主称呼', class: 'c-3', key: 'owner' },
           { label: '业主电话', class: 'c-3', key: 'phone' },
           { label: '自定义标签', class: 'c-3', key: 'custom_tag' },
+          { label: '置业经理', key: 'sale_id', rules: 1, class: 'c-3', type: 'selectRemote',
+            remoteParams: { skey: 'sale_name', api: `user.admsaleuserlist`, opKey: 'sale_name', opVal: 'id' },
+            remoteOptions: [
+              { keyRO: params.sale_name, valRO: params.sale_id }
+            ]
+          },
           { label: '备注', key: 'remarked', type: 'textarea' },
         ]
       } else {

+ 3 - 0
src/views/house/components/searchForm/Old.vue

@@ -32,6 +32,9 @@ export default {
         { label: '所属楼盘', key: 'estate_id', type: 'selectRemote',
           remoteParams: { skey: 'estate_name', api: `house.admestatelist?estate_tag=二手`, opKey: 'estate_name', opVal: 'id' }
         },
+        { label: '置业经理', key: 'sale_id', type: 'selectRemote',
+          remoteParams: { skey: 'sale_name', api: `user.admsaleuserlist`, opKey: 'sale_name', opVal: 'id' }
+        },
         { label: '所属区域', key: 'area_type', type: 'select', options: this.$dictData.area_type},
         { label: '楼盘类型', key: 'product_type', type: 'select', options: this.$dictData.product_type},
         { label: '房源户型', key: 'house_type', type: 'select', options: this.$dictData.house_type},

+ 1 - 0
src/views/house/old.vue

@@ -66,6 +66,7 @@ export default {
       rows: [
         { label: '排序', prop: 'sort', type: 'input', width: 80},
         { label: '楼盘', prop: 'estate_name' },
+        { label: '置业经理', prop: 'sale_name' },
         { label: '标题', prop: 'title' },
         { label: '主图', prop: 'pri_image', type: 'img' },
         { label: '详细地址', prop: 'detail_address', fullShow: true, minWidth: 200 },

+ 106 - 0
src/views/user/appSale.vue

@@ -0,0 +1,106 @@
+<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"
+      :isAdd="true"
+      @add="openPopup"
+    />
+    <popup-edit
+      :isShow="isDtlShow"
+      :curObj="curObj"
+      @close="closePopup"
+    />
+  </div>
+</template>
+<script>
+import { arrToObj } from '@/utils'
+import SearchForm from './components/searchForm/AppSale'
+import PopupEdit from './components/popup/IREdit'
+import baseTable from '_m/baseTable.js'
+export default {
+  name: 'index',
+  components: {
+    SearchForm,
+    PopupEdit,
+  },
+  provide() {
+    return {
+      parentData: this
+    }
+  },
+  mixins: [baseTable],
+  data() {
+    return {
+      apiStr: 'user.admsaleuserlist',
+      searchForm: null,
+      isDtlShow: false,
+      curObj: {},
+    }
+  },
+  computed: {
+    tableData2() {
+      const arr = [...this.tableData]
+      arr.map(item => {
+      })
+      return arr
+    }
+  },
+  created() {},
+  mounted() {
+    this.listConfig = {
+      rows: [
+        { label: '置业经理', prop: 'sale_name' },
+        { label: '头像', prop: 'sale_avatar', type: 'img' },
+        { label: '联系电话', prop: 'sale_phone' },
+        { label: '销售标签', prop: 'custom_tag'},
+        { label: '微信昵称', prop: 'nickname'},
+        { label: '微信头像', prop: 'avatar', type: 'img' },
+        { label: '微信电话', prop: 'phone' },
+        { label: '更新时间', prop: 'update_at' },
+        // { label: '操作', width: 200, type: 'handle2', operations:
+        //   [
+        //     { label: '编辑', func: this.openPopup, btnType: 'primary' },
+        //     { label: '删除', func: this.delHandle, btnType: 'danger' },
+        //   ]
+        // }
+      ]
+    }
+  },
+  methods: {
+    delHandle(row) {
+      this.$msg(`您确定要删除该规则吗?`, 'confirm', () => {
+        this.$api.user.admintegralruledel({
+          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>

+ 32 - 0
src/views/user/components/searchForm/AppSale.vue

@@ -0,0 +1,32 @@
+<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'],
+  data() {
+    return {
+      searchData: [
+        { label: '置业经理名称', key: 'sale_name' },
+        { label: '置业联系电话', key: 'sale_phone' },
+      ]
+    }
+  },
+  methods: {
+    searchHandle() {
+      const oldform = this.$refs.ruleForm.baseForm
+      const newForm = { ...oldform }
+      this.$emit('change', newForm)
+    }
+  }
+}
+</script>

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