fix: BUG修改
This commit is contained in:
parent
d1db264723
commit
76fa49fa7a
@ -133,7 +133,7 @@ export const payGovermentContactAdd = (params: any) => {
|
|||||||
export const payGovermentContactEdit = (params: any) => {
|
export const payGovermentContactEdit = (params: any) => {
|
||||||
return http.post(BASEURL + `/gov/investmentContract/edit`, params);
|
return http.post(BASEURL + `/gov/investmentContract/edit`, params);
|
||||||
};
|
};
|
||||||
// 投资支付合同设置结算定额日期
|
// 投资支付合同设置结算定案日期
|
||||||
export const payGovermentContactSet = (params: any) => {
|
export const payGovermentContactSet = (params: any) => {
|
||||||
return http.post(BASEURL + `/gov/engineering/edit`, params);
|
return http.post(BASEURL + `/gov/engineering/edit`, params);
|
||||||
};
|
};
|
||||||
|
|||||||
@ -17,7 +17,7 @@
|
|||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="fule" v-for="(data, i) in records" :key="i" @click="isActive(i)">
|
<div class="fule" v-for="(data, i) in records" :key="i" @click="isActive(i)">
|
||||||
<div class="item" :class="ActiveColor === i ? 'isActive' : ''">
|
<div class="item" :class="ActiveColor === i ? 'isActive' : ''">
|
||||||
<slot :data="data" />
|
<slot :data="data" :index="i" />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -39,16 +39,17 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { ref } from "vue";
|
import { ref, watch } from "vue";
|
||||||
import { Search } from "@element-plus/icons-vue";
|
import { Search } from "@element-plus/icons-vue";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
import type { ResAiProjectPage, ResAiEngineerPage } from "@/api/types/government/AIwaring";
|
import type { ResAiProjectPage, ResAiEngineerPage } from "@/api/types/government/AIwaring";
|
||||||
|
|
||||||
defineProps<{
|
const props = defineProps<{
|
||||||
modelValue: number;
|
modelValue: number;
|
||||||
records: ResAiProjectPage[] | ResAiEngineerPage[];
|
records: ResAiProjectPage[] | ResAiEngineerPage[];
|
||||||
pageable?: { pageNo: number; pageSize: number; total: number };
|
pageable?: { pageNo: number; pageSize: number; total: number };
|
||||||
tabs?: string[];
|
tabs?: string[];
|
||||||
|
activeIndex: number;
|
||||||
// leftBack?: boolean;
|
// leftBack?: boolean;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
@ -92,6 +93,12 @@ const search = () => {
|
|||||||
// if (!value.value.trim()) return ElMessage.warning("请先输入内容");
|
// if (!value.value.trim()) return ElMessage.warning("请先输入内容");
|
||||||
emit("search", value.value);
|
emit("search", value.value);
|
||||||
};
|
};
|
||||||
|
watch(
|
||||||
|
() => props.activeIndex,
|
||||||
|
async (value: number) => {
|
||||||
|
ActiveColor.value = value;
|
||||||
|
}
|
||||||
|
);
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style scoped lang="scss">
|
<style scoped lang="scss">
|
||||||
|
|||||||
@ -4,6 +4,7 @@
|
|||||||
v-model="active"
|
v-model="active"
|
||||||
:tabs="['项目名称', '工程名称']"
|
:tabs="['项目名称', '工程名称']"
|
||||||
:records="records"
|
:records="records"
|
||||||
|
:activeIndex="modelActive"
|
||||||
@change-page="onCurChange"
|
@change-page="onCurChange"
|
||||||
@search="onSearchInput"
|
@search="onSearchInput"
|
||||||
:pageable="pages"
|
:pageable="pages"
|
||||||
@ -127,6 +128,8 @@ import { useRoute } from "vue-router";
|
|||||||
import { bigItemGovermentAll } from "@/api/modules/huizhou";
|
import { bigItemGovermentAll } from "@/api/modules/huizhou";
|
||||||
import LeftMenu from "@/components/LeftMenu/LeftMenu.vue";
|
import LeftMenu from "@/components/LeftMenu/LeftMenu.vue";
|
||||||
import { getDustprojectPage, getDustengineeringPage } from "@/api/modules/goverment";
|
import { getDustprojectPage, getDustengineeringPage } from "@/api/modules/goverment";
|
||||||
|
import { sendIframeMessage } from "@/utils/util";
|
||||||
|
const modelActive = ref(null);
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const headerList = reactive([
|
const headerList = reactive([
|
||||||
{ label: "未开始", color: "#D0A530" },
|
{ label: "未开始", color: "#D0A530" },
|
||||||
@ -339,9 +342,18 @@ const getEngPage = async () => {
|
|||||||
};
|
};
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
await getEngPage();
|
await getEngPage();
|
||||||
onSearch(records.value[0]);
|
if (route.query.menuIndex) {
|
||||||
searchSn.value = (records.value as any[])[0].projectSn;
|
modelActive.value = route.query.menuIndex;
|
||||||
searchName.value = (records.value as any[])[0].projectName;
|
onSearch(records.value[modelActive.value]);
|
||||||
|
searchSn.value = (records.value as any[])[modelActive.value].projectSn;
|
||||||
|
searchName.value = (records.value as any[])[modelActive.value].projectName;
|
||||||
|
} else {
|
||||||
|
modelActive.value = 0;
|
||||||
|
onSearch(records.value[0]);
|
||||||
|
searchSn.value = (records.value as any[])[0].projectSn;
|
||||||
|
searchName.value = (records.value as any[])[0].projectName;
|
||||||
|
}
|
||||||
|
await sendIframeMessage({ obj: { path: route.path } }, 2, undefined);
|
||||||
});
|
});
|
||||||
const getGanttStyle = (project: any) => {
|
const getGanttStyle = (project: any) => {
|
||||||
console.log("进入 getGanttStyle --- ", project);
|
console.log("进入 getGanttStyle --- ", project);
|
||||||
|
|||||||
@ -39,7 +39,7 @@
|
|||||||
<template #formButton="scope">
|
<template #formButton="scope">
|
||||||
<el-button class="btnStyle" v-auth="'investment_contract_add'" @click="handleAddItem()">新增</el-button>
|
<el-button class="btnStyle" v-auth="'investment_contract_add'" @click="handleAddItem()">新增</el-button>
|
||||||
<el-button class="btnStyle" v-auth="'investment_contract_setting'" @click="handleSetDate()"
|
<el-button class="btnStyle" v-auth="'investment_contract_setting'" @click="handleSetDate()"
|
||||||
>设置结算定额日期</el-button
|
>设置结算定案日期</el-button
|
||||||
>
|
>
|
||||||
</template>
|
</template>
|
||||||
<!-- 表格操作 -->
|
<!-- 表格操作 -->
|
||||||
@ -63,7 +63,7 @@
|
|||||||
@confirm="saveItem"
|
@confirm="saveItem"
|
||||||
>
|
>
|
||||||
</DialogForm>
|
</DialogForm>
|
||||||
<!-- 设置结算定额日期 -->
|
<!-- 设置结算定案日期 -->
|
||||||
<DialogForm
|
<DialogForm
|
||||||
:title="dateTitle"
|
:title="dateTitle"
|
||||||
:formConfig="dateFormConfig"
|
:formConfig="dateFormConfig"
|
||||||
@ -128,7 +128,7 @@ const columns: ColumnProps[] = [
|
|||||||
// 多级 prop
|
// 多级 prop
|
||||||
{ prop: "contractAmount", label: "合同金额(万元)", width: 200 },
|
{ prop: "contractAmount", label: "合同金额(万元)", width: 200 },
|
||||||
{ prop: "settlementAmount", label: "结算金额(万元)", width: 200 },
|
{ prop: "settlementAmount", label: "结算金额(万元)", width: 200 },
|
||||||
{ prop: "settlementTime", label: "结算定额日期", width: 200 },
|
{ prop: "settlementTime", label: "结算定案日期", width: 200 },
|
||||||
{ prop: "applicationUnit", label: "申请单位", width: 200 },
|
{ prop: "applicationUnit", label: "申请单位", width: 200 },
|
||||||
{ prop: "bidderTime", label: "中标通知书申请", width: 200 },
|
{ prop: "bidderTime", label: "中标通知书申请", width: 200 },
|
||||||
{
|
{
|
||||||
@ -172,7 +172,7 @@ const formConfig = {
|
|||||||
type: "input"
|
type: "input"
|
||||||
},
|
},
|
||||||
// {
|
// {
|
||||||
// label: "结算定额日期",
|
// label: "结算定案日期",
|
||||||
// prop: "settlementTime",
|
// prop: "settlementTime",
|
||||||
// type: "date",
|
// type: "date",
|
||||||
// format: "YYYY-MM-DD",
|
// format: "YYYY-MM-DD",
|
||||||
@ -250,11 +250,11 @@ const formConfig = {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
// 设置结算定额日期
|
// 设置结算定案日期
|
||||||
const dateFormConfig = {
|
const dateFormConfig = {
|
||||||
formItemConfig: [
|
formItemConfig: [
|
||||||
{
|
{
|
||||||
label: "结算定额日期",
|
label: "结算定案日期",
|
||||||
prop: "settlementTime",
|
prop: "settlementTime",
|
||||||
type: "date",
|
type: "date",
|
||||||
format: "YYYY-MM-DD",
|
format: "YYYY-MM-DD",
|
||||||
@ -346,7 +346,7 @@ const saveItem = async (form: any) => {
|
|||||||
proTable.value.getTableList();
|
proTable.value.getTableList();
|
||||||
visible.value = false;
|
visible.value = false;
|
||||||
};
|
};
|
||||||
// 设置结算定额日期
|
// 设置结算定案日期
|
||||||
const saveDateItem = async (form: any) => {
|
const saveDateItem = async (form: any) => {
|
||||||
if (active.value === 0) {
|
if (active.value === 0) {
|
||||||
form.projectSn = searchSn.value;
|
form.projectSn = searchSn.value;
|
||||||
|
|||||||
@ -86,8 +86,11 @@
|
|||||||
// flex-wrap: wrap;
|
// flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
:deep() {
|
:deep() {
|
||||||
.el-form-item__content > :not(button) {
|
.el-form .el-form-item__content .el-range-editor {
|
||||||
// width: 160px;
|
width: 300px;
|
||||||
|
}
|
||||||
|
.el-range-separator {
|
||||||
|
color: var(--el-menu-text-color);
|
||||||
}
|
}
|
||||||
.el-input__wrapper {
|
.el-input__wrapper {
|
||||||
color: white;
|
color: white;
|
||||||
@ -108,7 +111,6 @@
|
|||||||
box-shadow: 0 0 0 1px var(--el-color-primary, var(--el-color-primary)) inset;
|
box-shadow: 0 0 0 1px var(--el-color-primary, var(--el-color-primary)) inset;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// :deep(.el-dialog__body) {
|
// :deep(.el-dialog__body) {
|
||||||
// padding: 0 0 0 0 !important;
|
// padding: 0 0 0 0 !important;
|
||||||
// background-color: pink;
|
// background-color: pink;
|
||||||
|
|||||||
@ -9,8 +9,8 @@
|
|||||||
:pageable="pages"
|
:pageable="pages"
|
||||||
class="leftMenu"
|
class="leftMenu"
|
||||||
>
|
>
|
||||||
<template #default="{ data }">
|
<template #default="{ data, index }">
|
||||||
<div class="leftProject" @click="onSearch(data)">
|
<div class="leftProject" @click="onSearch(data, index)">
|
||||||
<span class="projectName">{{ data.projectName || data.engineeringName }}</span>
|
<span class="projectName">{{ data.projectName || data.engineeringName }}</span>
|
||||||
<div class="leftMenu_item">
|
<div class="leftMenu_item">
|
||||||
<div class="leftMenu_item flx-justify-between">
|
<div class="leftMenu_item flx-justify-between">
|
||||||
@ -98,6 +98,7 @@ import { ColumnProps } from "@/components/ProTable/interface";
|
|||||||
import { parentItemGovermentList, payGovermentAdd } from "@/api/modules/huizhou";
|
import { parentItemGovermentList, payGovermentAdd } from "@/api/modules/huizhou";
|
||||||
import { useRoute, useRouter } from "vue-router";
|
import { useRoute, useRouter } from "vue-router";
|
||||||
import { sendIframeMessage } from "@/utils/util";
|
import { sendIframeMessage } from "@/utils/util";
|
||||||
|
const leftMenuIndex = ref(0);
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const pages = ref({
|
const pages = ref({
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
@ -174,7 +175,7 @@ const formConfig = {
|
|||||||
type: "input"
|
type: "input"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "结算定额日期",
|
label: "结算定案日期",
|
||||||
prop: "settlementTime",
|
prop: "settlementTime",
|
||||||
type: "date"
|
type: "date"
|
||||||
},
|
},
|
||||||
@ -255,7 +256,7 @@ const proTable = ref();
|
|||||||
const searchSn = ref("");
|
const searchSn = ref("");
|
||||||
// 跳转至甘特图
|
// 跳转至甘特图
|
||||||
const seeGantt = () => {
|
const seeGantt = () => {
|
||||||
router.push("/goverment/huizhou/progressManagement/GanttchartChart/index");
|
router.push("/goverment/huizhou/progressManagement/GanttchartChart/index?menuIndex=" + leftMenuIndex.value);
|
||||||
};
|
};
|
||||||
// 添加数据按钮
|
// 添加数据按钮
|
||||||
const handleAddItem = () => {
|
const handleAddItem = () => {
|
||||||
@ -322,7 +323,10 @@ const getTableList = (params: any) => {
|
|||||||
return parentItemGovermentList(newParams);
|
return parentItemGovermentList(newParams);
|
||||||
};
|
};
|
||||||
// 页面的项目名称和工程名称的div点击事件
|
// 页面的项目名称和工程名称的div点击事件
|
||||||
const onSearch = async (params: any) => {
|
const onSearch = async (params: any, index: number) => {
|
||||||
|
console.log(params);
|
||||||
|
console.log(index);
|
||||||
|
leftMenuIndex.value = index ? index : 0;
|
||||||
active.value === 0 ? (searchSn.value = params.projectSn) : (searchSn.value = params.engineeringSn);
|
active.value === 0 ? (searchSn.value = params.projectSn) : (searchSn.value = params.engineeringSn);
|
||||||
active.value === 0 ? (searchName.value = params.projectName) : (searchName.value = params.engineeringName);
|
active.value === 0 ? (searchName.value = params.projectName) : (searchName.value = params.engineeringName);
|
||||||
proTable.value.getTableList();
|
proTable.value.getTableList();
|
||||||
|
|||||||
@ -122,7 +122,7 @@ const columns: ColumnProps[] = [
|
|||||||
// 多级 prop
|
// 多级 prop
|
||||||
{ prop: "contractAmount", label: "合同金额(万元)" },
|
{ prop: "contractAmount", label: "合同金额(万元)" },
|
||||||
{ prop: "settlementAmount", label: "结算金额(万元)" },
|
{ prop: "settlementAmount", label: "结算金额(万元)" },
|
||||||
{ prop: "settlementTime", label: "结算定额日期" },
|
{ prop: "settlementTime", label: "结算定案日期" },
|
||||||
{ prop: "applicationUnit", label: "申请单位" },
|
{ prop: "applicationUnit", label: "申请单位" },
|
||||||
{ prop: "bidderTime", label: "中标通知书申请" },
|
{ prop: "bidderTime", label: "中标通知书申请" },
|
||||||
// { prop: "totalAmount", label: "累计拨款金额(万元)", width: 200 },
|
// { prop: "totalAmount", label: "累计拨款金额(万元)", width: 200 },
|
||||||
|
|||||||
@ -93,7 +93,7 @@ const columns: ColumnProps[] = [
|
|||||||
// 多级 prop
|
// 多级 prop
|
||||||
{ prop: "contractAmount", label: "合同金额(万元)" },
|
{ prop: "contractAmount", label: "合同金额(万元)" },
|
||||||
{ prop: "settlementAmount", label: "结算金额(万元)" },
|
{ prop: "settlementAmount", label: "结算金额(万元)" },
|
||||||
{ prop: "settlementTime", label: "结算定额日期" },
|
{ prop: "settlementTime", label: "结算定案日期" },
|
||||||
{ prop: "applicationUnit", label: "申请单位" },
|
{ prop: "applicationUnit", label: "申请单位" },
|
||||||
{ prop: "bidderTime", label: "中标通知书申请" },
|
{ prop: "bidderTime", label: "中标通知书申请" },
|
||||||
// { prop: "totalAmount", label: "累计拨款金额(万元)", width: 200 },
|
// { prop: "totalAmount", label: "累计拨款金额(万元)", width: 200 },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user