|
@@ -9,10 +9,10 @@
|
|
:range="warehouseList"></u-picker>
|
|
:range="warehouseList"></u-picker>
|
|
</view>
|
|
</view>
|
|
<view class="right" @click='show2=true'>
|
|
<view class="right" @click='show2=true'>
|
|
- <view>{{positionName}}</view>
|
|
|
|
|
|
+ <view>{{binNumber}}</view>
|
|
<u-icon name="arrow-right" color=""></u-icon>
|
|
<u-icon name="arrow-right" color=""></u-icon>
|
|
- <u-select v-model="show2" :default-value='[0]' :list="positionList" @confirm="confirmPositon">
|
|
|
|
- </u-select>
|
|
|
|
|
|
+ <u-picker @confirm="warehouseCWchange" range-key='binNumber' mode="selector" v-model="show2"
|
|
|
|
+ :range="warehouseCWList"></u-picker>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
|
|
|
|
@@ -34,7 +34,7 @@
|
|
import {
|
|
import {
|
|
mapState
|
|
mapState
|
|
} from 'vuex';
|
|
} from 'vuex';
|
|
-
|
|
|
|
|
|
+import helper from '@/common/helper.js';
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
|
|
|
|
@@ -46,12 +46,10 @@
|
|
isShowAlert: false,
|
|
isShowAlert: false,
|
|
content: '易粮易运ERP系统包含合同管理、仓库管理、运输管理、结算管理等多个模块,可为粮企提供粮食贸易的全流程服务,平台诚邀您的加入。',
|
|
content: '易粮易运ERP系统包含合同管理、仓库管理、运输管理、结算管理等多个模块,可为粮企提供粮食贸易的全流程服务,平台诚邀您的加入。',
|
|
warehouseName: '',
|
|
warehouseName: '',
|
|
- positionName: '102仓位',
|
|
|
|
|
|
+ binNumber: '',
|
|
|
|
+ compId:'',
|
|
warehouseList: [],
|
|
warehouseList: [],
|
|
- positionList: [{
|
|
|
|
- "label": '102仓位',
|
|
|
|
- "value": '1'
|
|
|
|
- }],
|
|
|
|
|
|
+ warehouseCWList:[],
|
|
gridCol: 4,
|
|
gridCol: 4,
|
|
gridBorder: false,
|
|
gridBorder: false,
|
|
gridList: [{
|
|
gridList: [{
|
|
@@ -193,6 +191,12 @@
|
|
})
|
|
})
|
|
} else {
|
|
} else {
|
|
if (item.url) {
|
|
if (item.url) {
|
|
|
|
+ helper.erpWarehouse = {
|
|
|
|
+ warehouseName:this.warehouseName,
|
|
|
|
+ binNumber:this.binNumber,
|
|
|
|
+ compId:this.compId
|
|
|
|
+
|
|
|
|
+ }
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: item.url
|
|
url: item.url
|
|
})
|
|
})
|
|
@@ -213,21 +217,27 @@
|
|
} else {
|
|
} else {
|
|
this.warehouseName = res.data.data[0].warehouseName
|
|
this.warehouseName = res.data.data[0].warehouseName
|
|
this.warehouseList = res.data.data;
|
|
this.warehouseList = res.data.data;
|
|
- this.makeBinNumber()
|
|
|
|
|
|
+ this.compId = res.data.data[0].compId
|
|
|
|
+ this.binNumber = res.data.data[0].positionInfos[0].binNumber
|
|
|
|
+ this.warehouseCWList = res.data.data[0].positionInfos
|
|
|
|
+ console.log('this.warehouseCWList',this.warehouseCWList)
|
|
|
|
+ // this.makeBinNumber()
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|
|
},
|
|
},
|
|
- makeBinNumber(){debugger
|
|
|
|
-
|
|
|
|
- console.log(_arr)
|
|
|
|
|
|
+ makeBinNumber(){
|
|
|
|
|
|
},
|
|
},
|
|
warehousechange(e) {
|
|
warehousechange(e) {
|
|
- debugger
|
|
|
|
this.warehouseName = this.warehouseList[e[0]].warehouseName
|
|
this.warehouseName = this.warehouseList[e[0]].warehouseName
|
|
|
|
+ this.compId = this.warehouseList[e[0]].compId
|
|
|
|
+ this.warehouseCWList = this.warehouseList[e[0]].positionInfos
|
|
console.log(e)
|
|
console.log(e)
|
|
},
|
|
},
|
|
|
|
+ warehouseCWchange(e){
|
|
|
|
+ this.binNumber = this.warehouseCWList[e[0]].binNumber
|
|
|
|
+ }
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|