|
@@ -94,7 +94,7 @@
|
|
|
import { reactive, ref, onMounted } from 'vue'
|
|
|
import { onLoad, onNavigationBarButtonTap } from '@dcloudio/uni-app'
|
|
|
import { checkPermission } from '@/utils'
|
|
|
-import { waybillPickUpOrders } from '@/services/waybillPickUpOrder'
|
|
|
+import { waybillPickUpOrders, getPickUpByWaybillNo } from '@/services/waybillPickUpOrder'
|
|
|
import type { StatusItem } from '@/types/waybillPickUp'
|
|
|
import { getCurrentInstance } from 'vue'
|
|
|
|
|
@@ -223,6 +223,8 @@ const scanInput = async () => {
|
|
|
// #endif
|
|
|
uni.scanCode({
|
|
|
success: (res: any) => {
|
|
|
+ console.log('res---', res.result)
|
|
|
+
|
|
|
// valiFormData.value.order_code = res.result;
|
|
|
// onsubmit();
|
|
|
},
|
|
@@ -409,9 +411,13 @@ onLoad(() => {
|
|
|
onMounted(() => {
|
|
|
getScrollW()
|
|
|
})
|
|
|
-onNavigationBarButtonTap((event) => {
|
|
|
+onNavigationBarButtonTap(async (event) => {
|
|
|
if (event.index === 0) {
|
|
|
- scanInput()
|
|
|
+ const res = await getPickUpByWaybillNo('123456')
|
|
|
+
|
|
|
+ console.log('res---', res)
|
|
|
+
|
|
|
+ // scanInput()
|
|
|
// showRightRef.value.open()
|
|
|
}
|
|
|
})
|