流程判断,判断是否是电子签章节点任务,是则显示温馨提示并隐藏审批按钮

This commit is contained in:
yangzhq68909 2025-01-22 17:03:57 +08:00
parent a04694b724
commit 911c4c365a
3 changed files with 26 additions and 16 deletions

View File

@ -98,17 +98,17 @@
});
/*生产环境 begin */
loginApi({
username: un,
password: pw,
ip: getDeviceIp()
// loginApi({
// username: un,
// password: pw,
// ip: getDeviceIp()
/*生产环境 end */
/*开发环境 begin */
// localLoginApi({
// username: username.value,
// password: password.value,
// captcha: 'app'
localLoginApi({
username: username.value,
password: password.value,
captcha: 'app'
/*开发环境 end */
}).then((loginres) => {
if (loginres.success) {

View File

@ -20,7 +20,9 @@
</view>
</customNav>
<component :is="comp" :dataId="dataId"></component>
<view class="btn f-row aic jcb" v-if="type == 0">
<view v-if="ifShow" style="display: block; margin: 10px;">
温馨提示:目前APP暂不支持电子签章审批,请登录PC端厂综合管理平台(https://10.75.166.6),-</view>
<view class="btn f-row aic jcb" v-if="type == 0 && !ifShow">
<view class="refuse" @click="openpop(1)">
拒绝
</view>
@ -28,7 +30,6 @@
同意
</view>
</view>
<uni-popup ref="popup" type="center">
<view class="popup">
<view class="title">
@ -110,6 +111,7 @@
}
const comp = ref(null)
const dataId = ref('')
const ifShow = ref(false) //20250122
const getProcessNodeInfo = (taskId) => {
getProcessNodeInfoApi({
taskId
@ -196,6 +198,18 @@
}
})
}
/**判断是否是电子签章节点任务,是则显示温馨提示并隐藏审批按钮*/
const getIfShow = () => {
if (taskInfo.value.taskId == 'task1705482211321' || taskInfo.value.taskId == 'task1705482639673' ||
taskInfo.value.taskId == 'task1714092890849' || taskInfo.value.taskId == 'task1714092955682' ||
taskInfo.value.taskId == 'task1689151174324' || taskInfo.value.taskId == 'task1677809773570' ||
taskInfo.value.taskId == 'task1689579219152')
{ //
ifShow.value = true;
} else {
ifShow.value = false;
}
}
const taskInfo = ref(null)
let type = null
onLoad((options) => {
@ -207,6 +221,8 @@
getProcessNodeInfo(taskInfo.value.id)
getProcessTaskTransInfo()
getIfShow()
})
</script>
<style>

View File

@ -37,12 +37,6 @@ export const useUpdateApp = defineStore('updateApp', () => {
} = res
result.apkUrl = baseUrl + result.apkUrl;
result.wgtUrl = baseUrl + result.wgtUrl
// res = {
// "update": "wgt",
// "wgtUrl": "D:\\opt\\AppUpdate\\wgt\\2.2.34.wgt",
// "apkUrl": null,
// "versionCode": "1.0.0"
// }
// updateOptions.force = res.is_force === 1
// updateOptions.content = res.update_content
updateOptions.wgtUrl = result.wgtUrl