|
@@ -22,29 +22,15 @@
|
|
|
<el-input v-model="queryForm.custLevel" placeholder="客户级别" />
|
|
<el-input v-model="queryForm.custLevel" placeholder="客户级别" />
|
|
|
</el-col>
|
|
</el-col>
|
|
|
<el-col :span="8">
|
|
<el-col :span="8">
|
|
|
- <el-button icon="el-icon-plus" type="primary" @click="fetchData">
|
|
|
|
|
- 查询
|
|
|
|
|
- </el-button>
|
|
|
|
|
|
|
+ <el-button icon="el-icon-plus" type="primary" @click="fetchData">查询</el-button>
|
|
|
<el-button icon="el-icon-refresh-right" @click="reset">重置</el-button>
|
|
<el-button icon="el-icon-refresh-right" @click="reset">重置</el-button>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
</el-row>
|
|
</el-row>
|
|
|
<vab-query-form>
|
|
<vab-query-form>
|
|
|
<vab-query-form-left-panel :span="12">
|
|
<vab-query-form-left-panel :span="12">
|
|
|
- <el-button
|
|
|
|
|
- icon="el-icon-plus"
|
|
|
|
|
- type="primary"
|
|
|
|
|
- @click="$refs.edit.init()">
|
|
|
|
|
- 新建
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <el-button
|
|
|
|
|
- icon="el-icon-plus"
|
|
|
|
|
- type="primary"
|
|
|
|
|
- @click="$refs.allocate.visible = true">
|
|
|
|
|
- 分配
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <el-button icon="el-icon-plus" type="primary" @click="handleReceive">
|
|
|
|
|
- 领取
|
|
|
|
|
- </el-button>
|
|
|
|
|
|
|
+ <el-button icon="el-icon-plus" type="primary" @click="$refs.edit.init()">新建</el-button>
|
|
|
|
|
+ <el-button icon="el-icon-plus" type="primary" @click="$refs.allocate.visible = true">分配</el-button>
|
|
|
|
|
+ <el-button icon="el-icon-plus" type="primary" @click="handleReceive">领取</el-button>
|
|
|
</vab-query-form-left-panel>
|
|
</vab-query-form-left-panel>
|
|
|
<vab-query-form-right-panel :span="12">
|
|
<vab-query-form-right-panel :span="12">
|
|
|
<el-button icon="el-icon-download" />
|
|
<el-button icon="el-icon-download" />
|
|
@@ -69,21 +55,14 @@
|
|
|
{{ scope.row.custStatus == 10 ? '正常' : '异常' }}
|
|
{{ scope.row.custStatus == 10 ? '正常' : '异常' }}
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
- <el-table-column
|
|
|
|
|
- align="center"
|
|
|
|
|
- label="最后跟进时间"
|
|
|
|
|
- prop="followUpDate" />
|
|
|
|
|
|
|
+ <el-table-column align="center" label="最后跟进时间" prop="followUpDate" />
|
|
|
<el-table-column align="center" label="创建人" prop="createdName" />
|
|
<el-table-column align="center" label="创建人" prop="createdName" />
|
|
|
<el-table-column align="center" label="创建时间" prop="createdTime" />
|
|
<el-table-column align="center" label="创建时间" prop="createdTime" />
|
|
|
<el-table-column align="center" label="操作">
|
|
<el-table-column align="center" label="操作">
|
|
|
<template slot-scope="scope">
|
|
<template slot-scope="scope">
|
|
|
<el-button type="text" @click="handleEdit(scope.row)">编辑</el-button>
|
|
<el-button type="text" @click="handleEdit(scope.row)">编辑</el-button>
|
|
|
- <el-button type="text" @click="handleDetail(scope.row)">
|
|
|
|
|
- 详情
|
|
|
|
|
- </el-button>
|
|
|
|
|
- <el-button type="text" @click="handleDelete(scope.row)">
|
|
|
|
|
- 删除
|
|
|
|
|
- </el-button>
|
|
|
|
|
|
|
+ <el-button type="text" @click="handleDetail(scope.row)">详情</el-button>
|
|
|
|
|
+ <el-button type="text" @click="handleDelete(scope.row)">删除</el-button>
|
|
|
</template>
|
|
</template>
|
|
|
</el-table-column>
|
|
</el-table-column>
|
|
|
</el-table>
|
|
</el-table>
|
|
@@ -96,10 +75,7 @@
|
|
|
@current-change="handleCurrentChange"
|
|
@current-change="handleCurrentChange"
|
|
|
@size-change="handleSizeChange" />
|
|
@size-change="handleSizeChange" />
|
|
|
<!-- 新增编辑客户弹窗 -->
|
|
<!-- 新增编辑客户弹窗 -->
|
|
|
- <Edit
|
|
|
|
|
- ref="edit"
|
|
|
|
|
- @createContact="createContact"
|
|
|
|
|
- @customerSave="customerSave" />
|
|
|
|
|
|
|
+ <Edit ref="edit" @createContact="createContact" @customerSave="customerSave" />
|
|
|
<!-- 新建联系人弹窗 -->
|
|
<!-- 新建联系人弹窗 -->
|
|
|
<Contact ref="contact" />
|
|
<Contact ref="contact" />
|
|
|
<!-- 分配客户 -->
|
|
<!-- 分配客户 -->
|
|
@@ -113,6 +89,7 @@
|
|
|
import Contact from './components/Contact'
|
|
import Contact from './components/Contact'
|
|
|
import Edit from './components/Edit'
|
|
import Edit from './components/Edit'
|
|
|
import Allocate from './components/Allocate'
|
|
import Allocate from './components/Allocate'
|
|
|
|
|
+
|
|
|
export default {
|
|
export default {
|
|
|
name: 'OpenSea',
|
|
name: 'OpenSea',
|
|
|
components: {
|
|
components: {
|
|
@@ -235,9 +212,7 @@
|
|
|
type: 'warning',
|
|
type: 'warning',
|
|
|
})
|
|
})
|
|
|
.then(async () => {
|
|
.then(async () => {
|
|
|
- const [err, res] = await to(
|
|
|
|
|
- api.receiveCustomer({ ids: arr.join() })
|
|
|
|
|
- )
|
|
|
|
|
|
|
+ const [err, res] = await to(api.receiveCustomer({ ids: arr.join() }))
|
|
|
if (err) return
|
|
if (err) return
|
|
|
if (res.code == 200) {
|
|
if (res.code == 200) {
|
|
|
this.$message({
|
|
this.$message({
|