|
|
@@ -26,19 +26,14 @@
|
|
|
</el-button>
|
|
|
<el-button type="primary" style="margin-left: 8px;" size="mini" @click="profAudit()" v-if="AnnualStatus == 3">
|
|
|
专业审核分配</el-button> -->
|
|
|
- <el-button type="primary" size="mini" style="margin-right: 8px" @click="itemsshow">查看变更项</el-button>
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" @click="annualAudit()"
|
|
|
- v-if="auditBtn && AnnualStatus == '1'">初审</el-button>
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" @click="annualAudit()"
|
|
|
- v-if="auditBtn && AnnualStatus == '2'">复审</el-button>
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" @click="profAudit()"
|
|
|
- v-if="auditBtn && AnnualStatus == '3'">提交专业审核</el-button>
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" @click="annualAudit()"
|
|
|
- v-if="auditBtn && AnnualStatus == '4'">专业审核</el-button>
|
|
|
- <el-button type="primary" size="mini" style="margin-left: 8px" @click="annualAudit()"
|
|
|
- v-if="auditBtn && AnnualStatus == '5'">审批</el-button>
|
|
|
- <el-button type="primary" style="margin-left: 8px;" size="mini" @click="fenbanBtn" v-if="auditBtn && AnnualStatus == '10'">
|
|
|
- 提交</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-right: 8px" @click="itemsshow">查看变更项</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick()" v-if="auditBtn && AnnualStatus == '1'">初审</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick()" v-if="auditBtn && AnnualStatus == '2'">复审</el-button>
|
|
|
+ <!--<el-button type="primary" size="mini" style="margin-left: 8px" @click="profAudit()" v-if="auditBtn && AnnualStatus == '3'">提交专业审核</el-button>-->
|
|
|
+ <!--<el-button type="primary" size="mini" style="margin-left: 8px" @click="annualAudit()" v-if="auditBtn && AnnualStatus == '4'">专业审核</el-button>-->
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="commonAuditClick()" v-if="auditBtn && AnnualStatus == '5'">审批</el-button>
|
|
|
+ <el-button type="primary" style="margin-left: 8px;" size="mini" @click="secUnitSeparateAuditClick" v-if="auditBtn && AnnualStatus == '10'">提交</el-button>
|
|
|
+ <el-button type="primary" size="mini" style="margin-left: 8px" @click="paySureClick()" v-if="auditBtn && parseInt(this.anndata.Status) === 6">交费</el-button>
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px;" onclick="window.history.go(-1)">返回</el-button>
|
|
|
</span>
|
|
|
</div>
|
|
|
@@ -632,7 +627,24 @@
|
|
|
<el-button type="primary" size="small" @click="makeSure()" :loading="loading">确 定</el-button>
|
|
|
</div>
|
|
|
</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="loading">确 定</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
<el-dialog title="分配" :visible.sync="dialogProfAudit" width="420px">
|
|
|
<el-form ref="searchForm" label-width="110px">
|
|
|
<el-form-item label="审批人">
|
|
|
@@ -657,8 +669,8 @@
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="审批状态">
|
|
|
<el-radio-group v-model="shenheForm.SuccessStatus">
|
|
|
- <el-radio :label="1" @change="radioChange">通过</el-radio>
|
|
|
- <el-radio :label="0" @change="radioChange">退回</el-radio>
|
|
|
+ <el-radio :label="1">通过</el-radio>
|
|
|
+ <el-radio :label="0">退回</el-radio>
|
|
|
</el-radio-group>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -715,6 +727,65 @@
|
|
|
</span>
|
|
|
<br>
|
|
|
</el-dialog>
|
|
|
+ <el-dialog title="分办" :visible.sync="dialogSecUnitSeparateVisible" width="520px">
|
|
|
+ <el-form label-width="90px" :model="shenheForm" ref="EntityFormref">
|
|
|
+ <el-row>
|
|
|
+ <el-col :span="24">
|
|
|
+ <el-form-item label="审批状态">
|
|
|
+ <el-radio-group v-model="shenheForm.SuccessStatus">
|
|
|
+ <el-radio :label="1">通过</el-radio>
|
|
|
+ <el-radio :label="0">退回</el-radio>
|
|
|
+ </el-radio-group>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" v-if="shenheForm.SuccessStatus == 1">
|
|
|
+ <el-form-item label="初审人员">
|
|
|
+ <!--<el-input ref="selectAuditer" readonly v-model="auditerName" placeholder="请选择初审人">-->
|
|
|
+ <!--<el-button slot="append" icon="el-icon-search" @click="chooseAuditorShow"></el-button>-->
|
|
|
+ <!--</el-input>-->
|
|
|
+ <el-select ref="selectAuditer"
|
|
|
+ v-model="auditer"
|
|
|
+ placeholder="请选择初审人"
|
|
|
+ style="width: 100%"
|
|
|
+ filterable
|
|
|
+ allow-create
|
|
|
+ default-first-option
|
|
|
+ @change="auditOrgChang()">
|
|
|
+ <el-option v-for="item in firOptions"
|
|
|
+ :key="item.Id"
|
|
|
+ :label="item.Realname"
|
|
|
+ :value="item.Id">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="复审人员">
|
|
|
+ <el-select ref="selectAuditer" v-model="fushenauditer" placeholder="请选择复审人" style="width: 100%" filterable
|
|
|
+ allow-create 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-col>
|
|
|
+ <el-col :span="24" v-if="shenheForm.SuccessStatus == 1">
|
|
|
+ <el-form-item label="备注">
|
|
|
+ <el-input v-model="shenheForm.AuditorRemark" type="textarea" placeholder="请输入备注内容">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ <el-col :span="24" v-if="shenheForm.SuccessStatus == 0">
|
|
|
+ <el-form-item label="退回原因">
|
|
|
+ <el-input v-model="shenheForm.AuditorRemark" type="textarea" placeholder="退回意见不能少于5个字">
|
|
|
+ </el-input>
|
|
|
+ </el-form-item>
|
|
|
+ </el-col>
|
|
|
+ </el-row>
|
|
|
+ </el-form>
|
|
|
+ <span style="float: right;margin-top:-10px;">
|
|
|
+ <el-button size="small" @click="dialogSecUnitSeparateVisible = false">取 消</el-button>
|
|
|
+ <el-button type="primary" size="small" @click="secUnitSeparateAuditMakeSure()" :loading="loading">确 定</el-button>
|
|
|
+ </span>
|
|
|
+ <br>
|
|
|
+ </el-dialog>
|
|
|
<el-dialog title="变更项查看" :visible.sync="myitemsshow" width="780px">
|
|
|
<el-table :data="InfoData" border style="width: 100%">
|
|
|
<el-table-column align="center" prop="SelectItemName" label="变更项目">
|
|
|
@@ -758,16 +829,14 @@
|
|
|
import ChooseAuditor from '@/components/oilsupplier/chooseauditor'
|
|
|
import _ from 'lodash'
|
|
|
|
|
|
- // v-viewer
|
|
|
- import Vue from 'vue';
|
|
|
+ // v-viewer
|
|
|
+ import Vue from 'vue'
|
|
|
import Viewer from 'v-viewer'
|
|
|
import 'viewerjs/dist/viewer.css'
|
|
|
Vue.use(Viewer)
|
|
|
Viewer.setDefaults({
|
|
|
Options: { 'inline': true, 'button': true, 'navbar': true, 'title': true, 'toolbar': true, 'tooltip': true, 'movable': true, 'zoomable': true, 'rotatable': true, 'scalable': true, 'transition': true, 'fullscreen': true, 'keyboard': true, 'url': 'data-source' }
|
|
|
})
|
|
|
-
|
|
|
-
|
|
|
export default {
|
|
|
computed: {
|
|
|
...mapGetters({
|
|
|
@@ -961,6 +1030,8 @@
|
|
|
}],
|
|
|
addshow: false,
|
|
|
chooseAuditorVisible: false,
|
|
|
+ dialogCommonAuditMakeSureVisible: false,
|
|
|
+ dialogSecUnitSeparateVisible: false,
|
|
|
auditer: '',
|
|
|
auditerName: '',
|
|
|
fushenauditer: '',
|
|
|
@@ -1384,21 +1455,20 @@
|
|
|
}
|
|
|
return retUrl
|
|
|
},
|
|
|
- imgFormat(val,index){
|
|
|
- console.log(val)
|
|
|
- if(val !=null && val != undefined && val !=''){
|
|
|
+ imgFormat (val, index) {
|
|
|
+ if (val != null && val != undefined && val != '') {
|
|
|
let fileurlall = val.split('$')[index]
|
|
|
let fileurl = fileurlall.split('|')
|
|
|
- if(fileurl[1] != null && fileurl[1] !='' && fileurl[1] != undefined){
|
|
|
- let Format = fileurl[1].split(".")
|
|
|
- if(Format[1]!=null && Format[1] !='' && Format[1] != undefined){
|
|
|
- let pictureFormat = Format[1];
|
|
|
- if("jpg"== pictureFormat || "bmp" ==pictureFormat || "png" ==pictureFormat || "gif" ==pictureFormat|| "jpeg" ==pictureFormat){
|
|
|
- return false;
|
|
|
+ if (fileurl[1] != null && fileurl[1] != '' && fileurl[1] != undefined) {
|
|
|
+ let Format = fileurl[1].split('.')
|
|
|
+ if (Format[1] != null && Format[1] != '' && Format[1] != undefined) {
|
|
|
+ let pictureFormat = Format[1]
|
|
|
+ if (pictureFormat == 'jpg' || pictureFormat == 'bmp' || pictureFormat == 'png' || pictureFormat == 'gif' || pictureFormat == 'jpeg') {
|
|
|
+ return false
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
- return true;
|
|
|
+ return true
|
|
|
}
|
|
|
},
|
|
|
getsubfile () {
|
|
|
@@ -1452,6 +1522,97 @@
|
|
|
this.shenheForm.AnnualId = parseInt(this.annualId)
|
|
|
this.addshow = true
|
|
|
},
|
|
|
+ // 二级单位分办
|
|
|
+ secUnitSeparateAuditClick () {
|
|
|
+ console.log('二级单位分办审批会话框')
|
|
|
+ this.getFirAuditerByDept()
|
|
|
+ this.shenheForm.AnnualId = parseInt(this.annualId)
|
|
|
+ this.dialogSecUnitSeparateVisible = true
|
|
|
+ },
|
|
|
+ // 二级单位分办审批参数检查 ⬇
|
|
|
+ secUnitSeparateAuditParamsCheck () {
|
|
|
+ if (this.shenheForm.SuccessStatus === 1) {
|
|
|
+ if (this.auditer === '') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择初审人!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.fushenauditer === '') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择复审人!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
+ if (this.shenheForm.AuditorRemark.trim().length < 1 && this.formData.Status === '5') {
|
|
|
+ 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
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ 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
|
|
|
+ },
|
|
|
+ // 二级单位分办审批结果确认 ⬇
|
|
|
+ secUnitSeparateAuditMakeSure () {
|
|
|
+ console.log('二级单位分办审批结果确认')
|
|
|
+ let checkRes = this.secUnitSeparateAuditParamsCheck()
|
|
|
+ if (!checkRes) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ this.loading = true
|
|
|
+ let params = {
|
|
|
+ FirstAudit: this.auditer,
|
|
|
+ SecondAudit: this.fushenauditer,
|
|
|
+ AuditRemark: this.shenheForm.AuditorRemark
|
|
|
+ }
|
|
|
+ console.log('二级单位分办审批结果提交参数:', params)
|
|
|
+ annualapi.separateAuditEntity(this.shenheForm.AnnualId, params, this.$axios).then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ console.log('审批提交,成功返回')
|
|
|
+ this.initDatas()
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ this.dialogSecUnitSeparateVisible = false
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.loading = false
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
orgtreeChange (val) {
|
|
|
this.userOptions = []
|
|
|
if (val) {
|
|
|
@@ -1531,6 +1692,8 @@
|
|
|
this.auditstepcode = 'PROF_AUDIT'
|
|
|
} else if (this.anndata.Status === '5') {
|
|
|
this.auditstepcode = 'PROF_REGULATION'
|
|
|
+ } else if (this.anndata.Status === '6') {
|
|
|
+ this.auditstepcode = 'PAYING_FEE'
|
|
|
} else if (this.anndata.Status === '10') {
|
|
|
if (this.anndata.SupplierTypeName === '01') {
|
|
|
this.auditstepcode = 'SUB_OFFICE_WZ'
|
|
|
@@ -2078,9 +2241,9 @@
|
|
|
_this.infochangeForm.SelectItemName = '行业特殊要求的认证证书'
|
|
|
} else if (_this.infochangeForm.SelectItem === 'BusinessScope') {
|
|
|
_this.infochangeForm.SelectItemName = '营业范围'
|
|
|
- }else if (_this.infochangeForm.SelectItem === 'TjinNotify') {
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'TjinNotify') {
|
|
|
_this.infochangeForm.SelectItemName = '进津备案通知书'
|
|
|
- }else if (_this.infochangeForm.SelectItem === 'QualifCert') {
|
|
|
+ } else if (_this.infochangeForm.SelectItem === 'QualifCert') {
|
|
|
_this.infochangeForm.SelectItemName = '企业资质证书(编号 级别)'
|
|
|
} else if (_this.infochangeForm.SelectItem === 'Remark') {
|
|
|
_this.infochangeForm.SelectItemName = '备注'
|
|
|
@@ -2127,6 +2290,107 @@
|
|
|
this.shenheForm.AnnualId = parseInt(this.annualId)
|
|
|
this.dialogMakeSure = true
|
|
|
},
|
|
|
+ commonAuditClick () {
|
|
|
+ console.log('审批公共会话框')
|
|
|
+ this.shenheForm.AnnualId = parseInt(this.annualId)
|
|
|
+ this.dialogCommonAuditMakeSureVisible = true
|
|
|
+ },
|
|
|
+ commonAuditMakeSure () {
|
|
|
+ console.log('审批结果公共提交')
|
|
|
+ let checkRes = this.commonAuditParamsCheck()
|
|
|
+ console.log(checkRes, '审批结果公共提交')
|
|
|
+ if (!checkRes) {
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ this.loading = true
|
|
|
+ let params = {
|
|
|
+ result: this.shenheForm.SuccessStatus,
|
|
|
+ AuditRemark: this.shenheForm.AuditorRemark
|
|
|
+ }
|
|
|
+ console.log('审批结果提交参数:', params)
|
|
|
+ annualapi.commonAuditEntity(this.shenheForm.AnnualId, params, this.$axios).then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ console.log('审批提交,成功返回')
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ this.$router.push('/')
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.dialogCommonAuditMakeSureVisible = false
|
|
|
+ this.loading = false
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ commonAuditParamsCheck () {
|
|
|
+ if (this.shenheForm.SuccessStatus === 1) {
|
|
|
+ if (this.shenheForm.AuditorRemark.trim().length < 20 && this.AnnualStatus && this.AnnualStatus !== '10') {
|
|
|
+ if (this.AnnualStatus !== '5') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '审批意见不能低于20个字符!'
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ if (this.shenheForm.AuditorRemark.trim().length < 5) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '退回意见不能低于5个字符!'
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ }
|
|
|
+ return true
|
|
|
+ },
|
|
|
+ paySureClick () {
|
|
|
+ console.log('交费按钮')
|
|
|
+ this.$confirm('是否确认交费', '提示', {
|
|
|
+ confirmButtonText: '确定',
|
|
|
+ cancelButtonText: '取消',
|
|
|
+ type: 'warning'
|
|
|
+ }).then(() => {
|
|
|
+ this.payMakeSure()
|
|
|
+ }).catch(() => {
|
|
|
+ this.$message({
|
|
|
+ type: 'info',
|
|
|
+ message: '已取消'
|
|
|
+ })
|
|
|
+ })
|
|
|
+ },
|
|
|
+ payMakeSure () {
|
|
|
+ console.log('交费结果确认')
|
|
|
+ this.loading = true
|
|
|
+ let params = {
|
|
|
+ payStatus: this.payStatus
|
|
|
+ }
|
|
|
+ console.log('交费结果确认提交参数:', params)
|
|
|
+ annualapi.updatePayStatus(this.annualId, params, this.$axios).then(res => {
|
|
|
+ if (res.data.code === 0) {
|
|
|
+ console.log('交费成功')
|
|
|
+ this.initDatas()
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ }
|
|
|
+ this.loading = false
|
|
|
+ }).catch(err => {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
profAudit () {
|
|
|
this.shenheForm.AnnualId = parseInt(this.annualId)
|
|
|
this.auditOrgChange()
|