Commit 01c98698 by panziyi

Gitcan修改

parent 29f1c4b4
...@@ -22,6 +22,7 @@ let checkObj = { ...@@ -22,6 +22,7 @@ let checkObj = {
"gidgrp.acb.adrelc" :null, "gidgrp.acb.adrelc" :null,
"gidgrp.rec.redamt" :null, "gidgrp.rec.redamt" :null,
"mtabut.clsflg" :null, "mtabut.clsflg" :null,
"gidgrp.rec.purcan" :null,
} }
for (const key in checkObj) { for (const key in checkObj) {
......
...@@ -11,6 +11,9 @@ export default { ...@@ -11,6 +11,9 @@ export default {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"gidgrp.rec.purcan":[
{type: "string", required: false, message: "必输项"},
],
"gidgrp.rec.nam":[ "gidgrp.rec.nam":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"} {max: 40,message:"长度不能超过40"}
......
...@@ -15,6 +15,9 @@ export default { ...@@ -15,6 +15,9 @@ export default {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"} {max: 40,message:"长度不能超过40"}
], ],
"gidgrp.rec.purcan":[
{type: "string", required: false, message: "必输项"},
],
"gidgrp.cbs.max.cur":[ "gidgrp.cbs.max.cur":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
......
...@@ -211,7 +211,7 @@ ...@@ -211,7 +211,7 @@
style="width: 100%" style="width: 100%"
placeholder="请选择Reason of Cancelation" placeholder="请选择Reason of Cancelation"
:code="codes.purcan" :code="codes.purcan"
@change="change" @change="purcanBlur"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -504,6 +504,20 @@ export default { ...@@ -504,6 +504,20 @@ export default {
} }
}, },
async purcanBlur(val){
if(this.model.gidgrp.rec.purcan=="" ){
this.$confirm('Please enter a value for this mandatory field','提示',{
confirmButtonText: 'Yes',
cancelButtonText: 'No',
type: 'warning',
showClose:true
}).then(() => {//yes的执行在这里写
}).catch(() => {//No的功能在这里写
});
}
},
}, },
created: function () { created: function () {
trntyp: []; trntyp: [];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment