diff --git a/src/common/verify/index.js b/src/common/verify/index.js index 2f030082a..b217a4af9 100644 --- a/src/common/verify/index.js +++ b/src/common/verify/index.js @@ -24,8 +24,9 @@ export default { * */ validateStandardItem (rule, value, callback) { // return callback() - let testval = /^[A-Za-z0-9/ ,.-\\-()()]+$/ - if (value && !value.match(testval)) { + let testval = /^[A-Za-z0-9/]+$/ + let testval1 = /[.-]+/ + if (value && !value.match(testval) && !value.match(testval1)) { return callback(new Error('只能为(字母、数字、.、-)')) } else { callback() @@ -457,9 +458,9 @@ export default { callback() } }, - // 验证输入数字和英文 + // 验证输入数字 testNumberCode (rule, value, callback) { - let reg = /[0-9\-]/ + let reg = /^[0-9]*$/ if (value !== '' && !value.match(reg)) { return callback(new Error('只能输入数字')) } else { diff --git a/src/components/CustomFormComponents/InputForStandards.vue b/src/components/CustomFormComponents/InputForStandards.vue index 2ce3f679f..0afef8433 100644 --- a/src/components/CustomFormComponents/InputForStandards.vue +++ b/src/components/CustomFormComponents/InputForStandards.vue @@ -59,7 +59,7 @@ type="primary" class="common-button-primary" round - @click="getReplaceLawsNumRowFirst"> + @click="getReplaceLawsNumRowFirst(true)"> @@ -217,7 +217,10 @@ export default { this.getReplaceLawsNumRow() }, // 代替政策号 请求数据 - getReplaceLawsNumRowFirst () { + getReplaceLawsNumRowFirst (val) { + if (val) { + this.replaceLawsNumForm.page = '1' + } if (this.sarBussionessLawsEO.replaceLawsNum !== null && this.sarBussionessLawsEO.replaceLawsNum !== '') { this.replaceLawsNumForm.quoteIdList = this.quoteIdList1.toString() === '' ? '' : this.quoteIdList1 } else { diff --git a/src/components/CustomFormComponents/InputForStandardsForForeign.vue b/src/components/CustomFormComponents/InputForStandardsForForeign.vue index 31d90ad21..08d4408ee 100644 --- a/src/components/CustomFormComponents/InputForStandardsForForeign.vue +++ b/src/components/CustomFormComponents/InputForStandardsForForeign.vue @@ -53,7 +53,7 @@ type="primary" class="common-button-primary" round - @click="getReplaceLawsNumRow"> + @click="getReplaceLawsNumRow(true)"> @@ -126,7 +126,7 @@ @pageChange="pageChangeReplace" @pageSizeChange="pageSizeChangeReplace"> @@ -227,7 +227,10 @@ export default { this.getReplaceLawsNumRow() }, // 代替政策号 请求数据 - getReplaceLawsNumRow () { + getReplaceLawsNumRow (val) { + if (val) { + this.replaceLawsNumForm.page = '1' + } if (this.sarBussionessLawsEO.replaceLawsNum !== null && this.sarBussionessLawsEO.replaceLawsNum !== '') { this.replaceLawsNumForm.quoteIdList = this.quoteIdList1.toString() === '' ? '' : this.quoteIdList1 } else { diff --git a/src/pages/details/otherStandardDetails/index.vue b/src/pages/details/otherStandardDetails/index.vue index ec83598da..ac24b9540 100644 --- a/src/pages/details/otherStandardDetails/index.vue +++ b/src/pages/details/otherStandardDetails/index.vue @@ -38,13 +38,13 @@