|
@@ -37,9 +37,9 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
<!-- 中心仓弹窗 -->
|
|
|
- <u-picker :show="stashShow" :defaultIndex="defaultIndex" :columns="stashColumns" @confirm="pickerConfirm" @cancel="stashShow= false"></u-picker>
|
|
|
+ <u-picker :show="stashShow" keyName="label" :defaultIndex="defaultIndex" :columns="stashColumns" @confirm="pickerConfirm" @cancel="stashShow= false"></u-picker>
|
|
|
<!-- 状态 -->
|
|
|
- <u-picker :show="statusShow" keyName="name" :defaultIndex="defaultIndex2" :columns="statusColumns" @confirm="statusConfirm" @cancel="statusShow= false"></u-picker>
|
|
|
+ <u-picker :show="statusShow" keyName="label" :defaultIndex="defaultIndex2" :columns="statusColumns" @confirm="statusConfirm" @cancel="statusShow= false"></u-picker>
|
|
|
<!-- 月份 -->
|
|
|
<u-picker :show="dateShow" :defaultIndex="defaultIndex3" :columns="dateColumns" @confirm="dateConfirm" @cancel="dateShow= false"></u-picker>
|
|
|
|
|
@@ -48,7 +48,7 @@
|
|
|
|
|
|
<script>
|
|
|
import taskItem from '@/components/task-item/task-item.vue'
|
|
|
- import {purchaseInventory, orderStartHandle} from '@/common/request/apis/purchase'
|
|
|
+ import {purchaseInventory, orderStartHandle, depotSpinnerList} from '@/common/request/apis/purchase'
|
|
|
export default{
|
|
|
components:{
|
|
|
taskItem
|
|
@@ -56,7 +56,7 @@
|
|
|
data() {
|
|
|
return {
|
|
|
offsetTop:0,
|
|
|
- cangName:'鹏越中心仓',
|
|
|
+ cangName:'',
|
|
|
searchKey:'',
|
|
|
type1:'全部',
|
|
|
type2:'月份',
|
|
@@ -64,21 +64,19 @@
|
|
|
stashShow:false,
|
|
|
statusShow:false,
|
|
|
dateShow:false,
|
|
|
- stashColumns:[
|
|
|
- ['鹏越中心仓','美团中心仓']
|
|
|
- ],
|
|
|
+ stashColumns:[],
|
|
|
statusColumns:[
|
|
|
[{
|
|
|
- name:'全部',
|
|
|
+ label:'全部',
|
|
|
id:''
|
|
|
},{
|
|
|
- name:'待入库',
|
|
|
+ label:'待入库',
|
|
|
id:'1'
|
|
|
},{
|
|
|
- name:'入库中',
|
|
|
+ label:'入库中',
|
|
|
id:'4'
|
|
|
},{
|
|
|
- name:'已入库',
|
|
|
+ label:'已入库',
|
|
|
id:'2'
|
|
|
}]
|
|
|
],
|
|
@@ -106,6 +104,7 @@
|
|
|
let statusBarHeight = systemInfo.statusBarHeight;
|
|
|
this.offsetTop = statusBarHeight + 40
|
|
|
this.init()
|
|
|
+ this.getDepotSpinnerList()
|
|
|
},
|
|
|
onShow() {
|
|
|
uni.$on('scanFinish',(data)=>{
|
|
@@ -130,6 +129,15 @@
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
+ getDepotSpinnerList() {
|
|
|
+ depotSpinnerList()
|
|
|
+ .then(res=>{
|
|
|
+ if(res.code == 200) {
|
|
|
+ this.stashColumns = [res.data]
|
|
|
+ this.cangName = res.data[0].label
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
scanCode() {
|
|
|
this.$scan.scanCode()
|
|
|
},
|
|
@@ -186,11 +194,11 @@
|
|
|
this.stashShow = true
|
|
|
},
|
|
|
pickerConfirm(val) {
|
|
|
- this.cangName = val.value[0]
|
|
|
+ this.cangName = val.value[0].label
|
|
|
this.stashShow = false
|
|
|
},
|
|
|
statusConfirm(val) {
|
|
|
- this.type1 = val.value[0].name
|
|
|
+ this.type1 = val.value[0].label
|
|
|
this.params.status = val.value[0].id
|
|
|
this.statusShow = false
|
|
|
this.init()
|