From f1d788a3a31e40714f433fdefa858a02f30e12a3 Mon Sep 17 00:00:00 2001
From: kun <1422840143@qq.com>
Date: Fri, 11 Aug 2023 18:41:21 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20BUG=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/modules/huizhou.ts | 8 +
src/components/DialogForm/index.vue | 2 +-
.../investmentPayment/index.vue | 95 ++++++-
.../panoramicPlan/index.vue | 252 ++++++++++--------
.../projectApproval/index.vue | 63 +++--
5 files changed, 272 insertions(+), 148 deletions(-)
diff --git a/src/api/modules/huizhou.ts b/src/api/modules/huizhou.ts
index b2e58cf..78ce0c4 100644
--- a/src/api/modules/huizhou.ts
+++ b/src/api/modules/huizhou.ts
@@ -125,6 +125,10 @@ export const payGovermentList = (params: any) => {
export const payGovermentContactAdd = (params: any) => {
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) => {
return http.post(BASEURL + `/gov/investmentPayment/page`, params);
@@ -180,6 +184,10 @@ export const globalPlanGovermentAdd = (params: any) => {
export const globalPlanGovermentEdit = (params: any) => {
return http.post(BASEURL + `/gov/projectNodePlan/edit`, params);
};
+// 全景计划审批
+export const globalPlanGovermentAudit = (params: any) => {
+ return http.post(BASEURL + `/gov/projectNodePlan/examine`, params);
+};
// 全景计划(政务端)------------
// 全景计划分页列表
diff --git a/src/components/DialogForm/index.vue b/src/components/DialogForm/index.vue
index 1592c26..5cde646 100644
--- a/src/components/DialogForm/index.vue
+++ b/src/components/DialogForm/index.vue
@@ -149,7 +149,7 @@
-
+
取消
保存
diff --git a/src/views/goverment/huizhou/progressManagement/investmentPayment/index.vue b/src/views/goverment/huizhou/progressManagement/investmentPayment/index.vue
index 95c0559..6e6db1c 100644
--- a/src/views/goverment/huizhou/progressManagement/investmentPayment/index.vue
+++ b/src/views/goverment/huizhou/progressManagement/investmentPayment/index.vue
@@ -36,8 +36,11 @@
background
:isShowSearch="false"
>
-
- 新增
+
+ 新增
+ 设置结算定额日期
@@ -46,6 +49,7 @@
+
+
+
+
{
+ dateFormData.value = reactive({
+ settlementTime: ""
+ });
+ dateVisible.value = true;
+ dateTitle.value = "设置";
+ // formData.value = reactive({});
+};
const handleItemDetail = (index: number, row: any) => {
console.log(row);
// if (index === 1) {
@@ -279,6 +334,19 @@ const saveItem = async (form: any) => {
proTable.value.getTableList();
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("");
// dataCallback 是对于返回的表格数据做处理,如果你后台返回的数据不是 list && total && pageNum && pageSize 这些字段,那么你可以在这里进行处理成这些字段
@@ -317,9 +385,11 @@ const onSearch = async (params: any) => {
if (active.value === 0) {
searchSn.value = params.projectSn;
searchName.value = params.projectName;
+ searchId.value = params.id;
} else {
searchSn.value = params.engineeringSn;
searchName.value = params.engineeringName;
+ searchId.value = params.id;
}
proTable.value.getTableList();
};
@@ -389,6 +459,7 @@ onMounted(async () => {
await getEngPage();
searchSn.value = records.value[0].projectSn;
searchName.value = records.value[0].projectName;
+ searchId.value = records.value[0].id;
onSearch(records.value[0]);
await sendIframeMessage({ obj: { path: route.path } }, 2, undefined);
});
diff --git a/src/views/goverment/huizhou/progressManagement/panoramicPlan/index.vue b/src/views/goverment/huizhou/progressManagement/panoramicPlan/index.vue
index 8042568..e0985e3 100644
--- a/src/views/goverment/huizhou/progressManagement/panoramicPlan/index.vue
+++ b/src/views/goverment/huizhou/progressManagement/panoramicPlan/index.vue
@@ -52,6 +52,27 @@
查看
+
+
+ 审批
+
+
+
+ 重新填报
+
+
+
+ {{
+ row.fillState == 1
+ ? "已填报"
+ : row.fillState == 2
+ ? "已审核"
+ : row.fillState == 3
+ ? "已驳回"
+ : row.fillState == 4
+ ? "重新填报"
+ : ""
+ }}
+
+
+
+
+ 是否通过审批?
+
+
+
+
+
+
@@ -82,11 +117,15 @@ import {
globalPlanProList,
globalPlanEngList,
globalPlanGovermentAdd,
- globalPlanGovermentEdit
+ globalPlanGovermentEdit,
+ globalPlanGovermentAudit
} from "@/api/modules/huizhou";
import { getDicList } from "@/api/modules/jxjview";
import { ElMessage } from "element-plus";
import { useRoute } from "vue-router";
+import { useHandleData } from "@/hooks/useHandleData";
+const rowId = ref("");
+const aproveVisible = ref(false);
const route = useRoute();
const pages = ref({
pageNo: 1,
@@ -101,30 +140,15 @@ const store = GlobalStore();
const columns: ColumnProps[] = [
{ type: "index", label: "序号", width: 80 },
{
- prop: "nodeNumber",
- label: "节点编号",
- width: 150
+ prop: "subItemName",
+ label: "分部分项工程名称",
+ width: 200
},
// 多级 prop
- { prop: "nodeName", label: "节点名称", width: 150, search: { el: "input" } },
- { prop: "type", label: "节点类型", width: 150 },
+ { prop: "childName", label: "子分项名称", width: 150, search: { el: "input" } },
{ prop: "standardCompleteTime", label: "标准完成时间", width: 150 },
{ prop: "planCompleteTime", 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",
label: "实际完成时间",
@@ -136,25 +160,61 @@ const columns: ColumnProps[] = [
// defaultValue: "2023-05"
}
},
- { prop: "phaseName", label: "智能条线", width: 150 },
- { prop: "chargerName", label: "节点责任人", width: 150 },
{
- prop: "isDeleted",
- label: "节点失效标记",
- width: 150,
- render: scoped => {
- return scoped.row.isDeleted == 0 ? "有效" : "失效";
- }
+ prop: "commander",
+ label: "负责人",
+ width: 150
},
{
- prop: "isSendBack",
- label: "是否退回",
- width: 150,
- render: scoped => {
- return scoped.row.isSendBack == 1 ? "是" : "否";
- }
+ prop: "completeRatio",
+ label: "完成比率",
+ width: 150
},
- { 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({
nodeNumber: "",
@@ -180,20 +240,14 @@ const proTable = ref();
const formConfig = {
formItemConfig: [
{
- label: "节点编码",
- prop: "nodeNumber",
+ label: "分部分项工程名称",
+ prop: "subItemName",
type: "input",
disabled: true
},
{
- label: "节点名称",
- prop: "nodeName",
- type: "input",
- disabled: true
- },
- {
- label: "节点类型",
- prop: "type",
+ label: "子分项名称",
+ prop: "childName",
type: "input",
disabled: true
},
@@ -229,31 +283,33 @@ const formConfig = {
valueFormat: "YYYY-MM-DD",
disabled: true
},
+ {
+ label: "负责人",
+ prop: "commander",
+ type: "input",
+ disabled: true
+ },
+ {
+ label: "完成比率",
+ prop: "completeRatio",
+ type: "input",
+ disabled: true
+ },
{
label: "状态",
prop: "state",
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,
disabled: true
- },
- {
- label: "实际偏差",
- prop: "actualDeviation",
- type: "input",
- disabled: true
- },
- {
- label: "职能线条",
- prop: "phaseName",
- type: "input",
- disabled: true
- },
- {
- label: "节点负责人",
- prop: "chargerName",
- type: "input",
- disabled: true
}
// {
// label: "负责人联系方式",
@@ -263,21 +319,7 @@ const formConfig = {
// }
],
rules: {
- nodeNumber: [
- {
- required: true,
- message: "请输入",
- trigger: "blur"
- }
- ],
- nodeName: [
- {
- required: true,
- message: "请输入",
- trigger: "blur"
- }
- ],
- type: [
+ subItemName: [
{
required: true,
message: "请输入",
@@ -291,35 +333,7 @@ const formConfig = {
trigger: "blur"
}
],
- planCompleteTime: [
- {
- required: true,
- message: "请输入",
- trigger: "blur"
- }
- ],
- engineeringSn: [
- {
- required: true,
- message: "请输入",
- trigger: "change"
- }
- ],
- phaseName: [
- {
- required: true,
- message: "请输入",
- trigger: "blur"
- }
- ],
- chargerNumber: [
- {
- required: true,
- message: "请输入",
- trigger: "blur"
- }
- ],
- chargerName: [
+ commander: [
{
required: true,
message: "请输入",
@@ -330,6 +344,28 @@ const formConfig = {
};
// 项目或者工程名字
const searchName = ref("");
+// 重新填报
+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) => {
console.log(row);
diff --git a/src/views/goverment/huizhou/projectMonitoring/projectApproval/index.vue b/src/views/goverment/huizhou/projectMonitoring/projectApproval/index.vue
index cdcbadc..f822695 100644
--- a/src/views/goverment/huizhou/projectMonitoring/projectApproval/index.vue
+++ b/src/views/goverment/huizhou/projectMonitoring/projectApproval/index.vue
@@ -73,48 +73,56 @@ const columns: ColumnProps[] = [
{ type: "index", label: "序号", width: 80 },
{
prop: "engineeringName",
- label: "工程名称",
- search: { el: "input" }
+ label: "工程名称"
+ // search: { el: "input" }
},
{
prop: "engineeringCode",
- label: "工程编号",
- search: { el: "input" }
+ label: "工程编号"
+ // search: { el: "input" }
},
// 多级 prop
- {
- prop: "district",
- label: "所在区域",
- enum: engineeringArea?.value,
- search: { el: "select", props: { filterable: true } }
- },
+ // {
+ // prop: "district",
+ // label: "所在区域"
+ // enum: engineeringArea?.value,
+ // search: { el: "select", props: { filterable: true } }
+ // },
{
prop: "engineeringType",
label: "工程类型",
enum: DicTypeList.value,
- search: { el: "select", props: { filterable: true } },
+ // search: { el: "select", props: { filterable: true } },
fieldNames: { label: "dictValue", value: "dictLabel" }
},
+ {
+ prop: "engineeringCode",
+ label: "负责人"
+ },
+ {
+ prop: "engineeringCode",
+ label: "手机号"
+ },
{
prop: "state",
- label: "工程状态",
+ label: "审批状态",
enum: DicStatusList.value,
- search: { el: "select", props: { filterable: true } },
+ // search: { el: "select", props: { filterable: true } },
fieldNames: { label: "dictValue", value: "dictLabel" }
},
- {
- prop: "createTime",
- label: "提交时间",
- search: {
- el: "date-picker",
- props: {
- type: "daterange",
- format: "YYYY-MM-DD",
- valueFormat: "YYYY-MM-DD"
- // defaultTime: defaultTime2
- }
- }
- },
+ // {
+ // prop: "createTime",
+ // label: "提交时间"
+ // search: {
+ // el: "date-picker",
+ // props: {
+ // type: "daterange",
+ // format: "YYYY-MM-DD",
+ // valueFormat: "YYYY-MM-DD"
+ // // defaultTime: defaultTime2
+ // }
+ // }
+ // },
{ prop: "operation", label: "操作", fixed: "right", width: 150 }
];
const relativeId = ref("");
@@ -169,7 +177,8 @@ const getTableList = (params: any) => {
delete newParams.createTime;
}
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 这些字段,那么你可以在这里进行处理成这些字段
// 或者直接去 hooks/useTable.ts 文件中把字段改为你后端对应的就行