add
This commit is contained in:
parent
0354a658e4
commit
580d36159e
@ -19,15 +19,15 @@ const detailConfig = {
|
||||
},
|
||||
{
|
||||
label: "行业",
|
||||
value: "industry_text"
|
||||
value: "industry_nature_text"
|
||||
},
|
||||
{
|
||||
label: "所在省份",
|
||||
value: "province_text"
|
||||
value: "province_name"
|
||||
},
|
||||
{
|
||||
label: "所在市区",
|
||||
value: "city_text"
|
||||
value: "city_name"
|
||||
},
|
||||
{
|
||||
label: "具体地址",
|
||||
@ -47,15 +47,15 @@ const detailConfig = {
|
||||
},
|
||||
{
|
||||
label: "组织",
|
||||
value: "org_text",
|
||||
value: "org_name",
|
||||
},
|
||||
{
|
||||
label: "部门",
|
||||
value: "depar_text",
|
||||
value: "dept_name",
|
||||
},
|
||||
{
|
||||
label: "项目负责人",
|
||||
value: "principal",
|
||||
value: "contract.signing_person",
|
||||
},
|
||||
{
|
||||
label: "项目相关人员",
|
||||
|
53
src/views/project_rectification/detail.js
Normal file
53
src/views/project_rectification/detail.js
Normal file
@ -0,0 +1,53 @@
|
||||
const detailConfig = {
|
||||
title: "项目踏勘会签",
|
||||
config: [
|
||||
{
|
||||
label: "单据编号",
|
||||
value: "num"
|
||||
},
|
||||
{
|
||||
label: "项目名称",
|
||||
value: "projectInfo.project_name"
|
||||
},
|
||||
{
|
||||
label: "项目编号",
|
||||
value: "projectInfo.project_num"
|
||||
},
|
||||
{
|
||||
label: "委托单位",
|
||||
value: "wt_unit"
|
||||
},
|
||||
{
|
||||
label: "项目负责人",
|
||||
value: "xm_master"
|
||||
},
|
||||
{
|
||||
label: "咨询类型",
|
||||
value: "zg_master"
|
||||
},
|
||||
{
|
||||
label: "登记人",
|
||||
value: "dj_person"
|
||||
},
|
||||
{
|
||||
label: "登记日期",
|
||||
value: "apptime"
|
||||
},
|
||||
{
|
||||
label: "存在问题",
|
||||
value: "problem"
|
||||
},
|
||||
{
|
||||
label: "修改情况",
|
||||
value: "deal_desc"
|
||||
},
|
||||
{
|
||||
label: "备注",
|
||||
value: "remark",
|
||||
column: 1
|
||||
},
|
||||
],
|
||||
|
||||
|
||||
}
|
||||
export default detailConfig;
|
@ -77,6 +77,10 @@
|
||||
type="danger" link @click="handleDelete(row.id)">
|
||||
删除
|
||||
</el-button>
|
||||
<el-button v-perms="['project_process_management.project_rectification/detail']" link
|
||||
@click="handleDetail(row)">
|
||||
详情
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@ -86,6 +90,9 @@
|
||||
</div>
|
||||
</el-card>
|
||||
<edit-popup v-if="showEdit" ref="editRef" :dict-data="dictData" @success="getLists" @close="showEdit = false" />
|
||||
<detailPage v-if="showDetail" :column="2" ref="detailRef" @close="showDetail = false"
|
||||
:detailConfig="detailConfig" width="50vw" />
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -96,10 +103,13 @@ import { apiProjectRectificationLists, apiProjectRectificationDelete, apiProject
|
||||
import feedback from '@/utils/feedback'
|
||||
import EditPopup from './edit.vue'
|
||||
import { apiCostProjectDatas } from "@/api/cost_project";
|
||||
import detailConfig from './detail'
|
||||
|
||||
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
|
||||
const detailRef = ref('')
|
||||
// 是否显示编辑框
|
||||
const showEdit = ref(false)
|
||||
const showDetail = ref(false)
|
||||
|
||||
|
||||
// 查询条件
|
||||
@ -151,5 +161,14 @@ const handleDelete = async (id: number | any[]) => {
|
||||
getLists()
|
||||
}
|
||||
|
||||
// 详情
|
||||
const handleDetail = async (row) => {
|
||||
let res = await apiProjectRectificationDetail({ id: row.id })
|
||||
showDetail.value = true
|
||||
await nextTick()
|
||||
detailRef.value?.open()
|
||||
detailRef.value?.setFormData(res)
|
||||
}
|
||||
|
||||
getLists()
|
||||
</script>
|
||||
|
@ -1,5 +1,5 @@
|
||||
const detailConfig = {
|
||||
title: "项目提成",
|
||||
title: "项目踏勘会签",
|
||||
config: [
|
||||
{
|
||||
label: "单据编号",
|
||||
@ -29,6 +29,42 @@ const detailConfig = {
|
||||
label: "项目负责人",
|
||||
value: "xmfz"
|
||||
},
|
||||
{
|
||||
label: "踏勘日期",
|
||||
value: "riqi"
|
||||
},
|
||||
{
|
||||
label: "踏勘人员",
|
||||
value: "people"
|
||||
},
|
||||
{
|
||||
label: "登记人",
|
||||
value: "djr"
|
||||
},
|
||||
{
|
||||
label: "登记日期",
|
||||
value: "apptime"
|
||||
},
|
||||
{
|
||||
label: "踏勘内容",
|
||||
value: "content"
|
||||
},
|
||||
{
|
||||
label: "核实结果",
|
||||
value: "result"
|
||||
},
|
||||
{
|
||||
label: "备注",
|
||||
value: "remark",
|
||||
column: 1
|
||||
},
|
||||
{
|
||||
label: "附件",
|
||||
value: "annex",
|
||||
column: 1
|
||||
},
|
||||
|
||||
|
||||
],
|
||||
|
||||
|
||||
|
@ -64,6 +64,10 @@
|
||||
type="danger" link @click="handleDelete(row.id)">
|
||||
删除
|
||||
</el-button>
|
||||
<el-button v-perms="['project_process_management.project_survey_signature/detail']" link
|
||||
@click="handleDetail(row)">
|
||||
详情
|
||||
</el-button>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
@ -73,6 +77,8 @@
|
||||
</div>
|
||||
</el-card>
|
||||
<edit-popup v-if="showEdit" ref="editRef" :dict-data="dictData" @success="getLists" @close="showEdit = false" />
|
||||
<detailPage v-if="showDetail" ref="detailRef" @close="showDetail = false" :detailConfig="detailConfig" />
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -85,10 +91,13 @@ import feedback from '@/utils/feedback'
|
||||
import EditPopup from './edit.vue'
|
||||
import { apiCostProjectDatas } from "@/api/cost_project";
|
||||
import { useDictOptions } from "@/hooks/useDictOptions"
|
||||
import detailConfig from './detail'
|
||||
|
||||
const editRef = shallowRef<InstanceType<typeof EditPopup>>()
|
||||
const detailRef = ref('')
|
||||
// 是否显示编辑框
|
||||
const showEdit = ref(false)
|
||||
const showDetail = ref(false)
|
||||
|
||||
const loading = ref(false)
|
||||
|
||||
@ -157,5 +166,14 @@ const handleDelete = async (id: number | any[]) => {
|
||||
getLists()
|
||||
}
|
||||
|
||||
// 详情
|
||||
const handleDetail = async (row) => {
|
||||
let res = await apiProjectSurveySignatureDetail({ id: row.id })
|
||||
showDetail.value = true
|
||||
await nextTick()
|
||||
detailRef.value?.open()
|
||||
detailRef.value?.setFormData(res)
|
||||
}
|
||||
|
||||
getLists()
|
||||
</script>
|
||||
|
@ -1,5 +1,5 @@
|
||||
const detailConfig = {
|
||||
title: "工程监理--第一次工地会议",
|
||||
title: "任务类别",
|
||||
config: [
|
||||
{
|
||||
label: "所属项目",
|
||||
|
Loading…
x
Reference in New Issue
Block a user