From d2be9bcbb33571dc9561df018feb74f57e5934d8 Mon Sep 17 00:00:00 2001 From: jia <1451658316@qq.com> Date: Tue, 19 Dec 2023 17:43:05 +0800 Subject: [PATCH] =?UTF-8?q?1.=E5=AE=8C=E6=88=90=E8=B4=A2=E5=8A=A1=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E4=B8=8B=E4=BB=98=E6=AC=BE=E7=AE=A1=E7=90=86=E4=B8=8B?= =?UTF-8?q?=E6=94=B6=E7=A5=A8=E8=AE=B0=E5=BD=95=EF=BC=8C=EF=BC=8C=E4=BB=98?= =?UTF-8?q?=E6=AC=BE=E8=AE=A1=E5=88=92=EF=BC=8C=E4=BB=98=E6=AC=BE=E7=94=B3?= =?UTF-8?q?=E8=AF=B7=EF=BC=8C=E9=80=80=E6=AC=BE=E8=AE=B0=E5=BD=95=E5=A2=9E?= =?UTF-8?q?=E5=88=A0=E6=94=B9=E6=9F=A5=E5=8A=9F=E8=83=BD=20=202.=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E8=AE=A1=E5=88=92=E4=B8=8B=E7=9A=84=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E8=AE=A1=E5=88=92,=20,=E9=A1=B9=E7=9B=AE=E9=87=8C=E7=A8=8B?= =?UTF-8?q?=E7=A2=91=E5=A2=9E=E5=88=A0=E6=94=B9=E6=9F=A5=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/bidbbond.ts | 26 ++ src/api/paymentplan.ts | 26 ++ src/api/paymentrequest.ts | 26 ++ src/api/project_milestones.ts | 26 ++ src/api/project_plan.ts | 26 ++ src/api/receiptrecord.ts | 27 ++ src/api/refundbidDeposit.ts | 26 ++ src/api/refundrecord.ts | 26 ++ src/components/biddingDecision/index.vue | 85 ++++ src/components/paylist/index.vue | 81 ++++ .../index.vue | 78 ++++ src/views/bid_bidding_decision/index.vue | 4 +- src/views/bidbbond/detail.vue | 161 ++++++++ src/views/bidbbond/edit.vue | 346 +++++++++++++++++ src/views/bidbbond/index.vue | 145 +++++++ src/views/paymentplan/detail.vue | 63 +-- src/views/paymentplan/edit.vue | 156 ++++---- src/views/paymentplan/index.vue | 73 ++-- src/views/paymentrequest/detail.vue | 90 +++-- src/views/paymentrequest/edit.vue | 231 +++++++---- src/views/paymentrequest/index.vue | 87 +++-- src/views/procurement_contract/index.vue | 7 +- .../project_manager_appointment/detail.vue | 43 +-- .../project_manager_appointment/edit.vue | 34 +- .../project_manager_appointment/index.vue | 55 ++- src/views/project_milestones/detail.vue | 123 ++++++ src/views/project_milestones/edit.vue | 144 +++++++ src/views/project_milestones/index.vue | 56 ++- src/views/project_plan/detail.vue | 123 ++++++ src/views/project_plan/edit.vue | 340 ++++++++++++++++ src/views/project_plan/index.vue | 180 +++++++++ src/views/receiptrecord/edit.vue | 140 +++---- src/views/receiptrecord/index.vue | 61 +-- src/views/refundbidDeposit/detail.vue | 161 ++++++++ src/views/refundbidDeposit/edit.vue | 362 ++++++++++++++++++ src/views/refundbidDeposit/index.vue | 145 +++++++ src/views/refundrecord/detail.vue | 31 +- src/views/refundrecord/edit.vue | 157 ++++---- src/views/refundrecord/index.vue | 73 ++-- 39 files changed, 3457 insertions(+), 587 deletions(-) create mode 100644 src/api/bidbbond.ts create mode 100644 src/api/paymentplan.ts create mode 100644 src/api/paymentrequest.ts create mode 100644 src/api/project_milestones.ts create mode 100644 src/api/project_plan.ts create mode 100644 src/api/receiptrecord.ts create mode 100644 src/api/refundbidDeposit.ts create mode 100644 src/api/refundrecord.ts create mode 100644 src/components/biddingDecision/index.vue create mode 100644 src/components/paylist/index.vue create mode 100644 src/components/procurementsubcontracting_selector/index.vue create mode 100644 src/views/bidbbond/detail.vue create mode 100644 src/views/bidbbond/edit.vue create mode 100644 src/views/bidbbond/index.vue create mode 100644 src/views/project_milestones/detail.vue create mode 100644 src/views/project_milestones/edit.vue create mode 100644 src/views/project_plan/detail.vue create mode 100644 src/views/project_plan/edit.vue create mode 100644 src/views/refundbidDeposit/detail.vue create mode 100644 src/views/refundbidDeposit/edit.vue create mode 100644 src/views/refundbidDeposit/index.vue diff --git a/src/api/bidbbond.ts b/src/api/bidbbond.ts new file mode 100644 index 0000000..abba309 --- /dev/null +++ b/src/api/bidbbond.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 投标保证金表列表 +export function bidapplyLists(params: any) { + return request.get({ url: '/bid.bid_security_apply/lists', params }) +} + +// 添加投标保证金 +export function bidapplyAdd(params: any) { + return request.post({ url: '/bid.bid_security_apply/add', params }) +} + +// 编辑投标保证金 +export function bidapplyEdit(params: any) { + return request.post({ url: '/bid.bid_security_apply/edit', params }) +} + +// 删除投标保证金 +export function bidapplyDelete(params: any) { + return request.post({ url: '/bid.bid_security_apply/delete', params }) +} + +// 投标保证金详情 +export function bidapplyDetail(params: any) { + return request.get({ url: '/bid.bid_security_apply/detail', params }) +} diff --git a/src/api/paymentplan.ts b/src/api/paymentplan.ts new file mode 100644 index 0000000..0c62dd2 --- /dev/null +++ b/src/api/paymentplan.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 付款计划表列表 +export function paymentplanLists(params: any) { + return request.get({ url: '/finance.finance_payment_plan/lists', params }) +} + +// 添加付款计划 +export function paymentplanAdd(params: any) { + return request.post({ url: '/finance.finance_payment_plan/add', params }) +} + +// 编辑付款计划 +export function paymentplanEdit(params: any) { + return request.post({ url: '/finance.finance_payment_plan/edit', params }) +} + +// 删除付款计划 +export function paymentplanDelete(params: any) { + return request.post({ url: '/finance.finance_payment_plan/delete', params }) +} + +// 付款计划详情 +export function paymentplanDetail(params: any) { + return request.get({ url: '/finance.finance_payment_plan/detail', params }) +} diff --git a/src/api/paymentrequest.ts b/src/api/paymentrequest.ts new file mode 100644 index 0000000..fa585ea --- /dev/null +++ b/src/api/paymentrequest.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 付款计划表列表 +export function paymentapplyLists(params: any) { + return request.get({ url: '/finance.finance_payment_apply/lists', params }) +} + +// 添加付款计划 +export function paymentapplyAdd(params: any) { + return request.post({ url: '/finance.finance_payment_apply/add', params }) +} + +// 编辑付款计划 +export function paymentapplyEdit(params: any) { + return request.post({ url: '/finance.finance_payment_apply/edit', params }) +} + +// 删除付款计划 +export function paymentapplyDelete(params: any) { + return request.post({ url: '/finance.finance_payment_apply/delete', params }) +} + +// 付款计划详情 +export function paymentapplyDetail(params: any) { + return request.get({ url: '/finance.finance_payment_apply/detail', params }) +} diff --git a/src/api/project_milestones.ts b/src/api/project_milestones.ts new file mode 100644 index 0000000..36ab61b --- /dev/null +++ b/src/api/project_milestones.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 项目里程碑列表 +export function apimilestonesLists(params: any) { + return request.get({ url: '/project.project_milestones/lists', params }) +} + +// 添加项目计划 +export function apimilestonesAdd(params: any) { + return request.post({ url: '/project.project_milestones/add', params }) +} + +// 编辑项目计划 +export function apimilestonesEdit(params: any) { + return request.post({ url: '/project.project_milestones/edit', params }) +} + +// 删除项目计划 +export function apimilestonesDelete(params: any) { + return request.post({ url: '/project.project_milestones/delete', params }) +} + +// 项目计划详情 +export function apimilestonesDetail(params: any) { + return request.get({ url: '/project.project_milestones/detail', params }) +} diff --git a/src/api/project_plan.ts b/src/api/project_plan.ts new file mode 100644 index 0000000..83e060f --- /dev/null +++ b/src/api/project_plan.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 项目计划表列表 +export function apiProjectplanLists(params: any) { + return request.get({ url: '/project.project_plan/lists', params }) +} + +// 添加项目计划 +export function apiProjectplanAdd(params: any) { + return request.post({ url: '/project.project_plan/add', params }) +} + +// 编辑项目计划 +export function apiProjectplanEdit(params: any) { + return request.post({ url: '/project.project_plan/edit', params }) +} + +// 删除项目计划 +export function apiProjectplanDelete(params: any) { + return request.post({ url: '/project.project_plan/delete', params }) +} + +// 项目计划详情 +export function apiProjectplanDetail(params: any) { + return request.get({ url: '/project.project_plan/detail', params }) +} diff --git a/src/api/receiptrecord.ts b/src/api/receiptrecord.ts new file mode 100644 index 0000000..3c3bcf8 --- /dev/null +++ b/src/api/receiptrecord.ts @@ -0,0 +1,27 @@ + +import request from '@/utils/request' + +// 收票记录列表 +export function apifinancereceiptLists(params: any) { + return request.get({ url: '/finance.finance_receipt_record/lists', params }) +} + +// 添加收票记录 +export function apifinancereceiptAdd(params: any) { + return request.post({ url: '/finance.finance_receipt_record/add', params }) +} + +// 编辑收票记录 +export function apifinancereceiptEdit(params: any) { + return request.post({ url: '/finance.finance_receipt_record/edit', params }) +} + +// 删除收票记录 +export function apifinancereceiptDelete(params: any) { + return request.post({ url: '/finance.finance_receipt_record/delete', params }) +} + +// 收票记录详情 +export function apifinancereceiptDetail(params: any) { + return request.get({ url: '/finance.finance_receipt_record/detail', params }) +} \ No newline at end of file diff --git a/src/api/refundbidDeposit.ts b/src/api/refundbidDeposit.ts new file mode 100644 index 0000000..f051d8f --- /dev/null +++ b/src/api/refundbidDeposit.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 退投标保证金列表 +export function bidrefundLists(params: any) { + return request.get({ url: '/bid.bid_security_refund/lists', params }) +} + +// 添加退投标保证金 +export function bidrefundAdd(params: any) { + return request.post({ url: '/bid.bid_security_refund/add', params }) +} + +// 编辑退投标保证金 +export function bidrefundEdit(params: any) { + return request.post({ url: '/bid.bid_security_refund/edit', params }) +} + +// 删除退投标保证金 +export function bidrefundDelete(params: any) { + return request.post({ url: '/bid.bid_security_refund/delete', params }) +} + +// 退投标保证金详情 +export function bidrefundDetail(params: any) { + return request.get({ url: '/bid.bid_security_refund/detail', params }) +} diff --git a/src/api/refundrecord.ts b/src/api/refundrecord.ts new file mode 100644 index 0000000..d10e22a --- /dev/null +++ b/src/api/refundrecord.ts @@ -0,0 +1,26 @@ +import request from '@/utils/request' + +// 退款记录列表 +export function apiFinancerefundLists(params: any) { + return request.get({ url: '/finance.finance_refund_record/lists', params }) +} + +// 添加退款记录 +export function apiFinancerefundAdd(params: any) { + return request.post({ url: '/finance.finance_refund_record/add', params }) +} + +// 编辑退款记录 +export function apiFinancerefundEdit(params: any) { + return request.post({ url: '/finance.finance_refund_record/edit', params }) +} + +// 删除退款记录 +export function apiFinancerefundDelete(params: any) { + return request.post({ url: '/finance.finance_refund_record/delete', params }) +} + +// 退款记录详情 +export function apiFinancerefundDetail(params: any) { + return request.get({ url: '/finance.finance_refund_record/detail', params }) +} diff --git a/src/components/biddingDecision/index.vue b/src/components/biddingDecision/index.vue new file mode 100644 index 0000000..40e44be --- /dev/null +++ b/src/components/biddingDecision/index.vue @@ -0,0 +1,85 @@ + + + \ No newline at end of file diff --git a/src/components/paylist/index.vue b/src/components/paylist/index.vue new file mode 100644 index 0000000..41d736f --- /dev/null +++ b/src/components/paylist/index.vue @@ -0,0 +1,81 @@ + + + \ No newline at end of file diff --git a/src/components/procurementsubcontracting_selector/index.vue b/src/components/procurementsubcontracting_selector/index.vue new file mode 100644 index 0000000..0e5e075 --- /dev/null +++ b/src/components/procurementsubcontracting_selector/index.vue @@ -0,0 +1,78 @@ + + + \ No newline at end of file diff --git a/src/views/bid_bidding_decision/index.vue b/src/views/bid_bidding_decision/index.vue index ffe4f32..437f39e 100644 --- a/src/views/bid_bidding_decision/index.vue +++ b/src/views/bid_bidding_decision/index.vue @@ -2,9 +2,9 @@
- + diff --git a/src/views/bidbbond/detail.vue b/src/views/bidbbond/detail.vue new file mode 100644 index 0000000..b1880b4 --- /dev/null +++ b/src/views/bidbbond/detail.vue @@ -0,0 +1,161 @@ + + + + + diff --git a/src/views/bidbbond/edit.vue b/src/views/bidbbond/edit.vue new file mode 100644 index 0000000..eab2afb --- /dev/null +++ b/src/views/bidbbond/edit.vue @@ -0,0 +1,346 @@ + + + diff --git a/src/views/bidbbond/index.vue b/src/views/bidbbond/index.vue new file mode 100644 index 0000000..a2179a4 --- /dev/null +++ b/src/views/bidbbond/index.vue @@ -0,0 +1,145 @@ + + + + diff --git a/src/views/paymentplan/detail.vue b/src/views/paymentplan/detail.vue index a5e7a98..71b93fa 100644 --- a/src/views/paymentplan/detail.vue +++ b/src/views/paymentplan/detail.vue @@ -7,7 +7,7 @@ - {{ formData.contract.contract_name }} + {{ formData.contract.contract_no }} @@ -26,46 +26,32 @@ + - - {{ formData.custom.name + + {{ formData.pay_date }} - - {{ formData.reason - }} - - - - + {{ formData.amount }} - {{ formData.amount_daxie }} + {{ formData.foreign_currency_remark + }} - - + + - - {{ formData.refunder }} - - - - - {{ formData.collection_acccount }} - - - - - {{ formData.collection_bank }} + + @@ -78,7 +64,14 @@ - + + +
+ {{ item.name }} + x +
+
+
@@ -103,7 +96,7 @@ defineProps({ const emit = defineEmits(['success', 'close']) const formRef = shallowRef() const popupRef = shallowRef>() - +const formDataannex = reactive([]) const datas = reactive({ provinceOptions: [], cityOptions: [], @@ -121,6 +114,22 @@ const formData = reactive({ // 获取详情 const setFormData = async (data: Record) => { Object.assign(formData, data) + if (data.annex && data.annex.length > 0) { + if (data.annex.includes(",")) { + const arry1 = data.annex.split(',').map((item: any, index: any) => { + return { + name: `文件${index + 1}`, + uri: item + }; + }); + Object.assign(formDataannex, arry1) + } else { + const arry1 = [{ name: `文件1`, uri: data.annex }] + Object.assign(formDataannex, arry1) + console.log(formDataannex) + + } + } diff --git a/src/views/paymentplan/edit.vue b/src/views/paymentplan/edit.vue index 692ee14..9d4d3d3 100644 --- a/src/views/paymentplan/edit.vue +++ b/src/views/paymentplan/edit.vue @@ -2,26 +2,21 @@
- - - - - - + - - + + + + + + + - - - - - - + @@ -39,38 +34,37 @@ - - - - - - - - - - - - - - - - - - + + + + - - - + + + - - - + + + + + + + + + + + + + + + + @@ -98,32 +92,13 @@ -
客户收款信息
- - - - - - - - - - - - - - - - - - - - + + - + @@ -138,9 +113,10 @@ import customDialog from '@/components/custom-dialog/index.vue' import type { FormInstance } from 'element-plus' import Popup from '@/components/popup/index.vue' -import salescontractDialog from '@/components/salescontract/index.vue' +import procurementDialog from '@/components/procurement/index.vue' +import subcontractingDialog from '@/components/procurementsubcontracting_selector/index.vue' -import { apirefundapplyAdd, apirefundapplyEdit, apirefundapplyDetail } from '@/api/refund' +import { paymentplanAdd, paymentplanEdit, paymentplanDetail } from '@/api/paymentplan' import { toChinesNum } from "@/utils/util"; import { getAllProjectTypes } from '@/api/projecttype' import { timeFormat } from '@/utils/util' @@ -151,14 +127,13 @@ import useUserStore from "@/stores/modules/user"; const protype = reactive([]) const base_url = configs.baseUrl + configs.urlPrefix const userStore = useUserStore(); -const active = ref(0) const formDataannex = reactive([]) const contract_name = ref('') const project_name = ref('') const project_code = ref('') const project_amount = ref('') const contract_no = ref('') -const custom_name = ref('') +const supplier_name = ref('') const userInfo = userStore.userInfo console.log(userInfo, '222222') // 上传文件 @@ -215,13 +190,13 @@ const emit = defineEmits(['success', 'close']) const formRef = shallowRef() const popupRef = shallowRef>() const mode = ref('add') -const amount_daxie = ref('') +const foreign_currency_remark = ref('') const showDialog = ref(false) const showDialog1 = ref(false) const customEvent = (e: any) => { - formData.customer_id = e.id; - custom_name.value = e.name; + formData.supplier_id = e.id; + supplier_name.value = e.name; showDialog.value = false; }; const customEvent1 = (e: any) => { @@ -229,7 +204,7 @@ const customEvent1 = (e: any) => { project_name.value = e.project_name; project_code.value = e.project_code; contract_name.value = e.contract_name; - contract_no.value = e.contract_code + contract_no.value = e.contract_no showDialog1.value = false; }; @@ -239,30 +214,26 @@ const customEvent1 = (e: any) => { const amountinput = (e) => { // console.log(e) if (e && e > 0) { - formData.amount_daxie = toChinesNum(e) + formData.foreign_currency_remark = toChinesNum(e) } } // 弹窗标题 const popupTitle = computed(() => { - return mode.value == 'edit' ? '编辑退款申请表' : '新增退款申请表' + return mode.value == 'edit' ? '编辑付款计划表' : '新增付款计划表' }) // 表单数据 const formData = reactive({ id: '', - customer_id: "", + supplier_id: 1, contract_id: "", - approve_id: 0, - refund_date: "", - reason: "", - amount: 0, - amount_daxie: "", - refund_type: "", - refunder: userInfo.name, - return_total_amount: "", - return_desc: "", - collection_bank: "", - collection_acccount: "" + pay_date: '', + period: "", + amount: "", + foreign_currency_remark: "", + status: '', + remark: "", + annex: "" }) @@ -274,9 +245,9 @@ const formRules = reactive({ // 获取详情 const setFormData = async (data: Record) => { - if (data.return_desc && data.return_desc.length > 0) { - if (data.return_desc.includes(",")) { - const arry1 = data.return_desc.split(',').map((item: any, index: any) => { + if (data.annex && data.annex.length > 0) { + if (data.annex.includes(",")) { + const arry1 = data.annex.split(',').map((item: any, index: any) => { return { name: `文件${index + 1}`, uri: item @@ -284,7 +255,7 @@ const setFormData = async (data: Record) => { }); Object.assign(formDataannex, arry1) } else { - const arry1 = [{ name: `文件1`, uri: data.return_desc }] + const arry1 = [{ name: `文件1`, uri: data.annex }] Object.assign(formDataannex, arry1) console.log(formDataannex) @@ -298,18 +269,19 @@ const setFormData = async (data: Record) => { formData[key] = data[key] } } - custom_name.value = data.custom.name + project_name.value = data.project.name project_code.value = data.project.project_code project_amount.value = data.contract.amount contract_name.value = data.contract.contract_name; - contract_no.value = data.contract.contract_code + contract_no.value = data.contract.contract_no + } const getDetail = async (row: Record) => { - const data = await apirefundapplyDetail({ + const data = await paymentplanDetail({ id: row.id }) setFormData(data) @@ -319,7 +291,7 @@ const getDetail = async (row: Record) => { // 提交按钮 const handleSubmit = async () => { if (formDataannex.length > 0) { - formData.return_desc = formDataannex.map((item: any) => item.uri).toString() + formData.annex = formDataannex.map((item: any) => item.uri).toString() } console.log(formRef.value?.validate(), '22222222') await formRef.value?.validate() @@ -327,8 +299,8 @@ const handleSubmit = async () => { const data = { ...formData } mode.value == 'edit' - ? await apirefundapplyEdit(data) - : await apirefundapplyAdd(data) + ? await paymentplanEdit(data) + : await paymentplanAdd(data) popupRef.value?.close() emit('success') } diff --git a/src/views/paymentplan/index.vue b/src/views/paymentplan/index.vue index b9a5140..8bff3c2 100644 --- a/src/views/paymentplan/index.vue +++ b/src/views/paymentplan/index.vue @@ -2,11 +2,18 @@
- - + + + + + + - - + + + + + @@ -30,19 +37,25 @@
- - - - - - - - + + + + + + + + - + + + + +