@@ -19,7 +20,7 @@
@@ -189,6 +190,23 @@ export default {
this.dictList = []
this.getType()
},
+ scan() {
+ wx.scanQRCode({
+ desc: '扫描居民信息',
+ needResult: 1, // 默认为0,扫描结果由企业微信处理,1则直接返回扫描结果,
+ scanType: ["qrCode",], // 可以指定扫二维码还是条形码(一维码),默认二者都有
+ success: (res) => {
+ res.resultStr.realName = res.resultStr.name
+ var userList = [{...res.resultStr}]
+ this.handleSelectUser(userList)
+ },
+ error: (res) => {
+ if (res.errMsg.indexOf('function_not_exist') > 0) {
+ alert('版本过低请升级')
+ }
+ }
+ });
+ }
}
}
@@ -218,6 +236,17 @@ export default {
width: calc(100% - 200px);
text-align: right;
}
+ .name-flex {
+ display: flex;
+ .pick {
+ width: calc(100% - 60px);
+ text-align:right;
+ }
+ .scan {
+ width: 60px;
+ padding-left: 20px;
+ }
+ }
::v-deep .AiSelect {
float: right;
}