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