|
|
@ -116,6 +116,7 @@ const formLoading = ref(false) // 表单的加载中:1)修改时的数据加 |
|
|
|
const formData = ref({}) |
|
|
|
const formData = ref({}) |
|
|
|
|
|
|
|
|
|
|
|
const rules = { |
|
|
|
const rules = { |
|
|
|
|
|
|
|
validTime: { required: true, message: '生效日期不可为空', trigger: 'blur, change' }, |
|
|
|
baseSalary: { required: true, message: '基本工资不可为空', trigger: 'blur' } |
|
|
|
baseSalary: { required: true, message: '基本工资不可为空', trigger: 'blur' } |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
@ -123,11 +124,13 @@ const rules = { |
|
|
|
const open = async (row) => { |
|
|
|
const open = async (row) => { |
|
|
|
dialogVisible.value = true |
|
|
|
dialogVisible.value = true |
|
|
|
dialogTitle.value = `工资条设置-【${row.name}】` |
|
|
|
dialogTitle.value = `工资条设置-【${row.name}】` |
|
|
|
resetForm() |
|
|
|
|
|
|
|
getOptions() |
|
|
|
getOptions() |
|
|
|
formLoading.value = true |
|
|
|
formLoading.value = true |
|
|
|
try { |
|
|
|
try { |
|
|
|
formData.value = await SalaryApi.getSalaryDetail(id) |
|
|
|
formData.value = await SalaryApi.getSalaryDetail(row.id) |
|
|
|
|
|
|
|
if (!formData.value) { |
|
|
|
|
|
|
|
resetForm() |
|
|
|
|
|
|
|
} |
|
|
|
} finally { |
|
|
|
} finally { |
|
|
|
formLoading.value = false |
|
|
|
formLoading.value = false |
|
|
|
} |
|
|
|
} |
|
|
|