修改bug 56663 【0719】标准入库流程 新增 验重失效(按照类别、编号、年份)进行验重,如果出现重复给出提示与什么什么重复
This commit is contained in:
@@ -1736,17 +1736,14 @@ export default {
|
|||||||
{required: true, message: '请选择归档位置', trigger: 'blur'}
|
{required: true, message: '请选择归档位置', trigger: 'blur'}
|
||||||
],
|
],
|
||||||
standSort: [
|
standSort: [
|
||||||
{required: true, message: '请选择标准类别', trigger: 'change'},
|
{required: true, message: '请选择标准类别', trigger: 'change'}
|
||||||
{ validator: this.checkIsOnly, trigger: 'change'}
|
|
||||||
],
|
],
|
||||||
standNumber: [
|
standNumber: [
|
||||||
{required: true, message: '请输入标准编号', trigger: 'blur'},
|
{required: true, message: '请输入标准编号', trigger: 'blur'},
|
||||||
{min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur'},
|
{min: 1, max: 100, message: '长度在 1 到 100 个字符', trigger: 'blur'}
|
||||||
{ validator: this.checkIsOnly, trigger: 'change'}
|
|
||||||
],
|
],
|
||||||
standYear: [
|
standYear: [
|
||||||
{required: true, message: '请输入标准年份'},
|
{required: true, message: '请输入标准年份'}
|
||||||
{ validator: this.checkIsOnly, trigger: 'change'}
|
|
||||||
// { type: 'number', message: '年标准年份必须为数字值'}
|
// { type: 'number', message: '年标准年份必须为数字值'}
|
||||||
],
|
],
|
||||||
standName: [
|
standName: [
|
||||||
@@ -1839,21 +1836,21 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
// 'form.standSort' : {
|
'form.standSort' : {
|
||||||
// handler: function() {
|
handler: function() {
|
||||||
// this.checkIsOnly()
|
this.checkIsOnly()
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
// 'form.standNumber' : {
|
'form.standNumber' : {
|
||||||
// handler: function() {
|
handler: function() {
|
||||||
// this.checkIsOnly()
|
this.checkIsOnly()
|
||||||
// }
|
}
|
||||||
// },
|
},
|
||||||
// 'form.standYear' : {
|
'form.standYear' : {
|
||||||
// handler: function() {
|
handler: function() {
|
||||||
// this.checkIsOnly()
|
this.checkIsOnly()
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
/* 'form.signFlag' : {
|
/* 'form.signFlag' : {
|
||||||
handler: function () {
|
handler: function () {
|
||||||
if (this.form.signFlag === '1') {
|
if (this.form.signFlag === '1') {
|
||||||
@@ -2000,6 +1997,9 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
checkIsOnly() {
|
checkIsOnly() {
|
||||||
let standType = ''
|
let standType = ''
|
||||||
|
if(this.submitType !== 1){
|
||||||
|
return
|
||||||
|
}
|
||||||
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){
|
||||||
|
|||||||
Reference in New Issue
Block a user