|
|
@ -1,21 +1,21 @@ |
|
|
|
<template> |
|
|
|
<view style="width: 100%;height: 100%;overflow: scroll;position: absolute;"> |
|
|
|
<view style="width: 100%;height: 100%;background: #FFA35A;display: flex;flex-direction: column;"> |
|
|
|
|
|
|
|
<NavBar ref="nav" navTitle="预约提菜" :showIcon="true" :supportChange="false"> |
|
|
|
</NavBar> |
|
|
|
|
|
|
|
<loading-state ref="pageView" @request="request"> |
|
|
|
|
|
|
|
<view style="background: #FFA35A;width: 100%;height: 100%;overflow: scroll;position: absolute;"> |
|
|
|
<!-- <view style="background: #FFA35A;width: 100%;height: 100%;"> --> |
|
|
|
|
|
|
|
|
|
|
|
<view style="display: flex;flex-direction: column;background: #F2F2F2; width: 100%; |
|
|
|
border-radius: 25px;height: 100vh; padding: 10px;box-sizing: border-box;position: absolute;"> |
|
|
|
border-radius: 25px;height: 100vh; padding: 10px;box-sizing: border-box;"> |
|
|
|
|
|
|
|
<view style="display: flex;flex-direction: column;background: #fff; |
|
|
|
border-radius: 15px;padding: 15px 10px;"> |
|
|
|
|
|
|
|
<view |
|
|
|
<view v-if="info.storeSid!=''" |
|
|
|
style="display: flex;flex-direction: row;align-items: center;justify-content: space-between;"> |
|
|
|
|
|
|
|
<text |
|
|
@ -28,8 +28,23 @@ |
|
|
|
</image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view v-if="info.storeSid==''" |
|
|
|
style="display: flex;flex-direction: row;align-items: center;justify-content: space-between;"> |
|
|
|
|
|
|
|
<text |
|
|
|
style="font-size: 16px;color: #000; font-weight: 600;font-family: sans-serif;">暂无提货单信息</text> |
|
|
|
|
|
|
|
<view style="display: flex;flex-direction: row;align-items: center;" @click="address()"> |
|
|
|
<text style="font-size: 12px;color: #FF9900;">去完善</text> |
|
|
|
<image src="../../static/right_icon.png" |
|
|
|
style="width: 15px;height: 15px;margin-left: 5px;"> |
|
|
|
</image> |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
<view style="display: flex;flex-direction: row;align-items: center;margin-top: 15px;"> |
|
|
|
<view v-if="info.storeSid!=''" style="display: flex;flex-direction: row;align-items: center;margin-top: 15px;"> |
|
|
|
<image src="https://supervise.yxtsoft.com/lpk/image/date.png" |
|
|
|
style="width:20px;height: 20px;"> |
|
|
|
</image> |
|
|
@ -38,7 +53,7 @@ |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view style="display: flex;flex-direction: row;align-items: center;margin-top: 15px;"> |
|
|
|
<view v-if="info.storeSid!=''" style="display: flex;flex-direction: row;align-items: center;margin-top: 15px;"> |
|
|
|
<image src="https://supervise.yxtsoft.com/lpk/image/location.png" |
|
|
|
style="width: 20px;height: 20px;"> |
|
|
|
</image> |
|
|
@ -95,66 +110,71 @@ |
|
|
|
<text |
|
|
|
style="font-size: 15px; color: #000; font-weight: 600;font-family: sans-serif;">所提菜列表</text> |
|
|
|
|
|
|
|
<view style="width: 100%; display: flex;flex-direction: column; margin-top: 10px;"> |
|
|
|
<view v-for="(item,index) in pickingUpGoods" @click="itemClick(item.goodsSid)" |
|
|
|
style="display: flex;flex-direction: column;justify-content: center;width: 100%; margin-top: 15px; "> |
|
|
|
<scroll-view scroll-y="true" style="max-height:calc(100vh - 450px); width: 100%; box-sizing: border-box; margin-top: 10px;; |
|
|
|
" bindscrolltoupper="upper" bindscrolltolower="lower" bindscroll="scroll"> |
|
|
|
|
|
|
|
<view style="display: flex;flex-direction: row;align-items: center;width: 100%; "> |
|
|
|
<view style="width: 100%; display: flex;flex-direction: column; margin-top: 10px;"> |
|
|
|
<view v-for="(item,index) in pickingUpGoods" @click="itemClick(item.goodsSid)" |
|
|
|
style="display: flex;flex-direction: column;justify-content: center;width: 100%; margin-top: 15px; "> |
|
|
|
|
|
|
|
<image :src="item.iconUrl" style="width: 90px;height: 90px; border-radius: 10px; " |
|
|
|
mode="aspectFill"> |
|
|
|
</image> |
|
|
|
<view style="display: flex;flex-direction: row;align-items: center;width: 100%; "> |
|
|
|
|
|
|
|
<view |
|
|
|
style="display: flex;flex-direction: column;flex: 1; padding-bottom: 15px; margin-left: 10px;" |
|
|
|
:style="{'border-bottom':(index == pickingUpGoods.length-1 ? 'none' : '1px #EFEFEF solid')}"> |
|
|
|
<image :src="item.iconUrl" |
|
|
|
style="width: 90px;height: 90px; border-radius: 10px; " mode="aspectFill"> |
|
|
|
</image> |
|
|
|
|
|
|
|
<text style="font-size: 13px;color: #000;">{{item.name}}</text> |
|
|
|
<view |
|
|
|
style="display: flex;flex-direction: column;flex: 1; padding-bottom: 15px; margin-left: 10px;" |
|
|
|
:style="{'border-bottom':(index == pickingUpGoods.length-1 ? 'none' : '1px #EFEFEF solid')}"> |
|
|
|
|
|
|
|
<text |
|
|
|
style="font-size: 10px;color: #999;margin-top: 5px;">{{item.remark}}</text> |
|
|
|
<text style="font-size: 13px;color: #000;">{{item.name}}</text> |
|
|
|
|
|
|
|
<view |
|
|
|
style="display: flex;flex-direction: row;align-items: center;margin-top: 8px;"> |
|
|
|
<text |
|
|
|
style="border: 1px #EE752F solid; border-radius: 5px; padding: 0px 8px; |
|
|
|
style="font-size: 10px;color: #999;margin-top: 5px;">{{item.remark}}</text> |
|
|
|
|
|
|
|
<view |
|
|
|
style="display: flex;flex-direction: row;align-items: center;margin-top: 8px;"> |
|
|
|
<text |
|
|
|
style="border: 1px #EE752F solid; border-radius: 5px; padding: 0px 8px; |
|
|
|
font-size: 10px;color: #EE752F; margin-right: 10px; ">{{item.weight}}{{item.specificationUnit}}/{{item.unitName}}</text> |
|
|
|
|
|
|
|
<text |
|
|
|
style="border: 1px #EE752F solid; background: #FF9900; color: #fff; font-size: 10px;border-radius: 5px; padding: 0px 8px;" |
|
|
|
v-if="item.type=='0'">百姓菜!</text> |
|
|
|
<text |
|
|
|
style="border: 1px #3AA15F solid; background: #40C772; color: #fff; font-size: 10px;border-radius: 5px; padding: 0px 8px;" |
|
|
|
v-if="item.type=='1'">精品菜!</text> |
|
|
|
<text |
|
|
|
style="border: 1px #1D60C7 solid; background: #2489F7; color: #fff; font-size: 10px;border-radius: 5px; padding: 0px 8px;" |
|
|
|
v-if="item.type=='2'">企业菜!</text> |
|
|
|
<text |
|
|
|
style="border: 1px #EE752F solid; background: #FF9900; color: #fff; font-size: 10px;border-radius: 5px; padding: 0px 8px;" |
|
|
|
v-if="item.type=='0'">百姓菜!</text> |
|
|
|
<text |
|
|
|
style="border: 1px #3AA15F solid; background: #40C772; color: #fff; font-size: 10px;border-radius: 5px; padding: 0px 8px;" |
|
|
|
v-if="item.type=='1'">精品菜!</text> |
|
|
|
<text |
|
|
|
style="border: 1px #1D60C7 solid; background: #2489F7; color: #fff; font-size: 10px;border-radius: 5px; padding: 0px 8px;" |
|
|
|
v-if="item.type=='2'">企业菜!</text> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
|
|
|
|
<view style="display: flex;flex-direction: row;align-items: center;justify-content: space-between; margin-top: 15px; |
|
|
|
<view style="display: flex;flex-direction: row;align-items: center;justify-content: space-between; margin-top: 15px; |
|
|
|
margin-right: 15px;"> |
|
|
|
|
|
|
|
|
|
|
|
<view style="display: flex;flex-direction: row;align-items: center;"> |
|
|
|
<text style="font-size: 12px;color: #FF5006;">剩余:</text> |
|
|
|
<text |
|
|
|
style="font-size: 14px;color: #FF5006;">{{item.goodsNumber}}{{item.unitName}}</text> |
|
|
|
</view> |
|
|
|
<view style="display: flex;flex-direction: row;align-items: center;"> |
|
|
|
<text style="font-size: 12px;color: #FF5006;">剩余:</text> |
|
|
|
<text |
|
|
|
style="font-size: 14px;color: #FF5006;">{{item.goodsNumber}}{{item.unitName}}</text> |
|
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<view style="display: flex;flex-direction: row;align-items: center;"> |
|
|
|
<view style="display: flex;flex-direction: row;align-items: center;"> |
|
|
|
|
|
|
|
<image src="../../static/jian_icon.png" mode="aspectFill" |
|
|
|
style="width: 20px;height: 20px;" @click.stop="jian(item)"> |
|
|
|
</image> |
|
|
|
<image src="../../static/jian_icon.png" mode="aspectFill" |
|
|
|
style="width: 20px;height: 20px;" @click.stop="jian(item)"> |
|
|
|
</image> |
|
|
|
|
|
|
|
<text |
|
|
|
style="font-size: 14px;margin-left: 8px;margin-right: 8px;">{{item.count}}</text> |
|
|
|
<image src="../../static/jia_icon.png" mode="aspectFill" |
|
|
|
style="width: 20px;height: 20px;" @click.stop="jia(item)"> |
|
|
|
</image> |
|
|
|
<text |
|
|
|
style="font-size: 14px;margin-left: 8px;margin-right: 8px;">{{item.count}}</text> |
|
|
|
<image src="../../static/jia_icon.png" mode="aspectFill" |
|
|
|
style="width: 20px;height: 20px;" @click.stop="jia(item)"> |
|
|
|
</image> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
@ -166,19 +186,19 @@ |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
</scroll-view> |
|
|
|
|
|
|
|
</view> |
|
|
|
|
|
|
|
<view |
|
|
|
style="position: fixed;bottom: 0; width: 100%; box-sizing: border-box; padding-left: 10vw;padding-right: 10vw;display: flex;flex-direction: row; justify-content: center;align-items: center;"> |
|
|
|
<text style=" background: #FF9900;color: #fff;margin-top: 20px;margin-bottom: 20px; border-radius: 20px; |
|
|
|
<text style=" background: #FF9900;color: #fff;margin-bottom: 20px; border-radius: 20px; |
|
|
|
padding-top: 10px;padding-bottom: 10px;padding-left: 25vw;padding-right: 25vw; text-align: center;" |
|
|
|
@click="congirmExtract()">确认提菜</text> |
|
|
|
</view> |
|
|
|
|
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<!-- </view> --> |
|
|
|
</loading-state> |
|
|
|
</view> |
|
|
|
</template> |
|
|
@ -217,10 +237,12 @@ |
|
|
|
this.request() |
|
|
|
this.getSun() |
|
|
|
|
|
|
|
this.pickingUpGoods = JSON.parse(options.pickingUpGoods) |
|
|
|
this.pickingUpGoods = JSON.parse(decodeURIComponent(options.pickingUpGoods)) |
|
|
|
this.affiliation = options.affiliation |
|
|
|
|
|
|
|
console.log(">>>>>",options); |
|
|
|
|
|
|
|
console.log(">>>>>", options); |
|
|
|
console.log(">>>>>", this.pickingUpGoods); |
|
|
|
console.log(">>>>>", this.affiliation); |
|
|
|
|
|
|
|
}, |
|
|
|
onUnload() { |
|
|
@ -299,6 +321,12 @@ |
|
|
|
}, |
|
|
|
congirmExtract() { |
|
|
|
let _this = this |
|
|
|
|
|
|
|
if (_this.info.storeSid == '') { |
|
|
|
this.shortToast('请完善提货点信息') |
|
|
|
return |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
if (_this.info.reserveDate == '') { |
|
|
|
this.shortToast('请选择日期') |
|
|
|