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

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 */ /*生产环境 begin */
loginApi({ // loginApi({
username: un, // username: un,
password: pw, // password: pw,
ip: getDeviceIp() // ip: getDeviceIp()
/*生产环境 end */ /*生产环境 end */
/*开发环境 begin */ /*开发环境 begin */
// localLoginApi({ localLoginApi({
// username: username.value, username: username.value,
// password: password.value, password: password.value,
// captcha: 'app' captcha: 'app'
/*开发环境 end */ /*开发环境 end */
}).then((loginres) => { }).then((loginres) => {
if (loginres.success) { if (loginres.success) {

View File

@ -20,7 +20,9 @@
</view> </view>
</customNav> </customNav>
<component :is="comp" :dataId="dataId"></component> <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 class="refuse" @click="openpop(1)">
拒绝 拒绝
</view> </view>
@ -28,7 +30,6 @@
同意 同意
</view> </view>
</view> </view>
<uni-popup ref="popup" type="center"> <uni-popup ref="popup" type="center">
<view class="popup"> <view class="popup">
<view class="title"> <view class="title">
@ -110,6 +111,7 @@
} }
const comp = ref(null) const comp = ref(null)
const dataId = ref('') const dataId = ref('')
const ifShow = ref(false) //20250122
const getProcessNodeInfo = (taskId) => { const getProcessNodeInfo = (taskId) => {
getProcessNodeInfoApi({ getProcessNodeInfoApi({
taskId 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) const taskInfo = ref(null)
let type = null let type = null
onLoad((options) => { onLoad((options) => {
@ -207,6 +221,8 @@
getProcessNodeInfo(taskInfo.value.id) getProcessNodeInfo(taskInfo.value.id)
getProcessTaskTransInfo() getProcessTaskTransInfo()
getIfShow()
}) })
</script> </script>
<style> <style>

View File

@ -37,12 +37,6 @@ export const useUpdateApp = defineStore('updateApp', () => {
} = res } = res
result.apkUrl = baseUrl + result.apkUrl; result.apkUrl = baseUrl + result.apkUrl;
result.wgtUrl = baseUrl + result.wgtUrl 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.force = res.is_force === 1
// updateOptions.content = res.update_content // updateOptions.content = res.update_content
updateOptions.wgtUrl = result.wgtUrl updateOptions.wgtUrl = result.wgtUrl