|
@@ -482,7 +482,7 @@
|
|
|
<div slot="header" class="clearfix">
|
|
<div slot="header" class="clearfix">
|
|
|
<span>审批流程</span>
|
|
<span>审批流程</span>
|
|
|
<span style="float: right;">
|
|
<span style="float: right;">
|
|
|
- <el-button type="primary" size="mini">提交审批</el-button>
|
|
|
|
|
|
|
+ <el-button type="primary" size="mini" :disabled="formDataCert.Status > 0" @click="AuditEntity">提交审批</el-button>
|
|
|
</span>
|
|
</span>
|
|
|
</div>
|
|
</div>
|
|
|
<wf-history :entryinfo="entrydetail"></wf-history>
|
|
<wf-history :entryinfo="entrydetail"></wf-history>
|
|
@@ -498,15 +498,16 @@
|
|
|
mapGetters
|
|
mapGetters
|
|
|
} from 'vuex'
|
|
} from 'vuex'
|
|
|
import api from '@/api/oilsupplier/supplier'
|
|
import api from '@/api/oilsupplier/supplier'
|
|
|
|
|
+ import apiCert from '@/api/oilsupplier/suppliercert'
|
|
|
import SupplierFileTable from '@/pages/oilsupplier/supplierfile/table.vue'
|
|
import SupplierFileTable from '@/pages/oilsupplier/supplierfile/table.vue'
|
|
|
import WfHistory from '@/components/workflow/wfhistory.vue'
|
|
import WfHistory from '@/components/workflow/wfhistory.vue'
|
|
|
import SupplierCertEdit from '@/components/oilsupplier/suppliercertedit.vue'
|
|
import SupplierCertEdit from '@/components/oilsupplier/suppliercertedit.vue'
|
|
|
|
|
|
|
|
- import EquipmentList from '../../../../components/oilsupplier/equipmentlist'
|
|
|
|
|
- import PerformanceList from '../../../../components/oilsupplier/performancelist'
|
|
|
|
|
- import PatentList from '../../../../components/oilsupplier/patentlist'
|
|
|
|
|
- import WinningList from '../../../../components/oilsupplier/winninglist'
|
|
|
|
|
- import BusinessList from '../../../../components/oilsupplier/businesslist'
|
|
|
|
|
|
|
+ import EquipmentList from '@/components/oilsupplier/equipmentlist'
|
|
|
|
|
+ import PerformanceList from '@/components/oilsupplier/performancelist'
|
|
|
|
|
+ import PatentList from '@/components/oilsupplier/patentlist'
|
|
|
|
|
+ import WinningList from '@/components/oilsupplier/winninglist'
|
|
|
|
|
+ import BusinessList from '@/components/oilsupplier/businesslist'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
components: {
|
|
components: {
|
|
@@ -527,11 +528,11 @@
|
|
|
},
|
|
},
|
|
|
name: 'oilsupplierEdit',
|
|
name: 'oilsupplierEdit',
|
|
|
|
|
|
|
|
- data() {
|
|
|
|
|
|
|
+ data () {
|
|
|
return {
|
|
return {
|
|
|
equipmentList: [], //企业主要装备情况
|
|
equipmentList: [], //企业主要装备情况
|
|
|
- performanceList: [], //近三年主要工程业绩
|
|
|
|
|
- patentList: [], //拥有专利、专有技术及工法
|
|
|
|
|
|
|
+ performanceList: [], //近三年主要工程业绩
|
|
|
|
|
+ patentList: [], //拥有专利、专有技术及工法
|
|
|
winningList: [], //近三年获得省部级及以上主要技术、管理成果、获奖项目
|
|
winningList: [], //近三年获得省部级及以上主要技术、管理成果、获奖项目
|
|
|
businessList: [], //准入业务
|
|
businessList: [], //准入业务
|
|
|
|
|
|
|
@@ -611,8 +612,8 @@
|
|
|
SupplierTypeCode: '03',
|
|
SupplierTypeCode: '03',
|
|
|
SupplierTypeName: '技术服务类',
|
|
SupplierTypeName: '技术服务类',
|
|
|
Step: 0
|
|
Step: 0
|
|
|
-
|
|
|
|
|
},
|
|
},
|
|
|
|
|
+
|
|
|
formDataCert: {
|
|
formDataCert: {
|
|
|
WorkerTotal: 0,
|
|
WorkerTotal: 0,
|
|
|
ContractNum: 0,
|
|
ContractNum: 0,
|
|
@@ -624,20 +625,21 @@
|
|
|
NationalCertTotal: 0,
|
|
NationalCertTotal: 0,
|
|
|
DesignerTotal: 0,
|
|
DesignerTotal: 0,
|
|
|
SkillerTotal: 0,
|
|
SkillerTotal: 0,
|
|
|
|
|
+ Status: 0,
|
|
|
|
|
+ WorkflowId: ''
|
|
|
},
|
|
},
|
|
|
entrydetail: {
|
|
entrydetail: {
|
|
|
process: 'oil_supplier_apply',
|
|
process: 'oil_supplier_apply',
|
|
|
- business: '4',
|
|
|
|
|
- instance: '145001',
|
|
|
|
|
- },
|
|
|
|
|
|
|
+ business: '',
|
|
|
|
|
+ instance: ''
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- created() {
|
|
|
|
|
|
|
+ created () {
|
|
|
this.serviceId = this.$route.params.opera
|
|
this.serviceId = this.$route.params.opera
|
|
|
this.certId = this.$route.query.certid
|
|
this.certId = this.$route.query.certid
|
|
|
this.getDictOptions()
|
|
this.getDictOptions()
|
|
|
-
|
|
|
|
|
- if (this.serviceId != 'add' && this.serviceId > 0) {
|
|
|
|
|
|
|
+ if (this.serviceId !== 'add' && this.serviceId > 0) {
|
|
|
this.formData.Id = this.serviceId
|
|
this.formData.Id = this.serviceId
|
|
|
this.initDatas()
|
|
this.initDatas()
|
|
|
} else {
|
|
} else {
|
|
@@ -658,7 +660,7 @@
|
|
|
this.$refs["winningList"].showDialog()
|
|
this.$refs["winningList"].showDialog()
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- initDatas() {
|
|
|
|
|
|
|
+ initDatas () {
|
|
|
if (this.formData.Id) {
|
|
if (this.formData.Id) {
|
|
|
api.getEntityAndCert(this.certId, this.$axios).then(res => {
|
|
api.getEntityAndCert(this.certId, this.$axios).then(res => {
|
|
|
this.formData = res.data
|
|
this.formData = res.data
|
|
@@ -672,16 +674,21 @@
|
|
|
this.formDataCert.NationalCertTotal = this.formData.NationalCertTotal
|
|
this.formDataCert.NationalCertTotal = this.formData.NationalCertTotal
|
|
|
this.formDataCert.DesignerTotal = this.formData.DesignerTotal
|
|
this.formDataCert.DesignerTotal = this.formData.DesignerTotal
|
|
|
this.formDataCert.SkillerTotal = this.formData.SkillerTotal
|
|
this.formDataCert.SkillerTotal = this.formData.SkillerTotal
|
|
|
|
|
+ this.formDataCert.Status = this.formData.Status
|
|
|
|
|
+ this.formDataCert.WorkflowId = this.formData.WorkflowId
|
|
|
|
|
+
|
|
|
|
|
+ this.entrydetail.business = this.certId
|
|
|
|
|
+ this.entrydetail.instance = this.formDataCert.WorkflowId
|
|
|
}).catch(err => {
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- getDictOptions() {
|
|
|
|
|
- api.getDictList(this.$axios).then(res => {}).catch(err => {
|
|
|
|
|
|
|
+ getDictOptions () {
|
|
|
|
|
+ /*api.getDictList(this.$axios).then(res => {}).catch(err => {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
- })
|
|
|
|
|
|
|
+ })*/
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
//保存信息
|
|
//保存信息
|
|
@@ -793,6 +800,26 @@
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
|
|
+ AuditEntity () {
|
|
|
|
|
+ apiCert.auditEntity(this.certId, this.$axios).then(res => {
|
|
|
|
|
+ if (res.data.code === 0) {
|
|
|
|
|
+ //保存成功后,初始化数据,变成修改
|
|
|
|
|
+ this.initDatas()
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'success',
|
|
|
|
|
+ message: res.data.message
|
|
|
|
|
+ });
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.$message({
|
|
|
|
|
+ type: 'warning',
|
|
|
|
|
+ message: res.data.message
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ }).catch(err => {
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ });
|
|
|
|
|
+ },
|
|
|
|
|
+
|
|
|
jstimehandle(val) {
|
|
jstimehandle(val) {
|
|
|
if (val === '') {
|
|
if (val === '') {
|
|
|
return '----'
|
|
return '----'
|