diff --git a/src/components/bidbond/index.vue b/src/components/bidbond/index.vue index f4ea462..a19c6cd 100644 --- a/src/components/bidbond/index.vue +++ b/src/components/bidbond/index.vue @@ -26,7 +26,7 @@ -
+
@@ -37,11 +37,15 @@ import { usePaging } from "@/hooks/usePaging" import { useDictData } from "@/hooks/useDictOptions" import { bidapplyLists } from '@/api/bidbbond' -import { defineEmits } from "vue" +import { defineEmits, defineProps } from "vue" +const props = defineProps({ + project_id: Number +}) // 查询条件 const queryParams = reactive({ - custom_name: '' + custom_name: '', + project_id: props.project_id }); // 获取字典数据 diff --git a/src/views/InvoicingRequests/edit.vue b/src/views/InvoicingRequests/edit.vue index 831ccc7..0b4e044 100644 --- a/src/views/InvoicingRequests/edit.vue +++ b/src/views/InvoicingRequests/edit.vue @@ -289,14 +289,7 @@ const checkPhone = (rule: any, value: any, callback: (arg0: Error) => any) => { } -const userEmail = (rule: any, value: string, callback: (arg0: Error | undefined) => void) => { - if (value && !mailReg.test(value)) { - callback(new Error('请输入正确的邮箱格式')) - } else { - callback() - } -}; let invoicing_amount_daxie = computed(() => { @@ -313,7 +306,11 @@ const delFileFn = (index: number) => { let props = defineProps({ project: Object }) - +if (props.project) { + project_name.value = props.project.name + project_code.value = props.project.project_code + custom_name.value = props.project.custom_name +} const emit = defineEmits(['success', 'close']) const formRef = shallowRef() diff --git a/src/views/bid_document_examination/edit.vue b/src/views/bid_document_examination/edit.vue index 3affb10..db2ef2e 100644 --- a/src/views/bid_document_examination/edit.vue +++ b/src/views/bid_document_examination/edit.vue @@ -235,7 +235,7 @@
- + @@ -289,24 +289,8 @@ const userStore = useUserStore(); const formDataannex = reactive([]) const formDataannex1 = reactive([]) const formDataannex2 = reactive([]) -// 上传文件 -const handleAvatarSuccess_four = ( - response, - uploadFile -) => { - if (response.code == 0) { - ElMessage.error(response.msg); - return; - } - formDataannex.push( - { uri: response.data.uri, name: response.data.name } - ); -}; -// 删除上传的文件 -const delFileFn = (index: number) => { - formDataannex.splice(index, 1) -} + // 上传文件 const handleAvatarSuccess_four1 = ( @@ -446,10 +430,6 @@ const customEvent1 = (e: any) => { tableData.value[num.value].name = e.name tableData.value[num.value].specs = e.specs tableData.value[num.value].unit = e.unit - - - // formData.customer_id = e.id; - // customer_name.value = e.name; showDialog1.value = false; }; @@ -457,6 +437,14 @@ const customEvent1 = (e: any) => { const formRules = reactive({ }) + +const props = defineProps({ + project: Object +}) +if (props.project) { + project_name.value = props.project.name +} + // 获取详情 const setFormData = async (data: Record) => { @@ -491,17 +479,13 @@ const setFormData = async (data: Record) => { Object.assign(formDataannex2, arry1) } - - bid_document_no.value = data.bid_document_no invite_tenders_company_name.value = data.invite_tenders_company_name bid_company_name.value = data.bid_company_name amount.value = data.bid_document_amount - buyer.value = data.buyer bid_date.value = data.bidding_time buy_date.value = data.buy_date - //project_fund_source.value = data.project_fund_source bid_date.value = data.bidding_time invite_tenders_type.value = data.bid_type bid_address.value = data.bid_address @@ -510,11 +494,6 @@ const setFormData = async (data: Record) => { deposit_refund_time.value = data.margin_amount_return_date bidding_project_overview.value = data.bid_project_overview project_introduction.value = data.project_desc - - // //@ts-ignore - // formData.bid_opening_date = timeFormat(formData.bid_opening_date, 'YYYY-MM-DD ') - // //@ts-ignore - // formData.deposit_refund_time = timeFormat(formData.deposit_refund_time, 'YYYY-MM-DD ') } const getDetail = async (row: Record) => { diff --git a/src/views/bid_result/edit.vue b/src/views/bid_result/edit.vue index 0f5112e..d584f8d 100644 --- a/src/views/bid_result/edit.vue +++ b/src/views/bid_result/edit.vue @@ -58,7 +58,7 @@ - + @@ -139,12 +139,19 @@ const customEvent = (e: any) => { custom_name.value = e.custom_name project_name.value = e.project_name project_code.value = e.project_code - showDialog.value = false }; +const props = defineProps({ + project: Object +}) +if (props.project) { + project_name.value = props.project.name + project_code.value = props.project.project_code + custom_name.value = props.project.custom_name +} // 获取详情 const setFormData = async (data: Record) => { diff --git a/src/views/bidbbond/edit.vue b/src/views/bidbbond/edit.vue index d799a4f..fc9bd3a 100644 --- a/src/views/bidbbond/edit.vue +++ b/src/views/bidbbond/edit.vue @@ -122,7 +122,8 @@ - + + +