|
|
@@ -11,7 +11,7 @@
|
|
|
<i class="icon icon-table2"></i> 信息
|
|
|
</span>
|
|
|
<span style="float: right;">
|
|
|
- <el-button plain icon="el-icon-right" size="mini" style="margin-right: 5px" @click="nextTab">下一步</el-button>
|
|
|
+ <el-button plain icon="el-icon-right" size="mini" style="margin-right: 5px" @click="nextTab">下一步</el-button>
|
|
|
<el-popover>
|
|
|
<el-steps :active="formData.Step" direction="vertical" align-center finish-status="success">
|
|
|
<el-step title="填信息"></el-step>
|
|
|
@@ -306,9 +306,9 @@
|
|
|
},
|
|
|
name: 'oilsupplierEdit',
|
|
|
|
|
|
- data() {
|
|
|
+ data () {
|
|
|
return {
|
|
|
- delete_flat:true,
|
|
|
+ delete_flat: true,
|
|
|
activeName: '1',
|
|
|
chooseAuditorVisible: false,
|
|
|
showReturn: 1,
|
|
|
@@ -453,7 +453,7 @@
|
|
|
}
|
|
|
}
|
|
|
},
|
|
|
- mounted() {
|
|
|
+ mounted () {
|
|
|
this.serviceId = this.$route.params.opera + ''
|
|
|
if (this.$route.query.rtn) {
|
|
|
this.showReturn = 0
|
|
|
@@ -482,20 +482,20 @@
|
|
|
} else {
|
|
|
this.initDatas()
|
|
|
}
|
|
|
- this.Jurisdiction()
|
|
|
+ this.Jurisdiction()
|
|
|
},
|
|
|
methods: {
|
|
|
- Jurisdiction(){
|
|
|
+ Jurisdiction () {
|
|
|
api.getJurisdiction(this.$axios).then(res => {
|
|
|
- if(!res.data.item){
|
|
|
- this.delete_flat=false
|
|
|
- }
|
|
|
+ if (!res.data.item) {
|
|
|
+ this.delete_flat = false
|
|
|
+ }
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
confirm () {
|
|
|
- this.$confirm('确认提交入库','提示',{
|
|
|
+ this.$confirm('确认提交入库', '提示', {
|
|
|
confirmButtonText: '确认',
|
|
|
cancelButtonText: '取消',
|
|
|
type: 'warning'
|
|
|
@@ -516,7 +516,7 @@
|
|
|
})
|
|
|
})
|
|
|
},
|
|
|
- inputCompany(val) {
|
|
|
+ inputCompany (val) {
|
|
|
if (!this.certId) {
|
|
|
api.getEntityByName(val, this.$axios).then(res => {
|
|
|
if (res.data && res.data.Id) {
|
|
|
@@ -527,12 +527,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
|
|
|
@@ -580,41 +580,41 @@
|
|
|
this.formData.HseTraining = fdata.HseTraining
|
|
|
this.formData.SpecTypeCode = fdata.SpecTypeCode
|
|
|
|
|
|
- this.$refs["TechInfo"].CityAry = []
|
|
|
- this.$refs["TechInfo"].CityAry.push(this.formData.Province)
|
|
|
- this.$refs["TechInfo"].CityAry.push(this.formData.City)
|
|
|
- this.$refs["TechInfo"].CityAry.push(this.formData.Street)
|
|
|
- this.$refs["TechInfo"].LinkCityAry = []
|
|
|
- this.$refs["TechInfo"].LinkCityAry.push(this.formData.LinkProvince)
|
|
|
- this.$refs["TechInfo"].LinkCityAry.push(this.formData.LinkCity)
|
|
|
- this.$refs["TechInfo"].LinkCityAry.push(this.formData.LinkStreet)
|
|
|
- /*this.$refs["TechInfo"].UnitRelationAry = []
|
|
|
+ this.$refs['TechInfo'].CityAry = []
|
|
|
+ this.$refs['TechInfo'].CityAry.push(this.formData.Province)
|
|
|
+ this.$refs['TechInfo'].CityAry.push(this.formData.City)
|
|
|
+ this.$refs['TechInfo'].CityAry.push(this.formData.Street)
|
|
|
+ this.$refs['TechInfo'].LinkCityAry = []
|
|
|
+ this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkProvince)
|
|
|
+ this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkCity)
|
|
|
+ this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkStreet)
|
|
|
+ /* this.$refs["TechInfo"].UnitRelationAry = []
|
|
|
if (this.formData.SpecTypeCode.length > 0) {
|
|
|
this.$refs['TechInfo'].UnitRelationAry = this.formData.SpecTypeCode.split(',')
|
|
|
}*/
|
|
|
},
|
|
|
|
|
|
- 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 => {
|
|
|
@@ -635,15 +635,15 @@
|
|
|
}
|
|
|
this.formDataCert.WorkflowId = this.formData.WorkflowId
|
|
|
console.log(this.formData)
|
|
|
- this.$refs["TechInfo"].CityAry = []
|
|
|
- this.$refs["TechInfo"].CityAry.push(this.formData.Province)
|
|
|
- this.$refs["TechInfo"].CityAry.push(this.formData.City)
|
|
|
- this.$refs["TechInfo"].CityAry.push(this.formData.Street)
|
|
|
- this.$refs["TechInfo"].LinkCityAry = []
|
|
|
- this.$refs["TechInfo"].LinkCityAry.push(this.formData.LinkProvince)
|
|
|
- this.$refs["TechInfo"].LinkCityAry.push(this.formData.LinkCity)
|
|
|
- this.$refs["TechInfo"].LinkCityAry.push(this.formData.LinkStreet)
|
|
|
- /*this.$refs["TechInfo"].UnitRelationAry = []
|
|
|
+ this.$refs['TechInfo'].CityAry = []
|
|
|
+ this.$refs['TechInfo'].CityAry.push(this.formData.Province)
|
|
|
+ this.$refs['TechInfo'].CityAry.push(this.formData.City)
|
|
|
+ this.$refs['TechInfo'].CityAry.push(this.formData.Street)
|
|
|
+ this.$refs['TechInfo'].LinkCityAry = []
|
|
|
+ this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkProvince)
|
|
|
+ this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkCity)
|
|
|
+ this.$refs['TechInfo'].LinkCityAry.push(this.formData.LinkStreet)
|
|
|
+ /* this.$refs["TechInfo"].UnitRelationAry = []
|
|
|
|
|
|
if (this.formData.SpecTypeCode.length > 0) {
|
|
|
this.$refs['TechInfo'].UnitRelationAry = this.formData.SpecTypeCode.split(',')
|
|
|
@@ -653,7 +653,7 @@
|
|
|
this.entrydetail.instance = this.formDataCert.WorkflowId
|
|
|
this.backhistroy.certId = this.certId
|
|
|
this.backhistroy.workflowId = this.formDataCert.WorkflowId
|
|
|
- /*if (this.certId && this.formDataCert.WorkflowId) {
|
|
|
+ /* if (this.certId && this.formDataCert.WorkflowId) {
|
|
|
this.$refs['WfHistory'].getHistoryTask() /!* 刷新工作流 *!/
|
|
|
}*/
|
|
|
this.$refs['equipmentList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
@@ -667,11 +667,11 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- getbuslist() {
|
|
|
+ getbuslist () {
|
|
|
this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
},
|
|
|
|
|
|
- getDictOptions() {
|
|
|
+ getDictOptions () {
|
|
|
api.getDictList(this.$axios).then(res => {
|
|
|
this.dictData = res.data.items
|
|
|
this.organizeOption = res.data.items['Organizes']
|
|
|
@@ -682,14 +682,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')
|
|
|
if (_this.authUser.Profile.IsCompanyUser === 0) {
|
|
|
@@ -703,7 +703,7 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- auditOrgChang(val) {
|
|
|
+ auditOrgChang (val) {
|
|
|
let deptid = val[val.length - 1]
|
|
|
this.auditerOption = []
|
|
|
this.auditer = ''
|
|
|
@@ -730,7 +730,7 @@
|
|
|
}, */
|
|
|
|
|
|
// 保存信息
|
|
|
- saveEntity() {
|
|
|
+ saveEntity () {
|
|
|
this.$refs['TechInfo'].$refs['EntityForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
if (!this.formData.SetupTime) {
|
|
|
@@ -751,11 +751,11 @@
|
|
|
},
|
|
|
|
|
|
// 保存信息
|
|
|
- saveCertEntity() {
|
|
|
+ saveCertEntity () {
|
|
|
this.$refs['SupplierCertEditCompoment'].saveEntity()
|
|
|
},
|
|
|
|
|
|
- addEntity() {
|
|
|
+ addEntity () {
|
|
|
this.formData.SupplierTypeCode = '03'
|
|
|
this.formData.SupplierTypeName = '技术服务类'
|
|
|
api.addEntity(this.formData, this.$axios).then(res => {
|
|
|
@@ -779,7 +779,7 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- updateEntity() {
|
|
|
+ updateEntity () {
|
|
|
api.updateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
// 保存成功后,初始化数据,变成修改
|
|
|
@@ -799,7 +799,7 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- CheckCompanyBase() {
|
|
|
+ CheckCompanyBase () {
|
|
|
if (!this.formData.Id) {
|
|
|
this.$message({
|
|
|
type: 'error',
|
|
|
@@ -817,7 +817,7 @@
|
|
|
return true
|
|
|
},
|
|
|
// 企业人员结构情况
|
|
|
- updateNumberEntity() {
|
|
|
+ updateNumberEntity () {
|
|
|
if (!this.CheckCompanyBase()) {
|
|
|
return false
|
|
|
}
|
|
|
@@ -839,20 +839,20 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- selectAuditOrg() {
|
|
|
+ selectAuditOrg () {
|
|
|
this.dialogVisible = true
|
|
|
},
|
|
|
- chooseAuditorShow() {
|
|
|
+ chooseAuditorShow () {
|
|
|
this.$refs['chooseAuditor'].getorgtreelist(this.formData.SupplierTypeCode)
|
|
|
this.chooseAuditorVisible = true
|
|
|
},
|
|
|
- setAuditer(val, name) {
|
|
|
+ setAuditer (val, name) {
|
|
|
this.auditer = val
|
|
|
this.auditerName = name
|
|
|
this.chooseAuditorVisible = false
|
|
|
},
|
|
|
- AuditEntity() {
|
|
|
- //this.auditer = val
|
|
|
+ AuditEntity () {
|
|
|
+ // this.auditer = val
|
|
|
if (this.auditer === '') {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
@@ -884,7 +884,7 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- jstimehandle(val) {
|
|
|
+ jstimehandle (val) {
|
|
|
if (val === '') {
|
|
|
return '----'
|
|
|
} else if (val === '0001-01-01T08:00:00+08:00') {
|
|
|
@@ -897,7 +897,7 @@
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- formatDateTime(date) {
|
|
|
+ formatDateTime (date) {
|
|
|
var y = date.getFullYear()
|
|
|
var m = date.getMonth() + 1
|
|
|
m = m < 10 ? ('0' + m) : m
|
|
|
@@ -910,7 +910,6 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|