|
|
@@ -1559,26 +1559,6 @@ export default {
|
|
|
})
|
|
|
return
|
|
|
}
|
|
|
- if (this.formData.OperType === '制造商') {
|
|
|
- // if (!this.formData.MaunLicense && !this.formData.SafetyLicense) {
|
|
|
- // valid1 = false
|
|
|
- // this.$message({
|
|
|
- // type: 'warning',
|
|
|
- // message: '【生产制造许可证获证情况及编号】或【安全生产许可证】 为必填项'
|
|
|
- // })
|
|
|
- // return
|
|
|
- // }
|
|
|
- } else if (this.formData.OperType === '代理商') {
|
|
|
- let countM = this.getCurrentManufactureCount1()
|
|
|
- if (countM <= 0 && this.certId) {
|
|
|
- valid1 = false
|
|
|
- this.$message({
|
|
|
- type: 'warning',
|
|
|
- message: '【所代理制造商名称】不能为空'
|
|
|
- })
|
|
|
- return
|
|
|
- }
|
|
|
- }
|
|
|
if (this.formData.InStyle === '3' && this.formData.MgrUnit === '大港油田分公司') {
|
|
|
this.$message({
|
|
|
type: 'warning',
|
|
|
@@ -1850,6 +1830,27 @@ export default {
|
|
|
return false
|
|
|
}
|
|
|
}
|
|
|
+ if (this.formData.OperType === '制造商') {
|
|
|
+ // if (!this.formData.MaunLicense && !this.formData.SafetyLicense) {
|
|
|
+ // valid1 = false
|
|
|
+ // this.$message({
|
|
|
+ // type: 'warning',
|
|
|
+ // message: '【生产制造许可证获证情况及编号】或【安全生产许可证】 为必填项'
|
|
|
+ // })
|
|
|
+ // return
|
|
|
+ // }
|
|
|
+ } else if (this.formData.OperType === '代理商') {
|
|
|
+ let countM = this.getCurrentManufactureCount1()
|
|
|
+ if (!countM && this.certId) {
|
|
|
+ // valid1 = false
|
|
|
+ this.$notify({
|
|
|
+ title: '提示',
|
|
|
+ type: 'warning',
|
|
|
+ message: '【所代理制造商名称】不能为空'
|
|
|
+ })
|
|
|
+ return false
|
|
|
+ }
|
|
|
+ }
|
|
|
this.saveEntity(1)
|
|
|
this.updateNumberEntityNoInfo()
|
|
|
apiCert.checkSupplierCertCanSubmit(this.formData.CertId, this.$axios)
|