Commit 39449bd3 authored by 刘雅文's avatar 刘雅文

增加 更换手机号功能

parent d16b8a68
...@@ -9,7 +9,10 @@ ...@@ -9,7 +9,10 @@
<td>身份证号:</td> <td>身份证号:</td>
<td>{{ basicInfo.idCard }}</td> <td>{{ basicInfo.idCard }}</td>
<td>手机号:</td> <td>手机号:</td>
<td>{{ basicInfo.phone }}</td> <td>
{{ basicInfo.phone }}
<el-button type="primary" size="small" @click="updateTell(basicInfo.phone)">变更</el-button>
</td>
</tr> </tr>
<tr> <tr>
<td>实名认证:</td> <td>实名认证:</td>
...@@ -153,6 +156,29 @@ ...@@ -153,6 +156,29 @@
</div> </div>
</el-dialog> </el-dialog>
</template> </template>
<!-- 变更手机号弹框 -->
<el-dialog title="变更客户手机号" :visible.sync="tellDialog" width="30%" center>
<el-form :model="tellUpdate">
<el-form-item label="*原手机号" label-width="80">
<el-input v-model="tellUpdate.oldTell" readonly></el-input>
</el-form-item>
<el-form-item label="*新手机号" label-width="80">
<el-input v-model="tellUpdate.newTell" ></el-input>
</el-form-item>
</el-form>
<div>
注:变更手机号后,客户的相关信息以及短信信息等均以变更后的新手机号为准。
</div>
<div>
请谨慎操作!!!
</div>
<div slot="footer" class="dialog-footer">
<el-button @click="tellDialog = false">取 消</el-button>
<el-button type="primary" @click="tellDetermine"
>确 定</el-button
>
</div>
</el-dialog>
</div> </div>
</template> </template>
...@@ -183,6 +209,11 @@ export default { ...@@ -183,6 +209,11 @@ export default {
}, },
data() { data() {
return { return {
tellUpdate:{
newTell:"",
oldTell:""
},
tellDialog:false,
visible: false, visible: false,
activeComponents: "", activeComponents: "",
dTitle: "", dTitle: "",
...@@ -196,6 +227,7 @@ export default { ...@@ -196,6 +227,7 @@ export default {
newOwnerMobile: "", newOwnerMobile: "",
ownerMobile: "", ownerMobile: "",
}, },
creator:'',
dataInfo: { dataInfo: {
bankAccount: "", bankAccount: "",
bizType: "", bizType: "",
...@@ -216,16 +248,46 @@ export default { ...@@ -216,16 +248,46 @@ export default {
async created() { async created() {
if (this.params) { if (this.params) {
const params = this.params; const params = this.params;
// console.log(params, "是什么"); console.log(params, "是什么");
const { basicInfo } = params; const { basicInfo } = params;
this.basicInfo = basicInfo; this.basicInfo = basicInfo;
if (basicInfo.cardList) this.ownerBank = basicInfo.cardList; if (basicInfo.cardList) this.ownerBank = basicInfo.cardList;
} }
// console.log(this.$route.query.clientProductName) // console.log(this.$route.query.clientProductName)
this.dataInfo.productName=this.$route.query.clientProductName this.dataInfo.productName = this.$route.query.clientProductName;
this.dataInfo.clientNo=this.$route.query.clientNo this.dataInfo.clientNo = this.$route.query.clientNo;
this.creator=localStorage.getItem('userName');
}, },
methods: { methods: {
// 变更手机号
updateTell(n){
this.tellDialog=true;
// console.log(n,'手机号');
this.tellUpdate.oldTell=n;
this.tellUpdate.newTell="";
},
//变更手机号确认按钮
tellDetermine(){
this.tellDialog=false;
const tellParams={
clientNo:this.dataInfo.clientNo,
productName:this.dataInfo.productName,
creator:this.creator,
oldMobile:this.tellUpdate.oldTell,
newMobile:this.tellUpdate.newTell,
certNo:this.basicInfo.idCard
}
console.log(tellParams,'参数');
this.$$post(`/detail/updateMobile`,tellParams).then(res=>{
console.log(res,'resres');
if (res.data.code==200) {
this.$message({
type: "success",
message: "更改成功!",
});
}
})
},
headerStyle() { headerStyle() {
return "tableHeaderStyle"; return "tableHeaderStyle";
}, },
...@@ -246,7 +308,7 @@ export default { ...@@ -246,7 +308,7 @@ export default {
}, },
//解绑 //解绑
unSign(n) { unSign(n) {
console.log(n,'88888'); console.log(n, "88888");
// console.log(this.params); // console.log(this.params);
this.$confirm("确定要解绑吗?", "提示", { this.$confirm("确定要解绑吗?", "提示", {
confirmButtonText: "确定", confirmButtonText: "确定",
...@@ -296,21 +358,21 @@ export default { ...@@ -296,21 +358,21 @@ export default {
let postData = { ...this.dataInfo, ...this.tellphone }; let postData = { ...this.dataInfo, ...this.tellphone };
console.log(postData); console.log(postData);
//调接口 //调接口
this.$$post(`/detail/unSign`,postData).then((res)=>{ this.$$post(`/detail/unSign`, postData).then((res) => {
if (res.data.code != 200) { if (res.data.code != 200) {
this.dialogTableVisible = false; this.dialogTableVisible = false;
this.$message.error(res.data.message); this.$message.error(res.data.message);
this.tellphone={}; this.tellphone = {};
return return;
} }
this.$message({ this.$message({
type: 'success', type: "success",
message: '解绑成功!' message: "解绑成功!",
}); });
this.dialogTableVisible = false; this.dialogTableVisible = false;
this.tellphone={}; this.tellphone = {};
window.location.reload(); window.location.reload();
}) });
} }
}, },
}, },
...@@ -318,4 +380,8 @@ export default { ...@@ -318,4 +380,8 @@ export default {
</script> </script>
<style> <style>
.el-dialog__title{
font-size: 20px;
font-weight: 700;
}
</style> </style>
...@@ -2,3 +2,4 @@ ...@@ -2,3 +2,4 @@
- 2022-10-28 新增页面水印(姓名+手机号后4位),发布到线上(金钱和鼎荣) - 2022-10-28 新增页面水印(姓名+手机号后4位),发布到线上(金钱和鼎荣)
- 2022-11-02 修改水印(登录用户名+手机号后4位),发布到线上(金钱和鼎荣) - 2022-11-02 修改水印(登录用户名+手机号后4位),发布到线上(金钱和鼎荣)
- 2022-11-07 修改水印(登录用户名+手机号后4位+当天日期),发布到线上(金钱和鼎荣) - 2022-11-07 修改水印(登录用户名+手机号后4位+当天日期),发布到线上(金钱和鼎荣)
- 2022-12-30 代扣 支持自定义扣款金额
\ No newline at end of file
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