|
|
|
@ -334,6 +334,7 @@ export default { |
|
|
|
|
} |
|
|
|
|
}, |
|
|
|
|
mounted(){ |
|
|
|
|
this.getQueryVariable() |
|
|
|
|
// Promise.resolve(2).then(value => { |
|
|
|
|
// console.log(111, value) |
|
|
|
|
// return value |
|
|
|
@ -420,9 +421,23 @@ export default { |
|
|
|
|
}); |
|
|
|
|
}, |
|
|
|
|
methods: { |
|
|
|
|
getQueryVariable(variable) { |
|
|
|
|
var query = window.location.href; |
|
|
|
|
var vars = query.split("?"); |
|
|
|
|
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]) |
|
|
|
|
}, |
|
|
|
|
toggleGoods() { |
|
|
|
|
console.log('========') |
|
|
|
|
this.showGoods = !this.showGoods; |
|
|
|
|
this.showGoods = !this.showGoods; |
|
|
|
|
}, |
|
|
|
|
showData(type) {/* 展示弹窗-type为弹窗标题文字 */ |
|
|
|
|
this.$store.commit('system/changePop',{show:true,text:type}) |
|
|
|
@ -522,24 +537,41 @@ export default { |
|
|
|
|
this.$store.commit('system/changeGoods',{push:arr}) |
|
|
|
|
clickList.length = 0 |
|
|
|
|
}else{ |
|
|
|
|
if (this.id == '33'){ |
|
|
|
|
sessionStorage.setItem('consumerClientDrag', JSON.stringify(this.receptionList)) |
|
|
|
|
} |
|
|
|
|
switch (this.popText) {/* 其他物品交互逻辑: */ |
|
|
|
|
case'': |
|
|
|
|
break; |
|
|
|
|
case'': |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
break; |
|
|
|
|
if (this.id == '62'){ |
|
|
|
|
let formExternalData = { |
|
|
|
|
openAccount:{ |
|
|
|
|
voucherNumber:this.receptionList, |
|
|
|
|
paymentCode:this.passwordForm.passwordAgain, |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
sessionStorage.setItem('formExternalData', JSON.stringify(formExternalData)) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
this.toggleGoods() |
|
|
|
|
this.$message.success(`${this.popText}操作成功!`) |
|
|
|
|
setTimeout(()=>{ |
|
|
|
|
this.$store.commit('system/changePop',{show:false,text:''}) |
|
|
|
|
},800) |
|
|
|
|
this.receptionList = []; |
|
|
|
|
if(this.popText == '密码器'){ |
|
|
|
|
if(this.passwordForm.password && this.passwordForm.passwordAgain){ |
|
|
|
|
if(this.passwordForm.password.length >=6 && this.passwordForm.passwordAgain.length >=6){ |
|
|
|
|
if(this.passwordForm.password == this.passwordForm.passwordAgain) { |
|
|
|
|
this.$store.commit('system/changePop', {show: false, text: ''}) |
|
|
|
|
this.$message.success(`${this.popText}操作成功!`) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
this.$message.error('请输入密码和确认密码'); |
|
|
|
|
} |
|
|
|
|
}else{ |
|
|
|
|
if (this.receptionList.length >0){ |
|
|
|
|
this.$message.success(`${this.popText}操作成功!`) |
|
|
|
|
// setTimeout(()=>{ |
|
|
|
|
// |
|
|
|
|
// },800) |
|
|
|
|
this.$store.commit('system/changePop',{show:false,text:''}) |
|
|
|
|
this.receptionList = []; |
|
|
|
|
}else{ |
|
|
|
|
this.$message.error('请从物品栏中拖拽所需资料'); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|