| | |
| | | <view class="trade-list-container"> |
| | | <view class="trade-info-container flex" :class="[dto.status!=='UP'?'OFF':'']" v-for="(dto,index) of list" |
| | | :key="index"> |
| | | <image class="img img100 br-4 m-r-10" :class="[!dto.stock?'':'']" :src="dto.url||dto.cover" @click.stop="toDetail(dto)"></image> |
| | | <image class="img img100 br-4 m-r-10" :class="[!dto.stock?'component-stock-zero':'']" :src="dto.url||dto.cover" @click.stop="toDetail(dto)"></image> |
| | | <view class="flex1"> |
| | | <view class="flex" @click.stop="toDetail(dto)"> |
| | | <view class="title"> |
| | |
| | | <view class="trade-list-container"> |
| | | <view class="trade-info-container flex" :class="[dto.status!=='UP'?'OFF':'']" |
| | | v-for="(dto,index) of list" :key="index"> |
| | | <image class="img img100 br-4 m-r-10" :class="[!dto.stock?'':'']" :src="dto.url||dto.cover" @click.stop="toDetail(dto)"></image> |
| | | <image class="img img100 br-4 m-r-10" :class="[!dto.stock?'component-stock-zero':'']" :src="dto.url||dto.cover" @click.stop="toDetail(dto)"></image> |
| | | <view class="flex1"> |
| | | <view class="flex" @click.stop="toDetail(dto)"> |
| | | <view class="title"> |
| | |
| | | <u-swipe-action-item :options="options1" @click="(e)=>{clickSwipeButton(dto,true)}"> |
| | | <view class="item-each flex"> |
| | | <radio :checked="ids.indexOf(dto.id)>=0" @click="changeItem(dto,'flower')"></radio> |
| | | <image class="img img100 m-r-6 br-4" :class="[!dto.stock?'component-stock-zero-tmp':'']" :src="dto.url||dto.cover"></image> |
| | | <image class="img img100 m-r-6 br-4" :class="[!dto.stock?'component-stock-zero':'']" |
| | | :src="dto.url||dto.cover"></image> |
| | | <view class="flex1"> |
| | | <view class="title" @click.stop="toDetail(dto)"><span class="m-r-5" |
| | | style="display: inline-block;">{{dto.categoryStr||''}}</span><span |
| | |
| | | flowers: arr, |
| | | } |
| | | }) |
| | | this.$message.hideLoading() |
| | | let that = this |
| | | setTimeout(() => { |
| | | that.$message.hideLoading() |
| | | if (code === 0) { |
| | | this.$storage.setItem('_cache_shopping_dto', JSON.stringify(data)) |
| | | that.$storage.setItem('_cache_shopping_dto', JSON.stringify(data)) |
| | | uni.navigateTo({ |
| | | url: '/sub_pages/customer/shopping/confirm' |
| | | }) |
| | | } |
| | | }, 300) |
| | | }, |
| | | async clickSwipeButton(item, check) { |
| | | //删除商品,重新加载数据? |
| | |
| | |
|
| | | <view class="component-shop-item flex" v-for="(item,index) of list" :key="index">
|
| | | <view class="img" @click.stop="toDetail(item)">
|
| | | <image class="img img100" :class="[!item.stock?'component-stock-zero-tmp':'']" :src="item.cover">
|
| | | <image class="img img100" :class="[!item.stock?'component-stock-zero':'']" :src="item.cover">
|
| | | </image>
|
| | | <view class="level">
|
| | | {{item.levelStr||''}}
|
| | |
| | | @click.stop="toDetailList(item)">
|
| | | <view class="m-r-10">
|
| | | <!-- @click.stop="previewImg(item.imageUrl)" -->
|
| | | <image :src="item.imageUrl" :class="[!item.stock?'component-stock-zero':'']" |
| | | <image :src="item.imageUrl" :class="[!item.stock?'':'']" |
| | | mode="scaleToFill" class="cover" :lazy-load="true">
|
| | | </image>
|
| | | </view>
|
| | |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="line-gray"> |
| | | <view class="line-gray" v-if="dto.satus == 'ARRIVED'"> |
| | | |
| | | </view> |
| | | <view class="buttons"> |
| | | <view class="buttons" v-if="dto.satus == 'ARRIVED'"> |
| | | <view class="button text-center" v-for="button of check_status" :key="button.value" |
| | | @click.stop="clickCheck(item,button.value)">{{ button.label }} |
| | | </view> |
| | |
| | | stationName: '', |
| | | statusStr: '', |
| | | status: '', |
| | | warehouseLocationCode: '', |
| | | }, |
| | | show_select_station: false, |
| | | show_select_status: false, |
| | |
| | | if (code === 0) { |
| | | this.$message.showToast('完成成功') |
| | | let tmp = this |
| | | setTimeout(() => { |
| | | tmp.refreshList() |
| | | setTimeout(async () => { |
| | | await tmp.refreshList() |
| | | tmp.$forceUpdate() |
| | | }, 200) |
| | | } |
| | | } |
| | |
| | | </u-input> |
| | | </view> |
| | | </view> |
| | | <view class="search-container m-t-12 flex"> |
| | | <view class="flex1 input"> |
| | | <u-input placeholder="请输入货位号" v-model="query.warehouseLocationCode"> |
| | | <template slot="suffix"> |
| | | <uni-icons color="#20613D" type="search" size="24" @tap="buttonSearchFlow"></uni-icons> |
| | | </template> |
| | | </u-input> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="component-filter-container p20 bg-white"> |
| | | <view class="flex1" @click="show_select_status=true"> |
| | | 配送单状态:{{ query.statusStr || '全部' }} |
| | |
| | | <view class="form-item-label">集货站</view> |
| | | <view class="form-item-value">{{ item.stationName || '-' }}</view> |
| | | </view> |
| | | <view class="form-item flex1"> |
| | | <view class="form-item-label">货位号</view> |
| | | <view class="form-item-value">{{ item.warehouseLocationCode || '-' }}</view> |
| | | </view> |
| | | |
| | | </view> |
| | | <view class="flex"> |
| | |
| | | </view> |
| | | |
| | | |
| | | <view class="line-gray" v-if="item.status==='ARRIVED'"></view> |
| | | <view class="flex buttons" v-if="item.status==='ARRIVED'"> |
| | | <view class="button button-0 m-l-a m-r-0" @click="toDetail(item)">前往质检</view> |
| | | <view class="button button-1 m-l-15 m-r-0" @click="compelete(item)">质检完成</view> |
| | | <view class="line-gray"></view> |
| | | <view class="flex buttons"> |
| | | <view class="button button-1 m-l-15 m-r-0" v-if="item.status==='ARRIVED'" |
| | | @click="compelete(item)">质检完成</view> |
| | | <view class="button button-0 m-l-a m-r-0" @click="toDetail(item)"> |
| | | {{item.status==='ARRIVED'?'前往质检':'查看详情'}}</view> |
| | | |
| | | </view> |
| | | </view> |
| | | </view> |
| | |
| | | } else if (platform == "android") { |
| | | // uni.getDeviceInfo().platform = "android" |
| | | console.log(uni.getDeviceInfo()) //这里是拿到安卓的系统版本名 如:Android 9 |
| | | systemVersion = 10 |
| | | try { |
| | | var s = '' + (uni.getDeviceInfo().system || '') |
| | | console.log('输出系统版本号', s.substring(s.length - ( |
| | | s.length - |
| | | 8), s.length - (s.length - 8) + |
| | | 1)) //这里为了获取到系统的版本号,如 9 |
| | | systemVersion = s.substring(s.length - (s.length - |
| | | 8), s.length - (s.length - 8) + 1) |
| | | } catch (e) { |
| | | that.$message.showToast('获取系统版本错误,版本号:' + s) |
| | | systemVersion = 10 |
| | | } |
| | | var systemVersion = 10 |
| | | // try { |
| | | // var s = '' + (uni.getDeviceInfo().system || '') |
| | | // console.log('输出系统版本号', s.substring(s.length - ( |
| | | // s.length - |
| | | // 8), s.length - (s.length - 8) + |
| | | // 1)) //这里为了获取到系统的版本号,如 9 |
| | | // systemVersion = s.substring(s.length - (s.length - |
| | | // 8), s.length - (s.length - 8) + 1) |
| | | // } catch (e) { |
| | | // that.$message.showToast('获取系统版本错误,版本号:' + s) |
| | | // systemVersion = 10 |
| | | // } |
| | | if (systemVersion > 5) { |
| | | wx.getSetting({ |
| | | success: function(res) { |
| | |
| | | } |
| | | } |
| | | // 数据赋值 关闭刷新 |
| | | that.list = devices |
| | | that.list = devices || [] |
| | | that.isScanning = false |
| | | |
| | | wx.hideLoading() |
| | |
| | | wx.showToast({ |
| | | title: '已打印第' + currentPrint + '张', |
| | | }) |
| | | if (currentPrint == printNum) { |
| | | // if (currentPrint == printNum) { |
| | | that.looptime = 0 |
| | | that.lastData = 0 |
| | | that.currentTime = 1 |
| | | that.isReceiptSend = false |
| | | that.isLabelSend = false |
| | | that.currentPrint = 1 |
| | | try { |
| | | wx.closeBLEConnection({ |
| | | deviceId: that.deviceId, |
| | | success: function(res) { |
| | | console.log("关闭蓝牙成功") |
| | | }, |
| | | }) |
| | | } catch (e) { |
| | | |
| | | } else { |
| | | currentPrint++ |
| | | |
| | | that.currentPrint = currentPrint |
| | | that.currentTime = 1 |
| | | |
| | | that.Send(buff) |
| | | } |
| | | |
| | | // } else { |
| | | // currentPrint++ |
| | | |
| | | // that.currentPrint = currentPrint |
| | | // that.currentTime = 1 |
| | | |
| | | // that.Send(buff) |
| | | // } |
| | | } |
| | | } |
| | | }) |
| | |
| | | <!-- </radio>营业执照-->
|
| | | <!-- </view>-->
|
| | | <evan-radio-group v-model="dto.idcardType">
|
| | | <evan-radio v-for="item in shTypeList" :key="item.value" :label="item.value">{{item.label}}</evan-radio>
|
| | | <evan-radio v-for="item in shTypeList" :key="item.value"
|
| | | :label="item.value">{{item.label}}</evan-radio>
|
| | | </evan-radio-group>
|
| | | </view>
|
| | | </view>
|
| | |
| | | } else if (typeof this.dto.idCards == 'string') {
|
| | | this.dto.idCards = JSON.parse(this.dto.idCards)
|
| | | }
|
| | | if (!this.dto.idcardType) {
|
| | | this.dto.idcardType = '1'
|
| | | }
|
| | | this.dto.userId = this.currentInfo.id
|
| | |
|
| | | }
|
| | |
| | | if (this.dto.idcardType == '2' && this.dto.pictures.length == 0) {
|
| | | this.$message.showToast(`营业执照信息未填写`)
|
| | | return
|
| | | |
| | | }
|
| | | |
| | | await this.$message.confirm(`是否确定提交/修改店铺信息`)
|
| | |
|
| | |
|
| | |
| | | .evan-radio-group {
|
| | | display: flex;
|
| | | }
|
| | |
|
| | | .evan-radio {
|
| | | margin-right: 12rpx;
|
| | | }
|