@@ -53,7 +53,7 @@ | |||
title="审核人" | |||
/> --> | |||
<l-input @input="setValue('Purchase_Edu.Approvalamount', $event)" :value="getValue('Purchase_Edu.Approvalamount')" | |||
:disabled="!edit" title="核准金额" /> | |||
:disabled="!edit||!isEdit('Approvalamount')" title="核准金额" /> | |||
<view style="background-color: #fff;"> | |||
<view style="line-height: 40px;font-size: 14px;padding-left: 12px;"> | |||
报账明细: | |||
@@ -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() { | |||
@@ -53,7 +53,7 @@ | |||
title="审核人" | |||
/> --> | |||
<l-input @input="setValue('Purchase_Info.Approvalamount', $event)" :value="getValue('Purchase_Info.Approvalamount')" | |||
:disabled="!edit" title="核准金额" /> | |||
:disabled="!edit||!isEdit('Approvalamount')" title="核准金额" /> | |||
<view style="background-color: #fff;"> | |||
<view style="line-height: 40px;font-size: 14px;padding-left: 12px;"> | |||
报账明细: | |||
@@ -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() { | |||
@@ -53,7 +53,7 @@ | |||
title="审核人" | |||
/> --> | |||
<l-input @input="setValue('Purchase_Logistic.Approvalamount', $event)" :value="getValue('Purchase_Logistic.Approvalamount')" | |||
:disabled="!edit" title="核准金额" /> | |||
:disabled="!edit||!isEdit('Approvalamount')" title="核准金额" /> | |||
<view style="background-color: #fff;"> | |||
<view style="line-height: 40px;font-size: 14px;padding-left: 12px;"> | |||
报账明细: | |||
@@ -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() { | |||
@@ -53,7 +53,7 @@ | |||
title="审核人" | |||
/> --> | |||
<l-input @input="setValue('Purchase_Other.Approvalamount', $event)" :value="getValue('Purchase_Other.Approvalamount')" | |||
:disabled="!edit" title="核准金额" /> | |||
:disabled="!edit||!isEdit('Approvalamount')" title="核准金额" /> | |||
<view style="background-color: #fff;"> | |||
<view style="line-height: 40px;font-size: 14px;padding-left: 12px;"> | |||
报账明细: | |||
@@ -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() { | |||
@@ -53,7 +53,7 @@ | |||
title="审核人" | |||
/> --> | |||
<l-input @input="setValue('Purchase_Print.Approvalamount', $event)" :value="getValue('Purchase_Print.Approvalamount')" | |||
:disabled="!edit" title="核准金额" /> | |||
:disabled="!edit||!isEdit('Approvalamount')" title="核准金额" /> | |||
<view style="background-color: #fff;"> | |||
<view style="line-height: 40px;font-size: 14px;padding-left: 12px;"> | |||
报账明细: | |||
@@ -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() { | |||
@@ -53,7 +53,7 @@ | |||
title="审核人" | |||
/> --> | |||
<l-input @input="setValue('Purchase_Service.Approvalamount', $event)" :value="getValue('Purchase_Service.Approvalamount')" | |||
:disabled="!edit" title="核准金额" /> | |||
:disabled="!edit||!isEdit('Approvalamount')" title="核准金额" /> | |||
<view style="background-color: #fff;"> | |||
<view style="line-height: 40px;font-size: 14px;padding-left: 12px;"> | |||
报账明细: | |||
@@ -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() { | |||
@@ -53,7 +53,7 @@ | |||
title="审核人" | |||
/> --> | |||
<l-input @input="setValue('Purchase_Student.Approvalamount', $event)" :value="getValue('Purchase_Student.Approvalamount')" | |||
:disabled="!edit" title="核准金额" /> | |||
:disabled="!edit||!isEdit('Approvalamount')" title="核准金额" /> | |||
<view style="background-color: #fff;"> | |||
<view style="line-height: 40px;font-size: 14px;padding-left: 12px;"> | |||
报账明细: | |||
@@ -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() { | |||
@@ -68,7 +68,7 @@ | |||
title="审核人" | |||
/> --> | |||
<l-input @input="setValue('Purchase_Travel.Approvalamount', $event)" :value="getValue('Purchase_Travel.Approvalamount')" | |||
:disabled="!edit" title="核准金额" /> | |||
:disabled="!edit||!isEdit('Approvalamount')" title="核准金额" /> | |||
<view style="background-color: #fff;"> | |||
<view style="line-height: 40px;font-size: 14px;padding-left: 12px;"> | |||
报账明细: | |||
@@ -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() { | |||
@@ -53,7 +53,7 @@ | |||
title="审核人" | |||
/> --> | |||
<l-input @input="setValue('Purchase_Work.Approvalamount', $event)" :value="getValue('Purchase_Work.Approvalamount')" | |||
:disabled="!edit" title="核准金额" /> | |||
:disabled="!edit||!isEdit('Approvalamount')" title="核准金额" /> | |||
<view style="background-color: #fff;"> | |||
<view style="line-height: 40px;font-size: 14px;padding-left: 12px;"> | |||
报账明细: | |||
@@ -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() { | |||