230320a303 пре 1 година
родитељ
комит
b844bc14ed

Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/index.html


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/css/chunk-4c7ade6e.b0e385b5.css


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/js/app.652c6561.js


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/js/app.e8c59d05.js


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/js/chunk-04088267.6145adff.js


Разлика између датотеке није приказан због своје велике величине
+ 0 - 0
dist/static/js/chunk-4c7ade6e.1010954e.js


+ 15 - 0
src/api/cust.js

@@ -37,4 +37,19 @@ export default {
   admcustomerimport: params => { // 客户 -  导入
     return getRequestNoSort('/adm/customer/import', params, 'loading')
   },
+  admtradelist: params => { // 成交 -  列表
+    return getRequest('/adm/trade/list', params)
+  },
+  admtradeadd: params => { // 成交 -  添加
+    return getRequestNoSort('/adm/trade/add', params, 'loading')
+  },
+  admtradeedit: params => { // 成交 -  编辑
+    return getRequestNoSort('/adm/trade/edit', params, 'loading')
+  },
+  admtradedetail: params => { // 成交 -  详情
+    return getRequestNoSort('/adm/trade/detail', params, 'loading')
+  },
+  admtradedel: params => { // 成交 -  删除
+    return getRequestNoSort('/adm/trade/del', params, 'loading')
+  },
 }

+ 111 - 0
src/views/trade/components/popup/IndexEdit.vue

@@ -0,0 +1,111 @@
+<template>
+  <div>
+    <el-dialog
+      v-loading="loading"
+      :show-close="false"
+      :close-on-click-modal="false"
+      :visible.sync="isShow"
+      :title="curObj.id ? '编辑成交' : '新增成交'"
+      :fullscreen="false"
+      width="700px"
+      custom-class="xl-dialog"
+      center
+    >
+      <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>
+          <el-button class="xl-form-btn t1" @click="close('confirm')">确定</el-button>
+        </div>
+      </base-form>
+    </el-dialog>
+  </div>
+</template>
+<script>
+export default {
+  components: { },
+  mixins,
+  props: {
+    isShow: Boolean,
+    curObj: Object
+  },
+  inject: ['parentData'],
+  data() {
+    return {
+      formData: [],
+      loading: true,
+      cObj: {},
+      curEstateList: [],
+    }
+  },
+  watch: {
+    isShow: function(val) {
+      if (val) {
+        this.getDef()
+      }
+    },
+  },
+  methods: {
+    getDef() {
+      let params = {...this.curObj}
+      if (!params.deal_clerk) {
+        const uObj = JSON.parse(this.$storage('fp_user'))
+        params.deal_clerk = uObj.nickname
+      }
+      this.formData = [
+        { label: '成交楼盘', key: 'deal_item', class: 'c-2', rules: 1 },
+        { label: '房屋类型', key: 'house_type', class: 'c-2', rules: 1, type: 'select', options: this.$dictData.trade_house_type, rules: 1 },
+        { label: '成交店员', key: 'deal_clerk', class: 'c-2', rules: 1 },
+        { label: '成交类型', key: 'deal_type', class: 'c-2', rules: 1, type: 'select', options: this.$dictData.trade_deal_type, rules: 1 },
+        { label: '成交日期', key: 'deal_at', class: 'c-2', type: 'datePicker', type2: 'date', rules: 1},
+        { label: '客户姓名', key: 'customer_name', class: 'c-2', rules: 1 },
+        { label: '客户电话', key: 'customer_phone', class: 'c-2', rules: 1 },
+        { label: '房号', key: 'house_no', class: 'c-2', rules: 1 },
+        { label: '面积', key: 'area', class: 'c-2', type: 'inputFont', appendFont: '㎡', rules: 1 },
+        { label: '总价', key: 'price', class: 'c-2', type: 'inputFont', appendFont: '万元', rules: 1 },
+        { label: '报备渠道', key: 'report_dept', class: 'c-2', rules: 1 },
+        { label: '折扣体系', key: 'discount', class: 'c-2' },
+        { label: '佣金', key: 'brokerage', class: 'c-2' },
+        { label: '返佣', key: 'rebate', class: 'c-2' },
+        { label: '佣金凭证', key: 'housbrokerage_imge_no', type: 'uploads', class: 'c-2'},
+        { label: '备注', key: 'remark', type: 'textarea' },
+      ]
+      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 = 'admtradeadd'
+            if (newForm.id) apiStr = 'admtradeedit'
+            newForm.phone_type = 1
+            this.$api.cust[apiStr](newForm).then(data => {
+              this.$msgs(newForm.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;
+  ::v-deep .el-form-item {
+    margin-bottom: 10px;
+  }
+  ::v-deep .el-date-editor.el-input {
+    width: 100%;
+  }
+}
+</style>

+ 220 - 0
src/views/trade/components/popup/IndexRecord.vue

@@ -0,0 +1,220 @@
+<template>
+  <div>
+    <el-dialog
+      :show-close="false"
+      :close-on-click-modal="false"
+      :visible.sync="isShow"
+      :title="`${curObj.name}的报备详情`"
+      :fullscreen="false"
+      width="800px"
+      custom-class="xl-dialog"
+      center
+    >
+      <div class="scoped-info">
+        <div class="si-row">
+          <div class="si-col">客户:{{dtlObj.name}}-{{sexObj[dtlObj.sex]}}</div>
+          <div class="si-col">手机号:{{dtlObj.phone}}</div>
+          <div class="si-col">创建日期:{{dtlObj.create_at}}</div>
+        </div>
+        <div class="si-row">
+          <div class="si-col">报备楼盘:{{dtlObj.estate_name}}</div>
+          <div class="si-col">客户状态:{{reportStateStr}}</div>
+          <div class="si-col">报备进度:{{reportStepStr}}</div>
+        </div>
+        <div class="si-row">
+          <div class="si-col">报备日期:{{dtlObj.report_at}}</div>
+          <div class="si-col">保护期止:{{dtlObj.lock_at}}</div>
+          <div class="si-col">到访日期:{{dtlObj.visit_at}}</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">
+            <div class="scoped-btn-more" v-if="curRoles !== '6'">
+              <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="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,
+    StateEdit,
+  },
+  mixins: [...mixins, baseTable],
+  props: {
+    isShow: Boolean,
+    curObj: Object
+  },
+  inject: ['parentData'],
+  data() {
+    return {
+      apiStr: 'cust.admreportdetail',
+      noCreated: true,
+      searchForm: {},
+      aList: [],
+      subObj: {},
+      isDtlShow: false,
+      reportFlow: [],
+      dtlObj: {},
+      isStateShow: false,
+      sexObj: {},
+      curRoles: ''
+    }
+  },
+  mounted() {
+    const uObj = JSON.parse(this.$storage('fp_user'))
+    this.curRoles = uObj.roles
+    this.sexObj = arrToObj(this.$dictData.sex)
+    this.listConfig = {
+      rows: [
+        { 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: 'operator_nickname' },
+        { 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 => {})
+      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.getData()
+      }
+    },
+  },
+  methods: {
+    getData () {
+      this.$api.cust.admreportdetail({id: this.curObj.id}).then(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.getData()
+        })
+      }, null, true)
+    },
+    close(str) {
+      this.$emit('close')
+    },
+    openPopup(row) {
+      if (row && row.id) {
+        this.subObj = row
+      } else {
+        this.subObj = {}
+      }
+      this.isDtlShow = true
+    },
+    closePopup(obj) {
+      this.isDtlShow = false
+      if (obj) {
+        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>

+ 98 - 0
src/views/trade/components/popup/RecordEdit.vue

@@ -0,0 +1,98 @@
+<template>
+  <div>
+    <el-dialog
+      v-loading="loading"
+      :show-close="false"
+      :close-on-click-modal="false"
+      :visible.sync="isShow"
+      :title="curObj.id ? '编辑报备进度' : '更新报备进度'"
+      :fullscreen="false"
+      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>
+          <el-button class="xl-form-btn t1" @click="close('confirm')">确定</el-button>
+        </div>
+      </base-form>
+    </el-dialog>
+  </div>
+</template>
+<script>
+import { arrToObj } from '@/utils'
+export default {
+  components: { },
+  mixins,
+  props: {
+    isShow: Boolean,
+    curObj: Object,
+    pObj: Object,
+  },
+  inject: ['parentData'],
+  data() {
+    return {
+      formData: [],
+      loading: true,
+      cObj: {},
+      curEstateObj: {},
+    }
+  },
+  computed: {
+    reportStepStr () {
+      return arrToObj(this.$dictData.report_step)[this.pObj.report_step]
+    }
+  },
+  watch: {
+    isShow: function(val) {
+      if (val) {
+        this.getDef()
+      }
+    },
+  },
+  methods: {
+    getDef() {
+      let params = { ...this.curObj }
+      this.formData = [
+        { label: '新报备进度', key: 'report_step', rules: 1, type: 'select', options: this.$dictData.report_step },
+        { label: '备注', key: 'remark', type: 'textarea' },
+      ]
+      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 }
+            let apiStr = 'admreportstepadd'
+            if (this.pObj.id) {
+              newForm.id = this.pObj.id
+            }
+            this.$api.cust[apiStr](newForm).then(data => {
+              this.$msgs(newForm.id ? '编辑成功' : '新增成功')
+              this.$emit('close', newForm)
+            })
+          }
+        })
+      } else {
+        this.$emit('close')
+        this.setDefaultValue()
+      }
+    }
+  }
+}
+</script>
+<style lang="scss" scoped>
+.scoped-tips {
+  padding-bottom: 6px;
+  text-align: center;
+  .t {
+    font-size: 18px;
+    font-weight: bold;
+    color: #0c78b1;
+  }
+}
+</style>

+ 100 - 0
src/views/trade/components/popup/StateEdit.vue

@@ -0,0 +1,100 @@
+<template>
+  <div>
+    <el-dialog
+      v-loading="loading"
+      :show-close="false"
+      :close-on-click-modal="false"
+      :visible.sync="isShow"
+      :title="curObj.id ? '编辑报备进度' : '更新报备进度'"
+      :fullscreen="false"
+      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>
+          <el-button class="xl-form-btn t1" @click="close('confirm')">确定</el-button>
+        </div>
+      </base-form>
+    </el-dialog>
+  </div>
+</template>
+<script>
+import { arrToObj } from '@/utils'
+export default {
+  components: { },
+  mixins,
+  props: {
+    isShow: Boolean,
+    curObj: Object,
+    pObj: Object,
+  },
+  inject: ['parentData'],
+  data() {
+    return {
+      formData: [],
+      loading: true,
+      cObj: {},
+      curEstateObj: {},
+    }
+  },
+  watch: {
+    isShow: function(val) {
+      if (val) {
+        this.getDef()
+      }
+    },
+  },
+  computed: {
+    reportStateStr () {
+      return arrToObj(this.$dictData.report_state)[this.pObj.report_state]
+    }
+  },
+  methods: {
+    getDef() {
+      let params = { ...this.curObj }
+      this.formData = [
+        { label: '新报备状态', key: 'report_state', rules: 1, type: 'select', options: this.$dictData.report_state },
+        { label: '报备时间', key: 'report_at', type: 'datePicker', type2: 'datetime', valueFormat: 'yyyy-MM-dd HH:mm:ss' },
+        { label: '报备二维码', key: 'report_code', type: 'uploads' },
+        { label: '备注', key: 'remark', type: 'textarea' },
+      ]
+      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 }
+            let apiStr = 'admreportstateadd'
+            if (this.pObj.id) {
+              newForm.id = this.pObj.id
+            }
+            this.$api.cust[apiStr](newForm).then(data => {
+              this.$msgs(newForm.id ? '编辑成功' : '新增成功')
+              this.$emit('close', newForm)
+            })
+          }
+        })
+      } else {
+        this.$emit('close')
+        this.setDefaultValue()
+      }
+    }
+  }
+}
+</script>
+<style lang="scss" scoped>
+.scoped-tips {
+  padding-bottom: 6px;
+  text-align: center;
+  .t {
+    font-size: 18px;
+    font-weight: bold;
+    color: #0c78b1;
+  }
+}
+</style>

+ 65 - 0
src/views/trade/components/searchForm/Index.vue

@@ -0,0 +1,65 @@
+<template>
+  <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-document" class="xl-form-btn bgc2" @click="toExportExcel">导出</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 {
+  name: 'custIndex',
+  mixins: [],
+  props: {
+    listLoading: Boolean
+  },
+  inject: ['parentData'],
+  data() {
+    return {
+      searchData: [
+        { label: '房屋类型', key: 'house_type', type: 'select', options: this.$dictData.trade_house_type},
+        { label: '成交店员', key: 'deal_clerk' },
+        { label: '成交楼盘', key: 'deal_item' },
+        { label: '成交类型', key: 'deal_type', type: 'select', options: this.$dictData.trade_deal_type},
+        { label: '时间', label2: '开始成交日期', label3: '结束成交日期', key: 'startEndTime', type: 'datePicker'},
+        { label: '客户姓名', key: 'customer_name' },
+        { label: '客户电话', key: 'customer_phone' },
+        { label: '报备渠道', key: 'report_dept' },
+      ]
+    }
+  },
+  methods: {
+    addHandle () {
+      this.parentData.isDtlShow = true
+      this.parentData.curObj = {}
+    },
+    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
+      this.$emit('change', newForm)
+    },
+    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.fangpiaovip.com/adm/report/export?token=${encodeURIComponent(token)}&section=${newForm.section}&start_at=${newForm.start_at}&end_at=${newForm.end_at}&estate_id=${newForm.estate_id}&report_state=${newForm.report_state}&report_step=${newForm.report_step}&user_id=${newForm.user_id}`)
+    }
+  }
+}
+</script>

+ 138 - 0
src/views/trade/index.vue

@@ -0,0 +1,138 @@
+<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"
+      :isAdd="true"
+      @add="openPopup"
+    >
+    </table-list>
+    <popup-edit
+      :isShow="isDtlShow"
+      :curObj="curObj"
+      @close="closePopup"
+    />
+    <index-record
+      :isShow="isQShow"
+      :curObj="curObj"
+      @close="closeQPopup"
+    />
+  </div>
+</template>
+<script>
+import { arrToObj } from '@/utils'
+import SearchForm from './components/searchForm/Index'
+import IndexRecord from './components/popup/IndexRecord'
+import PopupEdit from './components/popup/IndexEdit'
+import baseTable from '_m/baseTable.js'
+export default {
+  name: 'index',
+  components: {
+    SearchForm,
+    PopupEdit,
+    IndexRecord,
+  },
+  provide() {
+    return {
+      parentData: this
+    }
+  },
+  mixins: [baseTable],
+  data() {
+    return {
+      apiStr: 'cust.admtradelist',
+      searchForm: null,
+      isDtlShow: false,
+      curObj: {},
+      isQShow: false,
+      isAShow: false,
+    }
+  },
+  computed: {
+    tableData2() {
+      const arr = [...this.tableData]
+      arr.map(item => {
+        item.createBy = item.create_user ? item.create_user.nickname : '-'
+        item.newRecord = `${item.record_estate_name ? item.record_estate_name : '-'}${item.record_protect_at && item.record_protect_at !== '1970-01-01' ? '(' + item.record_protect_at + ')' : ''}-${item.record_remark ? item.record_remark : ''}`
+      })
+      return arr
+    }
+  },
+  created() {},
+  mounted() {
+    this.listConfig = {
+      rows: [
+        { label: '房屋类型', prop: 'house_type', fullShow: true, type: 'flag', flags: arrToObj(this.$dictData.trade_house_type) },
+        { label: '成交店员', prop: 'deal_clerk' },
+        { label: '成交楼盘', prop: 'deal_item' },
+        { label: '房号', prop: 'house_no' },
+        { label: '成交类型', prop: 'deal_type', fullShow: true, type: 'flag', flags: arrToObj(this.$dictData.trade_deal_type) },
+        { label: '成交日期', prop: 'deal_at' },
+        { label: '客户姓名', prop: 'customer_name' },
+        { label: '客户电话', prop: 'customer_phone' },
+        { label: '报备渠道', prop: 'report_dept' },
+        { label: '面积(㎡)', prop: 'area' },
+        { label: '总价(万元)', prop: 'price' },
+        { label: '创建时间', prop: 'create_at' },
+        { label: '操作', width: 150, type: 'handle2', operations:
+          [
+            // { label: '成交详情', func: this.openQPopup, btnType: 'primary' },
+            { label: '删除', func: this.delHandle, btnType: 'danger' },
+          ]
+        }
+      ]
+    }
+  },
+  methods: {
+    openQPopup (row) {
+      if (row && row.id) {
+        this.curObj = row
+      } else {
+        this.curObj = {}
+      }
+      this.isQShow = true
+    },
+    closeQPopup (obj) {
+      this.isQShow = false
+      if (obj) {
+        this.fetchData()
+      }
+    },
+    delHandle(row) {
+      this.$msg(`您确定要删除该报备吗?`, 'confirm', () => {
+        this.$api.cust.admtradedel({
+          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>

Неке датотеке нису приказане због велике количине промена