Commit 1e6a36c0 authored by dcy's avatar dcy

公海池客户捞取

parent 4241ee83
......@@ -103,7 +103,10 @@ export function handOverCustomer(data) {
return request({
url: '/ecw/customer/handOver',
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) {
//捞取
export function setFishing(data){
return request({
url:'/ecw/customer/catch-open-sea-customer',
url:'/ecw/customer/catch-open-sea-customer?id='+data.id,
method:'put',
data:data
})
}
//待分配 客户列表
......
......@@ -56,12 +56,20 @@
<el-col :span="1.5">
<el-button type="warning" plain icon="el-icon-download" size="mini" @click="handleExport" :loading="exportLoading"
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>
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
</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="name" />
<el-table-column label="客户等级" align="center" prop="level">
......@@ -371,7 +379,7 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
setFishing({id:row.id} ).then(r=>{
setFishing({id:row.id}).then(r=>{
if(r.code === 0){
this.getList()
this.$message({
......@@ -386,6 +394,12 @@ export default {
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