| | |
| | | <view class="main-information" |
| | | v-if="weighList.orderType=='转入'||weighList.orderType=='转出'"> |
| | | <view class="prefix"> |
| | | 发货地煤场: |
| | | 发货地基地: |
| | | </view> |
| | | <view class="suffix"> |
| | | {{ weighList.filedName || '' }} |
| | |
| | | <view class="main-information" |
| | | v-if="weighList.orderType=='转入'||weighList.orderType=='转出'"> |
| | | <view class="prefix"> |
| | | 收货地煤场: |
| | | 收货地基地: |
| | | </view> |
| | | <view class="suffix"> |
| | | {{ weighList.toFiledName || '' }} |
| | |
| | | <view class="suffix">{{ weighList.filedName || '' }}</view> |
| | | </view> |
| | | <!-- <view class="main-information"> |
| | | <view class="prefix">煤种名称:</view> |
| | | <view class="prefix">物料名称:</view> |
| | | <view class="suffix">{{ weighList.coalName || '' }}</view> |
| | | </view> --> |
| | | <view class="main-information"> |
| | |
| | | deep: true |
| | | } |
| | | }, |
| | | onPullDownRefresh() { |
| | | if (!this.globalisconnect && !this.globalisUploadimg && this.globalisLogin) { |
| | | if (!this.is_open_socket) { |
| | | this.$store.dispatch('websocketInit') |
| | | this.changeisconnect(false); |
| | | console.log('称重的ws'); |
| | | uni.stopPullDownRefresh(); |
| | | } else { |
| | | uni.stopPullDownRefresh(); |
| | | } |
| | | } |
| | | }, |
| | | onShow() { |
| | | this.init(); |
| | | // this.realTimeWeigh = 0 |
| | | }, |
| | | computed: { |
| | | ...mapState(['globalweigh', 'globalinfraredStatus', 'globalWarning']), |
| | | ...mapState(['globalweigh', 'globalinfraredStatus', 'globalWarning', 'globalisconnect', 'globalisUploadimg', |
| | | 'globalisLogin', 'is_open_socket' |
| | | ]), |
| | | token() { |
| | | return uni.getStorageSync('token'); |
| | | }, |