|
@@ -2,7 +2,8 @@
|
|
|
<div>
|
|
|
<div class="content">
|
|
|
<div class="sm">
|
|
|
- <van-search v-model="value" @search="onSearch" placeholder="点击搜索单号" />
|
|
|
+ <!-- <van-search v-model="value" @search="onSearch" placeholder="点击搜索单号" /> -->
|
|
|
+ <van-search v-model="value" placeholder="点击搜索单号" />
|
|
|
<img @click="wxScanCode()" src="@/assets/user/u4.png" alt="">
|
|
|
</div>
|
|
|
<!-- 显示 -->
|
|
@@ -50,7 +51,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
-import { appFindYourShipment, appStatistics, getSysUserInfoByUserIdAPI } from '../../api/index'
|
|
|
+import { appFindYourShipment, appStatistics, getSysUserInfoByUserIdAPI, getWxConfig } from '../../api/index'
|
|
|
import {
|
|
|
Toast,
|
|
|
Dialog
|
|
@@ -285,45 +286,46 @@ export default {
|
|
|
},
|
|
|
|
|
|
async wxScanCodeA() {
|
|
|
- const res = await appFindYourShipment({ expressNo: 'SF202303221917' }, { emulateJSON: true })
|
|
|
- if (res.msg == 'success') {
|
|
|
- this.$store.state.shipment = res
|
|
|
- this.$router.push('ScannerResult')
|
|
|
- } else {
|
|
|
- Toast('找不到此单号')
|
|
|
- }
|
|
|
- console.log(res, '+++++++++==')
|
|
|
-
|
|
|
- },
|
|
|
|
|
|
|
|
|
- //单号搜索
|
|
|
- onSearch(val) {
|
|
|
- this.$router.push({
|
|
|
- path: '/Sysearch',
|
|
|
- query: {
|
|
|
- expressNo: val,
|
|
|
- searchType: "1" //1.搜索全部 2.搜索快件 3.搜索寄件
|
|
|
- }
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
+ // const res = await appFindYourShipment({ expressNo: 'SF202303221917' }, { emulateJSON: true })
|
|
|
+ // if (res.msg == 'success') {
|
|
|
+ // this.$store.state.shipment = res
|
|
|
+ // this.$router.push('ScannerResult')
|
|
|
+ // } else {
|
|
|
+ // Toast('找不到此单号')
|
|
|
+ // }
|
|
|
+ // console.log(res, '+++++++++==')
|
|
|
|
|
|
- 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')
|
|
|
- }
|
|
|
+ //单号搜索
|
|
|
+ onSearch(val) {
|
|
|
+ this.$router.push({
|
|
|
+ path: '/Sysearch',
|
|
|
+ query: {
|
|
|
+ expressNo: val,
|
|
|
+ searchType: "1" //1.搜索全部 2.搜索快件 3.搜索寄件
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
|
|
|
+ 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')
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="less">
|