|
@ -14,10 +14,11 @@ |
|
|
</view> |
|
|
</view> |
|
|
</uni-swipe-action> |
|
|
</uni-swipe-action> |
|
|
<uni-load-more :status="loadingType" /> |
|
|
<uni-load-more :status="loadingType" /> |
|
|
|
|
|
<!-- <request-info-popup ref='requestInfoPopup'></request-info-popup> --> |
|
|
<request-info-popup ref='requestInfoPopup'></request-info-popup> |
|
|
|
|
|
</view> |
|
|
</view> |
|
|
<requestButton @goScan='openScanDetailPopup'></requestButton> |
|
|
<requestButton @goScan='openScanDetailPopup'></requestButton> |
|
|
|
|
|
<!-- <com-issue-request-popup ref="comIssueRequestPopup" @confirm='requestConfirm'></com-issue-request-popup> --> |
|
|
|
|
|
<com-issue-request-popup ref="comIssueRequestPopup" @confirm='requestConfirmsss'></com-issue-request-popup> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
<comMessage ref="comMessage"></comMessage> |
|
|
</view> |
|
|
</view> |
|
|
</template> |
|
|
</template> |
|
@ -30,6 +31,8 @@ |
|
|
import comIssueRequestCard from '@/pages/issue/coms/comIssueRequestCard.vue' |
|
|
import comIssueRequestCard from '@/pages/issue/coms/comIssueRequestCard.vue' |
|
|
import requestInfoPopup from '@/pages/issue/coms/requestInfoPopup.vue' |
|
|
import requestInfoPopup from '@/pages/issue/coms/requestInfoPopup.vue' |
|
|
import requestButton from '@/mycomponents/button/requestButton.vue' |
|
|
import requestButton from '@/mycomponents/button/requestButton.vue' |
|
|
|
|
|
import comIssueRequestPopup from '@/pages/issue/coms/comIssueRequestPopup.vue' |
|
|
|
|
|
|
|
|
import { |
|
|
import { |
|
|
goHome, |
|
|
goHome, |
|
|
updateTitle, |
|
|
updateTitle, |
|
@ -64,6 +67,7 @@ |
|
|
comIssueRequestCard, |
|
|
comIssueRequestCard, |
|
|
requestInfoPopup, |
|
|
requestInfoPopup, |
|
|
requestButton, |
|
|
requestButton, |
|
|
|
|
|
comIssueRequestPopup |
|
|
}, |
|
|
}, |
|
|
data() { |
|
|
data() { |
|
|
return { |
|
|
return { |
|
@ -119,16 +123,16 @@ |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
methods: { |
|
|
methods: { |
|
|
requestConfirm(action, item) {}, |
|
|
|
|
|
openRequestDetail(item) { |
|
|
openRequestDetail(item) { |
|
|
uni.navigateTo({ |
|
|
uni.navigateTo({ |
|
|
url: './issueRequestDetail?id=' + item.id |
|
|
url: './issueRequestDetail?type=query&id=' + item.id |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
openRequestInfoPopup(item) { |
|
|
openRequestInfoPopup(item) { |
|
|
this.$refs.requestInfoPopup.openPopup(item) |
|
|
this.$refs.requestInfoPopup.openPopup(item) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
getList(type) { |
|
|
getList(type) { |
|
|
let that = this; |
|
|
let that = this; |
|
|
uni.showLoading({ |
|
|
uni.showLoading({ |
|
@ -183,6 +187,7 @@ |
|
|
that.showMessage(error.errMsg) |
|
|
that.showMessage(error.errMsg) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
updateOptions(status) { |
|
|
updateOptions(status) { |
|
|
if (status == "1") { |
|
|
if (status == "1") { |
|
|
this.showOptions = this.detailAndApproveOptions; |
|
|
this.showOptions = this.detailAndApproveOptions; |
|
@ -199,12 +204,7 @@ |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
openScanDetailPopup() { |
|
|
openScanDetailPopup() { |
|
|
// uni.navigateTo({ |
|
|
this.$refs.comIssueRequestPopup.openRequestPopup(true); |
|
|
// url: "../request/issueRequestSubmit?fromType=" + this.fromType |
|
|
|
|
|
// }) |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: "../record/issueRecord?fromType=" + this.fromType |
|
|
|
|
|
}) |
|
|
|
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
swipeClick(e, dataContent) { |
|
|
swipeClick(e, dataContent) { |
|
@ -242,6 +242,7 @@ |
|
|
} |
|
|
} |
|
|
}); |
|
|
}); |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
switchChangeWait(state, jobStatus) { |
|
|
switchChangeWait(state, jobStatus) { |
|
|
this.checkedWaitTask = state; |
|
|
this.checkedWaitTask = state; |
|
|
this.status = jobStatus; |
|
|
this.status = jobStatus; |
|
@ -355,6 +356,7 @@ |
|
|
this.showMessage(error) |
|
|
this.showMessage(error) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
issueRequestHandle(id) { |
|
|
issueRequestHandle(id) { |
|
|
issueRequestHandle(id).then(res => { |
|
|
issueRequestHandle(id).then(res => { |
|
|
if (res.data) { |
|
|
if (res.data) { |
|
@ -370,8 +372,21 @@ |
|
|
this.showMessage(error) |
|
|
this.showMessage(error) |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
requestConfirmsss(action, item) { |
|
|
|
|
|
debugger; |
|
|
|
|
|
uni.navigateTo({ |
|
|
|
|
|
url: './issueRequestDetail?type=add&item=' + item.id |
|
|
|
|
|
}); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// requestConfirm(action, item) { |
|
|
|
|
|
// debugger; |
|
|
|
|
|
// uni.navigateTo({ |
|
|
|
|
|
// url: './issueRequestDetail?type=add&item=' + item.id |
|
|
|
|
|
// }); |
|
|
|
|
|
// } |
|
|
} |
|
|
} |
|
|
</script> |
|
|
</script> |
|
|
|
|
|
|
|
|