| | |
| | | <template> |
| | | <view> |
| | | <scroll-view> |
| | | <view> |
| | | <view v-for="(item,index) in data" :key="index" class="demo-list"> |
| | | <view><text>订单:</text><text>{{item.orderNo}}</text></view> |
| | | <view>应入数量:{{item.anfme}}</view> |
| | | <view>已入数量:{{item.inQty}}</view> |
| | | <view>商品编码:{{item.matnr}}</view> |
| | | <view>商品名称:{{item.maktx}}</view> |
| | | <view>订单状态:{{item.state$}}</view> |
| | | |
| | | <view class="square-2"> |
| | | <view class="square-title"> |
| | | <view class="title-sign"><view class="sign"></view></view> |
| | | <view class="title-text"><text>没有按钮</text></view> |
| | | </view> |
| | | <view class="square-content"> |
| | | <view class="content-input"> |
| | | <input type="text" v-model="yyds" placeholder="扫码 / 输入" @input="find" :focus="focus"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada"></uni-icons> |
| | | </view> |
| | | </view> |
| | | </scroll-view> |
| | | <view class="foot flex justify-around"> |
| | | <button class="cu-btn bg-blue lg">上架</button> |
| | | <button class="cu-btn bg-blue lg">撤销上架</button> |
| | | </view> |
| | | <checkbox-group > |
| | | <view v-for="(item,index) in staNoList" :key="index" class="data-list " > |
| | | <view class="data-list-left"> |
| | | <view class="matnr">{{item}}</view> |
| | | </view> |
| | | </view> |
| | | </checkbox-group> |
| | | <view class="square-2"> |
| | | <view class="square-title"> |
| | | <view class="title-sign"><view class="sign"></view></view> |
| | | <view class="title-text"><text>右侧按钮</text></view> |
| | | </view> |
| | | <view class="square-content"> |
| | | <view class="content-input-btn"> |
| | | <input type="text"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada"></uni-icons> |
| | | </view> |
| | | <view class="content-btn"> |
| | | <button class="cu-btn bg-blue pda-btn">提取</button> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="square-3"> |
| | | <view class="square-title"> |
| | | <view class="title-sign"><view class="sign"></view></view> |
| | | <view class="title-text"><text>左侧下拉</text></view> |
| | | </view> |
| | | <view class="square-content"> |
| | | <view class="content-combox"> |
| | | |
| | | <uni-combox emptyTips="暂无数据" :candidates="staNoList" v-model="staNo" placeholder="站台号"></uni-combox> |
| | | </view> |
| | | |
| | | </view> |
| | | <view class="square-content"> |
| | | <view class="content-input-combox"> |
| | | <input type="text"> |
| | | <uni-icons type="closeempty" size="20" color="#dadada"></uni-icons> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="square-1"> |
| | | <view class="square-title"> |
| | | <view class="title-sign"><view class="sign"></view></view> |
| | | <view class="title-text"><text>商品列表</text></view> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="square-none"> |
| | | <view class="v-show">暂无更多数据...</view> |
| | | </view> |
| | | <!-- 商品列表 --> |
| | | <view> |
| | | <view></view> |
| | | </view> |
| | | <!-- 表单 --> |
| | | <view class="square-form"> |
| | | <view class="form-title"> |
| | | <text>结束时间</text> |
| | | </view> |
| | | <view class="form-input"> |
| | | <input type="text" placeholder="请输入..."> |
| | | </view> |
| | | </view> |
| | | <!-- 表单必填 --> |
| | | <view class="square-form"> |
| | | <view class="form-title"> |
| | | <text>结束时间</text> |
| | | </view> |
| | | <view class="form-input"> |
| | | <input type="text" placeholder="请输入..."> |
| | | </view> |
| | | </view> |
| | | <!-- 搜索框 --> |
| | | <view class="square-1"> |
| | | <view class="searchBox"> |
| | | <view class="searchIcon"><uni-icons type="search" size="20" color="#dadada"></uni-icons></view> |
| | | <view class="searchArea"><input type="text" placeholder=" 请输入"></view> |
| | | <view class="closeIcon"><uni-icons type="closeempty" size="20" color="#dadada"></uni-icons></view> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | </template> |
| | |
| | | export default { |
| | | data() { |
| | | return { |
| | | data: [] |
| | | staNoList:[], |
| | | staNo:'', |
| | | yyds:'', |
| | | focus:'' |
| | | } |
| | | }, |
| | | mounted() { |
| | | const UIP = uni.getStorageSync('UIP'); |
| | | this.baseIP = UIP; |
| | | const UPORT = uni.getStorageSync('UPORT'); |
| | | this.basePORT = UPORT; |
| | | this.render() |
| | | onLoad() { |
| | | // #ifdef APP |
| | | setInterval(()=>{ |
| | | uni.hideKeyboard() |
| | | },20) |
| | | // #endif |
| | | }, |
| | | methods: { |
| | | // 表格加载 |
| | | render(param) { |
| | | let that = this; |
| | | if(param) { |
| | | that.needData['order_no'] = param; |
| | | that.getData(); |
| | | } else { |
| | | that.getData(); |
| | | } |
| | | methods:{ |
| | | find(){ |
| | | this.staNoList.push(this.yyds); |
| | | |
| | | |
| | | }, |
| | | getData() { |
| | | let that = this |
| | | uni.request({ |
| | | url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/receiveDetl/list/auth", |
| | | header:{'token':uni.getStorageSync('token')}, |
| | | data: that.needData, |
| | | success(res) { |
| | | var res = res.data |
| | | if (res.code === 200) { |
| | | |
| | | that.data = res.data.records |
| | | console.log(that.data) |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | this.focus = false; |
| | | setTimeout(()=>{ |
| | | this.yyds =''; |
| | | this.focus = true; |
| | | console.log(this.yyds ,'1') |
| | | }, 50); |
| | | } |
| | | } |
| | | } |
| | | |
| | | </script> |
| | | |
| | | <style> |
| | | .demo-list { |
| | | background-color: #FFFFFF; |
| | | box-shadow: 0px 0px 2px #d3d3d3; |
| | | } |
| | | .foot { |
| | | width: 100%; |
| | | background-color: #ffffff; |
| | | position: fixed; |
| | | bottom: 0; |
| | | box-shadow: 0px -2px 5px gray; |
| | | } |
| | | |
| | | </style> |