Commit 95b1d12a authored by dcy's avatar dcy

公海池客户捞取

parent cc3cbf87
...@@ -117,9 +117,11 @@ export function getPublicList(query) { ...@@ -117,9 +117,11 @@ export function getPublicList(query) {
} }
//捞取 //捞取
export function setFishing(query){ export function setFishing(data){
return request({ return request({
url:'', url:'/ecw/customer/catch-open-sea-customer',
method:'put',
data:data
}) })
} }
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
<el-table-column label="操作" align="center" class-name="small-padding fixed-width"> <el-table-column label="操作" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<el-button size="mini" type="text" icon="el-icon-folder-add" @click="distribution(scope.row)">移交</el-button> <el-button size="mini" type="text" icon="el-icon-folder-add" @click="distribution(scope.row)">移交</el-button>
<el-button size="mini" type="text" icon="el-icon-crop">捞取</el-button> <el-button size="mini" type="text" icon="el-icon-crop" @click="fishingFn(scope.row)">捞取</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
</template> </template>
<script> <script>
import { createCustomer, updateCustomer, deleteCustomer,handOverCustomer,getPublicList,exportCustomerExcel } from "@/api/ecw/customer"; import { createCustomer, updateCustomer, deleteCustomer,handOverCustomer,getPublicList,exportCustomerExcel, setFishing } from "@/api/ecw/customer";
import { getDictDatas, DICT_TYPE } from '@/utils/dict'; import { getDictDatas, DICT_TYPE } from '@/utils/dict';
import upload from '@/components/ImageUpload' import upload from '@/components/ImageUpload'
import {listServiceUser} from "@/api/system/user"; import {listServiceUser} from "@/api/system/user";
...@@ -365,6 +365,28 @@ export default { ...@@ -365,6 +365,28 @@ export default {
} }
}) })
}, },
fishingFn(row){
this.$confirm(`是否要捞取${row.name}的客户`, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
setFishing({id:row.id} ).then(r=>{
if(r.code === 0){
this.getList()
this.$message({
type: 'success',
message: '捞取成功!'
});
}
})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消捞取'
});
});
}
} }
}; };
</script> </script>
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