Commit 17de21bc authored by 张伯涛's avatar 张伯涛

pad分支安卓函数调用

parent cc6987f7
<template>
<div class="outbound_module">
<div class="button_row">
<el-button type="primary" @click="handleOpenScan">扫码</el-button>
<el-button type="primary">入库</el-button>
</div>
<el-form ref="form" :model="form" :rules="rules" label-width="auto" label-position="top">
<el-form-item label="扫码结果" prop="scanCode" style="width: 200px">
<el-input v-model="form.scanCode" show-word-limit placeholder="请扫码" />
</el-form-item>
</el-form>
</div>
</template>
<script>
export default {
name: 'Outbound',
data() {
return {
options: [
{ value: '1', label: '类型1' },
{ value: '2', label: '类型2' },
{ value: '3', label: '类型3' }
],
form: {
scanCode: ''
},
rules: {
}
}
},
created() {
},
methods: {
handleOpenScan() {
const params = {
flag: 'openScan'
}
this.$WebView.openScan(params).then(res => {
this.form.scanCode = res
console.log('提交后结果', res)
})
}
}
}
</script>
<style scoped lang="scss">
.outbound_module{
padding: 20px;
.button_row{
margin: 20px 0 20px 0;
}
.outbound_form{
width: 300px;
}
}
</style>
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