| | |
| | | <u-badge :isDot="true" |
| | | type="error" |
| | | v-if="dotShow"></u-badge> |
| | | <u-icon name="chat" |
| | | <u-icon name="chat" |
| | | color="#fff" |
| | | size="50"></u-icon> |
| | | </view> |
| | |
| | | import driverIndex from '@/pages/driver-page/driver-index/driver-index.vue'; |
| | | import freightForwarderIndex from '@/pages/freight-forwarder-page/freightForwarder-index/freightForwarder-index.vue'; |
| | | import LoadUnload from '@/pages/loadUnload-page/loadUnload-page.vue' |
| | | import selectTarget from '@/pages/loadUnload-page/selectTarget/selectTarget.vue' |
| | | import qualityIndex from '@/pages/quality-inspection-page/qualityIndex/qualityIndex' |
| | | import doorkeepIndex from '@/pages/doorkeeper-page/doorkeeper-index/doorkeeper-index.vue'; |
| | | import { mapState, mapMutations, mapGetters } from 'vuex'; |
| | | import { webSocketUrl } from '@/api/request.js'; |
| | | let socket = null; |
| | | export default { |
| | | components: { |
| | | customerIndex, |
| | | driverIndex, |
| | | freightForwarderIndex, |
| | | LoadUnload, |
| | | selectTarget, |
| | | qualityIndex, //化验 |
| | | doorkeepIndex, |
| | | selectTarget |
| | | qualityIndex, //化验 |
| | | doorkeepIndex, |
| | | }, |
| | | computed: { |
| | | ...mapState(['globalweighHouseCode', 'globalweigh', 'globalisconnect', 'globalSocket', 'websocketData', |
| | |
| | | }else{ |
| | | this.$refs.doorkeepIndexRef.TaskCoalList() |
| | | } |
| | | // 获取历史提煤单 |
| | | // 获取历史收发单 |
| | | if (this.roleType == 1 || this.roleType == 2) { |
| | | this.$reqGet('getJhOrderPlanDataPage', { current: 1, size: 10 }).then(res => { |
| | | if (res.data.records) { |
| | |
| | | // if (res.code === 0) { |
| | | // if(res.data.length){ |
| | | // this.getDetailData(); |
| | | |
| | | |
| | | // } |
| | | // } else { |
| | | // this.$u.toast('加载失败') |
| | |
| | | console.log('LoadUnloadRef'); |
| | | this.$nextTick(() => { |
| | | console.log(this.count,'count') |
| | | if(this.count <=1){ |
| | | this.$refs.LoadUnloadRef.init(); |
| | | } |
| | | |
| | | }); |
| | | break; |
| | | case 7: |
| | |
| | | }); |
| | | }, |
| | | getDetailData(){ |
| | | this.$reqGet('getTaskCoalListByBunkerId', { bunkerId:uni.getStorageSync('bunkerId')}).then(res => { |
| | | this.$reqGet('getTaskCoalListByBunkerId', { bunkerIds:uni.getStorageSync('bunkerIds'),productIds:uni.getStorageSync('productIds')}).then(res => { |
| | | if (res.code === 0) { |
| | | this.detailData = res.data.map(item=>{ |
| | | this.detailData = res.data.map(item=>{ |
| | | item.tmTaskCoalList.map(el=>{ |
| | | el.flag = el.isPretendDischar ? false : true |
| | | return el |
| | |
| | | |
| | | .search-bar { |
| | | height: vww(20); |
| | | width: 96%; |
| | | width: calc(100% - 200rpx); |
| | | position: absolute; |
| | | top: vww(96); |
| | | right: vww(32); |
| | | right: 100rpx; |
| | | z-index: 1; |
| | | |
| | | .icon-body { |