Commit a9fbc238 authored by 邓春圆's avatar 邓春圆

客户模块列表添加 查看按钮

parent 27d07b50
...@@ -96,7 +96,7 @@ ...@@ -96,7 +96,7 @@
>{{$t('设置海运非整柜客户')}}</el-button> >{{$t('设置海运非整柜客户')}}</el-button>
</el-col> </el-col>
<el-col :span="1.5"> <el-col :span="1.5">
<el-button v-has-permi="['ecw:customer:create-potential']" v-if="path === '/customer/customer'" type="primary" plain icon="el-icon-plus" size="mini" @click="handleAddPotential">{{$t('新增潜在客户')}}</el-button> <el-button v-has-permi="[selectAuthorityFn('ecw:customer:create-potential')]" v-if="path === '/customer/customer'" type="primary" plain icon="el-icon-plus" size="mini" @click="handleAddPotential">{{$t('新增潜在客户')}}</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>
...@@ -649,6 +649,9 @@ export default { ...@@ -649,6 +649,9 @@ export default {
case '/customer/department-customers': case '/customer/department-customers':
i = 'dep-' i = 'dep-'
break; break;
case '/customer/potential':
i = 'pot-'
break;
} }
return i return i
}, },
...@@ -656,6 +659,7 @@ export default { ...@@ -656,6 +659,7 @@ export default {
return (val)=>{ return (val)=>{
let t = val.split(":") let t = val.split(":")
t[t.length - 1] = this.authorityFn + t[t.length - 1] t[t.length - 1] = this.authorityFn + t[t.length - 1]
console.log( t.join(":"))
return t.join(":") return t.join(":")
} }
} }
......
...@@ -43,9 +43,8 @@ ...@@ -43,9 +43,8 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('客户名称')" align="center" prop="name" > <el-table-column :label="$t('客户名称')" align="center" prop="name" >
<template v-slot="scope"> <template v-slot="scope">
<router-link :to="{path: '/customer/indirectInfo',query: {id: scope.row.id}}" class="link-type">
<span>{{ $l(scope.row,'name') }}</span> <span>{{ $l(scope.row,'name') }}</span>
</router-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('联系方式')" prop="defaultContactPhone"> <el-table-column :label="$t('联系方式')" prop="defaultContactPhone">
...@@ -78,6 +77,9 @@ ...@@ -78,6 +77,9 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width"> <el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<router-link :to="{path: '/customer/indirectInfo',query: {id: scope.row.id}}" class="link-type">
<el-button v-has-permi="['ecw:customer:indirect:view']" size="mini" style="margin-right: 10px" type="text" >查看</el-button>
</router-link>
<el-button v-has-permi="['ecw:customer:indirect:perfect']" size="mini" type="text" icon="el-icon-user" @click="delay(scope.row)">{{$t('完善')}}</el-button> <el-button v-has-permi="['ecw:customer:indirect:perfect']" size="mini" type="text" icon="el-icon-user" @click="delay(scope.row)">{{$t('完善')}}</el-button>
</template> </template>
</el-table-column> </el-table-column>
......
...@@ -80,9 +80,7 @@ ...@@ -80,9 +80,7 @@
<el-table v-loading="loading" :data="list"> <el-table v-loading="loading" :data="list">
<el-table-column :label="$t('客户编号')" align="center" prop="number" > <el-table-column :label="$t('客户编号')" align="center" prop="number" >
<template v-slot="{row}"> <template v-slot="{row}">
<router-link :to="'/customer/query/' + row.id">
{{row.number}} {{row.number}}
</router-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('客户名称')" align="center" prop="name" > <el-table-column :label="$t('客户名称')" align="center" prop="name" >
...@@ -125,6 +123,9 @@ ...@@ -125,6 +123,9 @@
<el-table-column :label="$t('国家')" align="center" prop="country" :formatter="countryFormatter"></el-table-column> <el-table-column :label="$t('国家')" align="center" prop="country" :formatter="countryFormatter"></el-table-column>
<el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width"> <el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<router-link :to="'/customer/query/' + scope.row.id">
<el-button v-has-permi="['ecw:customer:treat-view']" size="mini" style="margin-right: 10px" type="text" >查看</el-button>
</router-link>
<el-button size="mini" type="text" @click="handleConfirmService(scope.row)" <el-button size="mini" type="text" @click="handleConfirmService(scope.row)"
v-hasPermi="['ecw:customer:treat-accept']">{{$t('确认接收')}}</el-button> v-hasPermi="['ecw:customer:treat-accept']">{{$t('确认接收')}}</el-button>
<el-button size="mini" type="text" @click="handOver(scope.row)" <el-button size="mini" type="text" @click="handOver(scope.row)"
......
...@@ -91,9 +91,7 @@ ...@@ -91,9 +91,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('客户编号')" align="center" prop="number" > <el-table-column :label="$t('客户编号')" align="center" prop="number" >
<template v-slot="{row}"> <template v-slot="{row}">
<router-link :to="'/customer/query/' + row.id">
{{row.number}} {{row.number}}
</router-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('客户名称')" align="center" prop="name" > <el-table-column :label="$t('客户名称')" align="center" prop="name" >
...@@ -131,6 +129,9 @@ ...@@ -131,6 +129,9 @@
<el-table-column :label="$t('国家')" align="center" prop="country" :formatter="countryFormatter"></el-table-column> <el-table-column :label="$t('国家')" align="center" prop="country" :formatter="countryFormatter"></el-table-column>
<el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width"> <el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<router-link :to="'/customer/query/' + scope.row.id">
<el-button v-has-permi="['ecw:customer:distribution-view']" size="mini" style="margin-right: 10px" type="text" >查看</el-button>
</router-link>
<el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)" <el-button size="mini" type="text" icon="el-icon-edit" @click="handleUpdate(scope.row)"
v-hasPermi="['ecw:customer:distribution-update']">{{$t('编辑')}}</el-button> v-hasPermi="['ecw:customer:distribution-update']">{{$t('编辑')}}</el-button>
<el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)" <el-button size="mini" type="text" icon="el-icon-delete" @click="handleDelete(scope.row)"
......
...@@ -80,9 +80,7 @@ ...@@ -80,9 +80,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('客户编号')" align="center" prop="number" > <el-table-column :label="$t('客户编号')" align="center" prop="number" >
<template v-slot="{row}"> <template v-slot="{row}">
<router-link :to="'/customer/query/' + row.id">
{{row.number}} {{row.number}}
</router-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('客户名称')" align="center" prop="name" > <el-table-column :label="$t('客户名称')" align="center" prop="name" >
......
...@@ -85,9 +85,7 @@ ...@@ -85,9 +85,7 @@
</el-table-column> </el-table-column>
<el-table-column :label="$t('客户编号')" align="center" prop="number" > <el-table-column :label="$t('客户编号')" align="center" prop="number" >
<template v-slot="{row}"> <template v-slot="{row}">
<router-link :to="'/customer/query/' + row.id">
{{row.number}} {{row.number}}
</router-link>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column :label="$t('客户名称')" align="center" prop="name" > <el-table-column :label="$t('客户名称')" align="center" prop="name" >
...@@ -130,6 +128,9 @@ ...@@ -130,6 +128,9 @@
<el-table-column :label="$t('国家')" align="center" prop="country" :formatter="countryFormatter"></el-table-column> <el-table-column :label="$t('国家')" align="center" prop="country" :formatter="countryFormatter"></el-table-column>
<el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width"> <el-table-column :label="$t('操作')" align="center" class-name="small-padding fixed-width">
<template slot-scope="scope"> <template slot-scope="scope">
<router-link :to="'/customer/query/' + scope.row.id">
<el-button v-has-permi="['ecw:customer:sea-view']" size="mini" style="margin-right: 10px" type="text" >查看</el-button>
</router-link>
<!-- <el-button size="mini" type="text" @click="distribution(scope.row)">{{$t('移交')}}</el-button>--> <!-- <el-button size="mini" type="text" @click="distribution(scope.row)">{{$t('移交')}}</el-button>-->
<el-button v-has-permi="['ecw:customer:sea-gain']" size="mini" type="text" @click="fishingFn(scope.row)">{{$t('捞取')}}</el-button> <el-button v-has-permi="['ecw:customer:sea-gain']" size="mini" type="text" @click="fishingFn(scope.row)">{{$t('捞取')}}</el-button>
</template> </template>
......
...@@ -93,6 +93,7 @@ ...@@ -93,6 +93,7 @@
<el-button v-has-permi="['member:id-card']" size="mini" type="text" @click="identityFn(scope.row , '1')">{{$t('身份证')}}</el-button> <el-button v-has-permi="['member:id-card']" size="mini" type="text" @click="identityFn(scope.row , '1')">{{$t('身份证')}}</el-button>
<el-button v-has-permi="['member:business-license']" size="mini" type="text" @click="identityFn(scope.row, '2')">{{$t('营业执照')}}</el-button> <el-button v-has-permi="['member:business-license']" size="mini" type="text" @click="identityFn(scope.row, '2')">{{$t('营业执照')}}</el-button>
<el-button v-has-permi="['member:delete']" size="mini" type="text" @click="deleteFn(scope.row)">{{$t('删 除')}}</el-button> <el-button v-has-permi="['member:delete']" size="mini" type="text" @click="deleteFn(scope.row)">{{$t('删 除')}}</el-button>
<el-button type="text" v-has-permi="['member:user:info']" size="mini" @click="$router.push('member/member-details/' + scope.row.id )" >{{ $t('查看') }}</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
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