|
@@ -1440,10 +1440,10 @@ export default {
|
|
|
console.error(err)
|
|
console.error(err)
|
|
|
})
|
|
})
|
|
|
}
|
|
}
|
|
|
- if (this.activeName === '0' &&
|
|
|
|
|
- this.formDataCert.InStyle != '2' && this.formDataCert.InStyle != '3') {
|
|
|
|
|
|
|
+ const InStyleNum = parseInt(this.formData.InStyle)
|
|
|
|
|
+ if (this.activeName === '0' && this.isInvestigate === true && InStyleNum !== 2 && InStyleNum !== 3) {
|
|
|
// 准入方式,除一级二级外其他需要考察报告
|
|
// 准入方式,除一级二级外其他需要考察报告
|
|
|
- if (!this.$refs['GoodsInfo'].isscenefile) {
|
|
|
|
|
|
|
+ if (!this.$refs['GoodsInfo'].isscenefile) { // 是否已经上传现场考察报告
|
|
|
this.$notify({
|
|
this.$notify({
|
|
|
title: '提示',
|
|
title: '提示',
|
|
|
message: '请上传现场考察报告!',
|
|
message: '请上传现场考察报告!',
|
|
@@ -1504,7 +1504,7 @@ export default {
|
|
|
this.UnitOrgOptions = list
|
|
this.UnitOrgOptions = list
|
|
|
this.allorgunitOptions = res.data.items['Allunitorglist']
|
|
this.allorgunitOptions = res.data.items['Allunitorglist']
|
|
|
// 系统参数设置: 是否需要现场考察报告
|
|
// 系统参数设置: 是否需要现场考察报告
|
|
|
- this.isInvestigate = res.data.items['isInvestigate'] === 'true'
|
|
|
|
|
|
|
+ this.isInvestigate = (res.data.items['isInvestigate'] === 'true')
|
|
|
this.orgUnitChange(this.UnitOrg, 'init')
|
|
this.orgUnitChange(this.UnitOrg, 'init')
|
|
|
// this.auditerOptions = res.data.items['Auditer']
|
|
// this.auditerOptions = res.data.items['Auditer']
|
|
|
// this.organizeOption = res.data.items['Organizes']
|
|
// this.organizeOption = res.data.items['Organizes']
|
|
@@ -1866,8 +1866,8 @@ export default {
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
commitAudit () {
|
|
commitAudit () {
|
|
|
- if (this.formDataCert.InStyle != '2' && this.formDataCert.InStyle != '3') {
|
|
|
|
|
- console.log(this.$refs['GoodsInfo'].isscenefile, 'DA11')
|
|
|
|
|
|
|
+ const InStyleNum = parseInt(this.formData.InStyle)
|
|
|
|
|
+ if (this.isInvestigate === true && InStyleNum !== 2 && InStyleNum !== 3) {
|
|
|
// 准入方式,除一级二级外其他需要考察报告
|
|
// 准入方式,除一级二级外其他需要考察报告
|
|
|
if (!this.$refs['GoodsInfo'].isscenefile) {
|
|
if (!this.$refs['GoodsInfo'].isscenefile) {
|
|
|
this.$notify({
|
|
this.$notify({
|