<template>
|
<view>
|
<!-- 搜索栏 -->
|
<view>
|
<view class="cu-bar bg-white search">
|
<view class="search-form radius">
|
<text class="cuIcon-search"></text>
|
<input :adjust-position="false" type="text" placeholder="扫码 / 输入" confirm-type="search"></input>
|
</view>
|
<view class="action">
|
<button class="cu-btn bg-yellow" style="color: #fff;">搜 索</button>
|
</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.dd}}</uni-td>
|
<uni-td align="center">{{item.rk}}</uni-td>
|
<uni-td align="center">{{item.yr}}</uni-td>
|
<uni-td align="center">{{item.bm}}</uni-td>
|
<uni-td align="center">{{item.mc}}</uni-td>
|
<uni-td align="center">{{item.zt}}</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>
|
</view>
|
</view>
|
</template>
|
|
<script>
|
export default {
|
data() {
|
return {
|
tabData:[],
|
}
|
},
|
mounted(){
|
const UIP = uni.getStorageSync('UIP');
|
this.baseIP = UIP;
|
const UPORT = uni.getStorageSync('UPORT');
|
this.basePORT = UPORT;
|
let that = this;
|
uni.request({
|
url: that.baseHttp + that.baseIP + ':' +that.basePORT + that.baseUrl + "/receiveDetl/list/auth",
|
header:{'token':uni.getStorageSync('token')},
|
success(res) {
|
var res = res.data
|
if (res.code === 200) {
|
that.tabData = res.data.records
|
console.log(that.tabData)
|
}
|
}
|
})
|
},
|
onLoad() {
|
|
},
|
methods: {
|
|
}
|
}
|
</script>
|
|
<style>
|
</style>
|