Commit 1e6a36c0 authored by dcy's avatar dcy

公海池客户捞取

parent 4241ee83
...@@ -103,7 +103,10 @@ export function handOverCustomer(data) { ...@@ -103,7 +103,10 @@ export function handOverCustomer(data) {
return request({ return request({
url: '/ecw/customer/handOver', url: '/ecw/customer/handOver',
method: 'put', method: 'put',
data: data data: data,
headers: {
'Content-Type': 'application/x-www-form-urlencoded; charset=UTF-8'
}
}) })
} }
...@@ -119,10 +122,8 @@ export function getPublicList(query) { ...@@ -119,10 +122,8 @@ export function getPublicList(query) {
//捞取 //捞取
export function setFishing(data){ export function setFishing(data){
return request({ return request({
url:'/ecw/customer/catch-open-sea-customer', url:'/ecw/customer/catch-open-sea-customer?id='+data.id,
method:'put', method:'put',
data:data
}) })
} }
//待分配 客户列表 //待分配 客户列表
......
...@@ -56,12 +56,20 @@ ...@@ -56,12 +56,20 @@
<el-col :span="1.5"> <el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading" <el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
v-hasPermi="['ecw:customer:export']">导出</el-button> v-hasPermi="['ecw:customer:export']">导出</el-button>
</el-col>
<el-col :span="1.5">
<el-button type="primary" size="mini" @click="batchHandover"
>批量移交</el-button>
</el-col> </el-col>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar> <right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</el-row> </el-row>
<!-- 列表 --> <!-- 列表 -->
<el-table v-loading="loading" :data="list"> <el-table v-loading="loading" :data="list" @selection-change="handleSelectionChange">
<el-table-column
type="selection"
width="55">
</el-table-column>
<el-table-column label="客户编号" align="center" prop="number" /> <el-table-column label="客户编号" align="center" prop="number" />
<el-table-column label="客户名称" align="center" prop="name" /> <el-table-column label="客户名称" align="center" prop="name" />
<el-table-column label="客户等级" align="center" prop="level"> <el-table-column label="客户等级" align="center" prop="level">
...@@ -371,7 +379,7 @@ export default { ...@@ -371,7 +379,7 @@ export default {
cancelButtonText: '取消', cancelButtonText: '取消',
type: 'warning' type: 'warning'
}).then(() => { }).then(() => {
setFishing({id:row.id} ).then(r=>{ setFishing({id:row.id}).then(r=>{
if(r.code === 0){ if(r.code === 0){
this.getList() this.getList()
this.$message({ this.$message({
...@@ -386,6 +394,12 @@ export default { ...@@ -386,6 +394,12 @@ export default {
message: '已取消捞取' message: '已取消捞取'
}); });
}); });
},
batchHandover(){
this.transferShow = true;
},
handleSelectionChange(val){
console.log(val);
} }
} }
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment