|
|
@@ -265,7 +265,7 @@
|
|
|
</el-option>
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="专业处室">
|
|
|
+ <el-form-item label="专业处室" v-if="allowpre">
|
|
|
<!--<el-cascader :options="orgtreelist" :props="orgtreeprops" :show-all-levels="false" filterable-->
|
|
|
<!--style="width: 100%" v-model="majorDept" placeholder="请选择专业处室" @change="orgtreeChange">-->
|
|
|
<!--</el-cascader>-->
|
|
|
@@ -379,29 +379,30 @@
|
|
|
},
|
|
|
name: 'oilsupplierEdit',
|
|
|
|
|
|
- data() {
|
|
|
+ data () {
|
|
|
var checkWorkerTotal = (rule, value, callback) => {
|
|
|
if (value <= 0) {
|
|
|
return callback(new Error('企业员工总数必须大于0'))
|
|
|
} else {
|
|
|
callback()
|
|
|
}
|
|
|
- };
|
|
|
- var checkTechnicalNum = (rule, value, callback) => {
|
|
|
+ }
|
|
|
+ var checkTechnicalNum = (rule, value, callback) => {
|
|
|
if (value <= 0) {
|
|
|
return callback(new Error('技术、管理人员数量必须大于0'))
|
|
|
} else {
|
|
|
callback()
|
|
|
}
|
|
|
- };
|
|
|
- var checkSkillerTotal = (rule, value, callback) => {
|
|
|
+ }
|
|
|
+ var checkSkillerTotal = (rule, value, callback) => {
|
|
|
if (value <= 0) {
|
|
|
return callback(new Error('技术工人总数必须大于0'))
|
|
|
} else {
|
|
|
callback()
|
|
|
}
|
|
|
- };
|
|
|
- return {
|
|
|
+ }
|
|
|
+ return {
|
|
|
+ allowpre: true,
|
|
|
totalTab: 3,
|
|
|
activeName: '0',
|
|
|
chooseAuditorVisible: false,
|
|
|
@@ -410,7 +411,7 @@
|
|
|
IsCompanyUser: 0,
|
|
|
dialogVisible: false,
|
|
|
canUpdateSupplier: true,
|
|
|
- fushenauditer: '', //复审人员
|
|
|
+ fushenauditer: '', // 复审人员
|
|
|
majorDept: [],
|
|
|
userOptions: [],
|
|
|
secauditerOptions: [],
|
|
|
@@ -438,11 +439,11 @@
|
|
|
certId: '',
|
|
|
classId: '03',
|
|
|
auditform: {
|
|
|
- FirstAuditName: "",
|
|
|
- SecondAudit: "",
|
|
|
- ThirdAudit: "",
|
|
|
- CertId: "",
|
|
|
- AuditRemark: ""
|
|
|
+ FirstAuditName: '',
|
|
|
+ SecondAudit: '',
|
|
|
+ ThirdAudit: '',
|
|
|
+ CertId: '',
|
|
|
+ AuditRemark: ''
|
|
|
},
|
|
|
orgtreeprops: {
|
|
|
value: 'id',
|
|
|
@@ -481,7 +482,7 @@
|
|
|
QualitySystemCert: '',
|
|
|
ProductQualityCert: '',
|
|
|
MaunLicense: '',
|
|
|
- PACNumber: "",
|
|
|
+ PACNumber: '',
|
|
|
QualifCert: '',
|
|
|
QualifCertLevel: '',
|
|
|
SafetyLicense: '',
|
|
|
@@ -567,17 +568,17 @@
|
|
|
flag: '03',
|
|
|
rules: {
|
|
|
WorkerTotal: [{
|
|
|
- required:true,
|
|
|
+ required: true,
|
|
|
validator: checkWorkerTotal,
|
|
|
trigger: 'blur'
|
|
|
}],
|
|
|
TechnicalNum: [{
|
|
|
- required:true,
|
|
|
+ required: true,
|
|
|
validator: checkTechnicalNum,
|
|
|
trigger: 'blur'
|
|
|
}],
|
|
|
SkillerTotal: [{
|
|
|
- required:true,
|
|
|
+ required: true,
|
|
|
validator: checkSkillerTotal,
|
|
|
trigger: 'blur'
|
|
|
}]
|
|
|
@@ -589,11 +590,11 @@
|
|
|
SupplierName: '',
|
|
|
SupplierId: 0,
|
|
|
SupplierCertId: 0,
|
|
|
- RecUnitFlag: '', //推荐单位的级联Id标记
|
|
|
- RecUnitId: '', //推荐单位编码
|
|
|
- RecUnitName: '', //推荐单位名称
|
|
|
- AppendType: '', //增项类别(01 物资类,02 基建类,03 技术服务类)
|
|
|
- Remark: '', //备注
|
|
|
+ RecUnitFlag: '', // 推荐单位的级联Id标记
|
|
|
+ RecUnitId: '', // 推荐单位编码
|
|
|
+ RecUnitName: '', // 推荐单位名称
|
|
|
+ AppendType: '', // 增项类别(01 物资类,02 基建类,03 技术服务类)
|
|
|
+ Remark: '' // 备注
|
|
|
},
|
|
|
annentityForm: {
|
|
|
Id: '',
|
|
|
@@ -604,10 +605,10 @@
|
|
|
auditer: '',
|
|
|
Step: 0,
|
|
|
Remark: ''
|
|
|
- },
|
|
|
+ }
|
|
|
}
|
|
|
},
|
|
|
- mounted() {
|
|
|
+ mounted () {
|
|
|
this.serviceId = this.$route.params.opera + ''
|
|
|
if (this.$route.query.rtn) {
|
|
|
this.showReturn = 0
|
|
|
@@ -622,7 +623,7 @@
|
|
|
}
|
|
|
this.IsCompanyUser = this.authUser.Profile.IsCompanyUser
|
|
|
this.getDictOptions()
|
|
|
- //this.getorgtreelist()
|
|
|
+ // this.getorgtreelist()
|
|
|
if (this.IsCompanyUser && this.serviceId === 'add') {
|
|
|
// apiCert.getEntityByCreatorAndType('03', this.$axios).then(res => {
|
|
|
// this.certId = res.data.Id
|
|
|
@@ -640,43 +641,43 @@
|
|
|
// this.changeOrgUnit(this.selectDept)
|
|
|
},
|
|
|
methods: {
|
|
|
- nextStep(){
|
|
|
- this.$refs["subfileList"].nextStep();
|
|
|
- },
|
|
|
- annaudit() {
|
|
|
+ nextStep () {
|
|
|
+ this.$refs['subfileList'].nextStep()
|
|
|
+ },
|
|
|
+ annaudit () {
|
|
|
this.annentityForm.supplierId = parseInt(this.serviceId)
|
|
|
this.annentityForm.SupplierName = this.formData.SupplierName
|
|
|
- console.log("----this.ann",this.annentityForm)
|
|
|
+ console.log('----this.ann', this.annentityForm)
|
|
|
annapi.addEntity(this.annentityForm, this.annentityForm.auditer, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
- //保存成功后,初始化数据,变成修改
|
|
|
- let annId= res.data.item;
|
|
|
- this.$router.push({
|
|
|
+ // 保存成功后,初始化数据,变成修改
|
|
|
+ let annId = res.data.item
|
|
|
+ this.$router.push({
|
|
|
path: '/oilsupplier/annualaudit/' + this.serviceId + '/operation',
|
|
|
query: {
|
|
|
certid: this.certId,
|
|
|
- //WorkflowId: ,
|
|
|
+ // WorkflowId: ,
|
|
|
Status: 0,
|
|
|
Step: 1,
|
|
|
- annualId: annId,
|
|
|
+ annualId: annId
|
|
|
}
|
|
|
})
|
|
|
this.$message({
|
|
|
type: 'success',
|
|
|
message: res.data.message
|
|
|
- });
|
|
|
+ })
|
|
|
|
|
|
- } else {
|
|
|
+ } else {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
|
- });
|
|
|
- }
|
|
|
+ })
|
|
|
+ }
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
- });
|
|
|
- },
|
|
|
- qppend() {
|
|
|
+ })
|
|
|
+ },
|
|
|
+ qppend () {
|
|
|
let _this = this
|
|
|
_this.appendformData.SupplierName = this.formData.SupplierName
|
|
|
_this.appendformData.SupplierId = parseInt(this.serviceId)
|
|
|
@@ -685,18 +686,18 @@
|
|
|
_this.$axios.post('/suppliercertappend/addappend/', _this.appendformData)
|
|
|
.then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
- //this.entityList = res.data.item
|
|
|
+ // this.entityList = res.data.item
|
|
|
let AppendId = res.data.info
|
|
|
this.$router.push({
|
|
|
path: `/oilsupplier/supplierappend/3/techdataopera`,
|
|
|
query: {
|
|
|
Id: AppendId,
|
|
|
- editFlag: 1 //编辑标记: 1 修改,0 不修改
|
|
|
+ editFlag: 1 // 编辑标记: 1 修改,0 不修改
|
|
|
}
|
|
|
})
|
|
|
_this.$message({
|
|
|
type: 'success',
|
|
|
- message: res.data.message,
|
|
|
+ message: res.data.message
|
|
|
})
|
|
|
} else {
|
|
|
_this.$message({
|
|
|
@@ -708,9 +709,8 @@
|
|
|
.catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
-
|
|
|
},
|
|
|
- //导出到Word文件
|
|
|
+ // 导出到Word文件
|
|
|
toWord () {
|
|
|
let id = this.formData.Id
|
|
|
dataapi.docexport(id, this.$axios)
|
|
|
@@ -734,7 +734,7 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- //导出准入范围到pdf
|
|
|
+ // 导出准入范围到pdf
|
|
|
toPdf () {
|
|
|
let id = this.formData.Id
|
|
|
dataapi.pdfexport(id, this.$axios)
|
|
|
@@ -774,8 +774,8 @@
|
|
|
}
|
|
|
}
|
|
|
}).catch(err => {
|
|
|
- console.error(err)
|
|
|
- })
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
},
|
|
|
orgunitChange (val) {
|
|
|
let deptid = val
|
|
|
@@ -794,7 +794,7 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- orgtreeChange(val) {
|
|
|
+ orgtreeChange (val) {
|
|
|
this.userOptions = []
|
|
|
let deptid = val[val.length - 1]
|
|
|
let auditstepcode = 'PROF_RECE'
|
|
|
@@ -804,9 +804,9 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- inputCompany(val) {
|
|
|
+ inputCompany (val) {
|
|
|
if (!this.certId) {
|
|
|
- api.getEntityByName(val,'03', this.$axios).then(res => {
|
|
|
+ api.getEntityByName(val, '03', this.$axios).then(res => {
|
|
|
if (res.data) {
|
|
|
this.SetFormData(res.data)
|
|
|
}
|
|
|
@@ -815,33 +815,33 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- changeFormData(fdata) {
|
|
|
+ changeFormData (fdata) {
|
|
|
if (!this.certId) {
|
|
|
this.SetFormData(fdata)
|
|
|
}
|
|
|
},
|
|
|
- SetFormData(fdata) {
|
|
|
- this.isCanUpdateSupplier(fdata.Id)
|
|
|
+ SetFormData (fdata) {
|
|
|
+ this.isCanUpdateSupplier(fdata.Id)
|
|
|
this.formData.Id = fdata.Id
|
|
|
this.formData.SupplierName = fdata.SupplierName
|
|
|
this.formData.OilCertificateNo = fdata.OilCertificateNo
|
|
|
this.formData.Grade = fdata.Grade
|
|
|
this.formData.MgrUnit = fdata.MgrUnit
|
|
|
- if(fdata.InStyle!=null && fdata.InStyle!=""){
|
|
|
- this.formData.InStyle = fdata.InStyle
|
|
|
+ if (fdata.InStyle != null && fdata.InStyle != '') {
|
|
|
+ this.formData.InStyle = fdata.InStyle
|
|
|
}
|
|
|
this.formData.OperType = fdata.OperType
|
|
|
- if(fdata.Country!=""){
|
|
|
- this.formData.Country = fdata.Country;
|
|
|
- }
|
|
|
+ if (fdata.Country != '') {
|
|
|
+ this.formData.Country = fdata.Country
|
|
|
+ }
|
|
|
this.formData.MaunAgent = fdata.MaunAgent
|
|
|
this.formData.ConstructTeam = fdata.ConstructTeam
|
|
|
- if(fdata.CredentialFlag!=null&&fdata.CredentialFlag!=""){
|
|
|
+ if (fdata.CredentialFlag != null && fdata.CredentialFlag != '') {
|
|
|
this.formData.CredentialFlag = fdata.CredentialFlag
|
|
|
}
|
|
|
this.formData.CommercialNo = fdata.CommercialNo
|
|
|
- if (fdata.CredentialFlag!=null&&fdata.CredentialFlag!="") {
|
|
|
- this.$refs["TechInfo"].showorhid(this.formData.CredentialFlag)
|
|
|
+ if (fdata.CredentialFlag != null && fdata.CredentialFlag != '') {
|
|
|
+ this.$refs['TechInfo'].showorhid(this.formData.CredentialFlag)
|
|
|
}
|
|
|
this.formData.OrganCode = fdata.OrganCode
|
|
|
this.formData.CountryTaxNo = fdata.CountryTaxNo
|
|
|
@@ -862,12 +862,12 @@
|
|
|
this.formData.CategoryCode = fdata.CategoryCode
|
|
|
this.formData.CategoryName = fdata.CategoryName
|
|
|
this.formData.RegCapital = fdata.RegCapital
|
|
|
- if(fdata.Currency!=null && fdata.Currency!=""){
|
|
|
- this.formData.Currency = fdata.Currency
|
|
|
+ if (fdata.Currency != null && fdata.Currency != '') {
|
|
|
+ this.formData.Currency = fdata.Currency
|
|
|
}
|
|
|
this.formData.ContactName = fdata.ContactName
|
|
|
|
|
|
- if(fdata.CompanyType!=null && fdata.CompanyType!=""){
|
|
|
+ if (fdata.CompanyType != null && fdata.CompanyType != '') {
|
|
|
this.formData.CompanyType = fdata.CompanyType
|
|
|
}
|
|
|
this.formData.SetupTime = fdata.SetupTime
|
|
|
@@ -875,21 +875,21 @@
|
|
|
this.formData.BankAccount = fdata.BankAccount
|
|
|
this.formData.EMail = fdata.EMail
|
|
|
this.formData.BankCreditRating = fdata.BankCreditRating
|
|
|
- if(fdata.Mobile!=null && fdata.Mobile!=""){
|
|
|
- this.formData.Mobile = fdata.Mobile;
|
|
|
- }else{
|
|
|
- this.formData.Mobile = fdata.UserTelephone;
|
|
|
- }
|
|
|
+ if (fdata.Mobile != null && fdata.Mobile != '') {
|
|
|
+ this.formData.Mobile = fdata.Mobile
|
|
|
+ }else {
|
|
|
+ this.formData.Mobile = fdata.UserTelephone
|
|
|
+ }
|
|
|
this.formData.Telphone = fdata.Telphone
|
|
|
this.formData.Fax = fdata.Fax
|
|
|
this.formData.CompanyTel = fdata.CompanyTel
|
|
|
this.formData.QQ = fdata.QQ
|
|
|
this.formData.CompanyUrl = fdata.CompanyUrl
|
|
|
- if(fdata.HseTraining!=null && fdata.HseTraining!=""){
|
|
|
- this.formData.HseTraining = fdata.HseTraining
|
|
|
+ if (fdata.HseTraining != null && fdata.HseTraining != '') {
|
|
|
+ this.formData.HseTraining = fdata.HseTraining
|
|
|
}
|
|
|
- if(fdata.SpecTypeCode!=null && fdata.SpecTypeCode!=""){
|
|
|
- this.formData.SpecTypeCode = fdata.SpecTypeCode
|
|
|
+ if (fdata.SpecTypeCode != null && fdata.SpecTypeCode != '') {
|
|
|
+ this.formData.SpecTypeCode = fdata.SpecTypeCode
|
|
|
}
|
|
|
this.formData.QualitySystemCert = fdata.QualitySystemCert
|
|
|
this.formData.QualifCert = fdata.QualifCert
|
|
|
@@ -903,43 +903,41 @@
|
|
|
this.formData.MaunLicense = fdata.MaunLicense
|
|
|
this.formData.PACNumber = fdata.PACNumber
|
|
|
|
|
|
-
|
|
|
- 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'].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 () {
|
|
|
if (this.formData.Id) {
|
|
|
this.isCanUpdateSupplier(this.formData.Id)
|
|
|
api.getEntityAndCert(this.certId, this.$axios).then(res => {
|
|
|
@@ -957,32 +955,32 @@
|
|
|
this.formDataCert.Status = this.formData.Status
|
|
|
this.formDataCert.WorkflowId = this.formData.WorkflowId
|
|
|
this.formDataCert.InStyle = this.formData.InStyle
|
|
|
- if (this.formData.Status > 0 || this.formData.Status == -5 ) {
|
|
|
+ if (this.formData.Status > 0 || this.formData.Status == -5) {
|
|
|
this.add_flat = false
|
|
|
}
|
|
|
if ((this.formData.Status > 0) && (this.formData.Status != 4)) {
|
|
|
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
|
|
|
}
|
|
|
- if (this.formData.CredentialFlag != "") {
|
|
|
- this.$refs["TechInfo"].showorhid(this.formData.CredentialFlag)
|
|
|
+ if (this.formData.CredentialFlag != '') {
|
|
|
+ this.$refs['TechInfo'].showorhid(this.formData.CredentialFlag)
|
|
|
}
|
|
|
this.formDataCert.WorkflowId = this.formData.WorkflowId
|
|
|
- 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'].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(',')
|
|
|
- }*/
|
|
|
+ } */
|
|
|
|
|
|
this.entrydetail.business = this.certId
|
|
|
this.entrydetail.instance = this.formDataCert.WorkflowId
|
|
|
@@ -991,7 +989,7 @@
|
|
|
this.backhistroy.workflowId = 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)
|
|
|
this.$refs['performanceList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
this.$refs['patentList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
@@ -999,17 +997,22 @@
|
|
|
this.$refs['techList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId)
|
|
|
this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId, this
|
|
|
.formDataCert.InStyle)
|
|
|
+ console.log('this.formData.InStyle1', this.formData.InStyle)
|
|
|
+ if (this.formData.InStyle == '2' || this.formData.InStyle == '6') {
|
|
|
+ console.log('this.formData.InStyle2', this.formData.InStyle)
|
|
|
+ this.allowpre = false
|
|
|
+ }
|
|
|
}).catch(err => {
|
|
|
console.error(err)
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
- getbuslist() {
|
|
|
+ getbuslist () {
|
|
|
this.$refs['subfileList'].getvalue(this.formData.Id, this.formData.SupplierTypeCode, this.certId, this
|
|
|
.formDataCert.InStyle)
|
|
|
},
|
|
|
|
|
|
- getDictOptions() {
|
|
|
+ getDictOptions () {
|
|
|
let params = {
|
|
|
status: this.formData.Status,
|
|
|
majorAduit: this.formData.ThirdAudit
|
|
|
@@ -1029,14 +1032,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) {
|
|
|
@@ -1050,19 +1053,19 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- auditOrgChang(val) {
|
|
|
- console.log("------val", val)
|
|
|
- let auditstepcode = "SECOND_TRIAL";
|
|
|
+ auditOrgChang (val) {
|
|
|
+ console.log('------val', val)
|
|
|
+ let auditstepcode = 'SECOND_TRIAL';
|
|
|
api
|
|
|
.getAuditerByFirst(val, auditstepcode, this.$axios)
|
|
|
.then(res => {
|
|
|
this.secauditerOptions = res.data.item
|
|
|
})
|
|
|
.catch(err => {
|
|
|
- console.error(err);
|
|
|
- });
|
|
|
- },
|
|
|
- nextTab() {
|
|
|
+ console.error(err)
|
|
|
+ })
|
|
|
+ },
|
|
|
+ nextTab () {
|
|
|
if (this.formData.AuditIndex > 0) {
|
|
|
this.totalTab = 4
|
|
|
}
|
|
|
@@ -1081,7 +1084,7 @@
|
|
|
valid = this.saveEntity()
|
|
|
} else if (this.formDataCert.Status <= 0 && this.activeName === '1') {
|
|
|
valid = this.updateNumberEntity()
|
|
|
- valid = true//没办法中的办法
|
|
|
+ valid = true// 没办法中的办法
|
|
|
}
|
|
|
if (!valid) {
|
|
|
return false
|
|
|
@@ -1092,10 +1095,10 @@
|
|
|
} else {
|
|
|
this.activeName = '0'
|
|
|
}
|
|
|
- document.querySelector(".content").scrollTop=0
|
|
|
+ document.querySelector('.content').scrollTop = 0
|
|
|
},
|
|
|
|
|
|
- backTab() {
|
|
|
+ backTab () {
|
|
|
if (this.formData.AuditIndex > 0) {
|
|
|
this.totalTab = 4
|
|
|
}
|
|
|
@@ -1115,7 +1118,7 @@
|
|
|
} else {
|
|
|
this.activeName = this.totalTab + ''
|
|
|
}
|
|
|
- document.querySelector(".content").scrollTop=0
|
|
|
+ document.querySelector('.content').scrollTop = 0
|
|
|
},
|
|
|
/* getCityList(val) {
|
|
|
let resultData = JSON.parse(val)
|
|
|
@@ -1125,7 +1128,7 @@
|
|
|
}, */
|
|
|
|
|
|
// 保存信息
|
|
|
- saveEntity() {
|
|
|
+ saveEntity () {
|
|
|
let valid1 = false
|
|
|
let valid2 = false
|
|
|
|
|
|
@@ -1133,7 +1136,7 @@
|
|
|
valid1 = valid
|
|
|
})
|
|
|
|
|
|
- this.$refs["TechInfo"].$refs["EntityFormCert"].validate(vvalid => {
|
|
|
+ this.$refs['TechInfo'].$refs['EntityFormCert'].validate(vvalid => {
|
|
|
valid2 = vvalid
|
|
|
})
|
|
|
|
|
|
@@ -1154,15 +1157,14 @@
|
|
|
} else {
|
|
|
return false
|
|
|
}
|
|
|
-
|
|
|
},
|
|
|
|
|
|
// 保存信息
|
|
|
- saveCertEntity() {
|
|
|
+ saveCertEntity () {
|
|
|
this.$refs['SupplierCertEditCompoment'].saveEntity()
|
|
|
},
|
|
|
|
|
|
- addEntity() {
|
|
|
+ addEntity () {
|
|
|
this.formData.SupplierTypeCode = '03'
|
|
|
this.formData.SupplierTypeName = '技术服务类'
|
|
|
api.addEntity(this.formData, this.$axios).then(res => {
|
|
|
@@ -1186,17 +1188,17 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- updateEntity() {
|
|
|
+ updateEntity () {
|
|
|
api.updateEntity(this.formData.Id, this.formData, this.$axios).then(res => {
|
|
|
if (res.data.code === 0) {
|
|
|
- //更新子表
|
|
|
+ // 更新子表
|
|
|
// this.updateNumberEntity()
|
|
|
- this.initDatas();
|
|
|
- this.$message({
|
|
|
- type: "success",
|
|
|
- message: res.data.message
|
|
|
- });
|
|
|
- } else {
|
|
|
+ this.initDatas()
|
|
|
+ this.$message({
|
|
|
+ type: 'success',
|
|
|
+ message: res.data.message
|
|
|
+ })
|
|
|
+ } else {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
message: res.data.message
|
|
|
@@ -1207,7 +1209,7 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- CheckCompanyBase() {
|
|
|
+ CheckCompanyBase () {
|
|
|
if (!this.formData.Id) {
|
|
|
this.$message({
|
|
|
type: 'error',
|
|
|
@@ -1225,7 +1227,7 @@
|
|
|
return true
|
|
|
},
|
|
|
// 企业人员结构情况
|
|
|
- updateNumberEntity() {
|
|
|
+ updateNumberEntity () {
|
|
|
this.$refs['EntityFormNumber'].validate((valid) => {
|
|
|
if (valid) {
|
|
|
if (!this.CheckCompanyBase()) {
|
|
|
@@ -1251,40 +1253,40 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
} else {
|
|
|
- return false;
|
|
|
- }
|
|
|
+ return false
|
|
|
+ }
|
|
|
})
|
|
|
},
|
|
|
- selectAuditOrg() {
|
|
|
- console.log("----this.IsCompanyUser", this.IsCompanyUser)
|
|
|
+ selectAuditOrg () {
|
|
|
+ console.log('----this.IsCompanyUser', this.IsCompanyUser)
|
|
|
if (this.IsCompanyUser === 0) {
|
|
|
this.dialogVisible = true
|
|
|
} else if (this.IsCompanyUser === 1) {
|
|
|
this.dialogVisibleCom = 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
|
|
|
this.auditOrgChang(this.auditer)
|
|
|
},
|
|
|
- chooseAuditorShowFen() {
|
|
|
- console.log("--this.formData.SupplierTypeCode----", this.formData.SupplierTypeCode)
|
|
|
+ chooseAuditorShowFen () {
|
|
|
+ console.log('--this.formData.SupplierTypeCode----', this.formData.SupplierTypeCode)
|
|
|
this.$refs['chooseAuditorFen'].getorgtreelist(this.formData.SupplierTypeCode)
|
|
|
this.chooseAuditorVisibleFen = true
|
|
|
},
|
|
|
- setAuditerFen(val, name) {
|
|
|
+ setAuditerFen (val, name) {
|
|
|
this.auditer = val
|
|
|
this.auditerName = name
|
|
|
this.chooseAuditorVisibleFen = false
|
|
|
},
|
|
|
- AuditEntity() {
|
|
|
- //this.auditer = val
|
|
|
+ AuditEntity () {
|
|
|
+ // this.auditer = val
|
|
|
if (this.auditer === '') {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
@@ -1292,26 +1294,30 @@
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.fushenauditer === "") {
|
|
|
+ if (this.fushenauditer === '') {
|
|
|
this.$message({
|
|
|
- type: "warning",
|
|
|
- message: "请选择复审人!"
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择复审人!'
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.selectDept === 0 || this.selectDept == '') {
|
|
|
- this.$message({
|
|
|
- type: "warning",
|
|
|
- message: "请选择专业处室!"
|
|
|
- })
|
|
|
- return
|
|
|
+ if (this.formData.InStyle != '2' && this.formData.InStyle != '6') {
|
|
|
+ if (this.selectDept === 0 || this.selectDept == '') {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '请选择专业处室!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
- if (this.userOptions == null || this.userOptions.length === 0) {
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '该专业科室未配置接收人!'
|
|
|
- })
|
|
|
- return
|
|
|
+ if (this.formData.InStyle != '2' && this.formData.InStyle != '6') {
|
|
|
+ if (this.userOptions == null || this.userOptions.length === 0) {
|
|
|
+ this.$message({
|
|
|
+ type: 'warning',
|
|
|
+ message: '该专业科室未配置接收人!'
|
|
|
+ })
|
|
|
+ return
|
|
|
+ }
|
|
|
}
|
|
|
this.applyLoading = true
|
|
|
this.auditform.FirstAuditName = this.auditer
|
|
|
@@ -1339,7 +1345,7 @@
|
|
|
console.error(err)
|
|
|
})
|
|
|
},
|
|
|
- SubpEntity() {
|
|
|
+ SubpEntity () {
|
|
|
if (this.orgauditOptions == null || this.orgauditOptions.length === 0) {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
@@ -1357,7 +1363,7 @@
|
|
|
this.applyLoading = true
|
|
|
this.auditform.FirstAuditName = this.UnitOrg
|
|
|
this.auditform.CertId = this.certId
|
|
|
- console.log("--this.audiform--", this.auditform)
|
|
|
+ console.log('--this.audiform--', this.auditform)
|
|
|
apiCert
|
|
|
.auditEntity(this.certId, this.auditform, this.$axios)
|
|
|
.then(res => {
|
|
|
@@ -1366,15 +1372,15 @@
|
|
|
this.initDatas()
|
|
|
this.dialogVisibleCom = false
|
|
|
this.$message({
|
|
|
- type: "success",
|
|
|
+ type: 'success',
|
|
|
message: res.data.message
|
|
|
- });
|
|
|
- } else {
|
|
|
+ })
|
|
|
+ } else {
|
|
|
this.$message({
|
|
|
- type: "warning",
|
|
|
+ type: 'warning',
|
|
|
message: res.data.message
|
|
|
- });
|
|
|
- }
|
|
|
+ })
|
|
|
+ }
|
|
|
this.applyLoading = false
|
|
|
})
|
|
|
.catch(err => {
|
|
|
@@ -1382,7 +1388,7 @@
|
|
|
})
|
|
|
},
|
|
|
|
|
|
- jstimehandle(val) {
|
|
|
+ jstimehandle (val) {
|
|
|
if (val === '') {
|
|
|
return '----'
|
|
|
} else if (val === '0001-01-01T08:00:00+08:00') {
|
|
|
@@ -1395,7 +1401,7 @@
|
|
|
}
|
|
|
},
|
|
|
|
|
|
- formatDateTime(date) {
|
|
|
+ formatDateTime (date) {
|
|
|
var y = date.getFullYear()
|
|
|
var m = date.getMonth() + 1
|
|
|
m = m < 10 ? ('0' + m) : m
|
|
|
@@ -1408,7 +1414,6 @@
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
</script>
|
|
|
|
|
|
<style>
|