123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <template>
- <view class="wrap">
- <view class="dropdown content1">
- <view class="left" @click='show1=true'>
- <view>{{warehouseName}}</view>
- <u-icon name="arrow-right"></u-icon>
- <u-select v-model="show1" :default-value='[0]' :list="warehouseList" @confirm="confirmWarehouse">
- </u-select>
- </view>
- <view class="right" @click='show2=true'>
- <view>{{positionName}}</view>
- <u-icon name="arrow-right"></u-icon>
- <u-select v-model="show2" :default-value='[0]' :list="positionList" @confirm="confirmPositon">
- </u-select>
- </view>
- </view>
- <view class="content2">
- <view class="content2-item" v-for="(item,index) in dataList" @click="goDetail(item)">
- <view class="item-style">{{item.contractNo}}</view>
- <view class="item-style">{{item.carNo}}</view>
- <view class="item-style">{{item.inOutDate}}</view>
- <view class="item-style">{{item.backOffice}}</view>
- </view>
- </view>
- </view>
- </template>
- <script>
- import helper from '@/common/helper.js';
- export default {
- data() {
- return {
- show1: false,
- show2: false,
- currentPage: 1,
- pageSize: 10,
- positionId: "",
- binNumber: "",
- warehouseName: '鲅鱼圈一号库',
- positionName: '102仓位',
- warehouseList: [{
- "label": '1',
- "value": '1'
- }],
- positionList: [{
- "label": '102仓位',
- "value": '1'
- }],
- dataList: []
- }
- },
- onLoad() {
- this.positionId = helper.erpWarehouse.positionId
- this.getList()
- },
- onShow() {
- this.positionId = helper.erpWarehouse.positionId
- },
- methods: {
- getList() {
- this.$api.doRequest('get', '/warehouseInOutInfo/selectWarehouseInOutInfo', {
- positionId:this.positionId,
- baseId: helper.erpWarehouse.warehouseId,
- currentPage: this.currentPage,
- pageSize: this.pageSize,
- inOutFlag:1
- }).then(res => {
- if (res.data.code == 200) {
- this.dataList = res.data.data.records
- }
- })
- },
- confirmWarehouse() {},
- confirmPositon() {},
- goDetail(val) {
-
- uni.navigateTo({
- // /pages/erp/warehousing/selectContractNo
- url: '/pages/erp/improvedExWaehousing/improvedExWaehousingDetail?data=' + JSON.stringify(val),
- })
- }
- }
- }
- </script>
- <style scoped lang="scss">
- .dropdown {
- display: flex;
- margin: 20rpx 0;
- justify-content: space-between;
- .left,
- .right {
- display: flex;
- }
- }
- .content1 {
- padding: 40rpx 20rpx;
- margin: 20rpx;
- border-radius: 10rpx;
- background: #FFFFFF;
- }
- .content2 {
- // padding: 20rpx;
- margin: 20rpx;
- // border-bottom: 1px solid #ccc;
- background: #FFFFFF;
- border-radius: 10rpx;
- .content2-item {
- padding: 20rpx;
- margin-bottom: 10rpx;
- border-bottom: 1px solid #ccc;
- // padding-bottom: 10px;
- }
- .item-style {
- display: inline-block;
- width: 50%;
- }
- }
- </style>
|