审核增加提示与限制
This commit is contained in:
parent
8b35e40094
commit
9f8b145df9
@ -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) // 表单的加载中:1)修改时的数据加载;2)提交的按钮禁用
|
||||
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')
|
||||
|
@ -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')
|
||||
|
@ -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')
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user