|
|
@@ -1709,62 +1709,6 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
-
|
|
|
- SubpEntity () {
|
|
|
- if (this.myentityList == null || this.myentityList.length <= 0) {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '没有新增准入项,不能提交!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- for (let idx in this.subfileList1) {
|
|
|
- if (this.subfileList1[idx].OldFileUrl === '' && this.subfileList1[idx].FileUrl === '') {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: this.subfileList1[idx].NeedFileType + '没有上传,不能提交!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
- if (this.UnitOrg === '') {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '请选择分办单位!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.orgauditOptions == null || this.orgauditOptions.length == 0) {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '该单位未配置分办人!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- this.auditform.FirstAuditName = this.UnitOrg
|
|
|
- this.auditform.CertId = this.formData.Id
|
|
|
- this.auditform.TypeCode = '02'
|
|
|
- this.btnloading = true
|
|
|
- api2.auditEntity(this.formData.Id, this.auditform, this.$axios).then(res => {
|
|
|
- if (res.data.code === 0) {
|
|
|
- // 保存成功后,初始化数据,变成修改
|
|
|
- this.getEntityById()
|
|
|
- this.ComAuditdialogShow = false
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- }
|
|
|
- this.btnloading = false
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
// 获取推荐单位列表
|
|
|
getOrgTreeList () {
|
|
|
let _this = this
|
|
|
@@ -2992,112 +2936,6 @@
|
|
|
this.auditerName = name
|
|
|
this.chooseAuditorVisibleFen = false
|
|
|
},
|
|
|
-
|
|
|
- // 提交审批
|
|
|
- AuditEntity () {
|
|
|
- if (this.myentityList == null || this.myentityList.length <= 0) {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '没有新增准入项,不能提交!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- for (let idx in this.subfileList1) {
|
|
|
- if (this.subfileList1[idx].OldFileUrl === '' && this.subfileList1[idx].FileUrl === '') {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: this.subfileList1[idx].NeedFileType + '没有上传,不能提交!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
- if (this.auditer === '') {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '请选择初审人!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.fushenauditer === '') {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '请选择复审人!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- if (this.formData.InStyle != '2' && this.formData.InStyle != '6' || this.formData.InStyle == '4') {
|
|
|
- if (this.majorDept.length === 0) {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '请选择专业处室!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
- if (this.formData.InStyle != '2' && this.formData.InStyle != '6' || this.formData.InStyle == '4') {
|
|
|
- if (this.userOptions == null || this.userOptions.length === 0) {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '该专业科室未配置接收人!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
- this.auditform.FirstAuditName = this.auditer
|
|
|
- this.auditform.CertId = this.formData.Id
|
|
|
- this.auditform.SecondAudit = this.fushenauditer
|
|
|
- this.auditform.ThirdAudit = this.majorDept[this.majorDept.length - 1]
|
|
|
- this.btnloading = true
|
|
|
- api2.auditEntity(this.formData.Id, this.auditform, this.$axios).then(res => {
|
|
|
- if (res.data.code === 0) {
|
|
|
- // 保存成功后,初始化数据,变成修改
|
|
|
- this.getEntityById()
|
|
|
- this.AuditdialogShow = false
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- }
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
- SubpEntitySubpEntity () {
|
|
|
- if (this.auditer === '') {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '请选择分办人!'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- this.auditform.FirstAuditName = this.auditer
|
|
|
- this.auditform.CertId = this.formData.Id
|
|
|
- api2.auditEntity(this.formData.Id, this.auditform, this.$axios).then(res => {
|
|
|
- if (res.data.code === 0) {
|
|
|
- // 保存成功后,初始化数据,变成修改
|
|
|
- this.getEntityById()
|
|
|
- this.ComAuditdialogShow = false
|
|
|
- this.$message({
|
|
|
- type: 'success',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- } else {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: res.data.message
|
|
|
- })
|
|
|
- }
|
|
|
- }).catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
- },
|
|
|
-
|
|
|
getorgtreelist () {
|
|
|
let _this = this
|
|
|
let params = {
|