w-ui-v1 1.0.71 → 1.0.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/utils/idata-scan.ts
CHANGED
|
@@ -69,10 +69,11 @@ const stopBarcode=()=>{
|
|
|
69
69
|
///手动调用
|
|
70
70
|
//停止扫描
|
|
71
71
|
//接口scanStop(UniJSCallback callback)
|
|
72
|
+
globalEvent.removeEventListener('iDataBarcodeEvent')
|
|
72
73
|
barcodeModel.scanStop((ret) => {
|
|
73
74
|
console.log(ret)
|
|
74
75
|
});
|
|
75
|
-
|
|
76
|
+
|
|
76
77
|
// #endif
|
|
77
78
|
}
|
|
78
79
|
const startBarcode=()=>{
|
|
@@ -22,9 +22,13 @@ const props = defineProps({
|
|
|
22
22
|
sourceId: {
|
|
23
23
|
type: String,
|
|
24
24
|
default: ''
|
|
25
|
+
},
|
|
26
|
+
query:{
|
|
27
|
+
type:Object,
|
|
28
|
+
default: null
|
|
25
29
|
}
|
|
26
30
|
})
|
|
27
|
-
const query = ref(
|
|
31
|
+
const query = ref(null)
|
|
28
32
|
const sourceId = ref('')
|
|
29
33
|
const radiovalue = ref()
|
|
30
34
|
const checkboxvalue = ref([])
|
|
@@ -34,6 +38,7 @@ const pageData = ref<{
|
|
|
34
38
|
}>({ criterias: [], buttons: [] })
|
|
35
39
|
onLoad((option: any) => {
|
|
36
40
|
sourceId.value = props.sourceId || option.sourceId
|
|
41
|
+
query.value=props.query || option.query?JSON.parse(option.query):null
|
|
37
42
|
getPageConfig()
|
|
38
43
|
//监听页
|
|
39
44
|
uni.$on('checkeDData', function (data: any) {
|