diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Edu_Apply/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Edu_Apply/single.vue index 2563987f6..03138c2e8 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Edu_Apply/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Edu_Apply/single.vue @@ -53,7 +53,7 @@ title="审核人" /> --> + :disabled="!edit||!isEdit('Approvalamount')" title="核准金额" /> 报账明细: @@ -280,7 +280,8 @@ submitPostData:{}, reviewer: [], - + // 权限 + authorize:{}, } }, async onLoad({ @@ -322,6 +323,14 @@ this.TOAST('移动表单数据(wfForms)中无有效表单') return } + + // 权限 + if(currentNode.wfForms && currentNode.wfForms[0].authorize){ + let arr = Object.values(currentNode.wfForms[0].authorize) + for (let item of arr) { + this.authorize[item.fieldId] = item + } + } // 拉取表单数据,同时拉取所有来自数据源的选单数据 @@ -339,6 +348,10 @@ this.ready = true this.HIDE_LOADING() }, + + isEdit(field){ + return this.authorize[field] && this.authorize[field].isEdit !== 0 + }, // 加载表单数据 async fetchForm() { diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Info_Apply/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Info_Apply/single.vue index 75ef09d68..60a5934f5 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Info_Apply/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Info_Apply/single.vue @@ -53,7 +53,7 @@ title="审核人" /> --> + :disabled="!edit||!isEdit('Approvalamount')" title="核准金额" /> 报账明细: @@ -281,6 +281,8 @@ reviewerList:[], submitPostData:{}, reviewer: [], + + authorize:{}, } }, async onLoad({ @@ -322,6 +324,14 @@ this.TOAST('移动表单数据(wfForms)中无有效表单') return } + + // 权限 + if(currentNode.wfForms && currentNode.wfForms[0].authorize){ + let arr = Object.values(currentNode.wfForms[0].authorize) + for (let item of arr) { + this.authorize[item.fieldId] = item + } + } // 拉取表单数据,同时拉取所有来自数据源的选单数据 await Promise.all([ @@ -338,6 +348,10 @@ this.ready = true this.HIDE_LOADING() }, + + isEdit(field){ + return this.authorize[field] && this.authorize[field].isEdit !== 0 + }, // 加载表单数据 async fetchForm() { diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Logistic_Apply/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Logistic_Apply/single.vue index a82d16593..6d6c99e49 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Logistic_Apply/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Logistic_Apply/single.vue @@ -53,7 +53,7 @@ title="审核人" /> --> + :disabled="!edit||!isEdit('Approvalamount')" title="核准金额" /> 报账明细: @@ -279,6 +279,8 @@ reviewerList:[], submitPostData:{}, reviewer: [], + + authorize:{}, } }, async onLoad({ @@ -320,6 +322,14 @@ this.TOAST('移动表单数据(wfForms)中无有效表单') return } + + // 权限 + if(currentNode.wfForms && currentNode.wfForms[0].authorize){ + let arr = Object.values(currentNode.wfForms[0].authorize) + for (let item of arr) { + this.authorize[item.fieldId] = item + } + } // 拉取表单数据,同时拉取所有来自数据源的选单数据 await Promise.all([ @@ -336,6 +346,10 @@ this.ready = true this.HIDE_LOADING() }, + + isEdit(field){ + return this.authorize[field] && this.authorize[field].isEdit !== 0 + }, // 加载表单数据 async fetchForm() { diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Other_Apply/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Other_Apply/single.vue index 0295da3c0..809dd376f 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Other_Apply/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Other_Apply/single.vue @@ -53,7 +53,7 @@ title="审核人" /> --> + :disabled="!edit||!isEdit('Approvalamount')" title="核准金额" /> 报账明细: @@ -280,6 +280,8 @@ reviewerList:[], submitPostData:{}, reviewer: [], + + authorize:{}, } }, async onLoad({ @@ -321,6 +323,14 @@ this.TOAST('移动表单数据(wfForms)中无有效表单') return } + + // 权限 + if(currentNode.wfForms && currentNode.wfForms[0].authorize){ + let arr = Object.values(currentNode.wfForms[0].authorize) + for (let item of arr) { + this.authorize[item.fieldId] = item + } + } // 拉取表单数据,同时拉取所有来自数据源的选单数据 await Promise.all([ @@ -337,6 +347,10 @@ this.ready = true this.HIDE_LOADING() }, + + isEdit(field){ + return this.authorize[field] && this.authorize[field].isEdit !== 0 + }, // 加载表单数据 async fetchForm() { diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Print_Apply/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Print_Apply/single.vue index b220c836a..887484c5b 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Print_Apply/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Print_Apply/single.vue @@ -53,7 +53,7 @@ title="审核人" /> --> + :disabled="!edit||!isEdit('Approvalamount')" title="核准金额" /> 报账明细: @@ -279,6 +279,8 @@ reviewerList:[], submitPostData:{}, reviewer: [], + + authorize:{}, } }, async onLoad({ @@ -320,6 +322,14 @@ this.TOAST('移动表单数据(wfForms)中无有效表单') return } + + // 权限 + if(currentNode.wfForms && currentNode.wfForms[0].authorize){ + let arr = Object.values(currentNode.wfForms[0].authorize) + for (let item of arr) { + this.authorize[item.fieldId] = item + } + } // 拉取表单数据,同时拉取所有来自数据源的选单数据 await Promise.all([ @@ -336,6 +346,9 @@ this.ready = true this.HIDE_LOADING() }, + isEdit(field){ + return this.authorize[field] && this.authorize[field].isEdit !== 0 + }, // 加载表单数据 async fetchForm() { diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Service_Apply/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Service_Apply/single.vue index 58f65732a..01215d8a8 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Service_Apply/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Service_Apply/single.vue @@ -53,7 +53,7 @@ title="审核人" /> --> + :disabled="!edit||!isEdit('Approvalamount')" title="核准金额" /> 报账明细: @@ -260,6 +260,8 @@ reviewerList:[], submitPostData:{}, reviewer: [], + + authorize:{}, } }, async onLoad({ @@ -301,6 +303,14 @@ this.TOAST('移动表单数据(wfForms)中无有效表单') return } + + // 权限 + if(currentNode.wfForms && currentNode.wfForms[0].authorize){ + let arr = Object.values(currentNode.wfForms[0].authorize) + for (let item of arr) { + this.authorize[item.fieldId] = item + } + } // 拉取表单数据,同时拉取所有来自数据源的选单数据 await Promise.all([ @@ -317,6 +327,9 @@ this.ready = true this.HIDE_LOADING() }, + isEdit(field){ + return this.authorize[field] && this.authorize[field].isEdit !== 0 + }, // 加载表单数据 async fetchForm() { diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Student_Apply/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Student_Apply/single.vue index b1e64e069..5dcf097c6 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Student_Apply/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Student_Apply/single.vue @@ -53,7 +53,7 @@ title="审核人" /> --> + :disabled="!edit||!isEdit('Approvalamount')" title="核准金额" /> 报账明细: @@ -279,6 +279,8 @@ reviewerList:[], submitPostData:{}, reviewer: [], + + authorize:{}, } }, async onLoad({ @@ -320,6 +322,14 @@ this.TOAST('移动表单数据(wfForms)中无有效表单') return } + + // 权限 + if(currentNode.wfForms && currentNode.wfForms[0].authorize){ + let arr = Object.values(currentNode.wfForms[0].authorize) + for (let item of arr) { + this.authorize[item.fieldId] = item + } + } // 拉取表单数据,同时拉取所有来自数据源的选单数据 await Promise.all([ @@ -336,6 +346,9 @@ this.ready = true this.HIDE_LOADING() }, + isEdit(field){ + return this.authorize[field] && this.authorize[field].isEdit !== 0 + }, // 加载表单数据 async fetchForm() { diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Travel_Apply/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Travel_Apply/single.vue index e768c20b3..1079a1fb2 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Travel_Apply/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Travel_Apply/single.vue @@ -68,7 +68,7 @@ title="审核人" /> --> + :disabled="!edit||!isEdit('Approvalamount')" title="核准金额" /> 报账明细: @@ -292,6 +292,8 @@ reviewerList:[], submitPostData:{}, reviewer: [], + + authorize:{}, } }, async onLoad({ @@ -333,6 +335,13 @@ this.TOAST('移动表单数据(wfForms)中无有效表单') return } + // 权限 + if(currentNode.wfForms && currentNode.wfForms[0].authorize){ + let arr = Object.values(currentNode.wfForms[0].authorize) + for (let item of arr) { + this.authorize[item.fieldId] = item + } + } // 拉取表单数据,同时拉取所有来自数据源的选单数据 await Promise.all([ @@ -349,6 +358,10 @@ this.ready = true this.HIDE_LOADING() }, + + isEdit(field){ + return this.authorize[field] && this.authorize[field].isEdit !== 0 + }, // 加载表单数据 async fetchForm() { diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Work_Apply/single.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Work_Apply/single.vue index 1f8922638..596037d42 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Work_Apply/single.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/LogisticsapplyManagement/Purchase_Work_Apply/single.vue @@ -53,7 +53,7 @@ title="审核人" /> --> + :disabled="!edit||!isEdit('Approvalamount')" title="核准金额" /> 报账明细: @@ -280,6 +280,8 @@ reviewerList:[], submitPostData:{}, reviewer: [], + + authorize:{}, } }, async onLoad({ @@ -321,6 +323,14 @@ this.TOAST('移动表单数据(wfForms)中无有效表单') return } + + // 权限 + if(currentNode.wfForms && currentNode.wfForms[0].authorize){ + let arr = Object.values(currentNode.wfForms[0].authorize) + for (let item of arr) { + this.authorize[item.fieldId] = item + } + } // 拉取表单数据,同时拉取所有来自数据源的选单数据 @@ -338,6 +348,10 @@ this.ready = true this.HIDE_LOADING() }, + + isEdit(field){ + return this.authorize[field] && this.authorize[field].isEdit !== 0 + }, // 加载表单数据 async fetchForm() {