|
@@ -179,9 +179,9 @@
|
|
|
},
|
|
|
onShow() {
|
|
|
uni.$on('scanFinish',(data)=>{
|
|
|
- if(this.goodsList.length == 0)return
|
|
|
+ if(this.goodsList.length == 0) return uni.$u.toast("该货物不属于该任务");
|
|
|
let index = this.goodsList.findIndex(item=>item.barCode == data)
|
|
|
- if(index == -1) return
|
|
|
+ if(index == -1) return uni.$u.toast("该货物不属于该任务");
|
|
|
this.scanIndex = index
|
|
|
this.scanNum = 1
|
|
|
this.scanedShow = true
|
|
@@ -244,7 +244,6 @@
|
|
|
this.calendarShow = false
|
|
|
},
|
|
|
calendarClick(item) {
|
|
|
- console.log(item.productionDate,'item.productionDate')
|
|
|
this.chooseGoodsInfo = item
|
|
|
if(item.productionDate) {
|
|
|
this.value1 = Number(new Date(item.productionDate))
|