Commit b1e5167b by wangyalan-git

库存统计,领用记录,库存统计,领用详情

parent eb70e9ef
...@@ -66,6 +66,7 @@ export default { ...@@ -66,6 +66,7 @@ export default {
}, },
// 员工二维码扫描 // 员工二维码扫描
scanQrCode () { scanQrCode () {
const that = this
window.qing.call('scanQRCode', { window.qing.call('scanQRCode', {
needResult: 1, needResult: 1,
success: function (result) { success: function (result) {
...@@ -73,24 +74,28 @@ export default { ...@@ -73,24 +74,28 @@ export default {
const data = JSON.parse(result.data.qrcode_str) const data = JSON.parse(result.data.qrcode_str)
checkQcode(data).then(res => { checkQcode(data).then(res => {
console.log('校验结果', res) console.log('校验结果', res)
alert('校验结果' + res)
getMemberInfo({ memberId: data.memberId }).then(res => { getMemberInfo({ memberId: data.memberId }).then(res => {
console.log('userId', res) console.log('userId', res)
this.userInfo = res.data that.userInfo = res.data
alert('userInfo' + res.data)
}) })
}) })
alert('数据2' + that.userInfo)
console.log('成功', result) console.log('成功', result)
}, },
error: function (res) { error: function (res) {
alert('失败' + res) alert('失败' + res)
} }
}) })
// const result = '{"onlyId":"84c322654e1a4ae4bf93c99839a5af72","memberId":36}' // const result = '{"onlyId":"056e3cf540194041bd5a2eadf91301b6","memberId":36}'
// const data = JSON.parse(result) // const data = JSON.parse(result)
// checkQcode(data).then(res => { // checkQcode(data).then(res => {
// console.log('校验结果', res) // console.log('校验结果', res)
// getMemberInfo({ memberId: data.memberId }).then(res => { // getMemberInfo({ memberId: data.memberId }).then(res => {
// console.log('userId', res)
// this.userInfo = res.data // this.userInfo = res.data
// console.log('userId', this.userInfo)
// }) // })
// }) // })
// console.log('成功', result) // console.log('成功', result)
......
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