|
@@ -4,14 +4,18 @@
|
|
|
<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>
|
|
|
+ <!-- <u-picker v-model="show1" :default-value='[0]' mode="selector" :list="warehouseList" @confirm="confirmWarehouse">
|
|
|
+ </u-picker> -->
|
|
|
+ <u-picker @confirm="warehousechange" range-key='warehouseName' mode="selector" v-model="show1"
|
|
|
+ :range="warehouseList"></u-picker>
|
|
|
</view>
|
|
|
<view class="right" @click='show2=true'>
|
|
|
- <view>{{positionName}}</view>
|
|
|
+ <view>{{binNumber}}仓位</view>
|
|
|
<u-icon name="arrow-right"></u-icon>
|
|
|
- <u-select v-model="show2" :default-value='[0]' :list="positionList" @confirm="confirmPositon">
|
|
|
- </u-select>
|
|
|
+ <!-- <u-picker v-model="show2" :default-value='[0]' mode="selector" :list="positionList" @confirm="confirmPositon">
|
|
|
+ </u-picker> -->
|
|
|
+ <u-picker @confirm="warehouseCWchange" range-key='binNumber' mode="selector" v-model="show2"
|
|
|
+ :range="warehouseCWList"></u-picker>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="content2">
|
|
@@ -36,16 +40,17 @@
|
|
|
pageSize: 10,
|
|
|
positionId: "",
|
|
|
binNumber: "",
|
|
|
- warehouseName: '鲅鱼圈一号库',
|
|
|
- positionName: '102仓位',
|
|
|
- warehouseList: [{
|
|
|
- "label": '1',
|
|
|
- "value": '1'
|
|
|
- }],
|
|
|
- positionList: [{
|
|
|
- "label": '102仓位',
|
|
|
- "value": '1'
|
|
|
- }],
|
|
|
+ // warehouseName: '鲅鱼圈一号库',
|
|
|
+ // positionName: '102仓位',
|
|
|
+ binNumber: "",
|
|
|
+ warehouseName: '',
|
|
|
+ warehouseList: [],
|
|
|
+ warehouseCWList:[],
|
|
|
+
|
|
|
+ // positionList: [{
|
|
|
+ // "label": '102仓位',
|
|
|
+ // "value": '1'
|
|
|
+ // }],
|
|
|
dataList: []
|
|
|
}
|
|
|
},
|
|
@@ -54,7 +59,12 @@
|
|
|
this.getList()
|
|
|
},
|
|
|
onShow() {
|
|
|
- this.positionId = helper.erpWarehouse.positionId
|
|
|
+ let _data = helper.erpWarehouse
|
|
|
+ this.positionId = _data.positionId
|
|
|
+ this.warehouseList = _data.allWarehouse
|
|
|
+ this.warehouseCWList = _data.warehouseCWList
|
|
|
+ this.warehouseName = _data.warehouseName
|
|
|
+ this.binNumber = _data.binNumber
|
|
|
},
|
|
|
methods: {
|
|
|
getList() {
|
|
@@ -70,12 +80,14 @@
|
|
|
}
|
|
|
})
|
|
|
},
|
|
|
- confirmWarehouse() {},
|
|
|
- confirmPositon() {},
|
|
|
+ warehousechange(e) {
|
|
|
+ this.warehouseName = this.warehouseList[e[0]].warehouseName
|
|
|
+ },
|
|
|
+ warehouseCWchange(e) {
|
|
|
+ this.binNumber = this.warehouseCWList[e[0]].binNumber
|
|
|
+ },
|
|
|
goDetail(val) {
|
|
|
-
|
|
|
uni.navigateTo({
|
|
|
- // /pages/erp/warehousing/selectContractNo
|
|
|
url: '/pages/erp/improvedExWaehousing/improvedExWaehousingDetail?data=' + JSON.stringify(val),
|
|
|
})
|
|
|
}
|