|
@@ -70,6 +70,7 @@
|
|
|
data() {
|
|
data() {
|
|
|
return {
|
|
return {
|
|
|
|
|
|
|
|
|
|
+ recordId:'',//拓客经理二维码被扫记录id
|
|
|
qrCodeInvalid:false,//二维码是否无效标识
|
|
qrCodeInvalid:false,//二维码是否无效标识
|
|
|
requestStatus:false,
|
|
requestStatus:false,
|
|
|
disabled1:false,
|
|
disabled1:false,
|
|
@@ -188,6 +189,7 @@
|
|
|
if (e.parentId){
|
|
if (e.parentId){
|
|
|
this.form.parentId = e.parentId
|
|
this.form.parentId = e.parentId
|
|
|
console.log('获取到的name',e.parentId)
|
|
console.log('获取到的name',e.parentId)
|
|
|
|
|
+ this.addRecordForManager()
|
|
|
}
|
|
}
|
|
|
if (e.timestamp){
|
|
if (e.timestamp){
|
|
|
console.log('获取到的时间戳',e.timestamp,new Date().getTime() > e.timestamp)
|
|
console.log('获取到的时间戳',e.timestamp,new Date().getTime() > e.timestamp)
|
|
@@ -211,6 +213,28 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
methods: {
|
|
methods: {
|
|
|
|
|
+
|
|
|
|
|
+ addRecordForManager(){
|
|
|
|
|
+ console.log("+++++++++++++创建被扫码记录++++++++++++++")
|
|
|
|
|
+ console.log("+++++++++++++拓客经理id++++++++++++++",this.form.parentId)
|
|
|
|
|
+ console.log("+++++++++++++角色id++++++++++++++",this.form.roleId)
|
|
|
|
|
+ this.$api.service.addRecordForManager({
|
|
|
|
|
+ expandUserId:this.form.parentId,
|
|
|
|
|
+ roleId: this.form.roleId
|
|
|
|
|
+ }).then(res=>{
|
|
|
|
|
+ console.log("获取到的记录id",res.data.data)
|
|
|
|
|
+ this.recordId = res.data.data
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
|
|
+ updateScanRecordById(){
|
|
|
|
|
+ this.$api.service.updateScanRecordById({
|
|
|
|
|
+ recordId:this.recordId
|
|
|
|
|
+ }).then(res=>{
|
|
|
|
|
+ console.log("+++++++++++++创建被扫码记录为成功撞他++++++++++++++",res)
|
|
|
|
|
+ })
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
idCardAndName(){
|
|
idCardAndName(){
|
|
|
return this.$api.service.idCardAndName({
|
|
return this.$api.service.idCardAndName({
|
|
|
name:this.form.name,
|
|
name:this.form.name,
|
|
@@ -309,6 +333,8 @@
|
|
|
this.gologin()
|
|
this.gologin()
|
|
|
},2000)
|
|
},2000)
|
|
|
|
|
|
|
|
|
|
+ this.updateScanRecordById()
|
|
|
|
|
+
|
|
|
}).catch(err=>{
|
|
}).catch(err=>{
|
|
|
this.requestStatus=false
|
|
this.requestStatus=false
|
|
|
})
|
|
})
|