|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
|
- <view class="warp">
|
|
|
+ <view class="wrap">
|
|
|
<view class="dropdown content1">
|
|
|
<view class="left" @click='show1=true'>
|
|
|
<view>{{warehouseName}}</view>
|
|
@@ -14,14 +14,6 @@
|
|
|
:range="warehouseCWList"></u-picker>
|
|
|
</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.updateDate}}</view>
|
|
|
- <view class="item-style">{{item.backOffice}}</view>
|
|
|
- </view>
|
|
|
- </view> -->
|
|
|
<view class="content2">
|
|
|
<view class="content2-item" v-for="(item,index) in dataList" @click="goDetail(item)">
|
|
|
<view class="row">
|
|
@@ -53,40 +45,40 @@
|
|
|
show1: false,
|
|
|
show2: false,
|
|
|
currentPage: 1,
|
|
|
- pageSize: 10,
|
|
|
+ pageSize: 9999,
|
|
|
positionId: "",
|
|
|
binNumber: "",
|
|
|
- binNumber: "",
|
|
|
warehouseName: '',
|
|
|
+ positionName: '',
|
|
|
warehouseList: [],
|
|
|
- warehouseCWList:[],
|
|
|
- dataList: []
|
|
|
+ warehouseCWList: [],
|
|
|
+ dataList: [],
|
|
|
+ allWarehouse: [],
|
|
|
+ showTime: ''
|
|
|
}
|
|
|
},
|
|
|
onLoad() {
|
|
|
this.positionId = helper.erpWarehouse.positionId
|
|
|
this.warehouseId = helper.erpWarehouse.warehouseId
|
|
|
- this.getList()
|
|
|
},
|
|
|
onShow() {
|
|
|
- this.positionId = helper.erpWarehouse.positionId
|
|
|
- this.warehouseId = helper.erpWarehouse.warehouseId
|
|
|
let _data = helper.erpWarehouse
|
|
|
- this.positionId = _data.positionId
|
|
|
- this.warehouseId = _data.warehouseId
|
|
|
+ this.warehouseName = _data.warehouseName
|
|
|
this.warehouseList = _data.allWarehouse
|
|
|
this.warehouseCWList = _data.warehouseCWList
|
|
|
- this.warehouseName = _data.warehouseName
|
|
|
this.binNumber = _data.binNumber
|
|
|
+ this.positionId = _data.positionId
|
|
|
+ this.warehouseId = _data.warehouseId
|
|
|
+ this.getList()
|
|
|
},
|
|
|
methods: {
|
|
|
getList() {
|
|
|
this.$api.doRequest('get', '/warehouseInOutInfo/selectWarehouseInOutInfo', {
|
|
|
- positionId:this.positionId,
|
|
|
+ positionId: this.positionId,
|
|
|
baseId: this.warehouseId,
|
|
|
currentPage: this.currentPage,
|
|
|
pageSize: this.pageSize,
|
|
|
- inOutFlag:1
|
|
|
+ inOutFlag: 1
|
|
|
}).then(res => {
|
|
|
if (res.data.code == 200) {
|
|
|
this.dataList = res.data.data.records
|
|
@@ -94,50 +86,32 @@
|
|
|
})
|
|
|
},
|
|
|
warehousechange(e) {
|
|
|
- this.warehouseName = this.warehouseList[e[0]].warehouseName
|
|
|
- this.warehouseId =this.warehouseList[e[0]].id
|
|
|
- this.warehouseCWList = this.warehouseList[e[0]].positionInfos
|
|
|
- this.warehouseCWchange([0])
|
|
|
+ this.warehouseName = this.warehouseList[e[0]].warehouseName
|
|
|
+ this.warehouseId = this.warehouseList[e[0]].id
|
|
|
+ this.warehouseCWList = this.warehouseList[e[0]].positionInfos
|
|
|
+ this.warehouseCWchange([0])
|
|
|
},
|
|
|
warehouseCWchange(e) {
|
|
|
- this.binNumber = this.warehouseCWList[e[0]].binNumber
|
|
|
- this.warehouseId = this.warehouseCWList[e[0]].baseId
|
|
|
- this.positionId = this.warehouseCWList[e[0]].id
|
|
|
- helper.erpWarehouse.binNumber = this.binNumber
|
|
|
- helper.erpWarehouse.warehouseName = this.warehouseName
|
|
|
- helper.erpWarehouse.positionId = this.positionId
|
|
|
- helper.erpWarehouse.warehouseId = this.warehouseId
|
|
|
- this.getList()
|
|
|
+ this.binNumber = this.warehouseCWList[e[0]].binNumber
|
|
|
+ this.warehouseId = this.warehouseCWList[e[0]].baseId
|
|
|
+ this.positionId = this.warehouseCWList[e[0]].id
|
|
|
+ helper.erpWarehouse.binNumber = this.binNumber
|
|
|
+ helper.erpWarehouse.warehouseName = this.warehouseName
|
|
|
+ helper.erpWarehouse.positionId = this.positionId
|
|
|
+ helper.erpWarehouse.warehouseId = this.warehouseId
|
|
|
+ helper.erpWarehouse.warehouseCWList = this.warehouseCWList//保存仓位列表,用于解决待完善出入库返回该页面仓库与仓位不匹配问题
|
|
|
+ this.getList()
|
|
|
},
|
|
|
goDetail(val) {
|
|
|
uni.navigateTo({
|
|
|
url: '/pages/erp/improvedExWaehousing/improvedExWaehousingDetail?data=' + JSON.stringify(val),
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style scoped lang="scss">
|
|
|
- uni-page-body {
|
|
|
- overflow: hidden;
|
|
|
- }
|
|
|
- // .warp {
|
|
|
- // margin: 10rpx;
|
|
|
- // padding: 20rpx 20rpx 140rpx 20rpx;
|
|
|
-
|
|
|
- // .top {
|
|
|
- // display: flex;
|
|
|
- // margin-bottom: 20rpx;
|
|
|
- // border-radius: 20rpx;
|
|
|
- // background: white;
|
|
|
- // padding: 20rpx;
|
|
|
- // .top-left {
|
|
|
- // margin-right: 20rpx;
|
|
|
- // }
|
|
|
- // }
|
|
|
- // }
|
|
|
.dropdown {
|
|
|
display: flex;
|
|
|
margin: 20rpx 0;
|
|
@@ -146,6 +120,7 @@
|
|
|
.left,
|
|
|
.right {
|
|
|
display: flex;
|
|
|
+ align-items: center;
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -157,46 +132,19 @@
|
|
|
}
|
|
|
|
|
|
.content2 {
|
|
|
- margin: 20rpx;
|
|
|
- background: #FFFFFF;
|
|
|
- border-radius: 10rpx;
|
|
|
-
|
|
|
- .content2-item {
|
|
|
- padding: 20rpx;
|
|
|
- margin-bottom: 10rpx;
|
|
|
- // border-bottom: 1px solid #ccc;
|
|
|
- }
|
|
|
-
|
|
|
- .item-style {
|
|
|
- display: inline-block;
|
|
|
- width: 50%;
|
|
|
- }
|
|
|
- }
|
|
|
- .content,
|
|
|
- .content1,
|
|
|
- .content2 {
|
|
|
- border-radius: 20rpx;
|
|
|
- background: white;
|
|
|
- padding: 20rpx;
|
|
|
-
|
|
|
- .title {
|
|
|
- font-size: 28rpx;
|
|
|
- font-weight: 600;
|
|
|
- color: #333333;
|
|
|
- }
|
|
|
-
|
|
|
.row {
|
|
|
display: flex;
|
|
|
justify-content: space-between;
|
|
|
border-bottom: 1px solid #EEEEEE;
|
|
|
padding: 21rpx 0;
|
|
|
-
|
|
|
+
|
|
|
.right,
|
|
|
input {
|
|
|
font-size: 28rpx;
|
|
|
color: #333333;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
.row-bottom {
|
|
|
.right-bottom {
|
|
|
width: 300rpx;
|
|
@@ -204,11 +152,15 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- .bottom-btn {
|
|
|
- width: 92%;
|
|
|
- position: fixed;
|
|
|
- bottom: 40rpx;
|
|
|
- display: flex;
|
|
|
- z-index: 2;
|
|
|
+
|
|
|
+ .content2-item {
|
|
|
+ background: white;
|
|
|
+ margin: 0 20rpx 20rpx 20rpx;
|
|
|
+ padding: 10rpx;
|
|
|
+ border-radius: 15rpx;
|
|
|
+ }
|
|
|
+
|
|
|
+ .no-boder {
|
|
|
+ border-bottom: none !important;
|
|
|
}
|
|
|
</style>
|