| | |
| | | export default { |
| | | onShow() {}, |
| | | methods: {} |
| | | // created() { |
| | | // uni.loadFontFace({ |
| | | // family: 'siYuanLight', // 字体名称,可以自定义 |
| | | // source: 'url("/utils/fonts/siyuan.OTF")', // 字体文件路径 |
| | | // success() { |
| | | // console.log('字体加载成功'); |
| | | // }, |
| | | // fail() { |
| | | // console.log('字体加载失败'); |
| | | // } |
| | | // }); |
| | | // } |
| | | }; |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | /*每个页面公共css */ |
| | | @import '@/uni_modules/uview-ui/index.scss'; |
| | | @font-face { |
| | | font-family: siYuanLight; |
| | | src: url('https://mx.jzeg.cn:9095/appimg/fonts/siyuan.OTF'); |
| | | } |
| | | @font-face { |
| | | font-family: weighting; |
| | | src: url('https://mx.jzeg.cn:9095/appimg/fonts/weighting.TTF'); |
| | | } |
| | | body { |
| | | font-family: siYuanLight, sans-serif; |
| | | } |
| | | // @font-face { |
| | | // font-family: 'weighting'; |
| | | // src: url('./utils/fonts/weighing.TTF'); |
| | | // } |
| | | </style> |
| | |
| | | import App from './App' |
| | | import Vue from 'vue' |
| | | import '../unattended-app/static/fonts/commontfont.css' |
| | | import tabbar from '@/components/tab-bar/tab-bar.vue' |
| | | Vue.config.productionTip = false |
| | | |
| | |
| | | { |
| | | "name": "pigx-app", |
| | | "version": "4.6.0", |
| | | "lockfileVersion": 1, |
| | | "lockfileVersion": 2, |
| | | "requires": true, |
| | | "packages": { |
| | | "": { |
| | | "name": "pigx-app", |
| | | "version": "4.6.0", |
| | | "dependencies": { |
| | | "@amap/amap-jsapi-loader": "^1.0.1", |
| | | "bignumber.js": "^9.1.1", |
| | | "crypto-js": "^3.1.9-1", |
| | | "qs": "^6.9.7", |
| | | "vue-i18n": "^8.20.0" |
| | | } |
| | | }, |
| | | "node_modules/@amap/amap-jsapi-loader": { |
| | | "version": "1.0.1", |
| | | "resolved": "https://registry.npmmirror.com/@amap/amap-jsapi-loader/-/amap-jsapi-loader-1.0.1.tgz", |
| | | "integrity": "sha512-nPyLKt7Ow/ThHLkSvn2etQlUzqxmTVgK7bIgwdBRTg2HK5668oN7xVxkaiRe3YZEzGzfV2XgH5Jmu2T73ljejw==" |
| | | }, |
| | | "node_modules/bignumber.js": { |
| | | "version": "9.1.1", |
| | | "resolved": "https://registry.npmmirror.com/bignumber.js/-/bignumber.js-9.1.1.tgz", |
| | | "integrity": "sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig==", |
| | | "engines": { |
| | | "node": "*" |
| | | } |
| | | }, |
| | | "node_modules/call-bind": { |
| | | "version": "1.0.2", |
| | | "resolved": "https://registry.npmmirror.com/call-bind/-/call-bind-1.0.2.tgz", |
| | | "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", |
| | | "dependencies": { |
| | | "function-bind": "^1.1.1", |
| | | "get-intrinsic": "^1.0.2" |
| | | } |
| | | }, |
| | | "node_modules/crypto-js": { |
| | | "version": "3.3.0", |
| | | "resolved": "https://registry.npmmirror.com/crypto-js/-/crypto-js-3.3.0.tgz", |
| | | "integrity": "sha512-DIT51nX0dCfKltpRiXV+/TVZq+Qq2NgF4644+K7Ttnla7zEzqc+kjJyiB96BHNyUTBxyjzRcZYpUdZa+QAqi6Q==" |
| | | }, |
| | | "node_modules/function-bind": { |
| | | "version": "1.1.1", |
| | | "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.1.tgz", |
| | | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" |
| | | }, |
| | | "node_modules/get-intrinsic": { |
| | | "version": "1.2.0", |
| | | "resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.2.0.tgz", |
| | | "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", |
| | | "dependencies": { |
| | | "function-bind": "^1.1.1", |
| | | "has": "^1.0.3", |
| | | "has-symbols": "^1.0.3" |
| | | } |
| | | }, |
| | | "node_modules/has": { |
| | | "version": "1.0.3", |
| | | "resolved": "https://registry.npmmirror.com/has/-/has-1.0.3.tgz", |
| | | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", |
| | | "dependencies": { |
| | | "function-bind": "^1.1.1" |
| | | }, |
| | | "engines": { |
| | | "node": ">= 0.4.0" |
| | | } |
| | | }, |
| | | "node_modules/has-symbols": { |
| | | "version": "1.0.3", |
| | | "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.0.3.tgz", |
| | | "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==", |
| | | "engines": { |
| | | "node": ">= 0.4" |
| | | } |
| | | }, |
| | | "node_modules/object-inspect": { |
| | | "version": "1.12.3", |
| | | "resolved": "https://registry.npmmirror.com/object-inspect/-/object-inspect-1.12.3.tgz", |
| | | "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==" |
| | | }, |
| | | "node_modules/qs": { |
| | | "version": "6.11.1", |
| | | "resolved": "https://registry.npmmirror.com/qs/-/qs-6.11.1.tgz", |
| | | "integrity": "sha512-0wsrzgTz/kAVIeuxSjnpGC56rzYtr6JT/2BwEvMaPhFIoYa1aGO8LbzuU1R0uUYQkLpWBTOj0l/CLAJB64J6nQ==", |
| | | "dependencies": { |
| | | "side-channel": "^1.0.4" |
| | | }, |
| | | "engines": { |
| | | "node": ">=0.6" |
| | | } |
| | | }, |
| | | "node_modules/side-channel": { |
| | | "version": "1.0.4", |
| | | "resolved": "https://registry.npmmirror.com/side-channel/-/side-channel-1.0.4.tgz", |
| | | "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", |
| | | "dependencies": { |
| | | "call-bind": "^1.0.0", |
| | | "get-intrinsic": "^1.0.2", |
| | | "object-inspect": "^1.9.0" |
| | | } |
| | | }, |
| | | "node_modules/vue-i18n": { |
| | | "version": "8.28.2", |
| | | "resolved": "https://registry.npmmirror.com/vue-i18n/-/vue-i18n-8.28.2.tgz", |
| | | "integrity": "sha512-C5GZjs1tYlAqjwymaaCPDjCyGo10ajUphiwA922jKt9n7KPpqR7oM1PCwYzhB/E7+nT3wfdG3oRre5raIT1rKA==" |
| | | } |
| | | }, |
| | | "dependencies": { |
| | | "@amap/amap-jsapi-loader": { |
| | | "version": "1.0.1", |
| | | "resolved": "https://registry.npmmirror.com/@amap/amap-jsapi-loader/-/amap-jsapi-loader-1.0.1.tgz", |
| | | "integrity": "sha512-nPyLKt7Ow/ThHLkSvn2etQlUzqxmTVgK7bIgwdBRTg2HK5668oN7xVxkaiRe3YZEzGzfV2XgH5Jmu2T73ljejw==" |
| | | }, |
| | | "bignumber.js": { |
| | | "version": "9.1.1", |
| | | "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.1.1.tgz", |
| | | "resolved": "https://registry.npmmirror.com/bignumber.js/-/bignumber.js-9.1.1.tgz", |
| | | "integrity": "sha512-pHm4LsMJ6lzgNGVfZHjMoO8sdoRhOzOH4MLmY65Jg70bpxCKu5iOHNJyfF6OyvYw7t8Fpf35RuzUyqnQsj8Vig==" |
| | | }, |
| | | "call-bind": { |
| | | "version": "1.0.2", |
| | | "resolved": "https://registry.npmjs.org/call-bind/-/call-bind-1.0.2.tgz", |
| | | "resolved": "https://registry.npmmirror.com/call-bind/-/call-bind-1.0.2.tgz", |
| | | "integrity": "sha512-7O+FbCihrB5WGbFYesctwmTKae6rOiIzmz1icreWJ+0aA7LJfuqhEso2T9ncpcFtzMQtzXf2QGGueWJGTYsqrA==", |
| | | "requires": { |
| | | "function-bind": "^1.1.1", |
| | |
| | | }, |
| | | "crypto-js": { |
| | | "version": "3.3.0", |
| | | "resolved": "https://registry.npmjs.org/crypto-js/-/crypto-js-3.3.0.tgz", |
| | | "resolved": "https://registry.npmmirror.com/crypto-js/-/crypto-js-3.3.0.tgz", |
| | | "integrity": "sha512-DIT51nX0dCfKltpRiXV+/TVZq+Qq2NgF4644+K7Ttnla7zEzqc+kjJyiB96BHNyUTBxyjzRcZYpUdZa+QAqi6Q==" |
| | | }, |
| | | "function-bind": { |
| | | "version": "1.1.1", |
| | | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", |
| | | "resolved": "https://registry.npmmirror.com/function-bind/-/function-bind-1.1.1.tgz", |
| | | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" |
| | | }, |
| | | "get-intrinsic": { |
| | | "version": "1.2.0", |
| | | "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.0.tgz", |
| | | "resolved": "https://registry.npmmirror.com/get-intrinsic/-/get-intrinsic-1.2.0.tgz", |
| | | "integrity": "sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==", |
| | | "requires": { |
| | | "function-bind": "^1.1.1", |
| | |
| | | }, |
| | | "has": { |
| | | "version": "1.0.3", |
| | | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", |
| | | "resolved": "https://registry.npmmirror.com/has/-/has-1.0.3.tgz", |
| | | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", |
| | | "requires": { |
| | | "function-bind": "^1.1.1" |
| | |
| | | }, |
| | | "has-symbols": { |
| | | "version": "1.0.3", |
| | | "resolved": "https://registry.npmjs.org/has-symbols/-/has-symbols-1.0.3.tgz", |
| | | "resolved": "https://registry.npmmirror.com/has-symbols/-/has-symbols-1.0.3.tgz", |
| | | "integrity": "sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A==" |
| | | }, |
| | | "object-inspect": { |
| | | "version": "1.12.3", |
| | | "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.3.tgz", |
| | | "resolved": "https://registry.npmmirror.com/object-inspect/-/object-inspect-1.12.3.tgz", |
| | | "integrity": "sha512-geUvdk7c+eizMNUDkRpW1wJwgfOiOeHbxBR/hLXK1aT6zmVSO0jsQcs7fj6MGw89jC/cjGfLcNOrtMYtGqm81g==" |
| | | }, |
| | | "qs": { |
| | | "version": "6.11.0", |
| | | "resolved": "https://registry.npmjs.org/qs/-/qs-6.11.0.tgz", |
| | | "integrity": "sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q==", |
| | | "version": "6.11.1", |
| | | "resolved": "https://registry.npmmirror.com/qs/-/qs-6.11.1.tgz", |
| | | "integrity": "sha512-0wsrzgTz/kAVIeuxSjnpGC56rzYtr6JT/2BwEvMaPhFIoYa1aGO8LbzuU1R0uUYQkLpWBTOj0l/CLAJB64J6nQ==", |
| | | "requires": { |
| | | "side-channel": "^1.0.4" |
| | | } |
| | | }, |
| | | "side-channel": { |
| | | "version": "1.0.4", |
| | | "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", |
| | | "resolved": "https://registry.npmmirror.com/side-channel/-/side-channel-1.0.4.tgz", |
| | | "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", |
| | | "requires": { |
| | | "call-bind": "^1.0.0", |
| | |
| | | }, |
| | | "vue-i18n": { |
| | | "version": "8.28.2", |
| | | "resolved": "https://registry.npmjs.org/vue-i18n/-/vue-i18n-8.28.2.tgz", |
| | | "resolved": "https://registry.npmmirror.com/vue-i18n/-/vue-i18n-8.28.2.tgz", |
| | | "integrity": "sha512-C5GZjs1tYlAqjwymaaCPDjCyGo10ajUphiwA922jKt9n7KPpqR7oM1PCwYzhB/E7+nT3wfdG3oRre5raIT1rKA==" |
| | | } |
| | | } |
| | |
| | | "url": "https://pig4cloud.com" |
| | | }, |
| | | "dependencies": { |
| | | "@amap/amap-jsapi-loader": "^1.0.1", |
| | | "bignumber.js": "^9.1.1", |
| | | "crypto-js": "^3.1.9-1", |
| | | "qs": "^6.9.7", |
| | |
| | | width: 96%; |
| | | height: 34rpx; |
| | | font-size: 32rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #303030; |
| | | @include flex; |
| | |
| | | width: 100%; |
| | | height: 31rpx; |
| | | font-size: 30rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #515151; |
| | | margin: vww(10) vww(10) 0; |
| | |
| | | width: 96%; |
| | | height: 31rpx; |
| | | font-size: 30rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #515151; |
| | | margin: vww(10) vww(10) 0; |
| | |
| | | width: 100%; |
| | | height: 31rpx; |
| | | font-size: 30rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #515151; |
| | | margin: vww(10) vww(10) 0; |
| | |
| | | width: 15%; |
| | | text { |
| | | font-size: 24rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 400; |
| | | color: #c78a64; |
| | | } |
| | | .residue { |
| | | font-size: 40rpx; |
| | | font-family: CTCuHeiSJ; |
| | | font-weight: 400; |
| | | color: #f81414; |
| | | } |
| | |
| | | flex-grow: 1; |
| | | height: 30rpx; |
| | | font-size: 30rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #515151; |
| | | position: relative; |
| | |
| | | height: 30rpx; |
| | | line-height: 30rpx; |
| | | font-size: 30rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #515151; |
| | | } |
| | |
| | | height: 24rpx; |
| | | line-height: 24rpx; |
| | | font-size: 28rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #515151; |
| | | } |
| | |
| | | background: url('../../../static/image/banner/button.png') no-repeat; |
| | | background-size: cover; |
| | | font-size: 28rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #ffffff; |
| | | text-align: center; |
| | | line-height: vww(45); |
| | | } |
| | | } |
| | | .receive { |
| | | left: vww(20); |
| | | } |
| | | .forward { |
| | | width: vww(106); |
| | |
| | | background: url('../../../static/image/banner/transpartent.png') no-repeat; |
| | | background-size: cover; |
| | | font-size: 28rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #3b56eb; |
| | | text-align: center; |
| | |
| | | <view class="dept-num"> |
| | | <text |
| | | style="font-size: 46rpx; |
| | | font-family: CTCuHeiSJ; |
| | | font-weight: 400; |
| | | color: #FFFFFF; |
| | | text-shadow: 0rpx 4rpx 0rpx #1A66FE;" |
| | |
| | | </text> |
| | | <text |
| | | style="font-size: 24rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 400; |
| | | color: #F81414; |
| | | text-shadow: 0rpx 4rpx 0rpx #1A66FE;" |
| | |
| | | orderPlanId: null, |
| | | orderCode: null, |
| | | orderPlanDetail: {}, |
| | | coalStatus: ['领取', '预约', '签到', '入场', '称皮', '称毛', '离场', '入磅房', '出磅房', '入煤场', '出煤仓'], |
| | | coalStatus: ['领取', '预约', '签到', '入场', '称皮', '称毛', '离场', '入磅房', '出磅房', '入煤仓', '出煤仓', '放空', '作废', '入场申请', '进入场院'], |
| | | yyDailyList: [], |
| | | // 领取数量 |
| | | cars2: '', |
| | |
| | | width: 226rpx; |
| | | height: 36rpx; |
| | | font-size: 38rpx; |
| | | font-family: Adobe Heiti Std; |
| | | font-weight: normal; |
| | | color: #fff; |
| | | line-height: 69rpx; |
| | |
| | | top: vww(54); |
| | | .dept-name { |
| | | font-size: 32rpx; |
| | | font-family: Adobe Heiti Std; |
| | | font-weight: normal; |
| | | color: #ffffff; |
| | | line-height: 69rpx; |
| | |
| | | .forward-name, |
| | | .fleet-name { |
| | | font-size: 28rpx; |
| | | font-family: Adobe Heiti Std; |
| | | font-weight: normal; |
| | | color: #757575; |
| | | line-height: 69rpx; |
| | |
| | | .forward-num, |
| | | .fleet-num { |
| | | font-size: 40rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 400; |
| | | color: #303030; |
| | | line-height: 69rpx; |
| | |
| | | height: 30rpx; |
| | | line-height: vww(15); |
| | | font-size: 28rpx; |
| | | font-family: Adobe Heiti Std; |
| | | font-weight: normal; |
| | | color: #757575; |
| | | text { |
| | |
| | | height: 30rpx; |
| | | line-height: vww(15); |
| | | font-size: 40rpx; |
| | | font-family: CTCuHeiSJ; |
| | | font-weight: 400; |
| | | color: #f81414; |
| | | } |
| | |
| | | .car-num { |
| | | height: 31rpx; |
| | | font-size: 30rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #303030; |
| | | } |
| | |
| | | height: 29rpx; |
| | | line-height: 29rpx; |
| | | font-size: 28rpx; |
| | | font-family: PingFang SC; |
| | | font-weight: 400; |
| | | color: #919090; |
| | | } |
| | |
| | | height: 29rpx; |
| | | line-height: 29rpx; |
| | | font-size: 38rpx; |
| | | font-family: PingFang SC; |
| | | font-weight: 400; |
| | | color: #035cfb; |
| | | } |
| | |
| | | orderPlanId: '', |
| | | yyDailyList: {}, |
| | | orderPlanDetail: {}, |
| | | coalStatus: ['领取', '预约', '签到', '入场', '称皮', '称毛', '离场', '入磅房', '出磅房', '入煤场', '出煤仓'], |
| | | coalStatus: ['领取', '预约', '签到', '入场', '称皮', '称毛', '离场', '入磅房', '出磅房', '入煤仓', '出煤仓', '放空', '作废', '入场申请', '进入场院'], |
| | | index: '' |
| | | }; |
| | | }, |
| | |
| | | width: 80rpx; |
| | | height: 37rpx; |
| | | font-size: 40rpx; |
| | | font-family: Adobe Heiti Std; |
| | | font-weight: normal; |
| | | color: #ffffff; |
| | | line-height: 69rpx; |
| | |
| | | </view> |
| | | <view class="filter-condition"></view> |
| | | <view class="date-information"> |
| | | <u-empty mode="data" icon="http://cdn.uviewui.com/uview/empty/data.png" textSize="30" iconSize="1000" v-if="filterList.length == 0"></u-empty> |
| | | <view class="statistics-card" v-for="(item, index) in filterList" :key="index"> |
| | | <view class="card-top"> |
| | | <view class="left"><combined-title :title="item.condition"></combined-title></view> |
| | |
| | | }, |
| | | first: '', |
| | | last: '', |
| | | firstFilter: '', |
| | | lastFilter: '', |
| | | taskList: [], |
| | | filterList: [], |
| | | totalLength: 0, |
| | |
| | | // 点击右箭头详情弹窗 |
| | | faYunDetailobj: {}, |
| | | modalShow: false, |
| | | coalStatus: ['领取', '预约', '签到', '入场', '称皮', '称毛', '离场', '入磅房', '出磅房', '入煤场', '出煤仓'] |
| | | coalStatus: ['领取', '预约', '签到', '入场', '称皮', '称毛', '离场', '入磅房', '出磅房', '入煤仓', '出煤仓', '放空', '作废', '入场申请', '进入场院'] |
| | | }; |
| | | }, |
| | | onShow() { |
| | |
| | | let d = '01'; |
| | | m = m < 10 ? '0' + m : m; //月份补 0 |
| | | this.first = [y, m, d].join('-'); |
| | | this.firstFilter = [y, m, d].join('-'); |
| | | }, |
| | | lastDate() { |
| | | let y = new Date().getFullYear(); //获取年份 |
| | |
| | | m = m < 10 ? '0' + m : m; //月份补 0 |
| | | d = d < 10 ? '0' + d : d; //日数补 0 |
| | | this.last = [y, m, d].join('-'); |
| | | this.lastFilter = [y, m, d].join('-'); |
| | | }, |
| | | // 筛选条件 |
| | | getShipping() { |
| | |
| | | // 重置筛选 |
| | | resetCondition() { |
| | | this.conditinonShow = false; |
| | | this.filterList = this.taskList; |
| | | if (this.filterList.length != 0) { |
| | | this.totalLength = this.filterList.map(v => v.taskCoalList.length).reduce((x, y) => x + y); |
| | | this.totalTon = this.filterList.map(v => |
| | | v.taskCoalList.reduce((prev, cur) => { |
| | | return cur.clean + prev; |
| | | }, 0) |
| | | ); |
| | | this.totalTon = this.totalTon.reduce((x, y) => x + y); |
| | | } else { |
| | | this.totalLength = 0; |
| | | this.totalTon = 0; |
| | | } |
| | | this.first = this.dateRange.slice(0, 10); |
| | | this.last = this.dateRange.slice(11); |
| | | this.coalList.forEach(v => { |
| | | v.active = false; |
| | | }); |
| | |
| | | return uni.getStorageSync('roleType'); |
| | | }, |
| | | dateRange() { |
| | | return `日期:${this.first}-${this.last}`; |
| | | return `${this.firstFilter}-${this.lastFilter}`; |
| | | }, |
| | | dateselect() { |
| | | return `${this.first}-${this.last}`; |
| | |
| | | width: 100%; |
| | | height: vww(16); |
| | | font-size: 40rpx; |
| | | font-family: Source Han Sans CN; |
| | | font-weight: bold; |
| | | color: #3b56eb; |
| | | text-align: center; |
| | |
| | | width: 96rpx; |
| | | height: 24rpx; |
| | | font-size: 24rpx; |
| | | font-family: Source Han Sans CN; |
| | | font-weight: 400; |
| | | color: #333333; |
| | | } |
| | |
| | | width: 160rpx; |
| | | height: 38rpx; |
| | | font-size: 40rpx; |
| | | font-family: Adobe Heiti Std; |
| | | font-weight: normal; |
| | | color: #ffffff; |
| | | line-height: 69rpx; |
| | |
| | | width: 330rpx; |
| | | height: 40rpx; |
| | | font-size: 28rpx; |
| | | font-family: Source Han Sans CN; |
| | | font-weight: 400; |
| | | color: #494949; |
| | | } |
| | |
| | | @include flex; |
| | | .left { |
| | | font-size: 30rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 400; |
| | | color: #494949; |
| | | } |
| | | .card-top_num { |
| | | font-size: 40rpx; |
| | | font-family: CTCuHeiSJ; |
| | | font-weight: 400; |
| | | color: #6074ee; |
| | | } |
| | |
| | | .point-number { |
| | | width: 20%; |
| | | font-size: 40rpx; |
| | | font-family: CTCuHeiSJ; |
| | | font-weight: 400; |
| | | color: #f81414; |
| | | } |
| | |
| | | flex-grow: 1; |
| | | height: 30rpx; |
| | | font-size: 30rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #515151; |
| | | position: relative; |
| | |
| | | height: 30rpx; |
| | | line-height: 30rpx; |
| | | font-size: 30rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #515151; |
| | | } |
| | |
| | | } |
| | | .carnum-text { |
| | | font-size: 28rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #515151; |
| | | } |
| | |
| | | &_label { |
| | | line-height: 28rpx; |
| | | font-size: 28rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #303030; |
| | | } |
| | | &_value { |
| | | line-height: 28rpx; |
| | | font-size: 28rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #303030; |
| | | } |
| | |
| | | margin-top: 19%; |
| | | text-align: center; |
| | | font-size: vww(40); |
| | | font-family: Source Han Sans CN, Source Han Sans CN-Bold; |
| | | font-weight: 700; |
| | | color: #896227; |
| | | } |
| | | &-coalTwo { |
| | | margin-top: 20%; |
| | | font-size: vww(20); |
| | | font-family: Source Han Sans CN, Source Han Sans CN-Bold; |
| | | font-weight: 700; |
| | | text-align: center; |
| | | color: #2e363f; |
| | |
| | | &-coalThree { |
| | | margin-top: vww(46); |
| | | font-size: vww(18); |
| | | font-family: Source Han Sans CN, Source Han Sans CN-Bold; |
| | | font-weight: 700; |
| | | text-align: center; |
| | | color: #2e363f; |
| | |
| | | </view> --> |
| | | <view class="bottom"><text>TIP:当前状态为正常时可以称重</text></view> |
| | | </view> |
| | | <view class="middle-block"> |
| | | <view class="middle-block" v-if="firstHairCustomernameShow || sideline"> |
| | | <view class="block-main" v-if="firstHairCustomernameShow"> |
| | | <view class="first-line"><combined-title title="原发信息"></combined-title></view> |
| | | <view class="second-line"> |
| | | <view class="label-text">皮重</view> |
| | | <view class="input-container"><u--input placeholder="请输入皮重" border="surround" v-model="weighData.coalContactSkin"></u--input></view> |
| | | <view class="unit">吨</view> |
| | | <view class="label-text" :class="{ focusClass: isfocus1 }">皮重</view> |
| | | <view class="input-container" :class="{ inputClass: isfocus1 }"> |
| | | <u--input placeholder="请输入皮重" border="surround" v-model="weighData.coalContactSkin" @focus="inputFocus(1)" @blur="inputBlur"></u--input> |
| | | </view> |
| | | <view class="unit" :class="{ focusClass: isfocus1 }">吨</view> |
| | | </view> |
| | | <view class="second-line"> |
| | | <view class="label-text">毛重</view> |
| | | <view class="input-container"><u--input placeholder="请输入毛重" border="surround" v-model="weighData.coalContactHair"></u--input></view> |
| | | <view class="unit">吨</view> |
| | | <view class="label-text" :class="{ focusClass: isfocus2 }">毛重</view> |
| | | <view class="input-container" :class="{ inputClass: isfocus2 }"> |
| | | <u--input placeholder="请输入毛重" border="surround" v-model="weighData.coalContactHair" @focus="inputFocus(2)" @blur="inputBlur"></u--input> |
| | | </view> |
| | | <view class="unit" :class="{ focusClass: isfocus2 }">吨</view> |
| | | </view> |
| | | <view class="second-line"> |
| | | <view class="label-text">净重</view> |
| | |
| | | <view class="unit">吨</view> |
| | | </view> |
| | | </view> |
| | | <view class="block-sideline" v-if="weighList.orderType == '内购' || weighList.orderType == '转出'"> |
| | | <view class="block-sideline" v-if="sideline"> |
| | | <view class="first-line"><combined-title title="原发信息"></combined-title></view> |
| | | <view class="weigh-item"> |
| | | <view class="item"> |
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view v-else style="width: 100%;height: vww(20);"></view> |
| | | <view class="bottom-block"> |
| | | <view class="block-main"> |
| | | <view class="main-information"> |
| | |
| | | // 外购类型称重填写毛,皮, |
| | | firstHairCustomernameShow: false, |
| | | coalContactHair: '', |
| | | coalContactSkin: '' |
| | | // 二次确认 |
| | | coalContactSkin: '', |
| | | // 聚焦时改变样式 |
| | | isfocus1: false, |
| | | isfocus2: false |
| | | }; |
| | | }, |
| | | watch: { |
| | |
| | | }, |
| | | // 加减煤按钮禁用与否 |
| | | addAndSubtractCoalDisabled() { |
| | | if (this.weighList.orderType == '外销' || this.weighList.orderType == '内销' || this.weighList.orderType == '转出') { |
| | | if (this.weighList.hair == 0) { |
| | | return true; |
| | | } else if (this.weighList.hair != 0) { |
| | | return false; |
| | | } |
| | | } |
| | | return this.realTimeWeigh == 0; |
| | | // if (this.weighList.orderType == '外销' || this.weighList.orderType == '内销' || this.weighList.orderType == '转出') { |
| | | // if (this.weighList.hair == 0) { |
| | | // return true; |
| | | // } else if (this.weighList.hair != 0) { |
| | | // return false; |
| | | // } |
| | | // } |
| | | }, |
| | | // 是否放空按钮禁用 |
| | | isEvacuation() { |
| | |
| | | if (this.weighList.orderType == '外购' || this.weighList.orderType == '内购' || this.weighList.orderType == '转入') { |
| | | return this.weighList.hair == this.temporaryWeighObj.skin || this.temporaryWeighObj.skin == this.temporaryWeighObj.hair; |
| | | } |
| | | }, |
| | | sideline() { |
| | | return this.weighList.orderType == '内购' || this.weighList.orderType == '转出'; |
| | | } |
| | | }, |
| | | methods: { |
| | |
| | | // 放空弹窗取消 |
| | | evacuationCancel() { |
| | | this.evacuationModalShow = false; |
| | | }, |
| | | // input聚焦 |
| | | inputFocus(v) { |
| | | if (v == 1) { |
| | | this.isfocus1 = true; |
| | | } else { |
| | | this.isfocus2 = true; |
| | | } |
| | | }, |
| | | // input失焦 |
| | | inputBlur() { |
| | | this.isfocus1 = false; |
| | | this.isfocus2 = false; |
| | | } |
| | | } |
| | | }; |
| | |
| | | align-items: center; |
| | | justify-content: center; |
| | | font-size: 74rpx; |
| | | font-family: Determination Sans; |
| | | font-weight: 400; |
| | | color: #ffffff; |
| | | line-height: 69rpx; |
| | | text-shadow: 0rpx 3rpx 14rpx rgba(0, 0, 0, 0.33); |
| | | text { |
| | | font-family: weighting; |
| | | } |
| | | } |
| | | .top_right { |
| | | display: flex; |
| | |
| | | justify-content: center; |
| | | flex: 2; |
| | | font-size: 31rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #ffffff; |
| | | view { |
| | |
| | | align-items: center; |
| | | flex-direction: column; |
| | | font-size: 28rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #d9e1fe; |
| | | // position: relative; |
| | | // top: vww(-10); |
| | | } |
| | | } |
| | | .middle-block { |
| | |
| | | background: #ffffff; |
| | | box-shadow: 0rpx 0rpx 14rpx 0rpx rgba(73, 120, 240, 0.14), 0rpx 7rpx 45rpx 0rpx rgba(73, 120, 240, 0.12); |
| | | border-radius: 20rpx; |
| | | @include flex justify-content: center; |
| | | @include flex; |
| | | justify-content: center; |
| | | overflow: hidden; |
| | | .block-main { |
| | | width: 650rpx; |
| | | height: 350rpx; |
| | | @include flex flex-direction: column; |
| | | @include flex; |
| | | flex-direction: column; |
| | | margin-bottom: vww(20); |
| | | position: relative; |
| | | .first-line, |
| | | .second-line { |
| | | width: 90%; |
| | | height: vww(44); |
| | | .focusClass { |
| | | color: #5b95fd; |
| | | } |
| | | .inputClass { |
| | | border: 1px solid rgba(73, 95, 252, 0.6) !important; |
| | | box-shadow: 0rpx 5rpx 13rpx 0rpx rgba(73, 95, 252, 0.6) !important; |
| | | border-radius: 12rpx !important; |
| | | } |
| | | .input-container { |
| | | border: 2px solid #c5c5c5; |
| | | box-shadow: 0rpx 5rpx 13rpx 0rpx #c5c5c5; |
| | |
| | | } |
| | | .first-line { |
| | | @include flex; |
| | | position: relative; |
| | | top: vww(8); |
| | | } |
| | | .second-line { |
| | | @include flex; |
| | |
| | | min-width: vww(50); |
| | | height: vww(45); |
| | | font-size: 21rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 400; |
| | | color: #ffffff; |
| | | text-align: center; |
| | |
| | | } |
| | | .num { |
| | | font-size: 40rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #303030; |
| | | } |
| | |
| | | align-items: flex-start; |
| | | flex-direction: column; |
| | | .main-information { |
| | | width: 50%; |
| | | width: 100%; |
| | | height: 28rpx; |
| | | font-size: 28rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #303030; |
| | | @include flex; |
| | | justify-content: flex-start; |
| | | .prefix { |
| | | min-width: vww(60); |
| | | } |
| | | .suffix { |
| | | flex: 1; |
| | | margin-left: vww(12); |
| | | text-align: left; |
| | | } |
| | | } |
| | | } |
| | | } |
| | |
| | | <view class="first-line"> |
| | | <view class="dispatch-receive"> |
| | | <view v-if="item.orderType == '外销' || item.orderType == '内销' || item.orderType == '转出'" class="container"> |
| | | <view class="dispatch">{{ item.deptName }}</view> |
| | | <view class="dispatch">{{ item.deptName || '' }}</view> |
| | | <view class="receive-icon"></view> |
| | | <view class="receive">{{ item.customerNameCopy }}</view> |
| | | <view class="receive">{{ item.customerNameCopy || '' }}}</view> |
| | | </view> |
| | | <view v-else-if="item.orderType == '外购' || item.orderType == '内购' || item.orderType == '转入'" class="container"> |
| | | <view class="dispatch">{{ item.customerNameCopy }}</view> |
| | | <view class="dispatch">{{ item.customerNameCopy || '' }}</view> |
| | | <view class="receive-icon"></view> |
| | | <view class="receive">{{ item.deptName }}</view> |
| | | <view class="receive">{{ item.deptName || '' }}}</view> |
| | | </view> |
| | | </view> |
| | | <view class="point-number"> |
| | |
| | | <script> |
| | | import { customerId } from '@/utils/status'; |
| | | import combinedTitle from '@/components/combined-title/combined-title.vue'; |
| | | |
| | | export default { |
| | | components: { |
| | | combinedTitle |
| | |
| | | qiangDanOrderPlanId: null, |
| | | fleetId: '', |
| | | xsUserId: '', |
| | | customerId: '' |
| | | customerId: '', |
| | | // 集成高德地图 |
| | | amapPlugin: null, |
| | | key: 'e3106700a6225e6a25727d3a41fa54c5', |
| | | addressName: '' |
| | | }; |
| | | }, |
| | | onShow() { |
| | |
| | | height: 24rpx; |
| | | line-height: 24rpx; |
| | | font-size: 28rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #515151; |
| | | } |
| | | .havedclock { |
| | | width: 58% !important; |
| | | margin-right: 0 !important; |
| | | .send-date { |
| | | width: 100%; |
| | | margin-left: vww(12); |
| | |
| | | .button-img { |
| | | width: 100%; |
| | | height: 100%; |
| | | background: url('../../../static/image/banner/button.png') no-repeat; |
| | | background: url('https://mx.jzeg.cn:9095/appimg/image/banner/button.png') no-repeat; |
| | | background-size: cover; |
| | | font-size: 28rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #ffffff; |
| | | text-align: center; |
| | |
| | | margin: 0 auto; |
| | | // 主体 |
| | | .driver-index-body { |
| | | margin-bottom: vww(56); |
| | | // margin-bottom: vww(56); |
| | | // 待领取提煤单 |
| | | .wait-collection { |
| | | width: 100%; |
| | |
| | | width: 15%; |
| | | text { |
| | | font-size: 24rpx; |
| | | font-family: Microsoft YaHei; |
| | | |
| | | font-weight: 400; |
| | | color: #c78a64; |
| | | } |
| | | .residue { |
| | | font-size: 40rpx; |
| | | font-family: CTCuHeiSJ; |
| | | font-weight: 400; |
| | | color: #f81414; |
| | | } |
| | |
| | | min-width: vww(50); |
| | | height: 30rpx; |
| | | font-size: 30rpx; |
| | | font-family: Microsoft YaHei; |
| | | |
| | | font-weight: 300; |
| | | color: #515151; |
| | | position: relative; |
| | |
| | | min-width: vww(50); |
| | | height: 30rpx; |
| | | font-size: 30rpx; |
| | | font-family: Microsoft YaHei; |
| | | |
| | | font-weight: 300; |
| | | color: #515151; |
| | | position: relative; |
| | |
| | | min-width: vww(50); |
| | | height: 30rpx; |
| | | font-size: 30rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #515151; |
| | | text-align: center; |
| | |
| | | margin-left: vww(14); |
| | | line-height: 24rpx; |
| | | font-size: 28rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #515151; |
| | | } |
| | |
| | | .button-img { |
| | | width: 100%; |
| | | height: 100%; |
| | | background: url('../../../static/image/banner/button.png') no-repeat; |
| | | background: url('https://mx.jzeg.cn:9095/appimg/image/banner/button.png') no-repeat; |
| | | background-size: cover; |
| | | font-size: 28rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #ffffff; |
| | | text-align: center; |
| | |
| | | justify-content: space-between; |
| | | .first-line { |
| | | position: relative; |
| | | @include firstLine .main-information { |
| | | width: 40%; |
| | | @include firstLine; |
| | | .main-information { |
| | | width: 100%; |
| | | height: vww(28); |
| | | display: flex; |
| | | justify-content: space-between; |
| | | justify-content: flex-start; |
| | | align-items: center; |
| | | |
| | | .sign { |
| | |
| | | height: vww(28); |
| | | line-height: vww(28); |
| | | text-align: center; |
| | | background: url('../../../static/image/banner/blueblock.png') no-repeat; |
| | | background: url('https://mx.jzeg.cn:9095/appimg/image/banner/blueblock.png') no-repeat; |
| | | background-size: contain; |
| | | font-size: 30rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 400; |
| | | color: #ffffff; |
| | | margin-right: vww(20); |
| | | } |
| | | } |
| | | .main-divider { |
| | |
| | | @include firstLine margin: 0; |
| | | margin-left: vww(16); |
| | | .main-information { |
| | | width: 40%; |
| | | width: 100%; |
| | | height: vww(28); |
| | | display: flex; |
| | | justify-content: space-between; |
| | | justify-content: flex-start; |
| | | align-items: center; |
| | | .sign { |
| | | width: vww(28); |
| | | height: vww(28); |
| | | line-height: vww(28); |
| | | text-align: center; |
| | | background: url('../../../static/image/banner/redblock.png') no-repeat; |
| | | background: url('https://mx.jzeg.cn:9095/appimg/image/banner/redblock.png') no-repeat; |
| | | background-size: contain; |
| | | font-size: 30rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 400; |
| | | color: #ffffff; |
| | | margin-right: vww(20); |
| | | } |
| | | } |
| | | } |
| | |
| | | .clock { |
| | | width: 33%; |
| | | height: vww(21); |
| | | // margin-right: vww(70); |
| | | margin-right: vww(70); |
| | | line-height: vww(21); |
| | | @include flex; |
| | | justify-content: flex-start; |
| | |
| | | border: 2px solid #035cfb; |
| | | border-radius: 4rpx; |
| | | font-size: 28rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #035cfb; |
| | | text-align: center; |
| | |
| | | width: 80rpx; |
| | | height: 37rpx; |
| | | font-size: 40rpx; |
| | | font-family: Adobe Heiti Std; |
| | | font-weight: normal; |
| | | color: #ffffff; |
| | | line-height: 69rpx; |
| | |
| | | width: 136rpx; |
| | | height: 32rpx; |
| | | font-size: 34rpx; |
| | | font-family: Source Han Sans CN; |
| | | font-weight: bold; |
| | | color: #ffffff; |
| | | margin-left: vww(17); |
| | |
| | | .label-text { |
| | | width: 120rpx; |
| | | font-size: 30rpx; |
| | | font-family: Source Han Sans CN; |
| | | font-weight: 400; |
| | | color: #000000; |
| | | line-height: 85rpx; |
| | |
| | | min-width: vww(125); |
| | | @include flex; |
| | | font-size: 30rpx; |
| | | font-family: Source Han Sans CN; |
| | | font-weight: 400; |
| | | color: #000000; |
| | | line-height: 85rpx; |
| | |
| | | width: 96%; |
| | | height: 34rpx; |
| | | font-size: 32rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #303030; |
| | | @include flex; |
| | |
| | | width: 100%; |
| | | height: 31rpx; |
| | | font-size: 30rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #515151; |
| | | margin: vww(10) vww(10) 0; |
| | |
| | | width: 96%; |
| | | height: 31rpx; |
| | | font-size: 30rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #515151; |
| | | margin: vww(10) vww(10) 0; |
| | |
| | | width: 50%; |
| | | height: 31rpx; |
| | | font-size: 30rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #515151; |
| | | margin: vww(10) vww(10) 0; |
| | |
| | | width: 15%; |
| | | text { |
| | | font-size: 24rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 400; |
| | | color: #c78a64; |
| | | } |
| | | .residue { |
| | | font-size: 40rpx; |
| | | font-family: CTCuHeiSJ; |
| | | font-weight: 400; |
| | | color: #f81414; |
| | | } |
| | |
| | | flex-grow: 1; |
| | | height: 30rpx; |
| | | font-size: 30rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #515151; |
| | | position: relative; |
| | |
| | | height: 30rpx; |
| | | line-height: 30rpx; |
| | | font-size: 30rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #515151; |
| | | } |
| | |
| | | margin-left: vww(14); |
| | | line-height: 24rpx; |
| | | font-size: 28rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #515151; |
| | | } |
| | |
| | | background: url('../../../static/image/banner/button.png') no-repeat; |
| | | background-size: cover; |
| | | font-size: 28rpx; |
| | | font-family: Microsoft YaHei; |
| | | font-weight: 300; |
| | | color: #fff; |
| | | text-align: center; |
| | |
| | | width: 80rpx; |
| | | height: 37rpx; |
| | | font-size: 40rpx; |
| | | font-family: Adobe Heiti Std; |
| | | font-weight: normal; |
| | | color: #ffffff; |
| | | line-height: 69rpx; |
| | |
| | | return { |
| | | id: '', |
| | | faYunDetailobj: {}, |
| | | coalStatus: ['领取', '预约', '签到', '入场', '称皮', '称毛', '离场', '入磅房', '出磅房', '入煤场', '出煤仓'] |
| | | coalStatus: ['领取', '预约', '签到', '入场', '称皮', '称毛', '离场', '入磅房', '出磅房', '入煤仓', '出煤仓', '放空', '作废', '入场申请', '进入场院'] |
| | | }; |
| | | }, |
| | | methods: {}, |
| | |
| | | </u-form-item> |
| | | <u-form-item label="输入数量" labelWidth="20%" ref="item1"> |
| | | <view class="forward-card-amount"> |
| | | <view class="forward-card-amount-input"><u--input v-model="val.carNum" placeholder="请输入转发数量"></u--input></view> |
| | | <view class="forward-card-amount-input"> |
| | | <u--input |
| | | v-model="val.carNum" |
| | | placeholder="请输入转发数量" |
| | | @input="debouncecarNumInput(index, val.carNum)" |
| | | @blur="blurInput(index, val.carNum)" |
| | | ></u--input> |
| | | </view> |
| | | <u-checkbox-group v-model="val.checkboxValue1" placement="column" @change="v => checkboxChange(v, index, val)"> |
| | | <u-checkbox :customStyle="{ marginBottom: '8px' }" size="30" labelSize="30" label="全部转发" name="全部转发" :disabled="val.ischecked"></u-checkbox> |
| | | </u-checkbox-group> |
| | |
| | | </u--form> |
| | | </view> |
| | | <!-- 增加按钮 --> |
| | | <view class="AdddBtn"><u-button text="添加" :hairline="false" type="primary" :customStyle="{ marginBottom: '8px' }" @click="addForm"></u-button></view> |
| | | <view class="AdddBtn"> |
| | | <u-button text="添加" :hairline="false" type="primary" :customStyle="{ marginBottom: '8px' }" @click="addForm" :disabled="whetherClick"></u-button> |
| | | </view> |
| | | <!-- 按钮 --> |
| | | <view class="forwardBtn"><u-button text="提交" :hairline="false" type="warning" @click="submitForm"></u-button></view> |
| | | <view class="forwardBtn"><u-button text="提交" :hairline="false" type="warning" @click="submitForm" :disabled="whetherClick1"></u-button></view> |
| | | |
| | | <!-- 选择货代或车队弹出框 --> |
| | | <view class="selectHuoDaiOrFleet-container"> |
| | |
| | | |
| | | <script> |
| | | import { customerId } from '@/utils/status'; |
| | | import toast from '../../../uni_modules/uview-ui/libs/config/props/toast'; |
| | | |
| | | export default { |
| | | onLoad(params) { |
| | | console.log(params, '转发页面的参数'); |
| | | // 客户 |
| | | this.cars2 = Number(params.cars2); |
| | | this.carNumSurplus1 = Number(params.carNumSurplus1); |
| | | this.tempcarNumSurplus1 = this.carNumSurplus1 = Number(params.carNumSurplus1); |
| | | // 货代 |
| | | this.carNum = Number(params.carNum); |
| | | this.carNumSurplusHuodai = this.forwardSurplus = Number(params.carNumSurplusHuodai); |
| | |
| | | list1: [{ name: '车队' }, { name: '货代' }], |
| | | tabHuoDai: false, |
| | | carNumSurplus1: '', |
| | | tempcarNumSurplus1: '', |
| | | cars2: '', |
| | | carNum: '', |
| | | carNumSurplusHuodai: '', |
| | | formNum: 1, |
| | | // 个人转发数据 |
| | | personalForward: {} |
| | | personalForward: {}, |
| | | whetherClick: false, |
| | | whetherClick1: false |
| | | }; |
| | | }, |
| | | onShow() { |
| | |
| | | } |
| | | }, |
| | | checkboxChange(value, index, v) { |
| | | uni.setStorageSync('allrelay', this.jhOrderPlanForwardList[index].carNum); |
| | | this.jhOrderPlanForwardList = this.jhOrderPlanForwardList.map((v, i) => { |
| | | this.jhOrderPlanForwardList = this.jhOrderPlanForwardList.map(v => { |
| | | return { |
| | | ...v, |
| | | ischecked: false |
| | |
| | | if (value.length != 0) { |
| | | let tempforwardSurplus = this.forwardSurplus; |
| | | let tempcarNumSurplus1 = this.carNumSurplus1; |
| | | if (v.id) { |
| | | this.$reqGet('jhorderplanforward', { forwardId: v.id }).then(res => { |
| | | this.personalForward = res.data; |
| | | // 计算全部转发数 |
| | | // 客户 |
| | | if (this.roleType == 1) { |
| | | this.jhOrderPlanForwardList[index].carNum = this.allrelay(this.personalForward.carNum, tempcarNumSurplus1); |
| | | if (this.jhOrderPlanForwardList[index].carNum == 0) { |
| | | this.jhOrderPlanForwardList[index].carNum == tempcarNumSurplus1; |
| | | } |
| | | } |
| | | tempcarNumSurplus1 = 0; |
| | | // 货代 |
| | | if (this.roleType == 2) { |
| | | this.jhOrderPlanForwardList[index].carNum = this.allrelay(this.personalForward.carNum, tempforwardSurplus); |
| | | } |
| | | tempforwardSurplus = 0; |
| | | }); |
| | | } else { |
| | | if (this.roleType == 1) { |
| | | this.jhOrderPlanForwardList[index].carNum = this.carNumSurplus1; |
| | | // this.allrelay(this.jhOrderPlanForwardList[index].carNum, this.carNumSurplus1); |
| | | } |
| | | tempcarNumSurplus1 = 0; |
| | | if (this.roleType == 2) { |
| | | this.jhOrderPlanForwardList[index].carNum = this.forwardSurplus; |
| | | // this.allrelay(this.jhOrderPlanForwardList[index].carNum, this.forwardSurplus); |
| | | } |
| | | tempforwardSurplus = 0; |
| | | // if (v.id) { |
| | | // this.$reqGet('jhorderplanforward', { forwardId: v.id }).then(res => { |
| | | // this.personalForward = res.data; |
| | | // // 计算全部转发数 |
| | | // // 客户 |
| | | // if (this.roleType == 1) { |
| | | // this.jhOrderPlanForwardList[index].carNum = this.allrelay(this.personalForward.carNum, tempcarNumSurplus1); |
| | | // this.calculate(this.jhOrderPlanForwardList); |
| | | // if (tempcarNumSurplus1 == 0) { |
| | | // this.jhOrderPlanForwardList[index].carNum = this.allrelay(0, this.carNumSurplus1); |
| | | // } |
| | | // } |
| | | // tempcarNumSurplus1 = 0; |
| | | // // 货代 |
| | | // if (this.roleType == 2) { |
| | | // this.jhOrderPlanForwardList[index].carNum = this.allrelay(this.personalForward.carNum, tempforwardSurplus); |
| | | // } |
| | | // tempforwardSurplus = 0; |
| | | // }); |
| | | // } else { } |
| | | |
| | | if (this.roleType == 1) { |
| | | this.jhOrderPlanForwardList[index].carNum = this.allrelay(this.carNumSurplus1, this.jhOrderPlanForwardList[index].carNum); |
| | | this.calculate(this.jhOrderPlanForwardList); |
| | | } |
| | | if (this.roleType == 2) { |
| | | this.jhOrderPlanForwardList[index].carNum = this.allrelay(this.forwardSurplus, this.jhOrderPlanForwardList[index].carNum); |
| | | this.calculate(this.jhOrderPlanForwardList); |
| | | } |
| | | // 选择一个后其余禁止复选 |
| | | this.jhOrderPlanForwardList.forEach((v, i) => { |
| | |
| | | v.ischecked = true; |
| | | } |
| | | }); |
| | | this.whetherClick = true; |
| | | } else { |
| | | let tempforwardSurplus = this.forwardSurplus; |
| | | let tempcarNumSurplus1 = this.carNumSurplus1; |
| | | // 货代 |
| | | if (this.roleType == 2) { |
| | | this.jhOrderPlanForwardList[index].carNum = 0; |
| | | if (this.jhOrderPlanForwardList[index].carNum <= 0) { |
| | | this.jhOrderPlanForwardList[index].carNum = 0; |
| | | } |
| | | } |
| | | // 客户 |
| | | if (this.roleType == 1) { |
| | | this.jhOrderPlanForwardList[index].carNum = 0; |
| | | if (this.jhOrderPlanForwardList[index].carNum <= 0) { |
| | | this.jhOrderPlanForwardList[index].carNum = 0; |
| | | } |
| | | } |
| | | this.jhOrderPlanForwardList[index].carNum = 0; |
| | | this.calculate(this.jhOrderPlanForwardList); |
| | | } |
| | | }, |
| | | // 获取货代列表 |
| | |
| | | } |
| | | }); |
| | | }, |
| | | // 计算提煤单数量,添加或删除时调用 |
| | | calculate(arr) { |
| | | let total = arr.reduce((prev, cur) => { |
| | | return cur.carNum + prev; |
| | | }, 0); |
| | | console.log(total, '提煤单一共的数据'); |
| | | if (this.roleType == 1) { |
| | | if (this.cars2 >= total) { |
| | | this.carNumSurplus1 = this.cars2 - total; |
| | | this.whetherClick = false; |
| | | this.whetherClick1 = false; |
| | | } else { |
| | | this.carNumSurplus1 = 0; |
| | | this.$u.toast('剩余提煤单数量不足'); |
| | | this.whetherClick = true; |
| | | this.whetherClick1 = true; |
| | | } |
| | | } |
| | | return total; |
| | | }, |
| | | debouncecarNumInput(index, value) { |
| | | let time; |
| | | let that = this; |
| | | return (function() { |
| | | if (!time) { |
| | | time = setTimeout(() => { |
| | | that.$set(that.jhOrderPlanForwardList[index], 'carNum', Number(value)); |
| | | that.calculate(that.jhOrderPlanForwardList); |
| | | time = null; |
| | | }, 800); |
| | | } |
| | | })(); |
| | | }, |
| | | blurInput(index, value) { |
| | | this.$set(this.jhOrderPlanForwardList[index], 'carNum', Number(value)); |
| | | this.calculate(this.jhOrderPlanForwardList); |
| | | }, |
| | | // 添加一组表单 |
| | | addForm() { |
| | | // 判断是否有一个复选,如果有则禁止新加的复选,没有则不禁止 |
| | |
| | | this.jhOrderPlanForwardList.push({ |
| | | orderPlanId: this.orderPlanId, |
| | | name: '', |
| | | carNum: 0, |
| | | carNum: null, |
| | | xsUserId: 0, |
| | | fleetId: 0, |
| | | checkboxValue1: '', |
| | |
| | | this.jhOrderPlanForwardList.push({ |
| | | orderPlanId: this.orderPlanId, |
| | | name: '', |
| | | carNum: 0, |
| | | carNum: null, |
| | | xsUserId: 0, |
| | | fleetId: 0, |
| | | checkboxValue1: '', |
| | | ischecked: true |
| | | }); |
| | | } |
| | | this.calculate(this.jhOrderPlanForwardList); |
| | | }, |
| | | // 删除一组表单 |
| | | deleteGroup(index, v) { |
| | |
| | | this.$reqPost('deleteForward', { id: v.id }, 'params').then(res => { |
| | | if (res.code === 0) { |
| | | this.jhOrderPlanForwardList.splice(index, 1); |
| | | this.calculate(this.jhOrderPlanForwardList); |
| | | this.$u.toast('删除成功'); |
| | | } else if (res.code === 1) { |
| | | this.$u.toast(res.msg); |
| | |
| | | }); |
| | | } else { |
| | | this.jhOrderPlanForwardList.splice(index, 1); |
| | | this.calculate(this.jhOrderPlanForwardList); |
| | | this.$u.toast('删除成功'); |
| | | } |
| | | }, |
| | |
| | | ::v-deep .u-cell__title-text { |
| | | height: 32rpx; |
| | | font-size: 34rpx !important; |
| | | font-family: PingFang SC; |
| | | font-weight: bold; |
| | | color: #2f2f2f !important; |
| | | margin-bottom: vww(18); |
| | |
| | | <template> |
| | | <view> |
| | | <view class="max-block"> |
| | | <view class="search-bar"> |
| | | <view class="icon-body"> |
| | | <view class="icon-box" @click="messagePage"> |
| | |
| | | import freightForwarderIndex from '@/pages/freight-forwarder-page/freightForwarder-index/freightForwarder-index.vue'; |
| | | import { mapState, mapMutations } from 'vuex'; |
| | | import { webSocketUrl } from '@/api/request.js'; |
| | | |
| | | let socket = null; |
| | | export default { |
| | | components: { |
| | |
| | | console.log('开启双人通话成功Complete'); |
| | | } |
| | | }); |
| | | let amap = require('../../../utils/amap-wx.130.js'); |
| | | let amapPlugin = new amap.AMapWX({ |
| | | key: 'e3106700a6225e6a25727d3a41fa54c5' |
| | | }); |
| | | amapPlugin.getRegeo({ |
| | | success: data => { |
| | | console.log(data, '获取位置'); |
| | | }, |
| | | fail: info => { |
| | | console.log(info, '错误信息'); |
| | | } |
| | | }); |
| | | }, |
| | | data() { |
| | | return { |
| | |
| | | messagePushShow: false, |
| | | messageList: {}, |
| | | isconnect: false, |
| | | dotShow: false |
| | | dotShow: false, |
| | | amapPlugin: null, |
| | | key: 'e3106700a6225e6a25727d3a41fa54c5', |
| | | addressName: '' |
| | | }; |
| | | }, |
| | | onShow() { |
| | |
| | | </script> |
| | | |
| | | <style lang="scss" scoped> |
| | | .max-block { |
| | | font-family: siYuanLight !important; |
| | | } |
| | | .white-block { |
| | | width: 100%; |
| | | height: vww(50); |
| | | height: vww(20); |
| | | margin-top: vww(10); |
| | | } |
| | | .search-bar { |
New file |
| | |
| | | function AMapWX(a){this.key=a.key;this.requestConfig={key:a.key,s:"rsx",platform:"WXJS",appname:a.key,sdkversion:"1.2.0",logversion:"2.0"};this.MeRequestConfig={key:a.key,serviceName:"https://restapi.amap.com/rest/me"}} |
| | | AMapWX.prototype.getWxLocation=function(a,b){wx.getLocation({type:"gcj02",success:function(c){c=c.longitude+","+c.latitude;wx.setStorage({key:"userLocation",data:c});b(c)},fail:function(c){wx.getStorage({key:"userLocation",success:function(d){d.data&&b(d.data)}});a.fail({errCode:"0",errMsg:c.errMsg||""})}})}; |
| | | AMapWX.prototype.getMEKeywordsSearch=function(a){if(!a.options)return a.fail({errCode:"0",errMsg:"\u7f3a\u5c11\u5fc5\u8981\u53c2\u6570"});var b=a.options,c=this.MeRequestConfig,d={key:c.key,s:"rsx",platform:"WXJS",appname:a.key,sdkversion:"1.2.0",logversion:"2.0"};b.layerId&&(d.layerId=b.layerId);b.keywords&&(d.keywords=b.keywords);b.city&&(d.city=b.city);b.filter&&(d.filter=b.filter);b.sortrule&&(d.sortrule=b.sortrule);b.pageNum&&(d.pageNum=b.pageNum);b.pageSize&&(d.pageSize=b.pageSize);b.sig&&(d.sig= |
| | | b.sig);wx.request({url:c.serviceName+"/cpoint/datasearch/local",data:d,method:"GET",header:{"content-type":"application/json"},success:function(e){(e=e.data)&&e.status&&"1"===e.status&&0===e.code?a.success(e.data):a.fail({errCode:"0",errMsg:e})},fail:function(e){a.fail({errCode:"0",errMsg:e.errMsg||""})}})}; |
| | | AMapWX.prototype.getMEIdSearch=function(a){if(!a.options)return a.fail({errCode:"0",errMsg:"\u7f3a\u5c11\u5fc5\u8981\u53c2\u6570"});var b=a.options,c=this.MeRequestConfig,d={key:c.key,s:"rsx",platform:"WXJS",appname:a.key,sdkversion:"1.2.0",logversion:"2.0"};b.layerId&&(d.layerId=b.layerId);b.id&&(d.id=b.id);b.sig&&(d.sig=b.sig);wx.request({url:c.serviceName+"/cpoint/datasearch/id",data:d,method:"GET",header:{"content-type":"application/json"},success:function(e){(e=e.data)&&e.status&&"1"===e.status&& |
| | | 0===e.code?a.success(e.data):a.fail({errCode:"0",errMsg:e})},fail:function(e){a.fail({errCode:"0",errMsg:e.errMsg||""})}})}; |
| | | AMapWX.prototype.getMEPolygonSearch=function(a){if(!a.options)return a.fail({errCode:"0",errMsg:"\u7f3a\u5c11\u5fc5\u8981\u53c2\u6570"});var b=a.options,c=this.MeRequestConfig,d={key:c.key,s:"rsx",platform:"WXJS",appname:a.key,sdkversion:"1.2.0",logversion:"2.0"};b.layerId&&(d.layerId=b.layerId);b.keywords&&(d.keywords=b.keywords);b.polygon&&(d.polygon=b.polygon);b.filter&&(d.filter=b.filter);b.sortrule&&(d.sortrule=b.sortrule);b.pageNum&&(d.pageNum=b.pageNum);b.pageSize&&(d.pageSize=b.pageSize); |
| | | b.sig&&(d.sig=b.sig);wx.request({url:c.serviceName+"/cpoint/datasearch/polygon",data:d,method:"GET",header:{"content-type":"application/json"},success:function(e){(e=e.data)&&e.status&&"1"===e.status&&0===e.code?a.success(e.data):a.fail({errCode:"0",errMsg:e})},fail:function(e){a.fail({errCode:"0",errMsg:e.errMsg||""})}})}; |
| | | AMapWX.prototype.getMEaroundSearch=function(a){if(!a.options)return a.fail({errCode:"0",errMsg:"\u7f3a\u5c11\u5fc5\u8981\u53c2\u6570"});var b=a.options,c=this.MeRequestConfig,d={key:c.key,s:"rsx",platform:"WXJS",appname:a.key,sdkversion:"1.2.0",logversion:"2.0"};b.layerId&&(d.layerId=b.layerId);b.keywords&&(d.keywords=b.keywords);b.center&&(d.center=b.center);b.radius&&(d.radius=b.radius);b.filter&&(d.filter=b.filter);b.sortrule&&(d.sortrule=b.sortrule);b.pageNum&&(d.pageNum=b.pageNum);b.pageSize&& |
| | | (d.pageSize=b.pageSize);b.sig&&(d.sig=b.sig);wx.request({url:c.serviceName+"/cpoint/datasearch/around",data:d,method:"GET",header:{"content-type":"application/json"},success:function(e){(e=e.data)&&e.status&&"1"===e.status&&0===e.code?a.success(e.data):a.fail({errCode:"0",errMsg:e})},fail:function(e){a.fail({errCode:"0",errMsg:e.errMsg||""})}})}; |
| | | AMapWX.prototype.getGeo=function(a){var b=this.requestConfig,c=a.options;b={key:this.key,extensions:"all",s:b.s,platform:b.platform,appname:this.key,sdkversion:b.sdkversion,logversion:b.logversion};c.address&&(b.address=c.address);c.city&&(b.city=c.city);c.batch&&(b.batch=c.batch);c.sig&&(b.sig=c.sig);wx.request({url:"https://restapi.amap.com/v3/geocode/geo",data:b,method:"GET",header:{"content-type":"application/json"},success:function(d){(d=d.data)&&d.status&&"1"===d.status?a.success(d):a.fail({errCode:"0", |
| | | errMsg:d})},fail:function(d){a.fail({errCode:"0",errMsg:d.errMsg||""})}})}; |
| | | AMapWX.prototype.getRegeo=function(a){function b(d){var e=c.requestConfig;wx.request({url:"https://restapi.amap.com/v3/geocode/regeo",data:{key:c.key,location:d,extensions:"all",s:e.s,platform:e.platform,appname:c.key,sdkversion:e.sdkversion,logversion:e.logversion},method:"GET",header:{"content-type":"application/json"},success:function(g){if(g.data.status&&"1"==g.data.status){g=g.data.regeocode;var h=g.addressComponent,f=[],k=g.roads[0].name+"\u9644\u8fd1",m=d.split(",")[0],n=d.split(",")[1];if(g.pois&& |
| | | g.pois[0]){k=g.pois[0].name+"\u9644\u8fd1";var l=g.pois[0].location;l&&(m=parseFloat(l.split(",")[0]),n=parseFloat(l.split(",")[1]))}h.provice&&f.push(h.provice);h.city&&f.push(h.city);h.district&&f.push(h.district);h.streetNumber&&h.streetNumber.street&&h.streetNumber.number?(f.push(h.streetNumber.street),f.push(h.streetNumber.number)):f.push(g.roads[0].name);f=f.join("");a.success([{iconPath:a.iconPath,width:a.iconWidth,height:a.iconHeight,name:f,desc:k,longitude:m,latitude:n,id:0,regeocodeData:g}])}else a.fail({errCode:g.data.infocode, |
| | | errMsg:g.data.info})},fail:function(g){a.fail({errCode:"0",errMsg:g.errMsg||""})}})}var c=this;a.location?b(a.location):c.getWxLocation(a,function(d){b(d)})}; |
| | | AMapWX.prototype.getWeather=function(a){function b(g){var h="base";a.type&&"forecast"==a.type&&(h="all");wx.request({url:"https://restapi.amap.com/v3/weather/weatherInfo",data:{key:d.key,city:g,extensions:h,s:e.s,platform:e.platform,appname:d.key,sdkversion:e.sdkversion,logversion:e.logversion},method:"GET",header:{"content-type":"application/json"},success:function(f){if(f.data.status&&"1"==f.data.status)if(f.data.lives){if((f=f.data.lives)&&0<f.length){f=f[0];var k={city:{text:"\u57ce\u5e02",data:f.city}, |
| | | weather:{text:"\u5929\u6c14",data:f.weather},temperature:{text:"\u6e29\u5ea6",data:f.temperature},winddirection:{text:"\u98ce\u5411",data:f.winddirection+"\u98ce"},windpower:{text:"\u98ce\u529b",data:f.windpower+"\u7ea7"},humidity:{text:"\u6e7f\u5ea6",data:f.humidity+"%"}};k.liveData=f;a.success(k)}}else f.data.forecasts&&f.data.forecasts[0]&&a.success({forecast:f.data.forecasts[0]});else a.fail({errCode:f.data.infocode,errMsg:f.data.info})},fail:function(f){a.fail({errCode:"0",errMsg:f.errMsg||""})}})} |
| | | function c(g){wx.request({url:"https://restapi.amap.com/v3/geocode/regeo",data:{key:d.key,location:g,extensions:"all",s:e.s,platform:e.platform,appname:d.key,sdkversion:e.sdkversion,logversion:e.logversion},method:"GET",header:{"content-type":"application/json"},success:function(h){if(h.data.status&&"1"==h.data.status){h=h.data.regeocode;if(h.addressComponent)var f=h.addressComponent.adcode;else h.aois&&0<h.aois.length&&(f=h.aois[0].adcode);b(f)}else a.fail({errCode:h.data.infocode,errMsg:h.data.info})}, |
| | | fail:function(h){a.fail({errCode:"0",errMsg:h.errMsg||""})}})}var d=this,e=d.requestConfig;a.city?b(a.city):d.getWxLocation(a,function(g){c(g)})}; |
| | | AMapWX.prototype.getPoiAround=function(a){function b(e){e={key:c.key,location:e,s:d.s,platform:d.platform,appname:c.key,sdkversion:d.sdkversion,logversion:d.logversion};a.querytypes&&(e.types=a.querytypes);a.querykeywords&&(e.keywords=a.querykeywords);wx.request({url:"https://restapi.amap.com/v3/place/around",data:e,method:"GET",header:{"content-type":"application/json"},success:function(g){if(g.data.status&&"1"==g.data.status){if((g=g.data)&&g.pois){for(var h=[],f=0;f<g.pois.length;f++){var k=0== |
| | | f?a.iconPathSelected:a.iconPath;h.push({latitude:parseFloat(g.pois[f].location.split(",")[1]),longitude:parseFloat(g.pois[f].location.split(",")[0]),iconPath:k,width:22,height:32,id:f,name:g.pois[f].name,address:g.pois[f].address})}a.success({markers:h,poisData:g.pois})}}else a.fail({errCode:g.data.infocode,errMsg:g.data.info})},fail:function(g){a.fail({errCode:"0",errMsg:g.errMsg||""})}})}var c=this,d=c.requestConfig;a.location?b(a.location):c.getWxLocation(a,function(e){b(e)})}; |
| | | AMapWX.prototype.getStaticmap=function(a){function b(e){c.push("location="+e);a.zoom&&c.push("zoom="+a.zoom);a.size&&c.push("size="+a.size);a.scale&&c.push("scale="+a.scale);a.markers&&c.push("markers="+a.markers);a.labels&&c.push("labels="+a.labels);a.paths&&c.push("paths="+a.paths);a.traffic&&c.push("traffic="+a.traffic);e="https://restapi.amap.com/v3/staticmap?"+c.join("&");a.success({url:e})}var c=[];c.push("key="+this.key);var d=this.requestConfig;c.push("s="+d.s);c.push("platform="+d.platform); |
| | | c.push("appname="+d.appname);c.push("sdkversion="+d.sdkversion);c.push("logversion="+d.logversion);a.location?b(a.location):this.getWxLocation(a,function(e){b(e)})}; |
| | | AMapWX.prototype.getInputtips=function(a){var b=Object.assign({},this.requestConfig);a.location&&(b.location=a.location);a.keywords&&(b.keywords=a.keywords);a.type&&(b.type=a.type);a.city&&(b.city=a.city);a.citylimit&&(b.citylimit=a.citylimit);wx.request({url:"https://restapi.amap.com/v3/assistant/inputtips",data:b,method:"GET",header:{"content-type":"application/json"},success:function(c){c&&c.data&&c.data.tips&&a.success({tips:c.data.tips})},fail:function(c){a.fail({errCode:"0",errMsg:c.errMsg|| |
| | | ""})}})}; |
| | | AMapWX.prototype.getDrivingRoute=function(a){var b=Object.assign({},this.requestConfig);a.origin&&(b.origin=a.origin);a.destination&&(b.destination=a.destination);a.strategy&&(b.strategy=a.strategy);a.waypoints&&(b.waypoints=a.waypoints);a.avoidpolygons&&(b.avoidpolygons=a.avoidpolygons);a.avoidroad&&(b.avoidroad=a.avoidroad);wx.request({url:"https://restapi.amap.com/v3/direction/driving",data:b,method:"GET",header:{"content-type":"application/json"},success:function(c){c&&c.data&&c.data.route&&a.success({paths:c.data.route.paths, |
| | | taxi_cost:c.data.route.taxi_cost||""})},fail:function(c){a.fail({errCode:"0",errMsg:c.errMsg||""})}})}; |
| | | AMapWX.prototype.getWalkingRoute=function(a){var b=Object.assign({},this.requestConfig);a.origin&&(b.origin=a.origin);a.destination&&(b.destination=a.destination);wx.request({url:"https://restapi.amap.com/v3/direction/walking",data:b,method:"GET",header:{"content-type":"application/json"},success:function(c){c&&c.data&&c.data.route&&a.success({paths:c.data.route.paths})},fail:function(c){a.fail({errCode:"0",errMsg:c.errMsg||""})}})}; |
| | | AMapWX.prototype.getTransitRoute=function(a){var b=Object.assign({},this.requestConfig);a.origin&&(b.origin=a.origin);a.destination&&(b.destination=a.destination);a.strategy&&(b.strategy=a.strategy);a.city&&(b.city=a.city);a.cityd&&(b.cityd=a.cityd);wx.request({url:"https://restapi.amap.com/v3/direction/transit/integrated",data:b,method:"GET",header:{"content-type":"application/json"},success:function(c){c&&c.data&&c.data.route&&(c=c.data.route,a.success({distance:c.distance||"",taxi_cost:c.taxi_cost|| |
| | | "",transits:c.transits}))},fail:function(c){a.fail({errCode:"0",errMsg:c.errMsg||""})}})}; |
| | | AMapWX.prototype.getRidingRoute=function(a){var b=Object.assign({},this.requestConfig);a.origin&&(b.origin=a.origin);a.destination&&(b.destination=a.destination);wx.request({url:"https://restapi.amap.com/v3/direction/riding",data:b,method:"GET",header:{"content-type":"application/json"},success:function(c){c&&c.data&&c.data.route&&a.success({paths:c.data.route.paths})},fail:function(c){a.fail({errCode:"0",errMsg:c.errMsg||""})}})};module.exports.AMapWX=AMapWX; |