fix: BUG修改
This commit is contained in:
parent
e3d4cfd1a1
commit
f1d788a3a3
@ -125,6 +125,10 @@ export const payGovermentList = (params: any) => {
|
|||||||
export const payGovermentContactAdd = (params: any) => {
|
export const payGovermentContactAdd = (params: any) => {
|
||||||
return http.post(BASEURL + `/gov/investmentContract/add`, params);
|
return http.post(BASEURL + `/gov/investmentContract/add`, params);
|
||||||
};
|
};
|
||||||
|
// 投资支付合同设置结算定额日期
|
||||||
|
export const payGovermentContactSet = (params: any) => {
|
||||||
|
return http.post(BASEURL + `/gov/engineering/edit`, params);
|
||||||
|
};
|
||||||
// 投资支付列表
|
// 投资支付列表
|
||||||
export const payGovermentAllList = (params: any) => {
|
export const payGovermentAllList = (params: any) => {
|
||||||
return http.post(BASEURL + `/gov/investmentPayment/page`, params);
|
return http.post(BASEURL + `/gov/investmentPayment/page`, params);
|
||||||
@ -180,6 +184,10 @@ export const globalPlanGovermentAdd = (params: any) => {
|
|||||||
export const globalPlanGovermentEdit = (params: any) => {
|
export const globalPlanGovermentEdit = (params: any) => {
|
||||||
return http.post(BASEURL + `/gov/projectNodePlan/edit`, params);
|
return http.post(BASEURL + `/gov/projectNodePlan/edit`, params);
|
||||||
};
|
};
|
||||||
|
// 全景计划审批
|
||||||
|
export const globalPlanGovermentAudit = (params: any) => {
|
||||||
|
return http.post(BASEURL + `/gov/projectNodePlan/examine`, params);
|
||||||
|
};
|
||||||
|
|
||||||
// 全景计划(政务端)------------
|
// 全景计划(政务端)------------
|
||||||
// 全景计划分页列表
|
// 全景计划分页列表
|
||||||
|
|||||||
@ -149,7 +149,7 @@
|
|||||||
</el-form-item>
|
</el-form-item>
|
||||||
</template>
|
</template>
|
||||||
</el-form>
|
</el-form>
|
||||||
<template #footer>
|
<template #footer v-if="props.title != '查看'">
|
||||||
<el-button class="hzCancelStyle" @click="visible1 = false">取消</el-button>
|
<el-button class="hzCancelStyle" @click="visible1 = false">取消</el-button>
|
||||||
<el-button class="btnStyle" type="primary" @click="confirm(ruleFormRef)"> 保存 </el-button>
|
<el-button class="btnStyle" type="primary" @click="confirm(ruleFormRef)"> 保存 </el-button>
|
||||||
</template>
|
</template>
|
||||||
|
|||||||
@ -36,8 +36,11 @@
|
|||||||
background
|
background
|
||||||
:isShowSearch="false"
|
:isShowSearch="false"
|
||||||
>
|
>
|
||||||
<template #formButton="scope" v-auth="'investment_contract_add'">
|
<template #formButton="scope">
|
||||||
<el-button class="btnStyle" @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
|
||||||
|
>
|
||||||
</template>
|
</template>
|
||||||
<!-- 表格操作 -->
|
<!-- 表格操作 -->
|
||||||
<template #operation="{ row }">
|
<template #operation="{ row }">
|
||||||
@ -46,6 +49,7 @@
|
|||||||
</el-button>
|
</el-button>
|
||||||
</template>
|
</template>
|
||||||
</ProTable>
|
</ProTable>
|
||||||
|
<!-- 新增 -->
|
||||||
<DialogForm
|
<DialogForm
|
||||||
:title="title"
|
:title="title"
|
||||||
:formConfig="formConfig"
|
:formConfig="formConfig"
|
||||||
@ -56,6 +60,17 @@
|
|||||||
@confirm="saveItem"
|
@confirm="saveItem"
|
||||||
>
|
>
|
||||||
</DialogForm>
|
</DialogForm>
|
||||||
|
<!-- 设置结算定额日期 -->
|
||||||
|
<DialogForm
|
||||||
|
:title="dateTitle"
|
||||||
|
:formConfig="dateFormConfig"
|
||||||
|
:formData="dateFormData"
|
||||||
|
v-model:visible="dateVisible"
|
||||||
|
append-to-body
|
||||||
|
width="40%"
|
||||||
|
@confirm="saveDateItem"
|
||||||
|
>
|
||||||
|
</DialogForm>
|
||||||
</div>
|
</div>
|
||||||
<!-- 投资支付详情 -->
|
<!-- 投资支付详情 -->
|
||||||
<transformInfo1
|
<transformInfo1
|
||||||
@ -78,7 +93,13 @@ import LeftMenu from "@/components/LeftMenu/LeftMenu.vue";
|
|||||||
import ProTable from "@/components/ProTable/index.vue";
|
import ProTable from "@/components/ProTable/index.vue";
|
||||||
import DialogForm from "@/components/DialogForm/index.vue";
|
import DialogForm from "@/components/DialogForm/index.vue";
|
||||||
import { ColumnProps } from "@/components/ProTable/interface";
|
import { ColumnProps } from "@/components/ProTable/interface";
|
||||||
import { payGovermentEngList, payGovermentProList, payGovermentList, payGovermentContactAdd } from "@/api/modules/huizhou";
|
import {
|
||||||
|
payGovermentEngList,
|
||||||
|
payGovermentProList,
|
||||||
|
payGovermentList,
|
||||||
|
payGovermentContactAdd,
|
||||||
|
payGovermentContactSet
|
||||||
|
} from "@/api/modules/huizhou";
|
||||||
import { sendIframeMessage } from "@/utils/util";
|
import { sendIframeMessage } from "@/utils/util";
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const detailsDialog = ref(false);
|
const detailsDialog = ref(false);
|
||||||
@ -146,13 +167,13 @@ const formConfig = {
|
|||||||
prop: "settlementAmount",
|
prop: "settlementAmount",
|
||||||
type: "input"
|
type: "input"
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
label: "结算定额日期",
|
// label: "结算定额日期",
|
||||||
prop: "settlementTime",
|
// prop: "settlementTime",
|
||||||
type: "date",
|
// type: "date",
|
||||||
format: "YYYY-MM-DD",
|
// format: "YYYY-MM-DD",
|
||||||
valueFormat: "YYYY-MM-DD"
|
// valueFormat: "YYYY-MM-DD"
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
label: "申请单位",
|
label: "申请单位",
|
||||||
prop: "applicationUnit",
|
prop: "applicationUnit",
|
||||||
@ -225,21 +246,55 @@ const formConfig = {
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
// 设置结算定额日期
|
||||||
|
const dateFormConfig = {
|
||||||
|
formItemConfig: [
|
||||||
|
{
|
||||||
|
label: "结算定额日期",
|
||||||
|
prop: "settlementTime",
|
||||||
|
type: "date",
|
||||||
|
format: "YYYY-MM-DD",
|
||||||
|
valueFormat: "YYYY-MM-DD"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
rules: {
|
||||||
|
settlementTime: [
|
||||||
|
{
|
||||||
|
required: true,
|
||||||
|
message: "请选择",
|
||||||
|
trigger: "change"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
};
|
||||||
const formData = ref({
|
const formData = ref({
|
||||||
type: "",
|
type: "",
|
||||||
contractAmount: "",
|
contractAmount: "",
|
||||||
settlementAmount: "",
|
settlementAmount: "",
|
||||||
settlementTime: "",
|
|
||||||
applicationUnit: "",
|
applicationUnit: "",
|
||||||
bidderTime: "",
|
bidderTime: "",
|
||||||
contractTime: ""
|
contractTime: ""
|
||||||
});
|
});
|
||||||
|
const dateFormData = ref({
|
||||||
|
settlementTime: ""
|
||||||
|
});
|
||||||
|
const dateVisible = ref(false);
|
||||||
const visible = ref(false);
|
const visible = ref(false);
|
||||||
const title = ref("新增录像");
|
const title = ref("");
|
||||||
|
const dateTitle = ref("设置");
|
||||||
// 获取 ProTable 元素,调用其获取刷新数据方法(还能获取到当前查询参数,方便导出携带参数)
|
// 获取 ProTable 元素,调用其获取刷新数据方法(还能获取到当前查询参数,方便导出携带参数)
|
||||||
const proTable = ref();
|
const proTable = ref();
|
||||||
// 搜索用的项目sn或者工程sn
|
// 搜索用的项目sn或者工程sn
|
||||||
const searchSn = ref("");
|
const searchSn = ref("");
|
||||||
|
const searchId = ref("");
|
||||||
|
const handleSetDate = () => {
|
||||||
|
dateFormData.value = reactive({
|
||||||
|
settlementTime: ""
|
||||||
|
});
|
||||||
|
dateVisible.value = true;
|
||||||
|
dateTitle.value = "设置";
|
||||||
|
// formData.value = reactive({});
|
||||||
|
};
|
||||||
const handleItemDetail = (index: number, row: any) => {
|
const handleItemDetail = (index: number, row: any) => {
|
||||||
console.log(row);
|
console.log(row);
|
||||||
// if (index === 1) {
|
// if (index === 1) {
|
||||||
@ -279,6 +334,19 @@ const saveItem = async (form: any) => {
|
|||||||
proTable.value.getTableList();
|
proTable.value.getTableList();
|
||||||
visible.value = false;
|
visible.value = false;
|
||||||
};
|
};
|
||||||
|
// 设置结算定额日期
|
||||||
|
const saveDateItem = async (form: any) => {
|
||||||
|
if (active.value === 0) {
|
||||||
|
form.projectSn = searchSn.value;
|
||||||
|
} else {
|
||||||
|
form.engineeringSn = searchSn.value;
|
||||||
|
}
|
||||||
|
form.id = searchId.value;
|
||||||
|
const res = await payGovermentContactSet(form);
|
||||||
|
ElMessage.success("设置成功");
|
||||||
|
proTable.value.getTableList();
|
||||||
|
dateVisible.value = false;
|
||||||
|
};
|
||||||
// 项目或者工程名字
|
// 项目或者工程名字
|
||||||
const searchName = ref<string>("");
|
const searchName = ref<string>("");
|
||||||
// dataCallback 是对于返回的表格数据做处理,如果你后台返回的数据不是 list && total && pageNum && pageSize 这些字段,那么你可以在这里进行处理成这些字段
|
// dataCallback 是对于返回的表格数据做处理,如果你后台返回的数据不是 list && total && pageNum && pageSize 这些字段,那么你可以在这里进行处理成这些字段
|
||||||
@ -317,9 +385,11 @@ const onSearch = async (params: any) => {
|
|||||||
if (active.value === 0) {
|
if (active.value === 0) {
|
||||||
searchSn.value = params.projectSn;
|
searchSn.value = params.projectSn;
|
||||||
searchName.value = params.projectName;
|
searchName.value = params.projectName;
|
||||||
|
searchId.value = params.id;
|
||||||
} else {
|
} else {
|
||||||
searchSn.value = params.engineeringSn;
|
searchSn.value = params.engineeringSn;
|
||||||
searchName.value = params.engineeringName;
|
searchName.value = params.engineeringName;
|
||||||
|
searchId.value = params.id;
|
||||||
}
|
}
|
||||||
proTable.value.getTableList();
|
proTable.value.getTableList();
|
||||||
};
|
};
|
||||||
@ -389,6 +459,7 @@ onMounted(async () => {
|
|||||||
await getEngPage();
|
await getEngPage();
|
||||||
searchSn.value = records.value[0].projectSn;
|
searchSn.value = records.value[0].projectSn;
|
||||||
searchName.value = records.value[0].projectName;
|
searchName.value = records.value[0].projectName;
|
||||||
|
searchId.value = records.value[0].id;
|
||||||
onSearch(records.value[0]);
|
onSearch(records.value[0]);
|
||||||
await sendIframeMessage({ obj: { path: route.path } }, 2, undefined);
|
await sendIframeMessage({ obj: { path: route.path } }, 2, undefined);
|
||||||
});
|
});
|
||||||
|
|||||||
@ -52,6 +52,27 @@
|
|||||||
<img src="@/assets/images/tableIcon/look.png" alt="" class="configureIcon" />
|
<img src="@/assets/images/tableIcon/look.png" alt="" class="configureIcon" />
|
||||||
<span>查看</span>
|
<span>查看</span>
|
||||||
</el-button>
|
</el-button>
|
||||||
|
<el-button v-if="row.fillState == 1" type="primary" link @click="auditData(row)" v-auth="'node_plan_examine'">
|
||||||
|
<img src="@/assets/images/tableIcon/look.png" alt="" class="configureIcon" />
|
||||||
|
<span>审批</span>
|
||||||
|
</el-button>
|
||||||
|
<el-button type="primary" v-if="row.fillState == 2" link @click="againApply(row)" v-auth="'node_plan_resave'">
|
||||||
|
<img src="@/assets/images/tableIcon/look.png" alt="" class="configureIcon" />
|
||||||
|
<span>重新填报</span>
|
||||||
|
</el-button>
|
||||||
|
</template>
|
||||||
|
<template #fillState="{ row }">
|
||||||
|
<span>{{
|
||||||
|
row.fillState == 1
|
||||||
|
? "已填报"
|
||||||
|
: row.fillState == 2
|
||||||
|
? "已审核"
|
||||||
|
: row.fillState == 3
|
||||||
|
? "已驳回"
|
||||||
|
: row.fillState == 4
|
||||||
|
? "重新填报"
|
||||||
|
: ""
|
||||||
|
}}</span>
|
||||||
</template>
|
</template>
|
||||||
</ProTable>
|
</ProTable>
|
||||||
<DialogForm
|
<DialogForm
|
||||||
@ -66,6 +87,20 @@
|
|||||||
</DialogForm>
|
</DialogForm>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<!-- 审核 -->
|
||||||
|
<el-dialog title="审批" width="26%" v-model="aproveVisible" show-close>
|
||||||
|
<div style="display: flex; align-items: center">
|
||||||
|
<el-icon style="color: var(--el-menu-text-color); margin: 0 12px; font-size: 20px"><WarningFilled /></el-icon>
|
||||||
|
<span>是否通过审批?</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<template #footer>
|
||||||
|
<span class="dialog-footer">
|
||||||
|
<el-button class="hzCancelStyle" @click="reject">驳回</el-button>
|
||||||
|
<el-button type="primary" @click="onSubmit">通过</el-button>
|
||||||
|
</span>
|
||||||
|
</template>
|
||||||
|
</el-dialog>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -82,11 +117,15 @@ import {
|
|||||||
globalPlanProList,
|
globalPlanProList,
|
||||||
globalPlanEngList,
|
globalPlanEngList,
|
||||||
globalPlanGovermentAdd,
|
globalPlanGovermentAdd,
|
||||||
globalPlanGovermentEdit
|
globalPlanGovermentEdit,
|
||||||
|
globalPlanGovermentAudit
|
||||||
} from "@/api/modules/huizhou";
|
} from "@/api/modules/huizhou";
|
||||||
import { getDicList } from "@/api/modules/jxjview";
|
import { getDicList } from "@/api/modules/jxjview";
|
||||||
import { ElMessage } from "element-plus";
|
import { ElMessage } from "element-plus";
|
||||||
import { useRoute } from "vue-router";
|
import { useRoute } from "vue-router";
|
||||||
|
import { useHandleData } from "@/hooks/useHandleData";
|
||||||
|
const rowId = ref("");
|
||||||
|
const aproveVisible = ref(false);
|
||||||
const route = useRoute();
|
const route = useRoute();
|
||||||
const pages = ref({
|
const pages = ref({
|
||||||
pageNo: 1,
|
pageNo: 1,
|
||||||
@ -101,30 +140,15 @@ const store = GlobalStore();
|
|||||||
const columns: ColumnProps[] = [
|
const columns: ColumnProps[] = [
|
||||||
{ type: "index", label: "序号", width: 80 },
|
{ type: "index", label: "序号", width: 80 },
|
||||||
{
|
{
|
||||||
prop: "nodeNumber",
|
prop: "subItemName",
|
||||||
label: "节点编号",
|
label: "分部分项工程名称",
|
||||||
width: 150
|
width: 200
|
||||||
},
|
},
|
||||||
// 多级 prop
|
// 多级 prop
|
||||||
{ prop: "nodeName", label: "节点名称", width: 150, search: { el: "input" } },
|
{ prop: "childName", label: "子分项名称", width: 150, search: { el: "input" } },
|
||||||
{ prop: "type", label: "节点类型", width: 150 },
|
|
||||||
{ prop: "standardCompleteTime", label: "标准完成时间", width: 150 },
|
{ prop: "standardCompleteTime", label: "标准完成时间", width: 150 },
|
||||||
{ prop: "planCompleteTime", label: "计划完成时间", width: 150 },
|
{ prop: "planCompleteTime", label: "计划完成时间", width: 150 },
|
||||||
{ prop: "expectCompleteTime", label: "预计完成时间", width: 150 },
|
{ prop: "expectCompleteTime", label: "预计完成时间", width: 150 },
|
||||||
{
|
|
||||||
prop: "state",
|
|
||||||
label: "状态",
|
|
||||||
width: 150,
|
|
||||||
isShow: false,
|
|
||||||
search: { el: "select" },
|
|
||||||
enum: DicMainList.value,
|
|
||||||
fieldNames: { label: "dictValue", value: "dictLabel" }
|
|
||||||
},
|
|
||||||
{
|
|
||||||
prop: "status",
|
|
||||||
label: "状态",
|
|
||||||
width: 150
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
prop: "realCompleteTime",
|
prop: "realCompleteTime",
|
||||||
label: "实际完成时间",
|
label: "实际完成时间",
|
||||||
@ -136,25 +160,61 @@ const columns: ColumnProps[] = [
|
|||||||
// defaultValue: "2023-05"
|
// defaultValue: "2023-05"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ prop: "phaseName", label: "智能条线", width: 150 },
|
|
||||||
{ prop: "chargerName", label: "节点责任人", width: 150 },
|
|
||||||
{
|
{
|
||||||
prop: "isDeleted",
|
prop: "commander",
|
||||||
label: "节点失效标记",
|
label: "负责人",
|
||||||
width: 150,
|
width: 150
|
||||||
render: scoped => {
|
|
||||||
return scoped.row.isDeleted == 0 ? "有效" : "失效";
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "isSendBack",
|
prop: "completeRatio",
|
||||||
label: "是否退回",
|
label: "完成比率",
|
||||||
width: 150,
|
width: 150
|
||||||
render: scoped => {
|
|
||||||
return scoped.row.isSendBack == 1 ? "是" : "否";
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{ prop: "operation", label: "操作", width: 160, fixed: "right" }
|
{
|
||||||
|
prop: "state",
|
||||||
|
label: "状态",
|
||||||
|
width: 150,
|
||||||
|
isShow: false,
|
||||||
|
search: { el: "select" },
|
||||||
|
// enum: DicMainList.value,
|
||||||
|
enum: [
|
||||||
|
{ label: "未开始", value: 1 },
|
||||||
|
{ label: "推进中", value: 2 },
|
||||||
|
{ label: "按期完成", value: 3 },
|
||||||
|
{ label: "临期", value: 4 },
|
||||||
|
{ label: "超期", value: 5 },
|
||||||
|
{ label: "逾期完成", value: 6 },
|
||||||
|
{ label: "暂停", value: 7 }
|
||||||
|
]
|
||||||
|
// fieldNames: { label: "dictValue", value: "dictLabel" }
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: "state",
|
||||||
|
label: "状态",
|
||||||
|
width: 150
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: "fillState",
|
||||||
|
label: "填报状态",
|
||||||
|
width: 150
|
||||||
|
},
|
||||||
|
// {
|
||||||
|
// prop: "isDeleted",
|
||||||
|
// label: "节点失效标记",
|
||||||
|
// width: 150,
|
||||||
|
// render: scoped => {
|
||||||
|
// return scoped.row.isDeleted == 0 ? "有效" : "失效";
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
// {
|
||||||
|
// prop: "isSendBack",
|
||||||
|
// label: "是否退回",
|
||||||
|
// width: 150,
|
||||||
|
// render: scoped => {
|
||||||
|
// return scoped.row.isSendBack == 1 ? "是" : "否";
|
||||||
|
// }
|
||||||
|
// },
|
||||||
|
{ prop: "operation", label: "操作", width: 340, fixed: "right" }
|
||||||
];
|
];
|
||||||
const formData = ref({
|
const formData = ref({
|
||||||
nodeNumber: "",
|
nodeNumber: "",
|
||||||
@ -180,20 +240,14 @@ const proTable = ref();
|
|||||||
const formConfig = {
|
const formConfig = {
|
||||||
formItemConfig: [
|
formItemConfig: [
|
||||||
{
|
{
|
||||||
label: "节点编码",
|
label: "分部分项工程名称",
|
||||||
prop: "nodeNumber",
|
prop: "subItemName",
|
||||||
type: "input",
|
type: "input",
|
||||||
disabled: true
|
disabled: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "节点名称",
|
label: "子分项名称",
|
||||||
prop: "nodeName",
|
prop: "childName",
|
||||||
type: "input",
|
|
||||||
disabled: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "节点类型",
|
|
||||||
prop: "type",
|
|
||||||
type: "input",
|
type: "input",
|
||||||
disabled: true
|
disabled: true
|
||||||
},
|
},
|
||||||
@ -229,31 +283,33 @@ const formConfig = {
|
|||||||
valueFormat: "YYYY-MM-DD",
|
valueFormat: "YYYY-MM-DD",
|
||||||
disabled: true
|
disabled: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: "负责人",
|
||||||
|
prop: "commander",
|
||||||
|
type: "input",
|
||||||
|
disabled: true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "完成比率",
|
||||||
|
prop: "completeRatio",
|
||||||
|
type: "input",
|
||||||
|
disabled: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: "状态",
|
label: "状态",
|
||||||
prop: "state",
|
prop: "state",
|
||||||
type: "select",
|
type: "select",
|
||||||
data: [],
|
data: [
|
||||||
|
{ label: "未开始", value: 1 },
|
||||||
|
{ label: "推进中", value: 2 },
|
||||||
|
{ label: "按期完成", value: 3 },
|
||||||
|
{ label: "临期", value: 4 },
|
||||||
|
{ label: "超期", value: 5 },
|
||||||
|
{ label: "逾期完成", value: 6 },
|
||||||
|
{ label: "暂停", value: 7 }
|
||||||
|
],
|
||||||
clearable: true,
|
clearable: true,
|
||||||
disabled: true
|
disabled: true
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "实际偏差",
|
|
||||||
prop: "actualDeviation",
|
|
||||||
type: "input",
|
|
||||||
disabled: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "职能线条",
|
|
||||||
prop: "phaseName",
|
|
||||||
type: "input",
|
|
||||||
disabled: true
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "节点负责人",
|
|
||||||
prop: "chargerName",
|
|
||||||
type: "input",
|
|
||||||
disabled: true
|
|
||||||
}
|
}
|
||||||
// {
|
// {
|
||||||
// label: "负责人联系方式",
|
// label: "负责人联系方式",
|
||||||
@ -263,21 +319,7 @@ const formConfig = {
|
|||||||
// }
|
// }
|
||||||
],
|
],
|
||||||
rules: {
|
rules: {
|
||||||
nodeNumber: [
|
subItemName: [
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: "请输入",
|
|
||||||
trigger: "blur"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
nodeName: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: "请输入",
|
|
||||||
trigger: "blur"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
type: [
|
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: "请输入",
|
message: "请输入",
|
||||||
@ -291,35 +333,7 @@ const formConfig = {
|
|||||||
trigger: "blur"
|
trigger: "blur"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
planCompleteTime: [
|
commander: [
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: "请输入",
|
|
||||||
trigger: "blur"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
engineeringSn: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: "请输入",
|
|
||||||
trigger: "change"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
phaseName: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: "请输入",
|
|
||||||
trigger: "blur"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
chargerNumber: [
|
|
||||||
{
|
|
||||||
required: true,
|
|
||||||
message: "请输入",
|
|
||||||
trigger: "blur"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
chargerName: [
|
|
||||||
{
|
{
|
||||||
required: true,
|
required: true,
|
||||||
message: "请输入",
|
message: "请输入",
|
||||||
@ -330,6 +344,28 @@ const formConfig = {
|
|||||||
};
|
};
|
||||||
// 项目或者工程名字
|
// 项目或者工程名字
|
||||||
const searchName = ref<string>("");
|
const searchName = ref<string>("");
|
||||||
|
// 重新填报
|
||||||
|
const againApply = async (params: any) => {
|
||||||
|
await useHandleData(globalPlanGovermentAudit, { id: rowId.value, fillState: 4 }, `是否重新填报`);
|
||||||
|
proTable.value.getTableList();
|
||||||
|
};
|
||||||
|
// 审核
|
||||||
|
const auditData = async (row: any) => {
|
||||||
|
rowId.value = row.id;
|
||||||
|
aproveVisible.value = true;
|
||||||
|
};
|
||||||
|
const reject = async () => {
|
||||||
|
await globalPlanGovermentAudit({ id: rowId.value, fillState: 3 });
|
||||||
|
ElMessage.success("已驳回");
|
||||||
|
aproveVisible.value = false;
|
||||||
|
proTable.value.getTableList();
|
||||||
|
};
|
||||||
|
const onSubmit = async () => {
|
||||||
|
await globalPlanGovermentAudit({ id: rowId.value, fillState: 2 });
|
||||||
|
ElMessage.success("通过成功");
|
||||||
|
aproveVisible.value = false;
|
||||||
|
proTable.value.getTableList();
|
||||||
|
};
|
||||||
// 修改数据按钮
|
// 修改数据按钮
|
||||||
const handleEditItem = async (row: any) => {
|
const handleEditItem = async (row: any) => {
|
||||||
console.log(row);
|
console.log(row);
|
||||||
|
|||||||
@ -73,48 +73,56 @@ const columns: ColumnProps[] = [
|
|||||||
{ type: "index", label: "序号", width: 80 },
|
{ type: "index", label: "序号", width: 80 },
|
||||||
{
|
{
|
||||||
prop: "engineeringName",
|
prop: "engineeringName",
|
||||||
label: "工程名称",
|
label: "工程名称"
|
||||||
search: { el: "input" }
|
// search: { el: "input" }
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
prop: "engineeringCode",
|
prop: "engineeringCode",
|
||||||
label: "工程编号",
|
label: "工程编号"
|
||||||
search: { el: "input" }
|
// search: { el: "input" }
|
||||||
},
|
},
|
||||||
// 多级 prop
|
// 多级 prop
|
||||||
{
|
// {
|
||||||
prop: "district",
|
// prop: "district",
|
||||||
label: "所在区域",
|
// label: "所在区域"
|
||||||
enum: engineeringArea?.value,
|
// enum: engineeringArea?.value,
|
||||||
search: { el: "select", props: { filterable: true } }
|
// search: { el: "select", props: { filterable: true } }
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
prop: "engineeringType",
|
prop: "engineeringType",
|
||||||
label: "工程类型",
|
label: "工程类型",
|
||||||
enum: DicTypeList.value,
|
enum: DicTypeList.value,
|
||||||
search: { el: "select", props: { filterable: true } },
|
// search: { el: "select", props: { filterable: true } },
|
||||||
fieldNames: { label: "dictValue", value: "dictLabel" }
|
fieldNames: { label: "dictValue", value: "dictLabel" }
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
prop: "engineeringCode",
|
||||||
|
label: "负责人"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
prop: "engineeringCode",
|
||||||
|
label: "手机号"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
prop: "state",
|
prop: "state",
|
||||||
label: "工程状态",
|
label: "审批状态",
|
||||||
enum: DicStatusList.value,
|
enum: DicStatusList.value,
|
||||||
search: { el: "select", props: { filterable: true } },
|
// search: { el: "select", props: { filterable: true } },
|
||||||
fieldNames: { label: "dictValue", value: "dictLabel" }
|
fieldNames: { label: "dictValue", value: "dictLabel" }
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
prop: "createTime",
|
// prop: "createTime",
|
||||||
label: "提交时间",
|
// label: "提交时间"
|
||||||
search: {
|
// search: {
|
||||||
el: "date-picker",
|
// el: "date-picker",
|
||||||
props: {
|
// props: {
|
||||||
type: "daterange",
|
// type: "daterange",
|
||||||
format: "YYYY-MM-DD",
|
// format: "YYYY-MM-DD",
|
||||||
valueFormat: "YYYY-MM-DD"
|
// valueFormat: "YYYY-MM-DD"
|
||||||
// defaultTime: defaultTime2
|
// // defaultTime: defaultTime2
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
{ prop: "operation", label: "操作", fixed: "right", width: 150 }
|
{ prop: "operation", label: "操作", fixed: "right", width: 150 }
|
||||||
];
|
];
|
||||||
const relativeId = ref("");
|
const relativeId = ref("");
|
||||||
@ -169,7 +177,8 @@ const getTableList = (params: any) => {
|
|||||||
delete newParams.createTime;
|
delete newParams.createTime;
|
||||||
}
|
}
|
||||||
newParams.type = 2;
|
newParams.type = 2;
|
||||||
return getEngineeringApproveList(newParams);
|
// return getEngineeringApproveList(newParams);
|
||||||
|
return { result: { records: [], current: "1", pages: "1", size: "10", total: "0" } };
|
||||||
};
|
};
|
||||||
// dataCallback 是对于返回的表格数据做处理,如果你后台返回的数据不是 list && total && pageNum && pageSize 这些字段,那么你可以在这里进行处理成这些字段
|
// dataCallback 是对于返回的表格数据做处理,如果你后台返回的数据不是 list && total && pageNum && pageSize 这些字段,那么你可以在这里进行处理成这些字段
|
||||||
// 或者直接去 hooks/useTable.ts 文件中把字段改为你后端对应的就行
|
// 或者直接去 hooks/useTable.ts 文件中把字段改为你后端对应的就行
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user