|
|
@@ -12,11 +12,11 @@
|
|
|
</span>
|
|
|
<span style="float: right;">
|
|
|
<router-link :to="'/oilsupplier/annualaudit'">
|
|
|
- <el-button type="primary" plain size="mini" :disabled="formDataCert.Status == 0">年审申请</el-button>
|
|
|
+ <el-button type="primary" plain size="mini" :disabled="formDataCert.Status == 0">年审申请</el-button>
|
|
|
</router-link>
|
|
|
<!--v-if="formData.Step>=5"-->
|
|
|
<router-link :to="'/oilsupplier/supplierappend/techlist'">
|
|
|
- <el-button type="primary" plain size="mini" :disabled="formDataCert.Status == 0">增项申请</el-button>
|
|
|
+ <el-button type="primary" plain size="mini" :disabled="formDataCert.Status == 0">增项申请</el-button>
|
|
|
</router-link>
|
|
|
<router-link :to="'/oilsupplier/supplier/techlist'">
|
|
|
<el-button type="primary" size="mini" style="margin-left: 8px" v-if="showReturn">返回
|
|
|
@@ -170,17 +170,18 @@
|
|
|
<el-button style="float: right; padding: 3px 0" type="text" @click="winningdialog"
|
|
|
v-if="formDataCert.Status == 0">添加</el-button>
|
|
|
</div>
|
|
|
- <winning-list ref="winningList" :data.sync="winningList" :SupplierCertId="certId" :SupplierTypeCode="classId"
|
|
|
- :canadd="add_flat" height="360px" style="margin-top: 20px">
|
|
|
+ <winning-list ref="winningList" :data.sync="winningList" :SupplierCertId="certId"
|
|
|
+ :SupplierTypeCode="classId" :canadd="add_flat" height="360px" style="margin-top: 20px">
|
|
|
</winning-list>
|
|
|
</el-card>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="准入范围" :disabled="!certId">
|
|
|
+ <business-list ref="businessList" :data.sync="businessList" :canadd="add_flat" height="360px"
|
|
|
+ style="margin-top: 20px"></business-list>
|
|
|
</el-tab-pane>
|
|
|
<el-tab-pane label="企业资质" :disabled="!certId">
|
|
|
- <business-list ref="businessList" :data.sync="businessList" :SupplierCertId="certId" :SupplierId="formData.Id+''"
|
|
|
- :SupplierTypeCode="classId" :canadd="add_flat" @close="selectAuditOrg" height="360px" style="margin-top: 20px">
|
|
|
- </business-list>
|
|
|
+ <subfile-list ref="subfileList" :data.sync="subfileList" :canadd="add_flat" @close="selectAuditOrg"
|
|
|
+ height="360px" style="margin-top: 20px"></subfile-list>
|
|
|
</el-tab-pane>
|
|
|
|
|
|
<el-tab-pane label="审批流程" v-if="formDataCert.Status > 0">
|
|
|
@@ -206,8 +207,7 @@
|
|
|
<el-col :span="24">
|
|
|
<el-form-item label="二级单位">
|
|
|
<el-cascader :options="orgtreelist" :props="orgtreeprops" change-on-select :show-all-levels="false"
|
|
|
- filterable style="width: 100%" @change="auditOrgChang"
|
|
|
- placeholder="请选择组织">
|
|
|
+ filterable style="width: 100%" @change="auditOrgChang" placeholder="请选择组织">
|
|
|
</el-cascader>
|
|
|
</el-form-item>
|
|
|
</el-col>
|
|
|
@@ -249,6 +249,7 @@
|
|
|
import PatentList from '@/components/oilsupplier/patentlist'
|
|
|
import WinningList from '@/components/oilsupplier/winninglist'
|
|
|
import BusinessList from '@/components/oilsupplier/businesslist'
|
|
|
+ import SubfileList from '@/components/oilsupplier/subfilelist'
|
|
|
import TechInfo from '@/components/oilsupplier/techinfo'
|
|
|
|
|
|
export default {
|
|
|
@@ -263,6 +264,7 @@
|
|
|
PatentList, // 拥有专利、专有技术及工法列表
|
|
|
WinningList, // 近三年获得省部级及以上主要技术、管理成果、获奖项目列表
|
|
|
BusinessList, // 选择准入范围
|
|
|
+ SubfileList, // 选择企业资质
|
|
|
TechInfo
|
|
|
},
|
|
|
computed: {
|
|
|
@@ -272,7 +274,7 @@
|
|
|
},
|
|
|
name: 'oilsupplierEdit',
|
|
|
|
|
|
- data () {
|
|
|
+ data() {
|
|
|
return {
|
|
|
showReturn: 1,
|
|
|
IsCompanyUser: 0,
|
|
|
@@ -285,6 +287,7 @@
|
|
|
patentList: [], // 拥有专利、专有技术及工法
|
|
|
winningList: [], // 近三年获得省部级及以上主要技术、管理成果、获奖项目
|
|
|
businessList: [], // 准入业务
|
|
|
+ subfileList: [], // 准入业务
|
|
|
organizeOption: [], // 审批部门
|
|
|
auditerOption: [], // 审批人
|
|
|
orgtreelist: [],
|
|
|
@@ -402,8 +405,13 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
-
|
|
|
- created () {
|
|
|
+ mounted() {
|
|
|
+ this.serviceId = this.$route.params.opera + ''
|
|
|
+ if (this.$route.query.certid) {
|
|
|
+ this.certId = this.$route.query.certid + ''
|
|
|
+ }
|
|
|
+ },
|
|
|
+ created() {
|
|
|
this.serviceId = this.$route.params.opera + ''
|
|
|
if (this.$route.query.rtn) {
|
|
|
this.showReturn = 0
|
|
|
@@ -434,7 +442,7 @@
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- inputCompany (val) {
|
|
|
+ inputCompany(val) {
|
|
|
if (!this.certId) {
|
|
|
api.getEntityByName(val, this.$axios).then(res => {
|
|
|
if (res.data && res.data.Id) {
|
|
|
@@ -445,12 +453,12 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- changeFormData (fdata) {
|
|
|
+ changeFormData(fdata) {
|
|
|
if (!this.certId) {
|
|
|
this.SetFormData(fdata)
|
|
|
}
|
|
|
},
|
|
|
- SetFormData (fdata) {
|
|
|
+ SetFormData(fdata) {
|
|
|
this.isCanUpdateSupplier(fdata.Id)
|
|
|
this.formData.Id = fdata.Id
|
|
|
this.formData.SupplierName = fdata.SupplierName
|
|
|
@@ -512,27 +520,27 @@
|
|
|
}*/
|
|
|
},
|
|
|
|
|
|
- isCanUpdateSupplier (supplierId) {
|
|
|
+ isCanUpdateSupplier(supplierId) {
|
|
|
api.isCanUpdateSupplier(supplierId, this.$axios).then(res => {
|
|
|
this.canUpdateSupplier = (res.data.code === 0)
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- equipmentdialog () {
|
|
|
+ equipmentdialog() {
|
|
|
this.$refs['equipmentList'].showDialog()
|
|
|
},
|
|
|
- performancedialog () {
|
|
|
+ performancedialog() {
|
|
|
this.$refs['performanceList'].showDialog()
|
|
|
},
|
|
|
- patentdialog () {
|
|
|
+ patentdialog() {
|
|
|
this.$refs['patentList'].showDialog()
|
|
|
},
|
|
|
- winningdialog () {
|
|
|
+ winningdialog() {
|
|
|
this.$refs['winningList'].showDialog()
|
|
|
},
|
|
|
|
|
|
- initDatas () {
|
|
|
+ initDatas() {
|
|
|
this.isCanUpdateSupplier(this.formData.Id)
|
|
|
if (this.formData.Id) {
|
|
|
api.getEntityAndCert(this.certId, this.$axios).then(res => {
|
|
|
@@ -569,20 +577,21 @@
|
|
|
this.entrydetail.business = this.certId
|
|
|
this.entrydetail.instance = this.formDataCert.WorkflowId
|
|
|
if (this.certId && this.formDataCert.WorkflowId) {
|
|
|
- //this.$refs['WfHistory'].getHistoryTask() /* 刷新工作流 */
|
|
|
+ this.$refs['WfHistory'].getHistoryTask() /* 刷新工作流 */
|
|
|
}
|
|
|
this.$refs['equipmentList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
this.$refs['performanceList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
this.$refs['patentList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
this.$refs['winningList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
this.$refs['businessList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
+ this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- getDictOptions () {
|
|
|
+ getDictOptions() {
|
|
|
api.getDictList(this.$axios).then(res => {
|
|
|
this.dictData = res.data.items
|
|
|
this.organizeOption = res.data.items['Organizes']
|
|
|
@@ -593,14 +602,14 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- getorgtreelist () {
|
|
|
+ getorgtreelist() {
|
|
|
let _this = this
|
|
|
let params = {
|
|
|
IsInnerOrganize: 1
|
|
|
}
|
|
|
_this.$axios.get('organizes/orgalllist', {
|
|
|
- params
|
|
|
- })
|
|
|
+ params
|
|
|
+ })
|
|
|
.then(res => {
|
|
|
_this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
|
|
|
})
|
|
|
@@ -608,7 +617,7 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- auditOrgChang (val) {
|
|
|
+ auditOrgChang(val) {
|
|
|
let deptid = val[val.length - 1]
|
|
|
console.log(deptid)
|
|
|
this.auditerOption = []
|
|
|
@@ -628,7 +637,7 @@
|
|
|
}, */
|
|
|
|
|
|
// 保存信息
|
|
|
- saveEntity () {
|
|
|
+ saveEntity() {
|
|
|
this.$refs['TechInfo'].$refs['EntityForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
if (!this.formData.SetupTime) {
|
|
|
@@ -649,11 +658,11 @@
|
|
|
},
|
|
|
|
|
|
// 保存信息
|
|
|
- saveCertEntity () {
|
|
|
+ saveCertEntity() {
|
|
|
this.$refs['SupplierCertEditCompoment'].saveEntity()
|
|
|
},
|
|
|
|
|
|
- addEntity () {
|
|
|
+ addEntity() {
|
|
|
this.formData.SupplierTypeCode = '03'
|
|
|
this.formData.SupplierTypeName = '技术服务类'
|
|
|
api.addEntity(this.formData, this.$axios).then(res => {
|
|
|
@@ -677,7 +686,7 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- updateEntity () {
|
|
|
+ updateEntity() {
|
|
|
api.updateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
// 保存成功后,初始化数据,变成修改
|
|
|
@@ -697,7 +706,7 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- CheckCompanyBase () {
|
|
|
+ CheckCompanyBase() {
|
|
|
if (!this.formData.Id) {
|
|
|
this.$message({
|
|
|
type: 'error',
|
|
|
@@ -715,7 +724,7 @@
|
|
|
return true
|
|
|
},
|
|
|
// 企业人员结构情况
|
|
|
- updateNumberEntity () {
|
|
|
+ updateNumberEntity() {
|
|
|
if (!this.CheckCompanyBase()) {
|
|
|
return false
|
|
|
}
|
|
|
@@ -737,10 +746,10 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- selectAuditOrg () {
|
|
|
+ selectAuditOrg() {
|
|
|
this.dialogVisible = true
|
|
|
},
|
|
|
- AuditEntity () {
|
|
|
+ AuditEntity() {
|
|
|
this.applyLoading = true
|
|
|
this.firstAudit = this.auditer
|
|
|
apiCert.auditEntity(this.certId, this.firstAudit, this.$axios).then(res => {
|
|
|
@@ -764,7 +773,7 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- jstimehandle (val) {
|
|
|
+ jstimehandle(val) {
|
|
|
if (val === '') {
|
|
|
return '----'
|
|
|
} else if (val === '0001-01-01T08:00:00+08:00') {
|
|
|
@@ -777,7 +786,7 @@
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- formatDateTime (date) {
|
|
|
+ formatDateTime(date) {
|
|
|
var y = date.getFullYear()
|
|
|
var m = date.getMonth() + 1
|
|
|
m = m < 10 ? ('0' + m) : m
|
|
|
@@ -790,6 +799,7 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|