直转审核二级
This commit is contained in:
parent
eba11e8800
commit
c7b127d20b
|
|
@ -292,6 +292,7 @@ const getUnitOut = () => {
|
|||
// proId.value=e.id;
|
||||
let obj = {
|
||||
projectId: formDataOut.value.projectId,
|
||||
enableFilter: true
|
||||
}
|
||||
getUnitList(obj)
|
||||
.then((res) => {
|
||||
|
|
@ -312,6 +313,7 @@ const getProjectOut = async (e) => {
|
|||
formDataOut.value.unitId = e?.id || ''
|
||||
let obj = {
|
||||
unitId: formDataOut.value.unitId,
|
||||
enableFilter: true
|
||||
// "isApp":true
|
||||
}
|
||||
try {
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@
|
|||
<uni-swipe-action-item>
|
||||
<div class="title">
|
||||
<span class="code">{{ item.code }}</span>
|
||||
<div class="cont">
|
||||
<span class="cont">
|
||||
<uni-tag
|
||||
:text="
|
||||
item.flowStatus == 2 ? '已完成' :
|
||||
|
|
@ -82,7 +82,7 @@
|
|||
"
|
||||
:custom-style="item.flowStatus == 4 ? successStyle : ''"
|
||||
/>
|
||||
</div>
|
||||
</span>
|
||||
</div>
|
||||
<div class="line"></div>
|
||||
<uni-row :gutter="24">
|
||||
|
|
@ -181,7 +181,7 @@ const viewOptions = reactive([
|
|||
|
||||
// 审核/查看
|
||||
const onReview = (item) => {
|
||||
if(item.flowStatus == 3 || item.flowStatus == 2){
|
||||
if(item.flowStatus == 3 || item.flowStatus == 2){ //已完成/已驳回
|
||||
uni.navigateTo({
|
||||
url: `/pages/businessAudit/directAudit/details?params=${JSON.stringify({
|
||||
id: item.id,
|
||||
|
|
@ -192,7 +192,7 @@ const onReview = (item) => {
|
|||
})}`,
|
||||
})
|
||||
}else if((item.flowStatus == 1 || item.flowStatus == 0) && typeof item.configValue === 'string' && item.configValue.includes(userId.value)){
|
||||
console.log("xxxxxxxxxxxxxxxxxxxxxxxxxxxxx",item)
|
||||
// 是当前审核人时,进行审核
|
||||
uni.navigateTo({
|
||||
url: `/pages/businessAudit/directAudit/details?params=${JSON.stringify({
|
||||
id: item.id,
|
||||
|
|
@ -203,18 +203,18 @@ const onReview = (item) => {
|
|||
})}`,
|
||||
})
|
||||
}
|
||||
else{ //只进行查看
|
||||
uni.navigateTo({
|
||||
url: `/pages/businessAudit/directAudit/details?params=${JSON.stringify({
|
||||
id: item.id,
|
||||
taskId: item.flowId,
|
||||
flowId: item.flowId,
|
||||
nodeId: item.nodeId,
|
||||
type: 2,
|
||||
})}`,
|
||||
})
|
||||
}
|
||||
|
||||
// const params = {
|
||||
// id: item.id,
|
||||
// taskId: item.taskId,
|
||||
// flowId: item.flowId,
|
||||
// nodeId: item.nodeId,
|
||||
// type: e.content.text ==='审核' ? 1 : 2,
|
||||
// }
|
||||
// console.log('params', params)
|
||||
// uni.navigateTo({
|
||||
// url: `/pages/picking/review/details?params=${JSON.stringify(params)}`,
|
||||
// })
|
||||
}
|
||||
|
||||
const handleItemxxxx = (item) => {
|
||||
|
|
|
|||
Loading…
Reference in New Issue