192 lines
9.9 KiB
Vue
192 lines
9.9 KiB
Vue
<template>
|
|
<div>
|
|
<el-card class="!border-none mb-4" shadow="never">
|
|
<el-form
|
|
class="mb-[-16px]"
|
|
:model="queryParams"
|
|
inline
|
|
>
|
|
<el-form-item label="合同名称" prop="contract_name">
|
|
<el-input class="w-[280px]" v-model="queryParams.contract_name" clearable placeholder="请输入合同名称" />
|
|
</el-form-item>
|
|
<el-form-item label="合同编号" prop="contract_num">
|
|
<el-input class="w-[280px]" v-model="queryParams.contract_num" clearable placeholder="请输入合同编号" />
|
|
</el-form-item>
|
|
<el-form-item label="甲方签约单位" prop="part_a">
|
|
<el-input class="w-[280px]" v-model="queryParams.part_a" clearable placeholder="请输入甲方签约单位" />
|
|
</el-form-item>
|
|
<el-form-item label="乙方签约单位" prop="part_b">
|
|
<el-input class="w-[280px]" v-model="queryParams.part_b" clearable placeholder="请输入乙方签约单位" />
|
|
</el-form-item>
|
|
<el-form-item label="业务性质" prop="business_nature">
|
|
<el-input class="w-[280px]" v-model="queryParams.business_nature" clearable placeholder="请输入业务性质" />
|
|
</el-form-item>
|
|
<el-form-item label="行业性质" prop="industry_nature">
|
|
<el-input class="w-[280px]" v-model="queryParams.industry_nature" clearable placeholder="请输入行业性质" />
|
|
</el-form-item>
|
|
<el-form-item label="资金来源" prop="fund_sources">
|
|
<el-input class="w-[280px]" v-model="queryParams.fund_sources" clearable placeholder="请输入资金来源" />
|
|
</el-form-item>
|
|
<el-form-item label="建设区域" prop="const_area">
|
|
<el-input class="w-[280px]" v-model="queryParams.const_area" clearable placeholder="请输入建设区域" />
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-button type="primary" @click="resetPage">查询</el-button>
|
|
<el-button @click="resetParams">重置</el-button>
|
|
</el-form-item>
|
|
</el-form>
|
|
</el-card>
|
|
<el-card class="!border-none" v-loading="pager.loading" shadow="never">
|
|
<el-button v-perms="['cost_project.cost_approved_project/add']" type="primary" @click="handleAdd">
|
|
<template #icon>
|
|
<icon name="el-icon-Plus" />
|
|
</template>
|
|
新增
|
|
</el-button>
|
|
<el-button
|
|
v-perms="['cost_project.cost_approved_project/delete']"
|
|
:disabled="!selectData.length"
|
|
@click="handleDelete(selectData)"
|
|
>
|
|
删除
|
|
</el-button>
|
|
<div class="mt-4">
|
|
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
|
|
<el-table-column type="selection" width="55" />
|
|
<el-table-column label="合同名称" prop="contract_name" show-overflow-tooltip />
|
|
<el-table-column label="合同编号" prop="contract_num" show-overflow-tooltip />
|
|
<el-table-column label="甲方签约单位" prop="part_a" show-overflow-tooltip />
|
|
<el-table-column label="甲方联系人" prop="part_a_contract" show-overflow-tooltip />
|
|
<el-table-column label="业主地址" prop="part_a_address" show-overflow-tooltip />
|
|
<el-table-column label="乙方签约单位" prop="part_b" show-overflow-tooltip />
|
|
<el-table-column label="乙方签约人" prop="part_b_signatory" show-overflow-tooltip />
|
|
<el-table-column label="业务性质" prop="business_nature" show-overflow-tooltip />
|
|
<el-table-column label="行业性质" prop="industry_nature" show-overflow-tooltip />
|
|
<el-table-column label="资金来源" prop="fund_sources" show-overflow-tooltip />
|
|
<el-table-column label="建设区域" prop="const_area" show-overflow-tooltip />
|
|
<el-table-column label="工程总投资" prop="project_money" show-overflow-tooltip />
|
|
<el-table-column label="造价业务类别" prop="servicecategory" show-overflow-tooltip />
|
|
<el-table-column label="工程规模及概况" prop="project_scale" show-overflow-tooltip />
|
|
<el-table-column label="签订金额(元)" prop="money" show-overflow-tooltip />
|
|
<el-table-column label="合同签订费率(%)" prop="rate" show-overflow-tooltip />
|
|
<el-table-column label="合同服务工期" prop="contract_service" show-overflow-tooltip />
|
|
<el-table-column label="合同计划开始日期" prop="start_date" show-overflow-tooltip />
|
|
<el-table-column label="合同计划结束日期" prop="end_date" show-overflow-tooltip />
|
|
<el-table-column label="合同履约金(元)" prop="performance" show-overflow-tooltip />
|
|
<el-table-column label="履约金到期时间" prop="due_time" show-overflow-tooltip />
|
|
<el-table-column label="合同付款方式" prop="payment" show-overflow-tooltip />
|
|
<el-table-column label="合同主要内容" prop="content" show-overflow-tooltip />
|
|
<el-table-column label="创建人" prop="founder" show-overflow-tooltip />
|
|
<el-table-column label="创建日期" prop="create_date" show-overflow-tooltip />
|
|
<el-table-column label="签订部门" prop="dept" show-overflow-tooltip />
|
|
<el-table-column label="签订负责人" prop="signing_person" show-overflow-tooltip />
|
|
<el-table-column label="监管部门" prop="regulators" show-overflow-tooltip />
|
|
<el-table-column label="项目总监/经理" prop="project_director" show-overflow-tooltip />
|
|
<el-table-column label="实施方式" prop="way" show-overflow-tooltip />
|
|
<el-table-column label="盖章名称" prop="seal_name" show-overflow-tooltip />
|
|
<el-table-column label="是否限制" prop="limit" show-overflow-tooltip />
|
|
<el-table-column label="限制次数" prop="limit_num" show-overflow-tooltip />
|
|
<el-table-column label="文件类型" prop="file_type" show-overflow-tooltip />
|
|
<el-table-column label="盖章份数" prop="seal_num" show-overflow-tooltip />
|
|
<el-table-column label="盖章人" prop="sealer" show-overflow-tooltip />
|
|
<el-table-column label="骑缝盖章" prop="plance_seal" show-overflow-tooltip />
|
|
<el-table-column label="发出日期" prop="send_date" show-overflow-tooltip />
|
|
<el-table-column label="邮寄编号" prop="number" show-overflow-tooltip />
|
|
<el-table-column label="操作" width="120" fixed="right">
|
|
<template #default="{ row }">
|
|
<el-button
|
|
v-perms="['cost_project.cost_approved_project/edit']"
|
|
type="primary"
|
|
link
|
|
@click="handleEdit(row)"
|
|
>
|
|
编辑
|
|
</el-button>
|
|
<el-button
|
|
v-perms="['cost_project.cost_approved_project/delete']"
|
|
type="danger"
|
|
link
|
|
@click="handleDelete(row.id)"
|
|
>
|
|
删除
|
|
</el-button>
|
|
</template>
|
|
</el-table-column>
|
|
</el-table>
|
|
</div>
|
|
<div class="flex mt-4 justify-end">
|
|
<pagination v-model="pager" @change="getLists" />
|
|
</div>
|
|
</el-card>
|
|
<edit-popup v-if="showEdit" ref="editRef" :dict-data="dictData" @success="getLists" @close="showEdit = false" />
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup name="costApprovedProjectLists">
|
|
import { usePaging } from '@/hooks/usePaging'
|
|
import { useDictData } from '@/hooks/useDictOptions'
|
|
import { apiCostApprovedProjectLists, apiCostApprovedProjectDelete } from '@/api/cost_approved_project'
|
|
import { timeFormat } from '@/utils/util'
|
|
import feedback from '@/utils/feedback'
|
|
import EditPopup from './edit.vue'
|
|
|
|
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
|
|
// 是否显示编辑框
|
|
const showEdit = ref(false)
|
|
|
|
|
|
// 查询条件
|
|
const queryParams = reactive({
|
|
contract_name: '',
|
|
contract_num: '',
|
|
part_a: '',
|
|
part_b: '',
|
|
business_nature: '',
|
|
industry_nature: '',
|
|
fund_sources: '',
|
|
const_area: ''
|
|
})
|
|
|
|
// 选中数据
|
|
const selectData = ref<any[]>([])
|
|
|
|
// 表格选择后回调事件
|
|
const handleSelectionChange = (val: any[]) => {
|
|
selectData.value = val.map(({ id }) => id)
|
|
}
|
|
|
|
// 获取字典数据
|
|
const { dictData } = useDictData('')
|
|
|
|
// 分页相关
|
|
const { pager, getLists, resetParams, resetPage } = usePaging({
|
|
fetchFun: apiCostApprovedProjectLists,
|
|
params: queryParams
|
|
})
|
|
|
|
// 添加
|
|
const handleAdd = async () => {
|
|
showEdit.value = true
|
|
await nextTick()
|
|
editRef.value?.open('add')
|
|
}
|
|
|
|
// 编辑
|
|
const handleEdit = async (data: any) => {
|
|
showEdit.value = true
|
|
await nextTick()
|
|
editRef.value?.open('edit')
|
|
editRef.value?.setFormData(data)
|
|
}
|
|
|
|
// 删除
|
|
const handleDelete = async (id: number | any[]) => {
|
|
await feedback.confirm('确定要删除?')
|
|
await apiCostApprovedProjectDelete({ id })
|
|
getLists()
|
|
}
|
|
|
|
getLists()
|
|
</script>
|
|
|