Commit 53468e1a authored by dcy's avatar dcy

全部客户列表,添加投诉,和客户跟进

parent b77a794e
...@@ -97,6 +97,8 @@ ...@@ -97,6 +97,8 @@
v-hasPermi="['ecw:customer:update']">修改</el-button> v-hasPermi="['ecw:customer:update']">修改</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)"
v-hasPermi="['ecw:customer:delete']">删除</el-button> v-hasPermi="['ecw:customer:delete']">删除</el-button>
<el-button size="mini" type="text" icon="el-icon-collection" @click="followUp(scope.row)">跟进</el-button>
<el-button size="mini" type="text" icon="el-icon-user" @click="complaint(scope.row)">客诉</el-button>
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
...@@ -450,6 +452,8 @@ ...@@ -450,6 +452,8 @@
<el-button @click="cancel">取 消</el-button> <el-button @click="cancel">取 消</el-button>
</div> </div>
</el-dialog> </el-dialog>
<customer-follow-list :customer-id="customerId" :id="customerId" ref="CustomerFollowList"></customer-follow-list>
<customer-complaints :customer-id="customerId" ref="customerComplaints"></customer-complaints>
</div> </div>
</template> </template>
...@@ -462,11 +466,15 @@ import { uploadFile } from "@/api/infra/file"; ...@@ -462,11 +466,15 @@ import { uploadFile } from "@/api/infra/file";
import upload from '@/components/ImageUpload' import upload from '@/components/ImageUpload'
import {getNodeList} from "@/api/ecw/node" import {getNodeList} from "@/api/ecw/node"
import CustomerFollowList from "@/components/CustomerFollowList"
import customerComplaints from "@/components/customerComplaints"
export default { export default {
name: "Customer", name: "Customer",
components: { components: {
upload upload,
CustomerFollowList,
customerComplaints
}, },
data() { data() {
return { return {
...@@ -515,7 +523,8 @@ export default { ...@@ -515,7 +523,8 @@ export default {
}, },
// 网点 // 网点
nodeList: [], nodeList: [],
showLine: false showLine: false,
customerId:undefined,
}; };
}, },
created() { created() {
...@@ -665,6 +674,16 @@ export default { ...@@ -665,6 +674,16 @@ export default {
this.$download.excel(response, '${table.classComment}.xls'); this.$download.excel(response, '${table.classComment}.xls');
this.exportLoading = false; this.exportLoading = false;
}).catch(() => {}); }).catch(() => {});
},
followUp(row){
this.customerId = row.id;
this.$refs.CustomerFollowList.customerFollow.dialogVisible = true;
},
complaint(row){
this.customerId = row.id;
this.$nextTick(()=>{
this.$refs.customerComplaints.handleAdd();
})
} }
} }
}; };
......
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