From 01679da86eb7a95f52c80e0282a56573fe9e65a3 Mon Sep 17 00:00:00 2001 From: zmj <1493694146@qq.com> Date: Mon, 3 Jun 2024 10:46:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E4=BA=86=E8=A1=A8=E6=A0=BC?= =?UTF-8?q?=E5=8F=8A=E8=B7=AF=E7=94=B1=E5=8A=9F=E8=83=BD=EF=BC=8C=E6=8F=90?= =?UTF-8?q?=E5=8D=87=E4=BA=86=E7=94=A8=E6=88=B7=E4=BD=93=E9=AA=8C=EF=BC=8C?= =?UTF-8?q?=E6=8F=90=E9=AB=98=E4=BA=86=E6=93=8D=E4=BD=9C=E6=95=88=E7=8E=87?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/allAssessments/edit.vue | 355 ++++++++++++++++++ src/views/allAssessments/index.vue | 110 ++++++ src/views/assessSubordinates/edit.vue | 355 ++++++++++++++++++ src/views/assessSubordinates/index.vue | 150 ++++++++ src/views/contract_ledger/index.vue | 10 +- src/views/financial_settlement/edit.vue | 5 + src/views/financial_settlement/index.vue | 6 + .../marketing_framework_agreement/index.vue | 2 +- src/views/selfEvaluation/index.vue | 15 +- 9 files changed, 999 insertions(+), 9 deletions(-) create mode 100644 src/views/allAssessments/edit.vue create mode 100644 src/views/allAssessments/index.vue create mode 100644 src/views/assessSubordinates/edit.vue create mode 100644 src/views/assessSubordinates/index.vue diff --git a/src/views/allAssessments/edit.vue b/src/views/allAssessments/edit.vue new file mode 100644 index 0000000..3658b9f --- /dev/null +++ b/src/views/allAssessments/edit.vue @@ -0,0 +1,355 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/allAssessments/index.vue b/src/views/allAssessments/index.vue new file mode 100644 index 0000000..1165007 --- /dev/null +++ b/src/views/allAssessments/index.vue @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/views/assessSubordinates/edit.vue b/src/views/assessSubordinates/edit.vue new file mode 100644 index 0000000..3658b9f --- /dev/null +++ b/src/views/assessSubordinates/edit.vue @@ -0,0 +1,355 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/src/views/assessSubordinates/index.vue b/src/views/assessSubordinates/index.vue new file mode 100644 index 0000000..7f5207c --- /dev/null +++ b/src/views/assessSubordinates/index.vue @@ -0,0 +1,150 @@ + + + + + + + + + + + + + + + + + + + + + + + + + 查询 + 重置 + + + + + + + + + + + 新增 + + + 删除 + + + + + + + + + + + + + + + + + + + 编辑 + + + 删除 + + + + + + + + + + + + + + + diff --git a/src/views/contract_ledger/index.vue b/src/views/contract_ledger/index.vue index 7e755db..97db296 100644 --- a/src/views/contract_ledger/index.vue +++ b/src/views/contract_ledger/index.vue @@ -62,7 +62,7 @@ 下载 + v-if="row.refund_rate == '100'" @click="handleSettlement(row)"> 结算 @@ -192,8 +192,12 @@ const handleDown = async (id: number | any[]) => { } // 结算 const handleSettlement = (row) => { - alert("没有接口") - router.push('/financial/invoice_and_receipt/financial_settlement') + router.push({ + path: '/financial/invoice_and_receipt/financial_settlement', + query: { + contract_ledger: JSON.stringify(row) + } + }) } getLists() diff --git a/src/views/financial_settlement/edit.vue b/src/views/financial_settlement/edit.vue index dc1304f..8b055cb 100644 --- a/src/views/financial_settlement/edit.vue +++ b/src/views/financial_settlement/edit.vue @@ -54,6 +54,7 @@ import { apiFinancialSettlementAdd, apiFinancialSettlementEdit, apiFinancialSett import { timeFormat } from '@/utils/util' import type { PropType } from 'vue' import { cost_approved_projects } from "@/components/dialogTable/dialogTableConfig"; +import { useRoute } from "vue-router" defineProps({ @@ -67,6 +68,7 @@ const formRef = shallowRef() const popupRef = shallowRef>() const mode = ref('add') const showDialog = ref(false) +const route = useRoute() // 弹窗标题 @@ -176,6 +178,9 @@ const handleClose = () => { emit('close') } +if (route.query?.contract_ledger) { + customEvent(JSON.parse(route.query.contract_ledger)) +} defineExpose({ diff --git a/src/views/financial_settlement/index.vue b/src/views/financial_settlement/index.vue index 29f839f..5fbe7ed 100644 --- a/src/views/financial_settlement/index.vue +++ b/src/views/financial_settlement/index.vue @@ -73,12 +73,14 @@ import feedback from '@/utils/feedback' import EditPopup from './edit.vue' import { apiCostApprovedProjectSerch } from "@/api/cost_approved_project"; import detailConfig from './detail' +import { useRoute } from "vue-router" const editRef = shallowRef>() const detailRef = ref('') // 是否显示编辑框 const showEdit = ref(false) const showDetail = ref(false) +const route = useRoute() @@ -136,6 +138,10 @@ const handleDetail = async (id: any) => { detailRef.value?.setFormData(res) } +if (route.query?.contract_ledger) { + handleAdd() +} + getLists() diff --git a/src/views/marketing_framework_agreement/index.vue b/src/views/marketing_framework_agreement/index.vue index 4b0d8f9..3562917 100644 --- a/src/views/marketing_framework_agreement/index.vue +++ b/src/views/marketing_framework_agreement/index.vue @@ -71,7 +71,7 @@ @click="handledetail(row)"> 详情 - + 已生成合同 diff --git a/src/views/selfEvaluation/index.vue b/src/views/selfEvaluation/index.vue index 355d8d6..b476e26 100644 --- a/src/views/selfEvaluation/index.vue +++ b/src/views/selfEvaluation/index.vue @@ -43,11 +43,16 @@ - - - - - + + + + + + + + + +