data: {
listQuery: {
page: 1, // 页码
limit: 5, // 个数
},
array: [‘新建‘, ‘已发货‘, ‘已收货‘, ‘退货‘,‘已入库‘,‘已备货‘,‘已确认‘,‘部分退货‘,‘已作废‘], // 0.新建1.已发货2.已收货3.退货4.已入库5.已备货6.已确认7.部分退货9.已作废
name: ‘‘
},
onLoad: function () {
this.getSupplyNoteList(true);
},
getSupplyNoteList: function(isRefresh){
var that = this;
console.log(that.data.listQuery);
request.postParam("/api/supply/list",that.data.listQuery,function(res){
wx.hideLoading();
console.log(res)
。。。。。省略。。。。。
});
},
bindPickerChange: function(e) {
// console.log(e);
this.setData({
name: this.data.array[e.detail.value],
‘listQuery.status‘: e.detail.value == 8 ? (parseInt(e.detail.value) + 1) : e.detail.value
})
console.log(‘picker发送选择改变,显示值为‘, this.data.listQuery.status)
},