|
|
@@ -2,49 +2,6 @@
|
|
|
|
|
|
<template>
|
|
|
<div>
|
|
|
- <!-- <el-dialog title="提交"
|
|
|
- :visible.sync="dialogVisibleCom"
|
|
|
- width="520px">
|
|
|
- <el-form ref="searchForm"
|
|
|
- label-width="100px">
|
|
|
- <el-row>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item label="分办单位">
|
|
|
- <el-select filterable
|
|
|
- v-model="UnitOrg"
|
|
|
- maxlength="255"
|
|
|
- clearable
|
|
|
- placeholder="请选择分办单位"
|
|
|
- style="width: 100%"
|
|
|
- @change="orgunitChange">
|
|
|
- <el-option v-for="item in UnitOrgOptions"
|
|
|
- :key="item.Id"
|
|
|
- :label="item.Fullname"
|
|
|
- :value="item.Id">
|
|
|
- </el-option>
|
|
|
- </el-select>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- <el-col :span="24">
|
|
|
- <el-form-item label="备注">
|
|
|
- <el-input v-model="auditform.AuditRemark"
|
|
|
- type="textarea"
|
|
|
- placeholder="请输入备注内容">
|
|
|
- </el-input>
|
|
|
- </el-form-item>
|
|
|
- </el-col>
|
|
|
- </el-row>
|
|
|
- </el-form>
|
|
|
- <span slot="footer"
|
|
|
- class="dialog-footer">
|
|
|
- <el-button size="mini"
|
|
|
- @click="dialogVisibleCom = false">取 消</el-button>
|
|
|
- <el-button size="mini"
|
|
|
- type="primary"
|
|
|
- @click="companySubmitToSecUnitSeparateMakeSure" :loading="loading">确定</el-button>
|
|
|
- </span>
|
|
|
- </el-dialog> -->
|
|
|
-
|
|
|
|
|
|
<el-dialog title="提交初审"
|
|
|
:visible.sync="dialogVisibleCom"
|
|
|
@@ -116,6 +73,50 @@
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
|
|
|
+ <!-- 复审 -->
|
|
|
+ <el-dialog title="审核" :visible.sync="dialogCommonAuditMakeSureVisible">
|
|
|
+ <el-form :model="shenheForm" label-width="100px" ref="shenheForm">
|
|
|
+ <el-form-item label="审核状态">
|
|
|
+ <template>
|
|
|
+ <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="1" @change="radioChange">通过</el-radio>
|
|
|
+ <el-radio class="radio" v-model="shenheForm.SuccessStatus" :label="0" @change="radioChange">退回</el-radio>
|
|
|
+ </template>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="意见" :rules="[{ required: true, message: '请输入审批意见', trigger: 'blur' }]">
|
|
|
+ <el-input type="textarea" v-model="shenheForm.AuditorRemark" :placeholder="textplaceholder">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer" style="margin-top: -25px">
|
|
|
+ <el-button size="small" @click="dialogCommonAuditMakeSureVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="commonAuditMakeSure()" :loading="btnloading">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+ <!-- 专业科室接收 -->
|
|
|
+ <el-dialog title="分配" :visible.sync="dialogBusinessOfficeSeparateAuditVisible">
|
|
|
+ <el-form :model="shenheForm" label-width="100px" ref="shenheForm">
|
|
|
+ <el-form-item label="审批人">
|
|
|
+ <el-select ref="selectAuditer" v-model="ProfessionalAudit" placeholder="请选择" style="width: 100%" filterable
|
|
|
+ default-first-option>
|
|
|
+ <el-option v-for="item in secauditerOptions" :key="item.Id" :label="item.Realname" :value="item.Id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="意见">
|
|
|
+ <el-input type="textarea" v-model="shenheForm.AuditorRemark" placeholder="请输入审核意见"></el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer" style="margin-top: -25px">
|
|
|
+ <el-button size="small" @click="dialogBusinessOfficeSeparateAuditVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="businessOfficeSeparateAuditMakeSure()" :loading="btnloading">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
<choose-auditor-fen ref="chooseAuditorFen"
|
|
|
@close="setAuditerFen"
|
|
|
@hideChooseAuditer="chooseAuditorVisibleFen=false"
|
|
|
@@ -149,11 +150,20 @@
|
|
|
type: null,
|
|
|
default: 0,
|
|
|
},
|
|
|
+ formData: {
|
|
|
+ type: null,
|
|
|
+ default: '',
|
|
|
+ },
|
|
|
},
|
|
|
|
|
|
|
|
|
data() {
|
|
|
return {
|
|
|
+ dialogVisibleCom:false,//初审
|
|
|
+ dialogCommonAuditMakeSureVisible:false,//复审
|
|
|
+ dialogBusinessOfficeSeparateAuditVisible:false,//专业科室接收
|
|
|
+
|
|
|
+
|
|
|
chooseAuditorVisibleFen:false,
|
|
|
auditer: '',
|
|
|
auditerName: '',
|
|
|
@@ -173,138 +183,222 @@
|
|
|
majorDept: [100000000, 100000128, 100000151],
|
|
|
|
|
|
|
|
|
+ //复审的变量
|
|
|
+ shenheForm: {
|
|
|
+ SuccessStatus: 1,
|
|
|
+ AuditorRemark: '',
|
|
|
+ AppendId: 0,
|
|
|
+ Auditer: '',
|
|
|
+ MajorDept: ''
|
|
|
+ },
|
|
|
+ btnloading:false,
|
|
|
+ textplaceholder: '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)',
|
|
|
+
|
|
|
+ //专业科室接收
|
|
|
+ ProfessionalAudit: '',
|
|
|
+ secauditerOptions: [],
|
|
|
+
|
|
|
|
|
|
|
|
|
- dialogVisibleCom:false,
|
|
|
loading: false,
|
|
|
UnitOrgOptions: [],
|
|
|
UnitOrg: '',
|
|
|
|
|
|
- // auditform: {
|
|
|
- // FirstAuditName: '',
|
|
|
- // SecondAudit: '',
|
|
|
- // ThirdAudit: '',
|
|
|
- // CertId: '',
|
|
|
- // AuditRemark: ''
|
|
|
- // },
|
|
|
- formData: {
|
|
|
- Id: '',
|
|
|
- SupplierName: '',
|
|
|
- OilCertificateNo: '',
|
|
|
- Grade: '',
|
|
|
- MgrUnit: '',
|
|
|
- OperType: '',
|
|
|
- Country: '',
|
|
|
- MaunAgent: '',
|
|
|
- ConstructTeam: '',
|
|
|
- CommercialNo: '',
|
|
|
- OrganCode: '',
|
|
|
- CountryTaxNo: '',
|
|
|
- ProcessKey: '',
|
|
|
- LocalTaxNo: '',
|
|
|
- Address: '',
|
|
|
- Province: '',
|
|
|
- City: '',
|
|
|
- Street: '',
|
|
|
- HouseNo: '',
|
|
|
- ZipCode: '',
|
|
|
- QualitySystemCert: '',
|
|
|
- ProductQualityCert: '',
|
|
|
- MaunLicense: '',
|
|
|
- QualifCert: '',
|
|
|
- QualifCertLevel: '',
|
|
|
- SafetyLicense: '',
|
|
|
- TechServiceLic: '',
|
|
|
- TJInNotify: '',
|
|
|
- SpecIndustryCert: '',
|
|
|
- LegalPerson: '',
|
|
|
- CategoryCode: '',
|
|
|
- CategoryName: '',
|
|
|
- RegCapital: '',
|
|
|
- Currency: '',
|
|
|
- ContactName: '',
|
|
|
- CompanyType: '',
|
|
|
- SetupTime: '',
|
|
|
- DepositBank: '',
|
|
|
- BankAccount: '',
|
|
|
- EMail: '',
|
|
|
- BankCreditRating: '',
|
|
|
- Mobile: '',
|
|
|
- Telphone: '',
|
|
|
- Fax: '',
|
|
|
- CompanyTel: '',
|
|
|
- QQ: '',
|
|
|
- CompanyUrl: '',
|
|
|
- SpecSupplier: '',
|
|
|
- SpecTypeCode: '',
|
|
|
- SpecTypeName: '',
|
|
|
- WorkerTotal: 0,
|
|
|
- ContractNum: 0,
|
|
|
- UniversityNum: 0,
|
|
|
- TechnicalNum: 0,
|
|
|
- AboveProfNum: 0,
|
|
|
- MiddleProfNum: 0,
|
|
|
- NationalRegNum: 0,
|
|
|
- NationalCertTotal: 0,
|
|
|
- DesignerTotal: 0,
|
|
|
- SkillerTotal: 0,
|
|
|
- ThirdAudit: 0,
|
|
|
- Remark: '',
|
|
|
- IsDelete: '',
|
|
|
- CreateOn: '',
|
|
|
- CreateUserId: '',
|
|
|
- CreateBy: '',
|
|
|
- ModifiedOn: '',
|
|
|
- ModifiedUserId: '',
|
|
|
- ModifiedBy: '',
|
|
|
- CertId: 0,
|
|
|
- SupplierTypeCode: '02',
|
|
|
- SupplierTypeName: '基建类',
|
|
|
- Step: 0,
|
|
|
- BusinessKey: '',
|
|
|
- AuditIndex: 0
|
|
|
- },
|
|
|
+
|
|
|
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- // this.getDictOptions()
|
|
|
- // this.serviceId = this.$route.params.opera + ''
|
|
|
- // if (this.$route.query.rtn) {
|
|
|
- // this.showReturn = 0
|
|
|
- // }
|
|
|
- // if (this.$route.query.certid) {
|
|
|
- // this.certId = this.$route.query.certid + ''
|
|
|
- // }
|
|
|
- // if (this.serviceId !== 'add' && this.serviceId > 0) {
|
|
|
- // this.formData.Id = this.serviceId
|
|
|
- // } else {
|
|
|
- // this.formData.Id = 0
|
|
|
- // }
|
|
|
- // this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
|
|
|
-
|
|
|
- // // this.getorgtreelist()
|
|
|
- // if (this.IsCompanyUser && this.serviceId === 'add') {
|
|
|
- // // apiCert.getEntityByCreatorAndType('02', this.$axios).then(res => {
|
|
|
- // // this.certId = res.data.Id
|
|
|
- // // this.serviceId = res.data.SupplierId
|
|
|
- // // this.formData.Id = res.data.SupplierId
|
|
|
- // // this.initDatas()
|
|
|
- // // }).catch(err => {
|
|
|
- // // console.error(err)
|
|
|
- // // })
|
|
|
- // this.inputCompany(this.authUser.Profile.Realname)
|
|
|
- // } else {
|
|
|
- // this.initDatas()
|
|
|
- // }
|
|
|
+
|
|
|
this.getFirAuditerByDept()
|
|
|
this.getDictOptions()
|
|
|
this.orgtreeChange(this.majorDept)
|
|
|
|
|
|
-
|
|
|
-
|
|
|
},
|
|
|
methods: {
|
|
|
+ //专业科室接收。。。。。。。。。。。。。。
|
|
|
+ // 数据
|
|
|
+ auditOrgChange () {
|
|
|
+ let auditstepcode = ''
|
|
|
+ if (this.formData.Status === '1') {
|
|
|
+ auditstepcode = 'SECOND_TRIAL'
|
|
|
+ } else if (this.formData.Status === '3') {
|
|
|
+ auditstepcode = 'PROF_AUDIT'
|
|
|
+ } else if (this.formData.Status === '10') {
|
|
|
+ auditstepcode = 'SECOND_TRIAL'
|
|
|
+ } else {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ api.getAuditerByDept(this.authUser.Profile.DepartmentId, auditstepcode, this.$axios).then(res => {
|
|
|
+ this.secauditerOptions = res.data.item
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ businessOfficeSeparateAuditMakeSure () {
|
|
|
+ if (this.ProfessionalAudit === '') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择审批人!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ let params = {
|
|
|
+ ProfessionalAudit: this.ProfessionalAudit,
|
|
|
+ AuditRemark: this.shenheForm.AuditorRemark
|
|
|
+ }
|
|
|
+ this.btnloading = true
|
|
|
+ console.log('业务处室专业审批, 提交参数: ', params)
|
|
|
+ let _this = this
|
|
|
+ apiOilcontract.businessSeparateAudit(this.formData.Id, params, this.$axios).then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ console.log('审批提交,成功返回')
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ this.$emit('refreshPage', {})
|
|
|
+ // _this.$refs['WfHistory'].getHistoryTask()
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
+ _this.dialogBusinessOfficeSeparateAuditVisible = false
|
|
|
+ _this.btnloading = false
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ //复审的方法。。。。。。。。。。。。。。。
|
|
|
+ //选择审批选项
|
|
|
+ radioChange () {
|
|
|
+ if (this.shenheForm.SuccessStatus === 1) {
|
|
|
+ // this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)'
|
|
|
+ if (this.formData.Status === '5') {
|
|
|
+ this.textplaceholder = '请填写审批意见'
|
|
|
+ } else {
|
|
|
+ this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)'
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (this.formData.Status == '5') {
|
|
|
+ this.textplaceholder = ''
|
|
|
+ } else {
|
|
|
+ this.textplaceholder = '退回意见不能少于5个字'
|
|
|
+ }
|
|
|
+ this.shenheForm.AuditorRemark = ''
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 确定提交
|
|
|
+ commonAuditMakeSure () {
|
|
|
+ let checkRes = this.commonAuditParamsCheck()
|
|
|
+ console.log('审批结果公共提交,参数检查结果', checkRes)
|
|
|
+ if (!checkRes) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ this.btnloading = true
|
|
|
+ let params = {
|
|
|
+ result: this.shenheForm.SuccessStatus,
|
|
|
+ AuditRemark: this.shenheForm.AuditorRemark
|
|
|
+ }
|
|
|
+ console.log('审批结果提交参数:', params)
|
|
|
+ let _this = this
|
|
|
+ apiOilcontract.contractCommonAudit(this.eveId, params, this.$axios).then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ console.log('审批提交,成功返回')
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ this.$emit('refreshPage', {})
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
+ _this.dialogCommonAuditMakeSureVisible = false
|
|
|
+ _this.btnloading = false
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ _this.btnloading = false
|
|
|
+ })
|
|
|
+ },
|
|
|
+ commonAuditParamsCheck () {
|
|
|
+ if (this.shenheForm.SuccessStatus === 1) {
|
|
|
+ if ((!this.auditer || this.auditer === 0) && (this.formData.Status == '0' || this.formData.Status == '10' || this.formData.Status == '3')) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择审核人!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.formData.Status == '10') {
|
|
|
+ if (!this.fushenauditer || this.fushenauditer === 0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择复审人!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if ((this.formData.InStyle != '2' && this.formData.InStyle != '6' && this.formData.InStyle != '4') && (this.formData.inStyle == '3' && this.MgrUnit)) {
|
|
|
+ if (this.selectDept === 0 || this.selectDept == '') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择专业处室!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if ((this.formData.InStyle != '2' && this.formData.InStyle != '6' && this.formData.InStyle != '4') && (this.formData.inStyle == '3' && this.MgrUnit)) {
|
|
|
+ if (this.userOptions == null || this.userOptions.length === 0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '该专业科室未配置接收人!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if (this.shenheForm.AuditorRemark.trim().length < 20 && this.formData.Status !== '3' && this.formData
|
|
|
+ .Status !== '5' && this.formData.Status !== '10') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '审批意见不能低于20个字符!'
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ if (this.shenheForm.AuditorRemark.trim().length < 1 && this.formData.Status === '5') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请填写审批意见!'
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (this.formData.Status === '10') {
|
|
|
+ this.shenheForm.AuditorRemark = this.backRemark
|
|
|
+ }
|
|
|
+ if (this.shenheForm.AuditorRemark.trim().length < 5 && this.formData.Status !== '3' && this.formData
|
|
|
+ .Status !== '5') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '退回意见不能低于5个字符!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.shenheForm.AuditorRemark.trim().length < 1 && this.formData.Status === '5') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请填写退回意见!'
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return true
|
|
|
+ },
|
|
|
+ // 。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
|
|
|
setAuditerFen (val, name) {
|
|
|
this.auditer = val
|
|
|
this.auditerName = name
|