|
@ -9,13 +9,13 @@ |
|
|
<!-- <comInjectIssue :dataContent="item"></comInjectIssue> --> |
|
|
<!-- <comInjectIssue :dataContent="item"></comInjectIssue> --> |
|
|
</view> |
|
|
</view> |
|
|
<uni-load-more :status="loadingType" v-if="deliverList.length>0" /> |
|
|
<uni-load-more :status="loadingType" v-if="deliverList.length>0" /> |
|
|
<!-- <win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
<!-- <win-scan-button @goScan='openScanPopup'></win-scan-button> |
|
|
<win-mulit-scan ref="scanPopup" :titleArray="titleArray" @getScanResult='getScanResult'> |
|
|
<win-mulit-scan ref="scanPopup" :titleArray="titleArray" @getScanResult='getScanResult'> |
|
|
</win-mulit-scan> --> |
|
|
</win-mulit-scan> --> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
</view> |
|
|
</view> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
|
<script> |
|
|
<script> |
|
@ -36,7 +36,7 @@ |
|
|
import winScanButton from '@/mycomponents/wincom/winScanButton.vue' |
|
|
import winScanButton from '@/mycomponents/wincom/winScanButton.vue' |
|
|
import winMulitScan from '@/mycomponents/wincom/winMulitScan.vue' |
|
|
import winMulitScan from '@/mycomponents/wincom/winMulitScan.vue' |
|
|
import comMessage from '@/mycomponents/common/comMessage.vue' |
|
|
import comMessage from '@/mycomponents/common/comMessage.vue' |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
name: 'deliver', |
|
|
name: 'deliver', |
|
|
components: { |
|
|
components: { |
|
@ -63,7 +63,7 @@ |
|
|
isToday: true, |
|
|
isToday: true, |
|
|
titleArray: ['任务编号'], |
|
|
titleArray: ['任务编号'], |
|
|
loadingType: "nomore" |
|
|
loadingType: "nomore" |
|
|
|
|
|
|
|
|
}; |
|
|
}; |
|
|
}, |
|
|
}, |
|
|
props: { |
|
|
props: { |
|
@ -97,33 +97,34 @@ |
|
|
onNavigationBarButtonTap(e) { |
|
|
onNavigationBarButtonTap(e) { |
|
|
if (e.index === 0) { |
|
|
if (e.index === 0) { |
|
|
goHome(); |
|
|
goHome(); |
|
|
}else if(e.index === 1){ |
|
|
} else if (e.index === 1) { |
|
|
window.location.reload(); |
|
|
window.location.reload(); |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
async handle(item){ |
|
|
async handle(item) { |
|
|
uni.showLoading({ |
|
|
uni.showLoading({ |
|
|
title:"提交中", |
|
|
title: "提交中", |
|
|
mask:true |
|
|
mask: true |
|
|
}) |
|
|
}) |
|
|
try{ |
|
|
try { |
|
|
var jobList = await getCoatingRequestJobByRequest(item.number) |
|
|
var jobList = await getCoatingRequestJobByRequest(item.number) |
|
|
var handleResult = await coatingRequestHandle(item.id) |
|
|
var handleResult = await coatingRequestHandle(item.id) |
|
|
|
|
|
|
|
|
var isHaveNewJobList=[]; |
|
|
var isHaveNewJobList = []; |
|
|
jobList.forEach(res=>{ |
|
|
jobList.forEach(res => { |
|
|
isHaveNewJobList.push(res.CoatingRequestNumber); |
|
|
isHaveNewJobList.push(res.number); |
|
|
}) |
|
|
}) |
|
|
var isHaveNewJob = await isCoatingHasNewJob(isHaveNewJobList) |
|
|
var isHaveNewJob = await isCoatingHasNewJob(item.number, isHaveNewJobList) |
|
|
uni.hideLoading() |
|
|
uni.hideLoading() |
|
|
this.showMessage(isHaveNewJob) |
|
|
this.showMessage(isHaveNewJob) |
|
|
}catch(error){ |
|
|
this.getList('refresh') |
|
|
|
|
|
} catch (error) { |
|
|
uni.hideLoading() |
|
|
uni.hideLoading() |
|
|
this.showMessage(error) |
|
|
this.showMessage(error) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
openScanPopup() { |
|
|
openScanPopup() { |
|
|
this.$refs.scanPopup.openScanPopup(); |
|
|
this.$refs.scanPopup.openScanPopup(); |
|
@ -152,7 +153,7 @@ |
|
|
this.pageIndex = 1; |
|
|
this.pageIndex = 1; |
|
|
this.deliverList = []; |
|
|
this.deliverList = []; |
|
|
} |
|
|
} |
|
|
getCoatingRequestList(that.pageIndex,that.pageSize,false) |
|
|
getCoatingRequestList(that.pageIndex, that.pageSize, false) |
|
|
.then(res => { |
|
|
.then(res => { |
|
|
uni.hideLoading(); |
|
|
uni.hideLoading(); |
|
|
if (type === "refresh") { |
|
|
if (type === "refresh") { |
|
@ -178,7 +179,7 @@ |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
openDetail(item) { |
|
|
openDetail(item) { |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url: './coatingIssueRequestListDetail?id=' + item.id + '&jobStatus=' + item.jobStatus |
|
|
url: './coatingIssueRequestListDetail?id=' + item.id + '&jobStatus=' + item.jobStatus |
|
@ -191,4 +192,4 @@ |
|
|
}; |
|
|
}; |
|
|
</script> |
|
|
</script> |
|
|
<style scoped lang="scss"> |
|
|
<style scoped lang="scss"> |
|
|
</style> |
|
|
</style> |