|
@@ -403,7 +403,7 @@
|
|
|
},
|
|
},
|
|
|
name: 'oilsupplierEdit',
|
|
name: 'oilsupplierEdit',
|
|
|
|
|
|
|
|
- data() {
|
|
|
|
|
|
|
+ data () {
|
|
|
return {
|
|
return {
|
|
|
firOptions: [],
|
|
firOptions: [],
|
|
|
loading: false,
|
|
loading: false,
|
|
@@ -425,16 +425,16 @@
|
|
|
secorgtreelist: [],
|
|
secorgtreelist: [],
|
|
|
inStyle: '',
|
|
inStyle: '',
|
|
|
auditerName: '',
|
|
auditerName: '',
|
|
|
- fushenauditer: '', //复审人员
|
|
|
|
|
|
|
+ fushenauditer: '', // 复审人员
|
|
|
majorDept: [100000000, 100000128, 100000151],
|
|
majorDept: [100000000, 100000128, 100000151],
|
|
|
allorgunitOptions: [],
|
|
allorgunitOptions: [],
|
|
|
selectDept: 100000151,
|
|
selectDept: 100000151,
|
|
|
auditform: {
|
|
auditform: {
|
|
|
- FirstAuditName: "",
|
|
|
|
|
- SecondAudit: "",
|
|
|
|
|
- ThirdAudit: "",
|
|
|
|
|
- CertId: "",
|
|
|
|
|
- AuditRemark: ""
|
|
|
|
|
|
|
+ FirstAuditName: '',
|
|
|
|
|
+ SecondAudit: '',
|
|
|
|
|
+ ThirdAudit: '',
|
|
|
|
|
+ CertId: '',
|
|
|
|
|
+ AuditRemark: ''
|
|
|
},
|
|
},
|
|
|
serviceId: '',
|
|
serviceId: '',
|
|
|
certId: '',
|
|
certId: '',
|
|
@@ -445,7 +445,7 @@
|
|
|
dialogMakeSure2: false,
|
|
dialogMakeSure2: false,
|
|
|
dialogAllocation: false,
|
|
dialogAllocation: false,
|
|
|
add_flat: false,
|
|
add_flat: false,
|
|
|
- delete_flat:true,
|
|
|
|
|
|
|
+ delete_flat: true,
|
|
|
aduitlabel: '审核人',
|
|
aduitlabel: '审核人',
|
|
|
auditer: '',
|
|
auditer: '',
|
|
|
auditTitle: '审批',
|
|
auditTitle: '审批',
|
|
@@ -613,12 +613,12 @@
|
|
|
}
|
|
}
|
|
|
this.shenheForm.AuditorRemark = ''
|
|
this.shenheForm.AuditorRemark = ''
|
|
|
}
|
|
}
|
|
|
- }else {
|
|
|
|
|
|
|
+ } else {
|
|
|
if (this.shenheForm.SuccessStatus === 1){
|
|
if (this.shenheForm.SuccessStatus === 1){
|
|
|
this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)'
|
|
this.textplaceholder = '审核意见须具体、明确(含企业资质、资信、能力等内容,不少于20字)'
|
|
|
- } else{
|
|
|
|
|
- this.textplaceholder = '退回意见不能少于5个字'
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ } else {
|
|
|
|
|
+ this.textplaceholder = '退回意见不能少于5个字'
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
changeOrgUnit (val) {
|
|
changeOrgUnit (val) {
|
|
@@ -629,33 +629,33 @@
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- equipmentdialog() {
|
|
|
|
|
|
|
+ equipmentdialog () {
|
|
|
this.$refs['equipmentList'].showDialog()
|
|
this.$refs['equipmentList'].showDialog()
|
|
|
},
|
|
},
|
|
|
- performancedialog() {
|
|
|
|
|
|
|
+ performancedialog () {
|
|
|
this.$refs['performanceList'].showDialog()
|
|
this.$refs['performanceList'].showDialog()
|
|
|
},
|
|
},
|
|
|
- patentdialog() {
|
|
|
|
|
|
|
+ patentdialog () {
|
|
|
this.$refs['patentList'].showDialog()
|
|
this.$refs['patentList'].showDialog()
|
|
|
},
|
|
},
|
|
|
- winningdialog() {
|
|
|
|
|
|
|
+ winningdialog () {
|
|
|
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
|
|
|
- this.$refs["BasisInfo"].CityAry = [];
|
|
|
|
|
- this.$refs["BasisInfo"].CityAry.push(this.formData.Province);
|
|
|
|
|
- this.$refs["BasisInfo"].CityAry.push(this.formData.City);
|
|
|
|
|
- this.$refs["BasisInfo"].CityAry.push(this.formData.Street);
|
|
|
|
|
- this.$refs["BasisInfo"].LinkCityAry = [];
|
|
|
|
|
- this.$refs["BasisInfo"].LinkCityAry.push(this.formData.LinkProvince);
|
|
|
|
|
- this.$refs["BasisInfo"].LinkCityAry.push(this.formData.LinkCity);
|
|
|
|
|
- this.$refs["BasisInfo"].LinkCityAry.push(this.formData.LinkStreet);
|
|
|
|
|
- if (this.formData.CredentialFlag != "") {
|
|
|
|
|
- this.$refs["BasisInfo"].showorhid(this.formData.CredentialFlag)
|
|
|
|
|
|
|
+ this.$refs['BasisInfo'].CityAry = []
|
|
|
|
|
+ this.$refs['BasisInfo'].CityAry.push(this.formData.Province)
|
|
|
|
|
+ this.$refs['BasisInfo'].CityAry.push(this.formData.City)
|
|
|
|
|
+ this.$refs['BasisInfo'].CityAry.push(this.formData.Street)
|
|
|
|
|
+ this.$refs['BasisInfo'].LinkCityAry = []
|
|
|
|
|
+ this.$refs['BasisInfo'].LinkCityAry.push(this.formData.LinkProvince)
|
|
|
|
|
+ this.$refs['BasisInfo'].LinkCityAry.push(this.formData.LinkCity)
|
|
|
|
|
+ this.$refs['BasisInfo'].LinkCityAry.push(this.formData.LinkStreet)
|
|
|
|
|
+ if (this.formData.CredentialFlag != '') {
|
|
|
|
|
+ this.$refs['BasisInfo'].showorhid(this.formData.CredentialFlag)
|
|
|
}
|
|
}
|
|
|
if (this.formData.Status != 4) {
|
|
if (this.formData.Status != 4) {
|
|
|
this.delete_flat = false
|
|
this.delete_flat = false
|
|
@@ -663,7 +663,7 @@
|
|
|
if ((this.formData.Status > 0) && (this.formData.Status != 4)) {
|
|
if ((this.formData.Status > 0) && (this.formData.Status != 4)) {
|
|
|
this.delete_flat = false
|
|
this.delete_flat = false
|
|
|
}
|
|
}
|
|
|
- if ((this.formData.Status > 0) &&(this.authUser.Profile.IsCompanyUser==1)) {
|
|
|
|
|
|
|
+ if ((this.formData.Status > 0) && (this.authUser.Profile.IsCompanyUser==1)) {
|
|
|
this.delete_flat = false
|
|
this.delete_flat = false
|
|
|
}
|
|
}
|
|
|
this.formDataCert.WorkerTotal = this.formData.WorkerTotal
|
|
this.formDataCert.WorkerTotal = this.formData.WorkerTotal
|
|
@@ -735,29 +735,29 @@
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
- chooseAuditorShow() {
|
|
|
|
|
- this.$refs["chooseAuditor"].getorgtreelist(
|
|
|
|
|
|
|
+ chooseAuditorShow () {
|
|
|
|
|
+ this.$refs['chooseAuditor'].getorgtreelist(
|
|
|
this.formData.SupplierTypeCode
|
|
this.formData.SupplierTypeCode
|
|
|
- );
|
|
|
|
|
- this.chooseAuditorVisible = true;
|
|
|
|
|
|
|
+ )
|
|
|
|
|
+ this.chooseAuditorVisible = true
|
|
|
},
|
|
},
|
|
|
- setAuditer(val, name) {
|
|
|
|
|
- this.auditer = val;
|
|
|
|
|
- this.auditerName = name;
|
|
|
|
|
- this.chooseAuditorVisible = false;
|
|
|
|
|
|
|
+ setAuditer (val, name) {
|
|
|
|
|
+ this.auditer = val
|
|
|
|
|
+ this.auditerName = name
|
|
|
|
|
+ this.chooseAuditorVisible = false
|
|
|
// this.auditOrgChang(this.auditer)
|
|
// this.auditOrgChang(this.auditer)
|
|
|
},
|
|
},
|
|
|
- auditOrgChang() {
|
|
|
|
|
- let auditstepcode = "SECOND_TRIAL";
|
|
|
|
|
|
|
+ auditOrgChang () {
|
|
|
|
|
+ let auditstepcode = 'SECOND_TRIAL'
|
|
|
api.getAuditerByFirst(this.auditer, auditstepcode, this.$axios)
|
|
api.getAuditerByFirst(this.auditer, auditstepcode, this.$axios)
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
this.secauditerOptions = res.data.item
|
|
this.secauditerOptions = res.data.item
|
|
|
})
|
|
})
|
|
|
.catch(err => {
|
|
.catch(err => {
|
|
|
- console.error(err);
|
|
|
|
|
- });
|
|
|
|
|
|
|
+ console.error(err)
|
|
|
|
|
+ })
|
|
|
},
|
|
},
|
|
|
- isAccess() {
|
|
|
|
|
|
|
+ isAccess () {
|
|
|
this.auditBtn = false
|
|
this.auditBtn = false
|
|
|
let params = {
|
|
let params = {
|
|
|
id: this.formData.CertId,
|
|
id: this.formData.CertId,
|
|
@@ -771,7 +771,7 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- getDictOptions() {
|
|
|
|
|
|
|
+ getDictOptions () {
|
|
|
let params = {
|
|
let params = {
|
|
|
status: this.formData.Status,
|
|
status: this.formData.Status,
|
|
|
majorAduit: this.formData.ThirdAudit
|
|
majorAduit: this.formData.ThirdAudit
|
|
@@ -787,14 +787,12 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- getorgtreelist() {
|
|
|
|
|
|
|
+ getorgtreelist () {
|
|
|
let _this = this
|
|
let _this = this
|
|
|
let params = {
|
|
let params = {
|
|
|
IsInnerOrganize: 1
|
|
IsInnerOrganize: 1
|
|
|
}
|
|
}
|
|
|
- _this.$axios.get('organizes/orgalllist', {
|
|
|
|
|
- params
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ _this.$axios.get('organizes/orgalllist', {params})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
_this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
|
|
_this.orgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
|
|
|
})
|
|
})
|
|
@@ -802,14 +800,12 @@
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- getorgtreelistbydeptid() {
|
|
|
|
|
|
|
+ getorgtreelistbydeptid () {
|
|
|
let _this = this
|
|
let _this = this
|
|
|
let params = {
|
|
let params = {
|
|
|
IsInnerOrganize: 1
|
|
IsInnerOrganize: 1
|
|
|
}
|
|
}
|
|
|
- _this.$axios.get('organizes/listbydeptid', {
|
|
|
|
|
- params
|
|
|
|
|
- })
|
|
|
|
|
|
|
+ _this.$axios.get('organizes/listbydeptid', {params})
|
|
|
.then(res => {
|
|
.then(res => {
|
|
|
_this.secorgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
|
|
_this.secorgtreelist = window.toolfun_gettreejson(res.data.items, 'Id', 'Parentid', 'Id,Fullname')
|
|
|
})
|
|
})
|
|
@@ -817,7 +813,7 @@
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- auditOrgChange(val) {
|
|
|
|
|
|
|
+ auditOrgChange (val) {
|
|
|
let auditstepcode = ''
|
|
let auditstepcode = ''
|
|
|
if (this.formData.Status === '1') {
|
|
if (this.formData.Status === '1') {
|
|
|
auditstepcode = 'SECOND_TRIAL'
|
|
auditstepcode = 'SECOND_TRIAL'
|
|
@@ -827,7 +823,7 @@
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
// let deplist = []
|
|
// let deplist = []
|
|
|
- // deplist = this.companyid.split(",")
|
|
|
|
|
|
|
+ // deplist = this.companyid.split(',')
|
|
|
// let deptid = deplist[deplist.length - 1]
|
|
// let deptid = deplist[deplist.length - 1]
|
|
|
// console.log(deptid)
|
|
// console.log(deptid)
|
|
|
// this.auditerOptions = []
|
|
// this.auditerOptions = []
|
|
@@ -839,10 +835,10 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
// 保存信息
|
|
// 保存信息
|
|
|
- saveEntity() {
|
|
|
|
|
|
|
+ saveEntity () {
|
|
|
this.$refs['EntityForm'].validate((valid) => {
|
|
this.$refs['EntityForm'].validate((valid) => {
|
|
|
if (valid) {
|
|
if (valid) {
|
|
|
- // this.formData.WellNo = this.$refs.selectWellNo.selectedLabel + '';
|
|
|
|
|
|
|
+ // this.formData.WellNo = this.$refs.selectWellNo.selectedLabel + ''
|
|
|
if (!this.formData.Id) {
|
|
if (!this.formData.Id) {
|
|
|
this.addEntity()
|
|
this.addEntity()
|
|
|
} else {
|
|
} else {
|
|
@@ -855,11 +851,11 @@
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
// 保存信息
|
|
// 保存信息
|
|
|
- saveCertEntity() {
|
|
|
|
|
|
|
+ saveCertEntity () {
|
|
|
this.$refs['SupplierCertEditCompoment'].saveEntity()
|
|
this.$refs['SupplierCertEditCompoment'].saveEntity()
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- addEntity() {
|
|
|
|
|
|
|
+ addEntity () {
|
|
|
this.formData.SupplierTypeCode = '02'
|
|
this.formData.SupplierTypeCode = '02'
|
|
|
this.formData.SupplierTypeName = '基建类'
|
|
this.formData.SupplierTypeName = '基建类'
|
|
|
api.addEntity(this.formData, this.$axios).then(res => {
|
|
api.addEntity(this.formData, this.$axios).then(res => {
|
|
@@ -883,7 +879,7 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- updateEntity() {
|
|
|
|
|
|
|
+ updateEntity () {
|
|
|
api.updateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
|
|
api.updateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
if (res.data.code === 0) {
|
|
|
// 保存成功后,初始化数据,变成修改
|
|
// 保存成功后,初始化数据,变成修改
|
|
@@ -903,7 +899,7 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- CheckCompanyBase() {
|
|
|
|
|
|
|
+ CheckCompanyBase () {
|
|
|
if (!this.formData.Id) {
|
|
if (!this.formData.Id) {
|
|
|
this.$message({
|
|
this.$message({
|
|
|
type: 'error',
|
|
type: 'error',
|
|
@@ -921,7 +917,7 @@
|
|
|
return true
|
|
return true
|
|
|
},
|
|
},
|
|
|
// 企业人员结构情况
|
|
// 企业人员结构情况
|
|
|
- updateNumberEntity() {
|
|
|
|
|
|
|
+ updateNumberEntity () {
|
|
|
if (!this.CheckCompanyBase()) {
|
|
if (!this.CheckCompanyBase()) {
|
|
|
return false
|
|
return false
|
|
|
}
|
|
}
|
|
@@ -1110,7 +1106,7 @@
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- jstimehandle(val) {
|
|
|
|
|
|
|
+ jstimehandle (val) {
|
|
|
if (val === '') {
|
|
if (val === '') {
|
|
|
return '----'
|
|
return '----'
|
|
|
} else if (val === '0001-01-01T08:00:00+08:00') {
|
|
} else if (val === '0001-01-01T08:00:00+08:00') {
|
|
@@ -1123,7 +1119,7 @@
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
|
|
|
|
|
- formatDateTime(date) {
|
|
|
|
|
|
|
+ formatDateTime (date) {
|
|
|
var y = date.getFullYear()
|
|
var y = date.getFullYear()
|
|
|
var m = date.getMonth() + 1
|
|
var m = date.getMonth() + 1
|
|
|
m = m < 10 ? ('0' + m) : m
|
|
m = m < 10 ? ('0' + m) : m
|
|
@@ -1136,7 +1132,6 @@
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
<style lang="scss">
|