国内外校验优化

This commit is contained in:
SUNJIABIN
2023-03-26 13:04:43 +08:00
parent d2562746ae
commit ecc1a9d4e7
@@ -1957,6 +1957,11 @@
this.checkIsOnly() this.checkIsOnly()
} }
}, },
'form.standName' : {
handler: function() {
this.checkIsOnly()
}
},
'form.standNumber' : { 'form.standNumber' : {
handler: function() { handler: function() {
this.checkIsOnly() this.checkIsOnly()
@@ -2129,10 +2134,11 @@
} }
if (this.form.standInData === '0') { if (this.form.standInData === '0') {
standType = 'INLAND' standType = 'INLAND'
if(this.form.standSort && this.form.standNumber && this.form.standYear){ if(this.form.standSort && this.form.standNumber && this.form.standYear && this.form.standName){
this.$http.get('sarStandardsInfo/sar-standards-info/checkIsOnly', { this.$http.get('sarStandardsInfo/sar-standards-info/checkIsOnly', {
standType: standType, standType: standType,
standSort: this.form.standSort, standSort: this.form.standSort,
standName: this.form.standName,
standNumber: this.form.standNumber, standNumber: this.form.standNumber,
standYear: this.form.standYear, standYear: this.form.standYear,
}, { }, {
@@ -2146,10 +2152,11 @@
} }
} else { } else {
standType = 'FOREIGN' standType = 'FOREIGN'
if(this.form.standSort && this.form.standNumber){ if(this.form.standSort && this.form.standNumber && this.form.standName){
this.$http.get('sarStandardsInfo/sar-standards-info/checkIsOnly', { this.$http.get('sarStandardsInfo/sar-standards-info/checkIsOnly', {
standType: standType, standType: standType,
standSort: this.form.standSort, standSort: this.form.standSort,
standName: this.form.standName,
standNumber: this.form.standNumber, standNumber: this.form.standNumber,
standYear: this.form.standYear, standYear: this.form.standYear,
}, { }, {
@@ -3680,6 +3687,7 @@
this.$http.get('sarStandardsInfo/sar-standards-info/checkIsOnly', { this.$http.get('sarStandardsInfo/sar-standards-info/checkIsOnly', {
standType: standType, standType: standType,
standSort: this.form.standSort, standSort: this.form.standSort,
standName: this.form.standName,
standNumber: this.form.standNumber, standNumber: this.form.standNumber,
standYear: this.form.standYear, standYear: this.form.standYear,
}, { }, {