Browse Source

前端:增项申请删除弃用的审批方法,免除干扰

baichengfei 5 năm trước cách đây
mục cha
commit
fc05201d42

+ 0 - 162
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/basisdataopera.vue

@@ -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 = {

+ 0 - 75
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/goodsdataopera.vue

@@ -3222,81 +3222,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 === '1' || this.formData.InStyle === '5') {
-          if (this.selectDept === 0 || this.selectDept === '') {
-            this.$message({
-              type: 'warning',
-              message: '请选择专业处室!'
-            })
-            return
-          }
-        }
-        if (this.formData.InStyle === '1' || this.formData.InStyle === '5') {
-          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.selectDept
-        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
-            })
-          }
-          this.btnloading = false
-        }).catch(err => {
-          console.error(err)
-        })
-      },
       // 二级单位代为申请, 提交按钮
       separateUnitSubmitClick () {
         console.log('二级单位代为申请, 点击提交')

+ 0 - 137
src/dashoo.cn/frontend_web/src/pages/oilsupplier/supplierappend/_opera/techdataopera.vue

@@ -2944,143 +2944,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 === '1' || this.formData.InStyle === '5') {
-          if (this.selectDept === 0 || this.selectDept === '') {
-            this.$message({
-              type: 'warning',
-              message: '请选择专业处室!'
-            })
-            return
-          }
-        }
-        if (this.formData.InStyle === '1' || this.formData.InStyle === '5') {
-          if (this.userOptions == null || this.userOptions.length === 0) {
-            this.$message({
-              type: 'warning',
-              message: '该专业科室未配置接收人!'
-            })
-            return
-          }
-        }
-        this.applyLoading = true
-        this.auditform.FirstAuditName = this.auditer
-        this.auditform.CertId = this.formData.Id
-        this.auditform.SecondAudit = this.fushenauditer
-        this.auditform.ThirdAudit = this.selectDept
-        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
-            })
-          }
-          this.btnloading = false
-          this.applyLoading = false
-        }).catch(err => {
-          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.btnloading = true
-        this.applyLoading = true
-        this.auditform.FirstAuditName = this.UnitOrg
-        this.auditform.CertId = this.formData.Id
-        this.auditform.TypeCode = '03'
-        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 = true
-          this.applyLoading = false
-        }).catch(err => {
-          console.error(err)
-        })
-      },
-
       showDialog () {
         this.newVisible = true
         this.newSubfileForm.NeedFileType = ''