update
This commit is contained in:
parent
b0700edcd1
commit
a56189ab34
@ -1,26 +1,30 @@
|
||||
import request from '@/utils/request'
|
||||
import request from "@/utils/request";
|
||||
|
||||
// 项目提成列表
|
||||
export function apiProjectCommissionLists(params: any) {
|
||||
return request.get({ url: '/project_commission/lists', params })
|
||||
return request.get({ url: "/project_commission/lists", params });
|
||||
}
|
||||
|
||||
// 添加项目提成
|
||||
export function apiProjectCommissionAdd(params: any) {
|
||||
return request.post({ url: '/project_commission/add', params })
|
||||
return request.post({ url: "/project_commission/add", params });
|
||||
}
|
||||
|
||||
// 编辑项目提成
|
||||
export function apiProjectCommissionEdit(params: any) {
|
||||
return request.post({ url: '/project_commission/edit', params })
|
||||
return request.post({ url: "/project_commission/edit", params });
|
||||
}
|
||||
|
||||
// 删除项目提成
|
||||
export function apiProjectCommissionDelete(params: any) {
|
||||
return request.post({ url: '/project_commission/delete', params })
|
||||
return request.post({ url: "/project_commission/delete", params });
|
||||
}
|
||||
|
||||
// 项目提成详情
|
||||
export function apiProjectCommissionDetail(params: any) {
|
||||
return request.get({ url: '/project_commission/detail', params })
|
||||
}
|
||||
return request.get({ url: "/project_commission/detail", params });
|
||||
}
|
||||
|
||||
export function apiProjectCommissionSearch(params: any) {
|
||||
return request.get({ url: "/project_commission/datas", params });
|
||||
}
|
||||
|
@ -2,6 +2,10 @@
|
||||
<div>
|
||||
<el-card class="!border-none mb-4" shadow="never">
|
||||
<el-form class="mb-[-16px]" :model="queryParams" inline>
|
||||
<el-form-item label="提成单号" prop="project_commission_id">
|
||||
<selectRemote :formData="queryParams" model="project_commission_id"
|
||||
:api="apiProjectCommissionSearch" />
|
||||
</el-form-item>
|
||||
<el-form-item label="工程师" prop="engineer">
|
||||
<el-input class="w-[280px]" v-model="queryParams.engineer" clearable placeholder="请输入工程师" />
|
||||
</el-form-item>
|
||||
@ -25,6 +29,7 @@
|
||||
<div class="mt-4">
|
||||
<el-table :data="pager.lists" @selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column label="提成单号" prop="project_commission_num" show-overflow-tooltip />
|
||||
<el-table-column label="工程师" prop="engineer" show-overflow-tooltip />
|
||||
<el-table-column label="任务名称" prop="task_name" show-overflow-tooltip />
|
||||
<el-table-column label="任务类型" prop="task_type">
|
||||
@ -69,7 +74,7 @@
|
||||
import { usePaging } from '@/hooks/usePaging'
|
||||
import { useDictData } from '@/hooks/useDictOptions'
|
||||
import { apiProjectCommissionDetailLists, apiProjectCommissionDetailDelete, apiProjectCommissionDetailDetail } from '@/api/project_commission_detail'
|
||||
import { timeFormat } from '@/utils/util'
|
||||
import { apiProjectCommissionSearch } from '@/api/project_commission'
|
||||
import feedback from '@/utils/feedback'
|
||||
import EditPopup from './edit.vue'
|
||||
|
||||
@ -80,6 +85,7 @@ const showEdit = ref(false)
|
||||
|
||||
// 查询条件
|
||||
const queryParams = reactive({
|
||||
project_commission_id: '',
|
||||
engineer: '',
|
||||
task_name: '',
|
||||
})
|
||||
@ -126,4 +132,3 @@ const handleDelete = async (id: number | any[]) => {
|
||||
|
||||
getLists()
|
||||
</script>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user