重点工程流程修复

pull/1/head
zhangqihang 2024-02-20 14:27:37 +08:00
parent 847b82afbf
commit 935f7d6c9e
9 changed files with 47 additions and 119 deletions

View File

@ -36,8 +36,8 @@ export const setOutsourcedGoEdit = (params) =>
post("/outsourced/goEdit", params); // 重点工程修改获取 post("/outsourced/goEdit", params); // 重点工程修改获取
export const setOutsourcedDelete = (params) => export const setOutsourcedDelete = (params) =>
post("/outsourced/delete", params); // 重点工程修改获取 post("/outsourced/delete", params); // 重点工程修改获取
export const getOutsourcedJie = (params) => post("/outsourced/jie", params); // 结束工程 export const getOutsourcedUpdateState = (params) =>
export const getOutsourcedStart = (params) => post("/outsourced/start", params); // 结束工程 post("/outsourced/updateState", params); // 结束工程
export const getKeyprojectcheckList = (params) => export const getKeyprojectcheckList = (params) =>
post("/keyprojectcheck/list", params); // 安全环保检查列表 post("/keyprojectcheck/list", params); // 安全环保检查列表

View File

@ -46,11 +46,6 @@
<span v-else>{{ row.DEPARTMENT_NAME }}</span> <span v-else>{{ row.DEPARTMENT_NAME }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="MANAGE_CORPS_NAME"
label="监理单位"
width="250"
/>
<el-table-column <el-table-column
prop="UNITS_PIC_NAME" prop="UNITS_PIC_NAME"
label="相关方单位负责人" label="相关方单位负责人"

View File

@ -5,7 +5,16 @@
<el-divider content-position="left">检查信息</el-divider> <el-divider content-position="left">检查信息</el-divider>
<el-descriptions border> <el-descriptions border>
<el-descriptions-item label="隐患照片 "> <el-descriptions-item label="隐患照片 ">
{{ data.info.INSPECTION_CATEGORY }} <img
v-viewer
v-for="item in data.hiddenImgs"
:key="item.IMGFILES_ID"
:src="VITE_FILE_URL + item.FILEPATH"
alt=""
width="100"
height="100"
class="ml-10"
/>
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="隐患描述"> <el-descriptions-item label="隐患描述">
{{ data.info.HIDDENDESCR }} {{ data.info.HIDDENDESCR }}
@ -53,10 +62,12 @@
import { getKeyprojectcheckFindHidden } from "@/request/keyprojects"; import { getKeyprojectcheckFindHidden } from "@/request/keyprojects";
import { reactive } from "vue"; import { reactive } from "vue";
import { useRoute } from "vue-router"; import { useRoute } from "vue-router";
const VITE_FILE_URL = import.meta.env.VITE_FILE_URL;
const route = useRoute(); const route = useRoute();
const data = reactive({ const data = reactive({
info: {}, info: {},
hiddenImgs: [],
}); });
const fnGetData = async () => { const fnGetData = async () => {
@ -64,6 +75,7 @@ const fnGetData = async () => {
HIDDEN_ID: route.query.HIDDEN_ID, HIDDEN_ID: route.query.HIDDEN_ID,
}); });
data.info = resData.pd; data.info = resData.pd;
data.hiddenImgs = resData.pd.hiddenImgs;
}; };
fnGetData(); fnGetData();
</script> </script>

View File

@ -46,11 +46,6 @@
<span v-else>{{ row.DEPARTMENT_NAME }}</span> <span v-else>{{ row.DEPARTMENT_NAME }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="MANAGE_CORPS_NAME"
label="监理单位"
width="200"
/>
<el-table-column <el-table-column
prop="UNITS_PIC_NAME" prop="UNITS_PIC_NAME"
label="相关方单位负责人" label="相关方单位负责人"

View File

@ -65,6 +65,7 @@
<el-select <el-select
v-model="data.form.UNITS_ID" v-model="data.form.UNITS_ID"
clearable clearable
filterable
placeholder="请选择相关方" placeholder="请选择相关方"
@change="fnGetUnitUser('', '')" @change="fnGetUnitUser('', '')"
> >
@ -82,6 +83,7 @@
<el-select <el-select
v-model="data.form.UNITS_PIC" v-model="data.form.UNITS_PIC"
clearable clearable
filterable
placeholder="请选择人员" placeholder="请选择人员"
@change="fnSelectUnitsUser($event)" @change="fnSelectUnitsUser($event)"
> >
@ -103,65 +105,14 @@
/> />
</el-form-item> </el-form-item>
</el-col> </el-col>
<el-col :span="8">
<el-form-item label="监理单位名称">
<el-select
v-model="data.form.MANAGE_NAME"
clearable
placeholder="请选择"
>
<el-option
v-for="item in data.mangeList"
:key="item.CORPINFO_ID"
:label="item.CORP_NAME"
:value="item.CORPINFO_ID"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="监理单位工程负责人">
<el-input v-model="data.form.MANAGE_PIC" placeholder="请输入内容" />
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="监理单位负责人手机">
<el-input
v-model="data.form.MANAGE_PHONE"
placeholder="请输入内容"
/>
</el-form-item>
</el-col>
<el-col :span="8">
<el-form-item label="集团单位">
<el-select
v-model="data.form.GROUP_UNIT"
clearable
placeholder="请选择"
>
<el-option
v-for="item in data.groupCorpList"
:key="item.CORPINFO_ID"
:label="item.CORP_NAME"
:value="item.CORPINFO_ID"
/>
</el-select>
</el-form-item>
</el-col>
<el-col :span="8"> <el-col :span="8">
<el-form-item label="状态" prop="STATE"> <el-form-item label="状态" prop="STATE">
<el-select v-model="data.form.STATE" placeholder="请选择"> <el-select v-model="data.form.STATE" placeholder="请选择" disabled>
<el-option label="待开始" value="0" /> <el-option label="未开工" value="0" />
<el-option label="进行中" value="1" /> <el-option label="进行中" value="1" />
<el-option label="已结束" value="2" /> <el-option label="已结束" value="2" />
</el-select> <el-option label="开工申请中" value="-1" />
</el-form-item> <el-option label="结束申请中" value="-2" />
</el-col>
<el-col :span="8">
<el-form-item label="是否发送短信">
<el-select v-model="data.form.IS_SMS" placeholder="请选择">
<el-option label="是" value="0" />
<el-option label="否" value="1" />
</el-select> </el-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
@ -303,6 +254,7 @@ const rules = {
const data = reactive({ const data = reactive({
form: { form: {
STATE: "0",
acceptanceList: [ acceptanceList: [
{ {
id: Math.random(), id: Math.random(),

View File

@ -87,12 +87,13 @@
<span v-else>{{ row.DEPARTMENT_NAME }}</span> <span v-else>{{ row.DEPARTMENT_NAME }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="MANAGE_CORPS_NAME" label="监理单位" />
<el-table-column prop="STATE" label="状态"> <el-table-column prop="STATE" label="状态">
<template v-slot="{ row }"> <template v-slot="{ row }">
<span v-if="row.STATE === '0'"></span> <span v-if="row.STATE === '0'"></span>
<span v-if="row.STATE === '1'"></span> <span v-if="row.STATE === '1'"></span>
<span v-if="row.STATE === '2'"></span> <span v-if="row.STATE === '2'"></span>
<span v-if="row.STATE === '-1'"></span>
<span v-if="row.STATE === '-2'"></span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column prop="CREATOR" label="创建人" /> <el-table-column prop="CREATOR" label="创建人" />
@ -117,19 +118,19 @@
type="primary" type="primary"
text text
link link
v-if="row.STATE === '1'" v-if="row.STATE === '-2'"
@click="fnHandleJie(row.OUTSOURCED_ID)" @click="fnHandleJie(row.OUTSOURCED_ID)"
> >
结束 结束审批
</el-button> </el-button>
<el-button <el-button
type="primary" type="primary"
text text
link link
v-if="row.STATE === '0'" v-if="row.STATE === '-1'"
@click="fnHandleStart(row.OUTSOURCED_ID)" @click="fnHandleStart(row.OUTSOURCED_ID)"
> >
审批 开工审批
</el-button> </el-button>
<el-button <el-button
type="primary" type="primary"
@ -184,8 +185,7 @@ import {
getOutsourcedList, getOutsourcedList,
getUnitsListAll, getUnitsListAll,
setOutsourcedDelete, setOutsourcedDelete,
getOutsourcedJie, getOutsourcedUpdateState,
getOutsourcedStart,
} from "@/request/keyprojects.js"; } from "@/request/keyprojects.js";
import { reactive } from "vue"; import { reactive } from "vue";
import router from "@/router"; import router from "@/router";
@ -221,22 +221,17 @@ const fnHandleJie = async (OUTSOURCED_ID) => {
await ElMessageBox.confirm("确定要结束吗?", { await ElMessageBox.confirm("确定要结束吗?", {
type: "warning", type: "warning",
}); });
const resData = await getOutsourcedJie({ OUTSOURCED_ID }); await getOutsourcedUpdateState({ OUTSOURCED_ID, STATE: "2" });
if (resData.code === "0") { ElMessage.success("已结束");
ElMessage.success("操作成功");
} else {
ElMessage.warning(resData.message);
}
fnGetData(); fnGetData();
}; };
const fnHandleStart = async (OUTSOURCED_ID) => { const fnHandleStart = async (OUTSOURCED_ID) => {
const resData = await getOutsourcedStart({ OUTSOURCED_ID }); await ElMessageBox.confirm("确定要开工吗?", {
if (resData.code === "0") { type: "warning",
ElMessage.success("审批成功"); });
} else { await getOutsourcedUpdateState({ OUTSOURCED_ID, STATE: "1" });
ElMessage.warning(resData.message); ElMessage.success("已开工");
}
fnGetData(); fnGetData();
}; };
</script> </script>

View File

@ -35,20 +35,14 @@
<el-descriptions-item label="企业辖区部门" :span="2"> <el-descriptions-item label="企业辖区部门" :span="2">
{{ data.info.INVOLVING_CORPS_DEPART_NAME }} {{ data.info.INVOLVING_CORPS_DEPART_NAME }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="集团单位" :span="2">
{{ data.info.GROUP_UNIT_NAME }}
</el-descriptions-item>
<el-descriptions-item label="计划工期" :span="2"> <el-descriptions-item label="计划工期" :span="2">
{{ data.info.STARTTIME }} {{ data.info.ENDTIME }} {{ data.info.STARTTIME }} {{ data.info.ENDTIME }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="施工相关方" :span="2"> <el-descriptions-item label="合同号" :span="2">
{{ data.info.UNITS_NAME }}
</el-descriptions-item>
<el-descriptions-item label="合同号">
{{ data.info.CONTRACT_NUM }} {{ data.info.CONTRACT_NUM }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="监理单位名称"> <el-descriptions-item label="施工相关方" :span="2">
{{ data.info.MANAGE_CORPS_NAME }} {{ data.info.UNITS_NAME }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="相关方单位工程负责人"> <el-descriptions-item label="相关方单位工程负责人">
{{ data.info.UNITS_PIC_NAME }} {{ data.info.UNITS_PIC_NAME }}
@ -56,19 +50,12 @@
<el-descriptions-item label="相关方单位负责人手机"> <el-descriptions-item label="相关方单位负责人手机">
{{ data.info.UNITS_PHONE }} {{ data.info.UNITS_PHONE }}
</el-descriptions-item> </el-descriptions-item>
<el-descriptions-item label="监理单位工程负责人">
{{ data.info.MANAGE_PIC }}
</el-descriptions-item>
<el-descriptions-item label="监理单位负责人手机">
{{ data.info.MANAGE_PHONE }}
</el-descriptions-item>
<el-descriptions-item label="是否发送短信">
{{ data.info.IS_SMS === "0" ? "是" : "否" }}
</el-descriptions-item>
<el-descriptions-item label="状态"> <el-descriptions-item label="状态">
<span v-if="data.info.STATE === '0'"></span> <span v-if="data.info.STATE === '0'"></span>
<span v-if="data.info.STATE === '1'"></span> <span v-if="data.info.STATE === '1'"></span>
<span v-if="data.info.STATE === '2'"></span> <span v-if="data.info.STATE === '2'"></span>
<span v-if="data.info.STATE === '-1'"></span>
<span v-if="data.info.STATE === '-2'"></span>
</el-descriptions-item> </el-descriptions-item>
</el-descriptions> </el-descriptions>
<el-divider content-position="left">处罚相关</el-divider> <el-divider content-position="left">处罚相关</el-divider>

View File

@ -148,12 +148,9 @@ const data = reactive({
}); });
const resetPwd = async (PERSONNELMANAGEMENT_ID, NAME) => { const resetPwd = async (PERSONNELMANAGEMENT_ID, NAME) => {
await ElMessageBox.confirm( await ElMessageBox.confirm("是否将[" + NAME + "]的密码重置为 666666 吗?", {
"是否将[" + NAME + "]的密码重置为 666666 吗?", type: "warning",
{ });
type: "warning",
}
);
await setPersonnelmanagementResetPwd({ PERSONNELMANAGEMENT_ID }); await setPersonnelmanagementResetPwd({ PERSONNELMANAGEMENT_ID });
ElMessage.success("重置成功"); ElMessage.success("重置成功");
}; };
@ -200,7 +197,7 @@ const fnGoEdit = async (id) => {
const fnResetPaginationTransfer = () => { const fnResetPaginationTransfer = () => {
fnGetData(searchForm); fnGetData(searchForm);
tableRef.value.clearSelection() tableRef.value.clearSelection();
}; };
const fnAdd = () => { const fnAdd = () => {

View File

@ -46,11 +46,6 @@
<span v-else>{{ row.DEPARTMENT_NAME }}</span> <span v-else>{{ row.DEPARTMENT_NAME }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column
prop="MANAGE_CORPS_NAME"
label="监理单位"
width="200"
/>
<el-table-column <el-table-column
prop="UNITS_PIC_NAME" prop="UNITS_PIC_NAME"
label="相关方单位负责人" label="相关方单位负责人"