|
@@ -290,47 +290,43 @@ export default {
|
|
|
|
|
|
async wxScanCodeA(result) {
|
|
|
const res = await appFindYourShipment({ expressNo: result }, { emulateJSON: true })
|
|
|
- if (res.data !== '') {
|
|
|
- if (res.msg == 'success') {
|
|
|
- this.$store.state.shipment = res
|
|
|
- this.$router.push('ScannerResult')
|
|
|
- } else {
|
|
|
- Toast('找不到此单号')
|
|
|
- }
|
|
|
+ if (res.msg == 'success' && res.data) {
|
|
|
+ this.$store.state.shipment = res
|
|
|
+ this.$router.push('ScannerResult')
|
|
|
} else {
|
|
|
- Toast('没查到此订单号')
|
|
|
+ Toast('找不到此单号')
|
|
|
}
|
|
|
+ }
|
|
|
|
|
|
- console.log(res, '+++++++++==')
|
|
|
- },
|
|
|
+ },
|
|
|
|
|
|
|
|
|
- //单号搜索
|
|
|
- onSearch(val) {
|
|
|
- this.$router.push({
|
|
|
- path: '/Sysearch',
|
|
|
- query: {
|
|
|
- expressNo: val,
|
|
|
- searchType: "1" //1.搜索全部 2.搜索快件 3.搜索寄件
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
+ //单号搜索
|
|
|
+ onSearch(val) {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/Sysearch',
|
|
|
+ query: {
|
|
|
+ expressNo: val,
|
|
|
+ searchType: "1" //1.搜索全部 2.搜索快件 3.搜索寄件
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
- echart1(obj) {
|
|
|
- console.log("图表数据:" + JSON.stringify(obj))
|
|
|
+ echart1(obj) {
|
|
|
+ console.log("图表数据:" + JSON.stringify(obj))
|
|
|
|
|
|
- },
|
|
|
+ },
|
|
|
|
|
|
- async getUser() {
|
|
|
- const res = await getSysUserInfoByUserIdAPI({ userId: localStorage.getItem("userId") })
|
|
|
- this.$store.state.user = res.sysUserInfo
|
|
|
- console.log(this.$store.state.user, 'this.$state.state.user')
|
|
|
- }
|
|
|
+ async getUser() {
|
|
|
+ const res = await getSysUserInfoByUserIdAPI({ userId: localStorage.getItem("userId") })
|
|
|
+ this.$store.state.user = res.sysUserInfo
|
|
|
+ console.log(this.$store.state.user, 'this.$state.state.user')
|
|
|
+ }
|
|
|
|
|
|
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="less">
|