This commit is contained in:
zmj 2024-05-16 14:35:13 +08:00
parent e371731f3e
commit d69b0f5c0e
2 changed files with 4 additions and 21 deletions

View File

@ -46,7 +46,6 @@
<el-table-column :render-header="pager.calcWidth" label="合同未回款金额" prop="" show-overflow-tooltip>
<template #default="{ row }">
{{ (+row.signed_amount) - (+row.total_refund_amount) }}
</template>
</el-table-column>
<el-table-column :render-header="pager.calcWidth" label="回款日期" prop="refund_date"
@ -68,8 +67,7 @@
@click="handleDetail(row)">
详情
</el-button>
<el-button v-perms="['contract.contract_negotiation/detail']" link
@click="handleDown(row.id)">
<el-button v-perms="['contract.contract_negotiation/detail']" link @click="handleDown(row.id)">
下载
</el-button>
</template>
@ -89,7 +87,6 @@ import { usePaging } from '@/hooks/usePaging'
import { useDictData } from '@/hooks/useDictOptions'
import { apiContractLedgerLists, apiMarketingContract, apiMarketingContractdownload } from '@/api/contract_ledger'
import feedback from '@/utils/feedback'
import detailConfig from './detail.js'
import supervision_project from "@/views/supervision_project/detail.js"
import manage_project from "@/views/manage_project/detail.js"
import consult_project from "@/views/consult_project/detail.js"
@ -102,12 +99,10 @@ import { apiConsultProjectDetail } from '@/api/consult_project'
import { apiCostProjectDetail } from '@/api/cost_project'
const targetDetail = ref({})
const detailRef = shallowRef<InstanceType<typeof EditPopup>>()
// //
const showDetail = ref(false)
//
const queryParams = reactive({
contract_name: "",
@ -115,13 +110,6 @@ const queryParams = reactive({
contract_type: '',
})
//
const selectData = ref<any[]>([])
//
const { dictData } = useDictData('cost_consultation_business_nature,cost_contract_type')
//
const { pager, getLists, resetParams, resetPage } = usePaging({
@ -165,9 +153,6 @@ const handleDetail = async (row: any) => {
}
}
//
const handleDown = async (id: number | any[]) => {
let res = await apiMarketingContractdownload({ id })
@ -175,6 +160,5 @@ const handleDown = async (id: number | any[]) => {
a.href = res.url
a.click()
}
// console.log(supervision_project, '1212')
getLists()
</script>

View File

@ -52,14 +52,12 @@
<el-table-column label="合同类型" prop="contract_type_text" show-overflow-tooltip />
<el-table-column label="甲方单位" :render-header="pager.calcWidth" prop="part_a_name"
show-overflow-tooltip />
<el-table-column label="乙方单位" :render-header="pager.calcWidth" prop="part_b"
show-overflow-tooltip />
<el-table-column label="乙方单位" :render-header="pager.calcWidth" prop="part_b" show-overflow-tooltip />
<el-table-column label="签订金额" prop="signed_amount" show-overflow-tooltip />
<el-table-column label="签订部门" prop="signed_dept_name" show-overflow-tooltip />
<el-table-column label="签订负责人" prop="signed_head_name" show-overflow-tooltip />
<el-table-column label="业务性质" prop="business_nature_text" show-overflow-tooltip />
<el-table-column :render-header="pager.calcWidth" label="发出日期" prop="send_date"
show-overflow-tooltip />
<el-table-column :render-header="pager.calcWidth" label="发出日期" prop="send_date" show-overflow-tooltip />
<el-table-column label="操作" width="120" fixed="right">
<template #default="{ row }">
<el-button v-perms="['marketing.marketing_contract/edit']" type="primary" link
@ -157,6 +155,7 @@ const handleClose = async (type: any) => {
await apiMarketingHandoverContractHandover({ id: row.value.id })
getLists()
}
marketing_handover_contract.value = false
}
getLists()