fix: BUG修改
This commit is contained in:
parent
c8c26271b4
commit
85edc52a98
BIN
src/assets/images/lcbTip.png
Normal file
BIN
src/assets/images/lcbTip.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 6.7 KiB |
@ -17,5 +17,7 @@ export const getCheckPointApi = data => post('/xmgl/checkingPointInfo/selectPage
|
|||||||
export const editCheckPointApi = data => post('/xmgl/checkingPointInfo/edit', data); // 编辑巡检点记录列表
|
export const editCheckPointApi = data => post('/xmgl/checkingPointInfo/edit', data); // 编辑巡检点记录列表
|
||||||
export const deleteCheckPointApi = data => post('/xmgl/checkingPointInfo/delete', data); // 删除巡检点记录列表
|
export const deleteCheckPointApi = data => post('/xmgl/checkingPointInfo/delete', data); // 删除巡检点记录列表
|
||||||
|
|
||||||
|
// 区域
|
||||||
|
export const pointAreaApi = data => post('/xmgl/qualityRegion/notTreeList', data); // 删除巡检点记录列表
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -69,5 +69,11 @@ export const getProgressContentPageApi = data => get('xmgl/xzTaskProgressContent
|
|||||||
export const editProgressContentApi = data => post('xmgl/xzTaskProgressContent/edit', data);
|
export const editProgressContentApi = data => post('xmgl/xzTaskProgressContent/edit', data);
|
||||||
export const deleteProgressContentApi = data => post('xmgl/xzTaskProgressContent/delete', data);
|
export const deleteProgressContentApi = data => post('xmgl/xzTaskProgressContent/delete', data);
|
||||||
|
|
||||||
|
// 里程碑部分
|
||||||
|
export const getXzMilestonePageApi = data => get('xmgl/xzMilestone/page', data);
|
||||||
|
export const addXzMilestoneApi = data => post('xmgl/xzMilestone/add', data);
|
||||||
|
export const editXzMilestoneApi = data => post('xmgl/xzMilestone/edit', data);
|
||||||
|
export const deleteXzMilestoneApi = data => post('xmgl/xzMilestone/delete', data);
|
||||||
|
export const xzMilestoneDataApi = data => post('xmgl/xzTaskProgress/statsByEnterprise', data);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -2527,6 +2527,14 @@ const routes2 = [
|
|||||||
"@/views/projectFront/progressManagementAg/divisionSubManage.vue",
|
"@/views/projectFront/progressManagementAg/divisionSubManage.vue",
|
||||||
], resolve),
|
], resolve),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
path: "/project/progressManagementAg/lcbManage",
|
||||||
|
name: "进度管理_里程碑管理",
|
||||||
|
component: (resolve) =>
|
||||||
|
require([
|
||||||
|
"@/views/projectFront/progressManagementAg/lcbManage.vue",
|
||||||
|
], resolve),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
path: "/project/progressManagementAg/progressWarning",
|
path: "/project/progressManagementAg/progressWarning",
|
||||||
name: "进度管理_进度预警2",
|
name: "进度管理_进度预警2",
|
||||||
|
|||||||
@ -194,7 +194,7 @@ export default {
|
|||||||
// 质量
|
// 质量
|
||||||
path = "/project/quality/inspectionLedger";
|
path = "/project/quality/inspectionLedger";
|
||||||
const res = await getNoticeStatusApi({ id: payLoadParams.data.id });
|
const res = await getNoticeStatusApi({ id: payLoadParams.data.id });
|
||||||
if (res.result && res.result.status == 6) {
|
if (!res.result && res.result.status == 6) {
|
||||||
this.$message({
|
this.$message({
|
||||||
type: "error",
|
type: "error",
|
||||||
message: "检查单已撤回",
|
message: "检查单已撤回",
|
||||||
@ -205,7 +205,7 @@ export default {
|
|||||||
// 安全
|
// 安全
|
||||||
path = "/project/safeSame/inspectionLedger";
|
path = "/project/safeSame/inspectionLedger";
|
||||||
const res = await getNoticeStatusApi({ id: payLoadParams.data.id });
|
const res = await getNoticeStatusApi({ id: payLoadParams.data.id });
|
||||||
if (res.result && res.result.status == 6) {
|
if (!res.result && res.result.status == 6) {
|
||||||
this.$message({
|
this.$message({
|
||||||
type: "error",
|
type: "error",
|
||||||
message: "检查单已撤回",
|
message: "检查单已撤回",
|
||||||
|
|||||||
@ -182,7 +182,7 @@ export default {
|
|||||||
// 质量
|
// 质量
|
||||||
path = "/project/quality/inspectionLedger";
|
path = "/project/quality/inspectionLedger";
|
||||||
const res = await getNoticeStatusApi({ id: payLoadParams.data.id });
|
const res = await getNoticeStatusApi({ id: payLoadParams.data.id });
|
||||||
if (res.result && res.result.status == 6) {
|
if (!res.result && res.result.status == 6) {
|
||||||
this.$message({
|
this.$message({
|
||||||
type: "error",
|
type: "error",
|
||||||
message: "检查单已撤回",
|
message: "检查单已撤回",
|
||||||
@ -193,7 +193,7 @@ export default {
|
|||||||
// 安全
|
// 安全
|
||||||
path = "/project/safeSame/inspectionLedger";
|
path = "/project/safeSame/inspectionLedger";
|
||||||
const res = await getNoticeStatusApi({ id: payLoadParams.data.id });
|
const res = await getNoticeStatusApi({ id: payLoadParams.data.id });
|
||||||
if (res.result && res.result.status == 6) {
|
if (!res.result && res.result.status == 6) {
|
||||||
this.$message({
|
this.$message({
|
||||||
type: "error",
|
type: "error",
|
||||||
message: "检查单已撤回",
|
message: "检查单已撤回",
|
||||||
|
|||||||
@ -183,7 +183,7 @@ export default {
|
|||||||
// 质量
|
// 质量
|
||||||
path = "/project/quality/inspectionLedger";
|
path = "/project/quality/inspectionLedger";
|
||||||
const res = await getNoticeStatusApi({ id: payLoadParams.data.id });
|
const res = await getNoticeStatusApi({ id: payLoadParams.data.id });
|
||||||
if (res.result && res.result.status == 6) {
|
if (!res.result && res.result.status == 6) {
|
||||||
this.$message({
|
this.$message({
|
||||||
type: "error",
|
type: "error",
|
||||||
message: "检查单已撤回",
|
message: "检查单已撤回",
|
||||||
@ -194,7 +194,7 @@ export default {
|
|||||||
// 安全
|
// 安全
|
||||||
path = "/project/safeSame/inspectionLedger";
|
path = "/project/safeSame/inspectionLedger";
|
||||||
const res = await getNoticeStatusApi({ id: payLoadParams.data.id });
|
const res = await getNoticeStatusApi({ id: payLoadParams.data.id });
|
||||||
if (res.result && res.result.status == 6) {
|
if (!res.result && res.result.status == 6) {
|
||||||
this.$message({
|
this.$message({
|
||||||
type: "error",
|
type: "error",
|
||||||
message: "检查单已撤回",
|
message: "检查单已撤回",
|
||||||
|
|||||||
@ -169,7 +169,62 @@
|
|||||||
:placeholder="isAdding ? '请输入' : ''"
|
:placeholder="isAdding ? '请输入' : ''"
|
||||||
></el-input>
|
></el-input>
|
||||||
</el-form-item>
|
</el-form-item>
|
||||||
<el-form-item label="巡检人员:" prop="inspectUserIds">
|
<el-form-item label="所属区域:" prop="qualityRegionId">
|
||||||
|
<el-select
|
||||||
|
:disabled="cardDialogTitle == '详情'"
|
||||||
|
collapse-tags
|
||||||
|
filterable
|
||||||
|
v-model="cardForm.qualityRegionId"
|
||||||
|
:placeholder="isAdding ? '请选择' : ''"
|
||||||
|
@change="updateArea"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in pointAreaList"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.regionName"
|
||||||
|
:value="item.id"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="责任企业:" prop="enterpriseId">
|
||||||
|
<el-select
|
||||||
|
:disabled="cardDialogTitle == '详情'"
|
||||||
|
collapse-tags
|
||||||
|
filterable
|
||||||
|
v-model="cardForm.enterpriseId"
|
||||||
|
multiple
|
||||||
|
:placeholder="isAdding ? '请选择' : ''"
|
||||||
|
@change="changeDutyId"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in enterpriseList"
|
||||||
|
:key="item.id"
|
||||||
|
:label="item.enterpriseName"
|
||||||
|
:value="item.id"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="责任人:" prop="inspectUserIds">
|
||||||
|
<el-select
|
||||||
|
:disabled="cardDialogTitle == '详情'"
|
||||||
|
collapse-tags
|
||||||
|
filterable
|
||||||
|
v-model="cardForm.inspectUserIds"
|
||||||
|
multiple
|
||||||
|
:placeholder="isAdding ? '请选择' : ''"
|
||||||
|
>
|
||||||
|
<el-option
|
||||||
|
v-for="item in chargerList"
|
||||||
|
:key="item.userId + 'inspectUserIds'"
|
||||||
|
:label="item.realName"
|
||||||
|
:value="item.userId"
|
||||||
|
>
|
||||||
|
</el-option>
|
||||||
|
</el-select>
|
||||||
|
</el-form-item>
|
||||||
|
<!-- <el-form-item label="巡检人员:" prop="inspectUserIds">
|
||||||
<el-select
|
<el-select
|
||||||
:disabled="cardDialogTitle == '详情'"
|
:disabled="cardDialogTitle == '详情'"
|
||||||
collapse-tags
|
collapse-tags
|
||||||
@ -186,7 +241,7 @@
|
|||||||
>
|
>
|
||||||
</el-option>
|
</el-option>
|
||||||
</el-select>
|
</el-select>
|
||||||
</el-form-item>
|
</el-form-item> -->
|
||||||
<el-form-item label="巡检记录通知人员:" prop="noticeUserIds">
|
<el-form-item label="巡检记录通知人员:" prop="noticeUserIds">
|
||||||
<el-select
|
<el-select
|
||||||
:disabled="cardDialogTitle == '详情'"
|
:disabled="cardDialogTitle == '详情'"
|
||||||
@ -328,6 +383,7 @@ import {
|
|||||||
addPointApi,
|
addPointApi,
|
||||||
deletePointApi,
|
deletePointApi,
|
||||||
editPointApi,
|
editPointApi,
|
||||||
|
pointAreaApi
|
||||||
} from "@/assets/js/api/insect.js";
|
} from "@/assets/js/api/insect.js";
|
||||||
import { getProjectChilderSystemUserListApi } from "@/assets/js/api/configManage";
|
import { getProjectChilderSystemUserListApi } from "@/assets/js/api/configManage";
|
||||||
import dynamicForms from "./components/dynamicForms/index.vue"
|
import dynamicForms from "./components/dynamicForms/index.vue"
|
||||||
@ -339,6 +395,8 @@ export default {
|
|||||||
components: { dynamicForms },
|
components: { dynamicForms },
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
chargerList: [],
|
||||||
|
enterpriseList: [],
|
||||||
pickerOptions: {
|
pickerOptions: {
|
||||||
disabledDate(time) {
|
disabledDate(time) {
|
||||||
return time.getTime() < Date.now() - 1 * 24 * 3600 * 1000
|
return time.getTime() < Date.now() - 1 * 24 * 3600 * 1000
|
||||||
@ -355,6 +413,8 @@ export default {
|
|||||||
cardForm: {
|
cardForm: {
|
||||||
checkingPointName: "",
|
checkingPointName: "",
|
||||||
position: "",
|
position: "",
|
||||||
|
qualityRegionId: "", // 区域ID
|
||||||
|
enterpriseId: "", // 责任企业
|
||||||
inspectUserIds: "", //检查人
|
inspectUserIds: "", //检查人
|
||||||
noticeUserIds: "", //通知人
|
noticeUserIds: "", //通知人
|
||||||
startTime: "",
|
startTime: "",
|
||||||
@ -376,6 +436,12 @@ export default {
|
|||||||
position: [
|
position: [
|
||||||
{ required: true, message: "请输入巡检位置", trigger: "blur" },
|
{ required: true, message: "请输入巡检位置", trigger: "blur" },
|
||||||
],
|
],
|
||||||
|
qualityRegionId: [
|
||||||
|
{ required: true, message: "请选择", trigger: "blur" },
|
||||||
|
],
|
||||||
|
enterpriseId: [
|
||||||
|
{ required: true, message: "请选择", trigger: "blur" },
|
||||||
|
],
|
||||||
inspectUserIds: [
|
inspectUserIds: [
|
||||||
{ required: true, message: "请输入检查人员", trigger: "blur" },
|
{ required: true, message: "请输入检查人员", trigger: "blur" },
|
||||||
],
|
],
|
||||||
@ -402,13 +468,55 @@ export default {
|
|||||||
locationList: [],
|
locationList: [],
|
||||||
formData: [], // 存储动态表单数据
|
formData: [], // 存储动态表单数据
|
||||||
isAdding: true,
|
isAdding: true,
|
||||||
|
pointAreaList: []
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
mounted() {
|
mounted() {
|
||||||
this.projectSn = this.$store.state.projectSn;
|
this.projectSn = this.$store.state.projectSn;
|
||||||
this.getPointList();
|
this.getPointList();
|
||||||
|
this.getPointAreaFn();
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
//切换 整改人
|
||||||
|
changeDutyId(value) {
|
||||||
|
console.log(this.cardForm,777888)
|
||||||
|
if (this.cardForm.enterpriseId.length > 0) {
|
||||||
|
let shouldHavePersonIdList = this.chargerList.map((item) => {
|
||||||
|
if (this.cardForm.enterpriseId.includes(item.enterpriseId)) {
|
||||||
|
return item.userId;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if(this.cardForm.inspectUserIds){
|
||||||
|
const newArr = this.cardForm.inspectUserIds.filter((item) =>
|
||||||
|
shouldHavePersonIdList.includes(item)
|
||||||
|
);
|
||||||
|
this.cardForm.inspectUserIds = newArr;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
this.cardForm.inspectUserIds = "";
|
||||||
|
}
|
||||||
|
},
|
||||||
|
updateArea(){
|
||||||
|
let findItem = this.pointAreaList.find(item => {
|
||||||
|
return item.id == this.cardForm.qualityRegionId
|
||||||
|
})
|
||||||
|
this.cardForm.enterpriseId = "";
|
||||||
|
this.cardForm.inspectUserIds = "";
|
||||||
|
if(findItem){
|
||||||
|
this.chargerList = findItem.systemUsers;
|
||||||
|
this.enterpriseList = findItem.enterpriseInfos;
|
||||||
|
}
|
||||||
|
},
|
||||||
|
// 获取区域列表
|
||||||
|
getPointAreaFn(){
|
||||||
|
let requestData = {
|
||||||
|
projectSn: this.projectSn
|
||||||
|
}
|
||||||
|
pointAreaApi(requestData).then(res => {
|
||||||
|
console.log(res)
|
||||||
|
this.pointAreaList = res.result;
|
||||||
|
})
|
||||||
|
},
|
||||||
//查看详情
|
//查看详情
|
||||||
deilBtn(obj) {
|
deilBtn(obj) {
|
||||||
this.isAdding = false
|
this.isAdding = false
|
||||||
@ -431,6 +539,10 @@ export default {
|
|||||||
this.cardForm.inspectUserIds =
|
this.cardForm.inspectUserIds =
|
||||||
this.cardForm.inspectUserIds.split(',')
|
this.cardForm.inspectUserIds.split(',')
|
||||||
}
|
}
|
||||||
|
if (this.cardForm.enterpriseId) {
|
||||||
|
this.cardForm.enterpriseId =
|
||||||
|
this.cardForm.enterpriseId.split(',')
|
||||||
|
}
|
||||||
if (this.cardForm.noticeUserIds) {
|
if (this.cardForm.noticeUserIds) {
|
||||||
this.cardForm.noticeUserIds =
|
this.cardForm.noticeUserIds =
|
||||||
this.cardForm.noticeUserIds.split(',')
|
this.cardForm.noticeUserIds.split(',')
|
||||||
@ -681,6 +793,10 @@ export default {
|
|||||||
this.cardForm.inspectUserIds =
|
this.cardForm.inspectUserIds =
|
||||||
this.cardForm.inspectUserIds.split(',')
|
this.cardForm.inspectUserIds.split(',')
|
||||||
}
|
}
|
||||||
|
if (this.cardForm.enterpriseId) {
|
||||||
|
this.cardForm.enterpriseId =
|
||||||
|
this.cardForm.enterpriseId.split(',')
|
||||||
|
}
|
||||||
if (this.cardForm.noticeUserIds) {
|
if (this.cardForm.noticeUserIds) {
|
||||||
this.cardForm.noticeUserIds =
|
this.cardForm.noticeUserIds =
|
||||||
this.cardForm.noticeUserIds.split(',')
|
this.cardForm.noticeUserIds.split(',')
|
||||||
@ -786,6 +902,7 @@ export default {
|
|||||||
data.createUserId = this.$store.state.userInfo.userId;
|
data.createUserId = this.$store.state.userInfo.userId;
|
||||||
data.createUserName = this.$store.state.userInfo.account;
|
data.createUserName = this.$store.state.userInfo.account;
|
||||||
data.inspectUserIds = data.inspectUserIds.toString(',');
|
data.inspectUserIds = data.inspectUserIds.toString(',');
|
||||||
|
data.enterpriseId = data.enterpriseId.toString(',');
|
||||||
data.noticeUserIds = data.noticeUserIds.toString(',');
|
data.noticeUserIds = data.noticeUserIds.toString(',');
|
||||||
data.template = JSON.stringify(formTemplate);
|
data.template = JSON.stringify(formTemplate);
|
||||||
if (this.cardDialogTitle == '新建巡检点') {
|
if (this.cardDialogTitle == '新建巡检点') {
|
||||||
|
|||||||
@ -98,10 +98,10 @@
|
|||||||
<span>项目剩余天数:{{progressData.projectSurplusDayNum || 0}}天</span>
|
<span>项目剩余天数:{{progressData.projectSurplusDayNum || 0}}天</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="update-operate">
|
<div class="update-operate">
|
||||||
<el-button v-permission="{key: 'gtt_update0verallProjectSchedule', menuPath: '/project/progressManagementAg/projectganttChart'}" type="primary" size="medium" @click="updateProgressFn(1)" :disabled="![5,10].includes($store.state.userInfo.accountType)"
|
<el-button v-permission="{key: 'gtt_update0verallProjectSchedule', menuPath: '/project/progressManagementAg/ganttChart'}" type="primary" size="medium" @click="updateProgressFn(1)" :disabled="![5,10].includes($store.state.userInfo.accountType)"
|
||||||
>更新项目总进度</el-button
|
>更新项目总进度</el-button
|
||||||
>
|
>
|
||||||
<el-button v-permission="{key: 'get_updateContractor Progress', menuPath: '/project/progressManagementAg/projectganttChart'}" type="primary" size="medium" @click="updateProgressFn(2)"
|
<el-button v-permission="{key: 'get_updateContractor Progress', menuPath: '/project/progressManagementAg/ganttChart'}" type="primary" size="medium" @click="updateProgressFn(2)"
|
||||||
>更新承包商进度</el-button
|
>更新承包商进度</el-button
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
1133
src/views/projectFront/progressManagementAg/lcbManage.vue
Normal file
1133
src/views/projectFront/progressManagementAg/lcbManage.vue
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user