审核增加提示与限制

This commit is contained in:
hupeng 2024-10-10 15:36:06 +08:00
parent 8b35e40094
commit 9f8b145df9
3 changed files with 22 additions and 3 deletions

View File

@ -1,5 +1,7 @@
<template>
<Dialog :title="dialogTitle" v-model="dialogVisible" width="70%">
<el-alert title="审核通过,不可修改数据" type="success" v-if="formData.checkStatus == 2" style="margin-bottom:20px" />
<el-alert title="审核中,不可修改数据" type="warning" v-else-if="formData.checkStatus == 1" style="margin-bottom:20px" />
<el-form
ref="formRef"
:model="formData"
@ -146,7 +148,7 @@
</el-form>
<template #footer>
<el-button @click="submitForm" type="primary" :disabled="formLoading"> </el-button>
<el-button @click="submitForm" type="primary" :disabled="formLoading2" > </el-button>
<el-button @click="dialogVisible = false"> </el-button>
</template>
</Dialog>
@ -173,6 +175,7 @@ const message = useMessage() // 消息弹窗
const dialogVisible = ref(false) //
const dialogTitle = ref('') //
const formLoading = ref(false) // 12
const formLoading2 = ref(false)
const formType = ref('') // create - update -
const formData = ref({
id: undefined,
@ -238,6 +241,10 @@ const open = async (type: string, id?: number) => {
} finally {
formLoading.value = false
}
if(formData.value.checkStatus == 2 || formData.value.checkStatus == 1){
formLoading2.value = true
}
}else{
formData.value.number = await ContractApi.getContractNo()
formData.value.flowAdminId = await FlowApi.getFlowUserIds('contract')

View File

@ -1,5 +1,7 @@
<template>
<Dialog :title="dialogTitle" v-model="dialogVisible">
<el-alert title="审核通过,不可修改数据" type="success" v-if="formData.checkStatus == 2" style="margin-bottom:20px" />
<el-alert title="审核中,不可修改数据" type="warning" v-else-if="formData.checkStatus == 1" style="margin-bottom:20px" />
<el-form
ref="formRef"
:model="formData"
@ -58,7 +60,7 @@
</el-form-item>
</el-form>
<template #footer>
<el-button @click="submitForm" type="primary" :disabled="formLoading"> </el-button>
<el-button @click="submitForm" type="primary" :disabled="formLoading2"> </el-button>
<el-button @click="dialogVisible = false"> </el-button>
</template>
</Dialog>
@ -112,6 +114,7 @@ const formRules = reactive({
})
const formRef = ref() // Ref
const userList = ref<UserApi.UserVO[]>([]) //
const formLoading2 = ref(false)
/** 打开弹窗 */
const open = async (type: string, id?: number) => {
@ -127,6 +130,9 @@ const open = async (type: string, id?: number) => {
} finally {
formLoading.value = false
}
if(formData.value.checkStatus == 2 || formData.value.checkStatus == 1){
formLoading2.value = true
}
}else{
formData.value.number = await ContractReceivablesApi.getCode()
formData.value.flowAdminId = await FlowApi.getFlowUserIds('receivables')

View File

@ -1,5 +1,7 @@
<template>
<Dialog :title="dialogTitle" v-model="dialogVisible" width="55%">
<el-alert title="审核通过,不可修改数据" type="success" v-if="formData.checkStatus == 2" style="margin-bottom:20px" />
<el-alert title="审核中,不可修改数据" type="warning" v-else-if="formData.checkStatus == 1" style="margin-bottom:20px" />
<el-form
ref="formRef"
:model="formData"
@ -132,7 +134,7 @@
</el-row>
</el-form>
<template #footer>
<el-button @click="submitForm" type="primary" :disabled="formLoading"> </el-button>
<el-button @click="submitForm" type="primary" :disabled="formLoading2"> </el-button>
<el-button @click="dialogVisible = false"> </el-button>
</template>
</Dialog>
@ -190,6 +192,7 @@ const formRules = reactive({
})
const formRef = ref() // Ref
const userList = ref<UserApi.UserVO[]>([]) //
const formLoading2 = ref(false)
/** 打开弹窗 */
const open = async (type: string, id?: number) => {
@ -206,6 +209,9 @@ const open = async (type: string, id?: number) => {
} finally {
formLoading.value = false
}
if(formData.value.checkStatus == 2 || formData.value.checkStatus == 1){
formLoading2.value = true
}
}else{
formData.value.flowAdminId = await FlowApi.getFlowUserIds('invoice')
}