|
@ -1,7 +1,7 @@ |
|
|
<template> |
|
|
<template> |
|
|
<view class=""> |
|
|
<view class=""> |
|
|
<com-empty-view v-if="jobList.length==0"></com-empty-view> |
|
|
<com-empty-view v-if="jobList.length==0"></com-empty-view> |
|
|
<job-filter :isShowFromLocationCode="true" :isShowProductionLineCode="true" ref="filter" otherTitle="" |
|
|
<job-filter :isShowFromLocationCode="true" :isShowProductionLineCode="true" :productionline="productionline" ref="filter" otherTitle="" |
|
|
@switchChangeToday="switchChangeToday" @switchChangeWait="switchChangeWait" @onScanNumber="getScanNumber" |
|
|
@switchChangeToday="switchChangeToday" @switchChangeWait="switchChangeWait" @onScanNumber="getScanNumber" |
|
|
:checkedToday="checkedToday" :checkedWaitTask="checkedWaitTask" @productionLineCode="productionLineCode" |
|
|
:checkedToday="checkedToday" :checkedWaitTask="checkedWaitTask" @productionLineCode="productionLineCode" |
|
|
@fromLocationCode="fromLocationCode"> |
|
|
@fromLocationCode="fromLocationCode"> |
|
@ -31,7 +31,8 @@ |
|
|
<script> |
|
|
<script> |
|
|
import { |
|
|
import { |
|
|
cancleTakeIssueJob, |
|
|
cancleTakeIssueJob, |
|
|
getIssueJobList, |
|
|
getIssueJobList, |
|
|
|
|
|
getIssueJobByProductionline |
|
|
} from '@/api/request2.js'; |
|
|
} from '@/api/request2.js'; |
|
|
import { |
|
|
import { |
|
|
goHome, |
|
|
goHome, |
|
@ -76,10 +77,13 @@ |
|
|
todayTime: "", |
|
|
todayTime: "", |
|
|
status: '1,2', //待处理 、进行中 |
|
|
status: '1,2', //待处理 、进行中 |
|
|
detailOptions: [], |
|
|
detailOptions: [], |
|
|
detailGiveupOptions: [], |
|
|
detailGiveupOptions: [], |
|
|
|
|
|
productionline:[] |
|
|
}; |
|
|
}; |
|
|
|
|
|
}, |
|
|
|
|
|
onLoad(){ |
|
|
|
|
|
this.getIssueJobByProductionline() |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
onShow() { |
|
|
onShow() { |
|
|
this.getList('refresh'); |
|
|
this.getList('refresh'); |
|
|
}, |
|
|
}, |
|
@ -119,7 +123,20 @@ |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
methods: { |
|
|
methods: { |
|
|
|
|
|
getIssueJobByProductionline(){ |
|
|
|
|
|
getIssueJobByProductionline().then(res=>{ |
|
|
|
|
|
console.log('生产线',res) |
|
|
|
|
|
if(res.code==0){ |
|
|
|
|
|
this.productionline = res.data.map(item=>({ |
|
|
|
|
|
value: item, |
|
|
|
|
|
text: item |
|
|
|
|
|
})) |
|
|
|
|
|
}else{ |
|
|
|
|
|
this.productionline = [] |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
getList(type, fromLocationCode = '', productionLineCode = '') { |
|
|
getList(type, fromLocationCode = '', productionLineCode = '') { |
|
|
let that = this; |
|
|
let that = this; |
|
|
uni.showLoading({ |
|
|
uni.showLoading({ |
|
|