Commit 3eca8aa1 authored by huangjie's avatar huangjie

Merge branch 'dev20230707' of http://192.168.60.201/root/dsk-operate-sys into dev20230707

# Conflicts:
#	dsk-operate-ui/vue.config.js
parent 51c85584
...@@ -17,3 +17,10 @@ export const claim= function claim(param) { ...@@ -17,3 +17,10 @@ export const claim= function claim(param) {
data: param data: param
}) })
} }
// 历史客户认领
export const historyClaim= function historyClaim(name) {
return request({
url: '/customer/historyClaim/'+name,
method: 'Put',
})
}
...@@ -40,7 +40,13 @@ ...@@ -40,7 +40,13 @@
<div class="wordprimary ps2" @click="toDetail(scope.row,'')">{{scope.row.companyName}}</div> <div class="wordprimary ps2" @click="toDetail(scope.row,'')">{{scope.row.companyName}}</div>
<div class="ps3"> <div class="ps3">
<div @click="toRL(scope.row)"><img class="i" src="@/assets/images/project/khrl1.png"><img class="o" src="@/assets/images/project/khrl2.png"></div> <div @click="toRL(scope.row)"><img class="i" src="@/assets/images/project/khrl1.png"><img class="o" src="@/assets/images/project/khrl2.png"></div>
</div>
</div>
<div class="delform" v-if="scope.row.companyName == '重庆市永川区惠通建设发展有限公司'">
<div class="words">再次认领将会恢复默认客户数据</div>
<div>
<div class="btnsmall btn_primary h28" >确定</div>
<div class="btnsmall btn_cancel h28" >取消</div>
</div> </div>
</div> </div>
</template> </template>
...@@ -194,7 +200,7 @@ ...@@ -194,7 +200,7 @@
import {getCustomerList,importData,addCustomer} from '@/api/custom/custom' import {getCustomerList,importData,addCustomer} from '@/api/custom/custom'
import {getEnterprise,getDictType,} from '@/api/main' import {getEnterprise,getDictType,} from '@/api/main'
import {encodeStr} from "@/assets/js/common" import {encodeStr} from "@/assets/js/common"
import { claim } from "@/api/common" //认领 import { historyClaim } from "@/api/common" //认领
export default { export default {
name: 'CustomList', name: 'CustomList',
data() { data() {
...@@ -289,7 +295,13 @@ export default { ...@@ -289,7 +295,13 @@ export default {
this.$router.push({path:'/enterprise/'+encodeStr(companyId),query:{customerId:customerId,path:path}}) this.$router.push({path:'/enterprise/'+encodeStr(companyId),query:{customerId:customerId,path:path}})
}, },
//认领客户 //认领客户
toRL(row){ async toRL(row){
let param = row.companyName
let res = await historyClaim(param)
if(res.code==200){
this.$message.success('认领成功!')
this.handleCurrentChange(1)
}
}, },
clearname(value){ clearname(value){
...@@ -299,8 +311,6 @@ export default { ...@@ -299,8 +311,6 @@ export default {
}, },
//翻页 //翻页
handleCurrentChange(val) { handleCurrentChange(val) {
this.pldr=false
// this.isNew = false
this.searchParam.pageNum=val this.searchParam.pageNum=val
this.getCustomerList() this.getCustomerList()
}, },
...@@ -309,6 +319,11 @@ export default { ...@@ -309,6 +319,11 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.delform{
right: 5px;
top: 40px;
width: 228px;
}
.app-container{ .app-container{
height: calc(100vh - 134px) height: calc(100vh - 134px)
} }
......
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