|
@@ -23,6 +23,7 @@
|
|
|
|
|
|
<script>
|
|
<script>
|
|
import { getTwoReviewInfo, oneClickSecondEvaluationSubmit } from '@/api/creditManage/supplierManage'
|
|
import { getTwoReviewInfo, oneClickSecondEvaluationSubmit } from '@/api/creditManage/supplierManage'
|
|
|
|
+import { validSpecialEmpty } from '@/utils/validate'
|
|
export default {
|
|
export default {
|
|
components: {
|
|
components: {
|
|
BasicInfo: () => import('./components/BasicInfo'),
|
|
BasicInfo: () => import('./components/BasicInfo'),
|
|
@@ -100,27 +101,26 @@ export default {
|
|
async oneClickCalculation() {
|
|
async oneClickCalculation() {
|
|
const data = await this.getParams()
|
|
const data = await this.getParams()
|
|
const { scopeCompliance, mapFilesCompliance, rentalFilesCompliance, waterFilesCompliance, officeFilesCompliance } = data
|
|
const { scopeCompliance, mapFilesCompliance, rentalFilesCompliance, waterFilesCompliance, officeFilesCompliance } = data
|
|
- if (scopeCompliance === undefined) {
|
|
|
|
|
|
+ if (validSpecialEmpty(scopeCompliance)) {
|
|
this.$message.warning('请选择经营范围是否达标')
|
|
this.$message.warning('请选择经营范围是否达标')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (mapFilesCompliance === undefined || !mapFilesCompliance) {
|
|
|
|
|
|
+ if (validSpecialEmpty(mapFilesCompliance)) {
|
|
this.$message.warning('请选择地点定位图是否达标')
|
|
this.$message.warning('请选择地点定位图是否达标')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (rentalFilesCompliance === undefined || !rentalFilesCompliance) {
|
|
|
|
|
|
+ if (validSpecialEmpty(rentalFilesCompliance)) {
|
|
this.$message.warning('请选择租房合同是否达标')
|
|
this.$message.warning('请选择租房合同是否达标')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (waterFilesCompliance === undefined || !waterFilesCompliance) {
|
|
|
|
- this.$message.warning('请选择房费缴纳流水是否达标')
|
|
|
|
|
|
+ if (validSpecialEmpty(waterFilesCompliance)) {
|
|
|
|
+ this.$message.warning('请选择房租缴纳流水是否达标')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (officeFilesCompliance === undefined || !officeFilesCompliance) {
|
|
|
|
- this.$message.warning('请选择办公环境是否达标')
|
|
|
|
|
|
+ if (validSpecialEmpty(officeFilesCompliance)) {
|
|
|
|
+ this.$message.warning('请选择办公环境图是否达标')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- console.log(data, 8888)
|
|
|
|
oneClickSecondEvaluationSubmit({ Loading: true, ...data }).then(({ data }) => {
|
|
oneClickSecondEvaluationSubmit({ Loading: true, ...data }).then(({ data }) => {
|
|
this.assessData = data
|
|
this.assessData = data
|
|
})
|
|
})
|
|
@@ -130,24 +130,24 @@ export default {
|
|
const auditConclusion = await this.$refs.auditConclusion.getParams()
|
|
const auditConclusion = await this.$refs.auditConclusion.getParams()
|
|
const assess = await this.$refs.assess.getParams()
|
|
const assess = await this.$refs.assess.getParams()
|
|
const { scopeCompliance, mapFilesCompliance, rentalFilesCompliance, waterFilesCompliance, officeFilesCompliance } = data
|
|
const { scopeCompliance, mapFilesCompliance, rentalFilesCompliance, waterFilesCompliance, officeFilesCompliance } = data
|
|
- if (scopeCompliance === undefined) {
|
|
|
|
|
|
+ if (validSpecialEmpty(scopeCompliance)) {
|
|
this.$message.warning('请选择经营范围是否达标')
|
|
this.$message.warning('请选择经营范围是否达标')
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
- if (mapFilesCompliance === undefined || !mapFilesCompliance) {
|
|
|
|
|
|
+ if (validSpecialEmpty(mapFilesCompliance)) {
|
|
this.$message.warning('请选择地点定位图是否达标')
|
|
this.$message.warning('请选择地点定位图是否达标')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (rentalFilesCompliance === undefined || !rentalFilesCompliance) {
|
|
|
|
|
|
+ if (validSpecialEmpty(rentalFilesCompliance)) {
|
|
this.$message.warning('请选择租房合同是否达标')
|
|
this.$message.warning('请选择租房合同是否达标')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (waterFilesCompliance === undefined || !waterFilesCompliance) {
|
|
|
|
- this.$message.warning('请选择房费缴纳流水是否达标')
|
|
|
|
|
|
+ if (validSpecialEmpty(waterFilesCompliance)) {
|
|
|
|
+ this.$message.warning('请选择房租缴纳流水是否达标')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
- if (officeFilesCompliance === undefined || !officeFilesCompliance) {
|
|
|
|
- this.$message.warning('请选择办公环境是否达标')
|
|
|
|
|
|
+ if (validSpecialEmpty(officeFilesCompliance)) {
|
|
|
|
+ this.$message.warning('请选择办公环境图是否达标')
|
|
return
|
|
return
|
|
}
|
|
}
|
|
|
|
|