@@ -310,12 +310,12 @@
},
// 获取流程的配置权限
getNodeAuthority (row) {
- getBMStatusDesc(this.searchData).then(({data})=>{
- if(data.status==='已完成'||data.status==='已升版'){
- this.ifDisableFlag=true
+ getBMStatusDesc(this.searchData).then(({data}) => {
+ if (data.status === '已完成' || data.status === '已升版') {
+ this.ifDisableFlag = true
return false
- }else {
- //区分请求成功和失败的状况
+ }
+ if(data.status === '审批中') {
let tempData = {
site: row.site,
stepId: row.stepId,
@@ -323,15 +323,14 @@
}
getNodeAuthority(tempData).then(({data}) => {
if (data && data.code === 0) {
+ this.ifDisableFlag = true
let plmStepRoleBaseBm = data.rows.plm_stepRole_base_bm
let arr = plmStepRoleBaseBm.filter(a => a.fieldId === this.searchData.fieldId)
if (arr.length > 0) {
if (arr[0].updateFlag === 'N') {
this.ifDisableFlag = true
} else {
- if(!this.searchData.ifDisableFlag){
- this.ifDisableFlag = false
- }
+ this.ifDisableFlag = false
}
} else {
this.ifDisableFlag = true
diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue
index 2ed833b..c09c1cc 100644
--- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue
+++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_bm_routing.vue
@@ -16,8 +16,8 @@
保存
- 同意
- 驳回
+ 同意
+ 驳回
@@ -1485,13 +1485,12 @@
},
// 获取流程的配置权限
getNodeAuthority (row) {
- getBMStatusDesc(this.searchData).then(({data})=>{
- if(data.status==='已完成'||data.status==='已升版'){
- this.ifDisableFlag=true
+ getBMStatusDesc(this.searchData).then(({data}) => {
+ if (data.status === '已完成' || data.status === '已升版') {
+ this.ifDisableFlag = true
return false
- }else {
-
- //区分请求成功和失败的状况
+ }
+ if(data.status === '审批中') {
let tempData = {
site: row.site,
stepId: row.stepId,
@@ -1499,6 +1498,7 @@
}
getNodeAuthority(tempData).then(({data}) => {
if (data && data.code === 0) {
+ this.ifDisableFlag = true
let plmStepRoleBaseBm = data.rows.plm_stepRole_base_bm
let arr = plmStepRoleBaseBm.filter(a => a.fieldId === this.searchData.fieldId)
if (arr.length > 0) {
diff --git a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue
index 05940ec..9ddf166 100644
--- a/src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue
+++ b/src/views/modules/sampleManagement/technicalSpecificationDetail/com_tsd_basicInformation.vue
@@ -6,8 +6,8 @@
刷新数据
保存
- 同意
- 驳回
+ 同意
+ 驳回
下达
@@ -800,33 +800,37 @@
},
// 获取流程的配置权限
getNodeAuthority (row) {
- getBMStatusDesc(this.searchData).then(({data})=>{
- if(data.status==='已完成'||data.status==='已升版'){
- this.ifDisableFlag=true
- return false
- }else {
- let tempData = {
- site: row.site,
- stepId: row.stepId,
- menuId: '103002'
- }
- getNodeAuthority(tempData).then(({data}) => {
- if (data && data.code === 0) {
- let plmStepRoleBaseBm = data.rows.plm_stepRole_base_bm
- let arr = plmStepRoleBaseBm.filter(a => a.fieldId === 'basicInformation')
- if (arr.length > 0) {
- if(arr[0].updateFlag==='N'){
- this.ifDisableFlag=true
- }else {
- this.ifDisableFlag=false
- }
- }else {
- this.ifDisableFlag=true
- }
- }
- })
- }
- })
+
+ getBMStatusDesc(this.searchData).then(({data}) => {
+ if (data.status === '已完成' || data.status === '已升版') {
+ this.ifDisableFlag = true
+ return false
+ }
+ if(data.status === '审批中') {
+ let tempData = {
+ site: row.site,
+ stepId: row.stepId,
+ menuId: '103002'
+ }
+ getNodeAuthority(tempData).then(({data}) => {
+ if (data && data.code === 0) {
+ this.ifDisableFlag = true
+ let plmStepRoleBaseBm = data.rows.plm_stepRole_base_bm
+ let arr = plmStepRoleBaseBm.filter(a => a.fieldId === 'basicInformation')
+ if (arr.length > 0) {
+ if (arr[0].updateFlag === 'N') {
+ this.ifDisableFlag = true
+ } else {
+ this.ifDisableFlag = false
+ }
+ } else {
+ this.ifDisableFlag = true
+ }
+ }
+ })
+ }
+ })
+
},
// 同意提交