|
@@ -37,9 +37,9 @@
|
|
</view>
|
|
</view>
|
|
</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>
|
|
<u-picker :show="dateShow" :defaultIndex="defaultIndex3" :columns="dateColumns" @confirm="dateConfirm" @cancel="dateShow= false"></u-picker>
|
|
|
|
|
|
@@ -51,7 +51,7 @@
|
|
var _codeQueryTag = false;
|
|
var _codeQueryTag = false;
|
|
import taskItem from '@/components/task-item/task-item.vue'
|
|
import taskItem from '@/components/task-item/task-item.vue'
|
|
import {saleOrder} from '@/common/request/apis/picking'
|
|
import {saleOrder} from '@/common/request/apis/picking'
|
|
- import {orderStartHandle} from '@/common/request/apis/purchase'
|
|
|
|
|
|
+ import {orderStartHandle, depotSpinnerList} from '@/common/request/apis/purchase'
|
|
export default{
|
|
export default{
|
|
components:{
|
|
components:{
|
|
taskItem
|
|
taskItem
|
|
@@ -59,27 +59,25 @@
|
|
data() {
|
|
data() {
|
|
return {
|
|
return {
|
|
offsetTop:0,
|
|
offsetTop:0,
|
|
- cangName:'鹏越中心仓',
|
|
|
|
|
|
+ cangName:'',
|
|
type1:'全部',
|
|
type1:'全部',
|
|
type2:'月份',
|
|
type2:'月份',
|
|
stashShow:false,
|
|
stashShow:false,
|
|
statusShow:false,
|
|
statusShow:false,
|
|
dateShow:false,
|
|
dateShow:false,
|
|
- stashColumns:[
|
|
|
|
- ['鹏越中心仓','美团中心仓']
|
|
|
|
- ],
|
|
|
|
|
|
+ stashColumns:[],
|
|
statusColumns:[
|
|
statusColumns:[
|
|
[{
|
|
[{
|
|
- name:'全部',
|
|
|
|
|
|
+ label:'全部',
|
|
id:''
|
|
id:''
|
|
},{
|
|
},{
|
|
- name:'待拣货',
|
|
|
|
|
|
+ label:'待拣货',
|
|
id:'1'
|
|
id:'1'
|
|
},{
|
|
},{
|
|
- name:'拣货中',
|
|
|
|
|
|
+ label:'拣货中',
|
|
id:'4'
|
|
id:'4'
|
|
},{
|
|
},{
|
|
- name:'已拣货',
|
|
|
|
|
|
+ label:'已拣货',
|
|
id:'2'
|
|
id:'2'
|
|
}]
|
|
}]
|
|
],
|
|
],
|
|
@@ -107,6 +105,7 @@
|
|
let statusBarHeight = systemInfo.statusBarHeight;
|
|
let statusBarHeight = systemInfo.statusBarHeight;
|
|
this.offsetTop = statusBarHeight + 40
|
|
this.offsetTop = statusBarHeight + 40
|
|
this.init()
|
|
this.init()
|
|
|
|
+ this.getDepotSpinnerList()
|
|
},
|
|
},
|
|
onHide() {
|
|
onHide() {
|
|
uni.$off('scanFinish')
|
|
uni.$off('scanFinish')
|
|
@@ -131,6 +130,15 @@
|
|
}
|
|
}
|
|
},
|
|
},
|
|
methods:{
|
|
methods:{
|
|
|
|
+ getDepotSpinnerList() {
|
|
|
|
+ depotSpinnerList()
|
|
|
|
+ .then(res=>{
|
|
|
|
+ if(res.code == 200) {
|
|
|
|
+ this.stashColumns = [res.data]
|
|
|
|
+ this.cangName = res.data[0].label
|
|
|
|
+ }
|
|
|
|
+ })
|
|
|
|
+ },
|
|
scanCode() {
|
|
scanCode() {
|
|
this.$scan.scanCode()
|
|
this.$scan.scanCode()
|
|
},
|
|
},
|
|
@@ -176,11 +184,11 @@
|
|
this.stashShow = true
|
|
this.stashShow = true
|
|
},
|
|
},
|
|
pickerConfirm(val) {
|
|
pickerConfirm(val) {
|
|
- this.cangName = val.value[0]
|
|
|
|
|
|
+ this.cangName = val.value[0].label
|
|
this.stashShow = false
|
|
this.stashShow = false
|
|
},
|
|
},
|
|
statusConfirm(val) {
|
|
statusConfirm(val) {
|
|
- this.type1 = val.value[0].name
|
|
|
|
|
|
+ this.type1 = val.value[0].label
|
|
this.params.status = val.value[0].id
|
|
this.params.status = val.value[0].id
|
|
this.statusShow = false
|
|
this.statusShow = false
|
|
this.init()
|
|
this.init()
|