|
|
|
@ -204,7 +204,7 @@ export default { |
|
|
|
|
callback(new Error('请输入密码')); |
|
|
|
|
} else { |
|
|
|
|
if (this.passwordForm.password&&/^[0-9]*$/.test(this.passwordForm.password)&&this.passwordForm.password.length===6) { |
|
|
|
|
this.$refs.passwordForm.validateField('password'); |
|
|
|
|
// this.$refs.passwordForm.validateField('password'); |
|
|
|
|
callback(); |
|
|
|
|
}else{ |
|
|
|
|
callback(new Error('请注意密码格式以及密码长度')) |
|
|
|
@ -359,7 +359,17 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted(){ |
|
|
|
|
this.getQueryVariable() |
|
|
|
|
let token = this.getQueryVariable('token') |
|
|
|
|
let cid = this.getQueryVariable('cid') |
|
|
|
|
let systemId = this.getQueryVariable('systemId') |
|
|
|
|
if (token != null){ |
|
|
|
|
sessionStorage.setItem('token', token) |
|
|
|
|
sessionStorage.setItem('cid', cid) |
|
|
|
|
sessionStorage.setItem('systemId', systemId) |
|
|
|
|
}else{ |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Promise.resolve(2).then(value=>{ |
|
|
|
|
// console.log(111,value) |
|
|
|
|
// return value |
|
|
|
@ -446,22 +456,17 @@ export default { |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
getQueryVariable(variable) { |
|
|
|
|
// var query = window.location.href; |
|
|
|
|
// var vars = query.split("?"); |
|
|
|
|
// if (vars.length <= 0){ |
|
|
|
|
// for (var i=1;i<vars.length;i++) { |
|
|
|
|
// var pair = vars[i].split("&"); |
|
|
|
|
// if(pair[0] == variable){return pair[1];} |
|
|
|
|
// } |
|
|
|
|
// for (var j=0;j<pair.length;j++){ |
|
|
|
|
// var index=pair[j].lastIndexOf("="); |
|
|
|
|
// pair[j]=pair[j].substring(index+1,pair[j].length); |
|
|
|
|
// } |
|
|
|
|
// sessionStorage.setItem('token', pair[0]) |
|
|
|
|
// sessionStorage.setItem('cid', pair[1]) |
|
|
|
|
// sessionStorage.setItem('systemId', pair[2]) |
|
|
|
|
// } |
|
|
|
|
getQueryVariable(name) { |
|
|
|
|
var reg = new RegExp('(^|&)'+name+'=([^&]*)(&|$)') |
|
|
|
|
if( window.location.href.split('?')[1]){ |
|
|
|
|
var r = window.location.href.split('?')[1].match(reg) |
|
|
|
|
if (r != null){ |
|
|
|
|
return (r[2]) |
|
|
|
|
}else{ |
|
|
|
|
return null |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
}, |
|
|
|
|
toggleGoods() { |
|
|
|
|
this.showGoods = !this.showGoods; |
|
|
|
@ -577,12 +582,18 @@ export default { |
|
|
|
|
}else{ |
|
|
|
|
if (this.id == '62'){ |
|
|
|
|
this.goodsShelfTotalData = this.auditGoodsShelf |
|
|
|
|
let formExternalData = { |
|
|
|
|
openAccount:{ |
|
|
|
|
voucherNumber:this.receptionList, |
|
|
|
|
paymentCode:this.passwordForm.passwordAgain, |
|
|
|
|
let formExternalData = { |
|
|
|
|
openAccount:{ |
|
|
|
|
voucherNumber:[], |
|
|
|
|
paymentCode: '', |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if (this.receptionList.length){ |
|
|
|
|
formExternalData.openAccount.voucherNumber = this.receptionList |
|
|
|
|
} |
|
|
|
|
if (this.paymentCode.length){ |
|
|
|
|
formExternalData.openAccount.paymentCode = this.passwordForm.passwordAgain |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
sessionStorage.setItem('formExternalData', JSON.stringify(formExternalData)) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|