Commit b2a64a91 authored by 我在何方's avatar 我在何方
parents ea9775df 1b8d5c87
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<div style="display: flex;justify-content: space-between;align-items: flex-end;"> <div style="display: flex;justify-content: space-between;align-items: flex-end;">
<h2>{{$t('查看')}}</h2> <h2>{{$t('查看')}}</h2>
<div> <div>
<el-button type="primary" size="small" v-has-permi="['ecw:customer:query-edit']" @click="$router.push('/customer/edit/' + id)">{{$t('编辑')}}</el-button> <el-button type="primary" size="small" v-has-permi="['ecw:customer:query-edit']" @click="$router.push('/customer/add-edit/' + id)">{{$t('编辑')}}</el-button>
<el-button v-has-permi="['ecw:customer:query-quoted-price']" @click="$router.push('/offer/create')" type="primary" size="small">{{$t('报价')}}</el-button> <el-button v-has-permi="['ecw:customer:query-quoted-price']" @click="$router.push('/offer/create')" type="primary" size="small">{{$t('报价')}}</el-button>
<el-button v-has-permi="['ecw:customer:query-follow-up']" type="primary" size="small" @click="customerFollowFn('follow')">{{$t('跟进')}}</el-button> <el-button v-has-permi="['ecw:customer:query-follow-up']" type="primary" size="small" @click="customerFollowFn('follow')">{{$t('跟进')}}</el-button>
<el-button v-has-permi="['ecw:customer:query-customer-complaint']" type="primary" size="small" @click="customerFollowFn('complain')">{{$t('客诉')}}</el-button> <el-button v-has-permi="['ecw:customer:query-customer-complaint']" type="primary" size="small" @click="customerFollowFn('complain')">{{$t('客诉')}}</el-button>
......
...@@ -363,7 +363,7 @@ export default { ...@@ -363,7 +363,7 @@ export default {
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.$router.push('/customer/edit/' + row.id) this.$router.push('/customer/add-edit/' + row.id)
// this.reset(); // this.reset();
// const id = row.id; // const id = row.id;
// getCustomer(id).then(response => { // getCustomer(id).then(response => {
......
...@@ -368,7 +368,7 @@ export default { ...@@ -368,7 +368,7 @@ export default {
}, },
/** 修改按钮操作 */ /** 修改按钮操作 */
handleUpdate(row) { handleUpdate(row) {
this.$router.push('/customer/edit/' + row.id) this.$router.push('/customer/add-edit/' + row.id)
// this.reset(); // this.reset();
// const id = row.id; // const id = row.id;
// getCustomer(id).then(response => { // getCustomer(id).then(response => {
......
...@@ -7,28 +7,41 @@ export default { ...@@ -7,28 +7,41 @@ export default {
data(){ data(){
return { return {
phoneList:[], phoneList:[],
show:false
} }
}, },
mounted() { mounted() {
let phone = this.phoneString let phone = this.phoneString
this.phoneList = phone.split('(;)'); this.phoneList = phone.split('(;)');
console.log(this.phoneList)
} }
} }
</script> </script>
<template> <template>
<div> <div>
<div v-for="(item, index) in phoneList" :key="index" > <el-dialog :modal-append-to-body="false" :append-to-body="true" :visible.sync="show">
<div> <div v-for="(item, index) in phoneList" :key="index" >
<span>联系人{{index + 1}}</span> <div>
<span>{{item.split('(@)')[1]}}</span> <span>联系人{{index + 1}}</span>
<span>{{item.split('(@)')[1]}}</span>
</div>
<div>
<span>联系电话{{index + 1}}</span>
<span>+{{item.split('(@)')[0]}}</span>
</div>
</div>
</el-dialog>
<div>
<div>
<span>联系人:</span>
<span>{{phoneList[0] ? phoneList[0].split('(@)')[1] : ''}}</span>
</div>
<div style="white-space: normal;">
<span>联系电话:</span>
<span>+{{phoneList[0] ? phoneList[0].split('(@)')[0] : ''}}</span>
<el-button v-if="phoneList.length > 1" @click="show = true;" style="margin-left: 10px;" size="mini" type="text" >更多</el-button>
</div> </div>
<div> </div>
<span>联系电话{{index + 1}}</span>
<span>+{{item.split('(@)')[0]}}</span>
</div>
</div>
</div> </div>
</template> </template>
......
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
<el-table-column <el-table-column
:label="$t('客户号码')"> :label="$t('客户号码')">
<template v-slot="{row}"> <template v-slot="{row}">
<show-contacts :phone-string="row.phone" ></show-contacts> <show-contacts :phone-string="row.phone" ></show-contacts>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
:label="$t('客户名称')"> :label="$t('客户名称')">
</el-table-column> </el-table-column>
<el-table-column <el-table-column
width="210" width="260"
:label="$t('客户号码')"> :label="$t('客户号码')">
<template v-slot="{row}"> <template v-slot="{row}">
<show-contacts :phone-string="row.phone" ></show-contacts> <show-contacts :phone-string="row.phone" ></show-contacts>
......
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