| | |
| | | <template> |
| | | <view> |
| | | <!-- 搜索栏 --> |
| | | <view> |
| | | <view class="cu-bar bg-white search"> |
| | | <view class="search-form radius"> |
| | | <text class="cuIcon-search"></text> |
| | | <input v-model="orderNo" :adjust-position="false" type="text" placeholder="扫码 / 输入 (单据编号)" confirm-type="search" @input="search()"></input> |
| | | <text class="cuIcon-close" @click="reset()"></text> |
| | | </view> |
| | | <view class="action"> |
| | | <button class="cu-btn bg-yellow" style="color: #fff;">搜 索</button> |
| | | |
| | | <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> |
| | | </view> |
| | | <view class="margin-top"> |
| | | <uni-table border stripe type="selection" emptyText="没有更多数据"> |
| | | <!-- 表头 --> |
| | | <uni-tr > |
| | | <uni-th align="center" width="200">订单</uni-th> |
| | | <uni-th align="center">应入库量</uni-th> |
| | | <uni-th align="center">已入库量</uni-th> |
| | | <uni-th align="center" width="200">商品编码</uni-th> |
| | | <uni-th align="center">商品名称</uni-th> |
| | | <uni-th align="center">订单状态</uni-th> |
| | | <uni-th align="center"width="200">操作</uni-th> |
| | | </uni-tr> |
| | | <!-- 表体 --> |
| | | <uni-tr v-for="(item, index) in tabData" :key="index"> |
| | | <uni-td align="center">{{item.orderNo}}</uni-td> |
| | | <uni-td align="center">{{item.anfme}}</uni-td> |
| | | <uni-td align="center">{{item.inQty}}</uni-td> |
| | | <uni-td align="center">{{item.matnr}}</uni-td> |
| | | <uni-td align="center">{{item.maktx}}</uni-td> |
| | | <uni-td align="center">{{item.state$}}</uni-td> |
| | | <uni-td> |
| | | <view class="flex justify-around"> |
| | | <button class="cu-btn bg-orange sm">上 架</button> |
| | | <button class="cu-btn bg-red sm">撤销上架</button> |
| | | </view> |
| | | </uni-td> |
| | | </uni-tr> |
| | | </uni-table> |
| | | <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 { |
| | | tabData: [], |
| | | searchData: {}, |
| | | orderNo: '', |
| | | needData:{}, |
| | | 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: { |
| | | // 搜索 |
| | | search() { |
| | | let that = this; |
| | | // that.tabData.forEach(function(e){ |
| | | // that.searchData = e.orderNo |
| | | // }) |
| | | this.render(that.orderNo) |
| | | }, |
| | | // 重置 |
| | | reset() { |
| | | let that = this; |
| | | that.orderNo = ''; |
| | | that.needData['order_no'] = ''; |
| | | that.getData(); |
| | | }, |
| | | // 获取表格数据 |
| | | 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.tabData = res.data.records |
| | | } |
| | | } |
| | | }) |
| | | }, |
| | | |
| | | // 表格加载 |
| | | render(param) { |
| | | let that = this; |
| | | if(param) { |
| | | that.needData['order_no'] = param; |
| | | that.getData(); |
| | | } else { |
| | | that.getData(); |
| | | } |
| | | methods:{ |
| | | find(){ |
| | | this.staNoList.push(this.yyds); |
| | | |
| | | |
| | | this.focus = false; |
| | | setTimeout(()=>{ |
| | | this.yyds =''; |
| | | this.focus = true; |
| | | console.log(this.yyds ,'1') |
| | | }, 50); |
| | | } |
| | | } |
| | | } |
| | | |
| | | </script> |
| | | |
| | | <style> |
| | | |
| | | </style> |