diff --git a/supervise-enterprise-ui/src/router/modules/codemenu.js b/supervise-enterprise-ui/src/router/modules/codemenu.js index 40644b04..70bc5357 100644 --- a/supervise-enterprise-ui/src/router/modules/codemenu.js +++ b/supervise-enterprise-ui/src/router/modules/codemenu.js @@ -456,6 +456,13 @@ const codemenu = [{ import('@/views/paichanguanliFlow/paichanguanli/haveDone.vue'), name: 'haveDone' }, + // 代办的编辑 + { + path: '/LookYzsq/index', + component: () => + import('@/views/Yjsq/LookYzsq/index.vue'), + name: 'LookYzsq' + }, ] export default codemenu diff --git a/supervise-enterprise-ui/src/views/Yjsq/AddYjsq.vue b/supervise-enterprise-ui/src/views/Yjsq/AddYjsq.vue index e5d5e4ad..16ece9e8 100644 --- a/supervise-enterprise-ui/src/views/Yjsq/AddYjsq.vue +++ b/supervise-enterprise-ui/src/views/Yjsq/AddYjsq.vue @@ -214,7 +214,9 @@ } }, created() { - this.userSid = window.sessionStorage.getItem('userSid') + this.formobj.user_sid = window.sessionStorage.getItem('userSid') + this.formobj.project_name=this.projectName + this.formobj.project_sid=this.projectSid }, watch: { imgList:{ @@ -231,9 +233,6 @@ }, methods: { saveOrUpdate() { - this.formobj.project_name=this.projectName - this.formobj.project_sid=this.projectSid - this.userSid = window.sessionStorage.getItem('userSid') this.backcheckList() if (this.formobj.sid) { req.sealrecordSave(this.formobj) @@ -271,9 +270,6 @@ }, saveSubmit(){ - this.formobj.project_name=this.projectName - this.formobj.project_sid=this.projectSid - this.userSid = window.sessionStorage.getItem('userSid') this.backcheckList() req.sealrecordSubmit(this.formobj) .then(resp => { @@ -304,7 +300,7 @@ this.title= "【修改】印鉴信息" req.fetchDetailsBySid(row).then((res)=>{ if(res.code==200){ - // this.formobj.project_sid=res.data.project_sid + this.formobj.project_sid=res.data.project_sid this.formobj.sid=res.data.sid this.formobj.project_name=res.data.project_name this.formobj.code=res.data.code diff --git a/supervise-enterprise-ui/src/views/Yjsq/LookYzsq/index.vue b/supervise-enterprise-ui/src/views/Yjsq/LookYzsq/index.vue new file mode 100644 index 00000000..2effdcf7 --- /dev/null +++ b/supervise-enterprise-ui/src/views/Yjsq/LookYzsq/index.vue @@ -0,0 +1,393 @@ + + + + + \ No newline at end of file diff --git a/supervise-enterprise-ui/src/views/Yjsq/index.vue b/supervise-enterprise-ui/src/views/Yjsq/index.vue index 55c92b3a..f24663c8 100644 --- a/supervise-enterprise-ui/src/views/Yjsq/index.vue +++ b/supervise-enterprise-ui/src/views/Yjsq/index.vue @@ -131,6 +131,7 @@ total: 0, viewState: 1, sids:'', + userSid:'', listQuerys: { current: 1, size: 10, @@ -233,14 +234,25 @@ }, // 打开办理 toEdit() { - if(this.state==''){ + var usSid=window.sessionStorage.getItem('userSid') + if(this.state=='待提交' && this.userSid==usSid || this.state=='用章申请' && this.userSid==usSid){ this.viewState = 3 this.$refs['divAdd'].showEdit(this.sids) - }else{ + }else if(this.state!='待提交' && this.state!='用章申请' && this.userSid==usSid && this.state!=''){ this.$message({ message: '已提交,不能继续办理', type: 'warning' - }); + }); + }else if(this.state=='待提交' && this.userSid!=usSid || this.state=='用章申请' && this.userSid!=usSid){ + this.$message({ + message: '非本人发起的申请,无权限操作', + type: 'warning' + }); + }else if(this.state=='终止'){ + this.$message({ + message: '该印鉴信息已终止,您无法办理', + type: 'warning' + }); } }, /** 流程流转记录 */ @@ -279,10 +291,14 @@ }) }, handleSelectionChange(row) { + this.sids = '' + this.state = '' + this.userSid = '' const aa = [] row.forEach((element) => { this.sids = element.sid this.state = element.nodeState + this.userSid = element.user_sid }) if (row.length > 1) { this.$refs.Table.clearSelection() @@ -293,8 +309,9 @@ doDel() { const sids = [] sids.push(this.sids) - const tip = '请确认是否删除所选记录?' - this.$confirm(tip, '提示', { + if(this.sids && this.state=='待提交'){ + const tip = '请确认是否删除所选记录?' + this.$confirm(tip, '提示', { confirmButtonText: '确定', cancelButtonText: '取消', type: 'warning' @@ -306,6 +323,17 @@ } }) }) + }else if(this.state!='待提交' && this.state!=''){ + this.$message({ + message: '已提交的印鉴信息无法删除', + type: 'warning' + }); + }else{ + this.$message({ + message: '请选择要删除的印鉴信息', + type: 'warning' + }); + } }, resetState() { this.viewState = 1