新增合同 回款 发票 表单优化

This commit is contained in:
hupeng 2024-12-20 13:32:43 +08:00
parent 39738fcb9d
commit 72dbbd0282
4 changed files with 18 additions and 4 deletions

View File

@ -180,8 +180,9 @@ const resetQuery = () => {
handleQuery()
}
const open = () => {
const open = (customerId) => {
groupVisible.value = true;
queryParams.customerId = customerId
getList()
}
defineExpose({ open })

View File

@ -174,14 +174,19 @@ const resetQuery = () => {
handleQuery()
}
const open = () => {
const open = (customerId) => {
groupVisible.value = true;
queryParams.customerId = customerId
getList()
}
defineExpose({ open })
const emit = defineEmits(['saveContract'])
const doSelect = async (row) => {
if(row.checkStatus !== 2){
message.error('请选择已经审核过的合同')
return
}
emit('saveContract', row);
groupVisible.value = false;
}

View File

@ -296,7 +296,11 @@ const saveCustomer = async(customer) => {
const selectBusinessRef = ref()
const chooseBusiness = () => {
selectBusinessRef.value.open()
if(!formData.value.customerId) {
message.error('请先选择客户')
return
}
selectBusinessRef.value.open(formData.value.customerId)
}
const saveBusiness = (value) => {

View File

@ -185,7 +185,11 @@ const saveCustomer = async(customer) => {
const selectContractRef = ref()
const chooseContract = () => {
selectContractRef.value.open()
if(!formData.value.customerId) {
message.error('请先选择客户')
return
}
selectContractRef.value.open(formData.value.customerId)
}
const saveContract = async(contract) => {