Commit 1ec48149 by wangyalan-git

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

parent 02b3dfef
...@@ -52,13 +52,23 @@ export default { ...@@ -52,13 +52,23 @@ export default {
} }
}, },
mounted () { mounted () {
this.init()
}, },
methods: { methods: {
init () {
window.qing.call('scanQRCode', {
needResult: 0,
success: function (result) {
alert(result)
}
})
},
// 员工二维码扫描 // 员工二维码扫描
scanQrCode () { scanQrCode () {
window.qing.call('scanQRCode', { window.qing.call('scanQRCode', {
needResult: 1, needResult: 1,
success: function (result) { success: function (result) {
alert(result)
const data = JSON.parse(result.data) const data = JSON.parse(result.data)
checkQcode(data).then(res => { checkQcode(data).then(res => {
console.log('校验结果', res) console.log('校验结果', res)
......
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