This commit is contained in:
aixianling
2022-12-29 15:56:58 +08:00
parent ed055c6922
commit 7e09218537
2 changed files with 7 additions and 4 deletions

View File

@@ -68,11 +68,11 @@ export default {
}) })
}, },
handleDetail(item) { handleDetail(item) {
const {taskId, taskDetailId} = item const {taskId, taskDetailId, examineStatus: status} = item
uni.navigateTo({ uni.navigateTo({
url: this.$qs.stringifyUrl({ url: this.$qs.stringifyUrl({
url: "./rsDetail", url: "./rsDetail",
query: {taskId, taskDetailId, approve: +(this.search.type == 2 && item.examineStatus == "0")}//当是我审批且审批状态为待审批的时候才能出现审批评分按钮 query: {taskId, taskDetailId, approve: +(this.search.type == 2 && status == "0"), status}//当是我审批且审批状态为待审批的时候才能出现审批评分按钮
}) })
}) })
} }

View File

@@ -19,8 +19,10 @@
</AiItem> </AiItem>
</template> </template>
</AiGroup> </AiGroup>
<AiBottomBtn v-if="isApprove&&task.status<2" text="评分审核" @click="gotoApprove"/> <template v-if="task.status<2">
<AiBottomBtn v-else-if="task.status<2" text="提交" @click="submit"/> <AiBottomBtn v-if="isApprove" text="评分审核" @click="gotoApprove"/>
<AiBottomBtn v-else-if="/02/.test(examineStatus)" text="提交" @click="submit"/>
</template>
</section> </section>
</template> </template>
@@ -39,6 +41,7 @@ export default {
}, },
computed: { computed: {
isApprove: v => v.$route.query.approve == 1, isApprove: v => v.$route.query.approve == 1,
examineStatus: v => v.$route.query.status,
form() { form() {
let form = {} let form = {}
this.detail.map(e => { this.detail.map(e => {