Commit 53468e1a authored by dcy's avatar dcy

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

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