查看添加企业字段

This commit is contained in:
zxy
2024-02-17 17:31:41 +08:00
parent 6979b388a0
commit d14be12010
4 changed files with 319 additions and 29 deletions

View File

@@ -356,25 +356,25 @@ export default {
}
};
const workType = (rule, value, callback) => {
if(this.workTypeState == null || this.workTypeState == undefined || this.workTypeState == ""){
callback(
new Error(
"请选择工种"
)
)
}else{
if(!this.workTypeBtnState){
callback(
new Error(
"新增工种要添加后才能使用"
)
)
}else{
callback();
}
}
}
// const workType = (rule, value, callback) => {
// if(this.workTypeState == null || this.workTypeState == undefined || this.workTypeState == ""){
// callback(
// new Error(
// "请选择工种"
// )
// )
// }else{
// if(!this.workTypeBtnState){
// callback(
// new Error(
// "新增工种要添加后才能使用"
// )
// )
// }else{
// callback();
// }
// }
// }
const validatePass = (rule, value, callback)=>{
let specialKey = "[`~#$^&*()=|{}\\[\\]<>/~#¥……&*()——|{}【】《》%@‘”“']'";
let flagValue = true;
@@ -590,13 +590,15 @@ export default {
label: "工种",
// type: "tree",
prop: "worktypeIds",
formslot: true,
labelslot: false,
// formslot: true,
// labelslot: false,
rules: [
{
required: true,
validator: workType,
trigger: ["change", "blur"],
// validator: workType,
message: "请输入工种",
// trigger: ["change", "blur"],
trigger: "blur",
},
],
// dicData: self.workData,