|
|
|
|
@ -157,18 +157,16 @@ |
|
|
|
|
// this.dataList=res.rows |
|
|
|
|
// // console.log(res); |
|
|
|
|
// }) |
|
|
|
|
this.$u.api.getLockstockBatch({ pageSize: 999, pageNum: 1 }).then((response) => { |
|
|
|
|
// console.log(response); |
|
|
|
|
this.lockstockBatch=response.data.map((item,index)=>{ |
|
|
|
|
return { |
|
|
|
|
label:item, |
|
|
|
|
value:item, |
|
|
|
|
} |
|
|
|
|
}) |
|
|
|
|
// console.log(response.data); |
|
|
|
|
// this.lockstockBatch = response.data |
|
|
|
|
// this.$u.api.getLockstockBatch({ pageSize: 999, pageNum: 1 }).then((response) => { |
|
|
|
|
// // console.log(response); |
|
|
|
|
// this.lockstockBatch=response.data.map((item,index)=>{ |
|
|
|
|
// return { |
|
|
|
|
// label:item, |
|
|
|
|
// value:item, |
|
|
|
|
// } |
|
|
|
|
// }) |
|
|
|
|
|
|
|
|
|
}) |
|
|
|
|
// }) |
|
|
|
|
}, |
|
|
|
|
//上拉刷新(当数据距离底部100时触发,距离在pages.json配置) |
|
|
|
|
// onReachBottom() { |
|
|
|
|
@ -191,7 +189,6 @@ |
|
|
|
|
}, |
|
|
|
|
filters: { |
|
|
|
|
formatType(value) { |
|
|
|
|
console.log(value); |
|
|
|
|
switch (Number(value)) { |
|
|
|
|
case 0: |
|
|
|
|
return "type1"; |
|
|
|
|
@ -248,14 +245,12 @@ |
|
|
|
|
// }, 500) |
|
|
|
|
}, |
|
|
|
|
onNavigationBarButtonTap(e){ |
|
|
|
|
console.log(e); |
|
|
|
|
}, |
|
|
|
|
//删除单个 |
|
|
|
|
delBtn(index){ |
|
|
|
|
// console.log(JSON.stringify(this.pickUpObj)); |
|
|
|
|
this.dataList.splice(index,1) |
|
|
|
|
this.pickUpObj.moldBarcodeList.splice(index,1) |
|
|
|
|
console.log(JSON.stringify(this.pickUpObj)); |
|
|
|
|
}, |
|
|
|
|
loadList() { |
|
|
|
|
|
|
|
|
|
|