岗位复制传参修复
This commit is contained in:
@@ -309,32 +309,32 @@ export default {
|
|||||||
// callback();
|
// callback();
|
||||||
// }
|
// }
|
||||||
// };
|
// };
|
||||||
const wage = (rule, value, callback) => {
|
// const wage = (rule, value, callback) => {
|
||||||
if(value == ""){
|
// if(value == ""){
|
||||||
callback(
|
// callback(
|
||||||
new Error(
|
// new Error(
|
||||||
"请填写参考工资"
|
// "请填写参考工资"
|
||||||
)
|
// )
|
||||||
);
|
// );
|
||||||
}else if (
|
// }else if (
|
||||||
!/^([1-9]\d*|0)(\.\d{0,2})?$/.test(value) ||
|
// !/^([1-9]\d*|0)(\.\d{0,2})?$/.test(value) ||
|
||||||
value <= 0 ||
|
// value <= 0 ||
|
||||||
value > 99999
|
// value > 99999
|
||||||
) {
|
// ) {
|
||||||
callback(
|
// callback(
|
||||||
new Error(
|
// new Error(
|
||||||
"请输入大于0且小于99999 之间的数字,小数点后最多保留两位"
|
//
|
||||||
)
|
// )
|
||||||
);
|
// );
|
||||||
} else if (
|
// } else if (
|
||||||
this.obj.wageUnitCategory === null ||
|
// this.obj.wageUnitCategory === null ||
|
||||||
this.obj.wageUnitCategory === undefined
|
// this.obj.wageUnitCategory === undefined
|
||||||
) {
|
// ) {
|
||||||
callback(new Error("请选择单位"));
|
// callback(new Error("请选择单位"));
|
||||||
} else {
|
// } else {
|
||||||
callback();
|
// callback();
|
||||||
}
|
// }
|
||||||
};
|
// };
|
||||||
const tradeId = (rule, value, callback) => {
|
const tradeId = (rule, value, callback) => {
|
||||||
if(this.tradeState == null || this.tradeState == undefined || this.tradeState == ""){
|
if(this.tradeState == null || this.tradeState == undefined || this.tradeState == ""){
|
||||||
callback(
|
callback(
|
||||||
@@ -1282,7 +1282,7 @@ export default {
|
|||||||
|
|
||||||
if (type === "copy") {
|
if (type === "copy") {
|
||||||
this.title = "复制岗位";
|
this.title = "复制岗位";
|
||||||
detail(row.missionNo).then((res) => {
|
detail(row.id).then((res) => {
|
||||||
if (![1, 2].includes(res.wageUnitCategory)) {
|
if (![1, 2].includes(res.wageUnitCategory)) {
|
||||||
res.wageUnitCategory = null;
|
res.wageUnitCategory = null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user