update code
parent
33cb352dc2
commit
3bcf018be4
|
@ -7,7 +7,7 @@ const selectYearAndMonth=(data)=> {
|
|||
url: `/bgscreen/costOut/selectYearAndMonth`,
|
||||
method: 'post',
|
||||
data:data
|
||||
}).then(d=>{
|
||||
}).then(d=>{
|
||||
const getValue=(tmps,type)=>{
|
||||
let objs=tmps.filter(d=>d.costType==type);
|
||||
return objs.length>0?objs[0]:{};
|
||||
|
|
|
@ -6,7 +6,8 @@
|
|||
<el-col :span="6">
|
||||
<module-one-1-1 label="项目概况">
|
||||
<div class="company-name-max">
|
||||
<div class="company-project-introduction" @click="projectIntroduction">
|
||||
<div class="company-project-introduction" @click="projectIntroduction"
|
||||
v-if="prjs.length > 1">
|
||||
<span>项目简介</span>
|
||||
<img src="images/check_icon.png">
|
||||
</div>
|
||||
|
@ -29,7 +30,7 @@
|
|||
<div class="company-info">
|
||||
<div class="company-title">项目等级</div>
|
||||
<div class="company-text" :title="getProjectLevel() || ''">{{
|
||||
getProjectLevel() || ' ' }} </div>
|
||||
getProjectLevel() || ' ' }} </div>
|
||||
</div>
|
||||
</div>
|
||||
</el-col>
|
||||
|
@ -84,7 +85,8 @@
|
|||
<div :class="infoNav == 1 ? 'active' : ''" @click="onWarningInfoNav(1, '今日出勤')">今日出勤
|
||||
</div>
|
||||
</div>
|
||||
<img src="images/icon2001.png" v-show="laborPersonnelTotal>0" style="position: absolute;cursor: pointer;right: 20px;top: 12px;"
|
||||
<img src="images/icon2001.png" v-show="laborPersonnelTotal > 0"
|
||||
style="position: absolute;cursor: pointer;right: 20px;top: 12px;"
|
||||
@click="doShowAttendanceDetail">
|
||||
<el-row :key="elDeptWorks">
|
||||
<el-col :span="8">
|
||||
|
@ -147,8 +149,8 @@
|
|||
<p>
|
||||
<svg class="my-svg-icon"
|
||||
style="vertical-align: middle;fill: currentColor;overflow: hidden;"
|
||||
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
||||
p-id="15828">
|
||||
viewBox="0 0 1024 1024" version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" p-id="15828">
|
||||
<path
|
||||
d="M895.063 350.163c-20.941-49.511-50.914-93.969-89.085-132.141-38.172-38.171-82.63-68.144-132.141-89.085C622.562 107.249 568.111 96.252 512 96.252c-56.112 0-110.562 10.997-161.837 32.685-49.511 20.941-93.969 50.914-132.141 89.085s-68.144 82.63-89.085 132.141C107.249 401.438 96.252 455.888 96.252 512c0 56.111 10.997 110.562 32.685 161.838 20.941 49.511 50.914 93.969 89.085 132.141 38.171 38.171 82.63 68.144 132.141 89.085 51.276 21.688 105.726 32.685 161.837 32.685 56.111 0 110.562-10.997 161.838-32.685 49.511-20.941 93.969-50.914 132.141-89.085 38.171-38.172 68.144-82.63 89.085-132.141 21.688-51.276 32.685-105.727 32.685-161.838-0.001-56.112-10.998-110.562-32.686-161.837zM512 864.252c-194.232 0-352.252-158.02-352.252-352.252S317.768 159.748 512 159.748 864.252 317.768 864.252 512 706.232 864.252 512 864.252z"
|
||||
fill="#070102" p-id="15829"></path>
|
||||
|
@ -167,8 +169,8 @@
|
|||
<div class="project-amount-con">
|
||||
<p><svg class="my-svg-icon"
|
||||
style="vertical-align: middle;fill: currentColor;overflow: hidden;"
|
||||
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
||||
p-id="15828">
|
||||
viewBox="0 0 1024 1024" version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" p-id="15828">
|
||||
<path
|
||||
d="M895.063 350.163c-20.941-49.511-50.914-93.969-89.085-132.141-38.172-38.171-82.63-68.144-132.141-89.085C622.562 107.249 568.111 96.252 512 96.252c-56.112 0-110.562 10.997-161.837 32.685-49.511 20.941-93.969 50.914-132.141 89.085s-68.144 82.63-89.085 132.141C107.249 401.438 96.252 455.888 96.252 512c0 56.111 10.997 110.562 32.685 161.838 20.941 49.511 50.914 93.969 89.085 132.141 38.171 38.171 82.63 68.144 132.141 89.085 51.276 21.688 105.726 32.685 161.837 32.685 56.111 0 110.562-10.997 161.838-32.685 49.511-20.941 93.969-50.914 132.141-89.085 38.171-38.172 68.144-82.63 89.085-132.141 21.688-51.276 32.685-105.727 32.685-161.838-0.001-56.112-10.998-110.562-32.686-161.837zM512 864.252c-194.232 0-352.252-158.02-352.252-352.252S317.768 159.748 512 159.748 864.252 317.768 864.252 512 706.232 864.252 512 864.252z"
|
||||
fill="#070102" p-id="15829"></path>
|
||||
|
@ -187,8 +189,8 @@
|
|||
<p>
|
||||
<svg class="my-svg-icon"
|
||||
style="vertical-align: middle;fill: currentColor;overflow: hidden;"
|
||||
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
||||
p-id="15828">
|
||||
viewBox="0 0 1024 1024" version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" p-id="15828">
|
||||
<path
|
||||
d="M895.063 350.163c-20.941-49.511-50.914-93.969-89.085-132.141-38.172-38.171-82.63-68.144-132.141-89.085C622.562 107.249 568.111 96.252 512 96.252c-56.112 0-110.562 10.997-161.837 32.685-49.511 20.941-93.969 50.914-132.141 89.085s-68.144 82.63-89.085 132.141C107.249 401.438 96.252 455.888 96.252 512c0 56.111 10.997 110.562 32.685 161.838 20.941 49.511 50.914 93.969 89.085 132.141 38.171 38.171 82.63 68.144 132.141 89.085 51.276 21.688 105.726 32.685 161.837 32.685 56.111 0 110.562-10.997 161.838-32.685 49.511-20.941 93.969-50.914 132.141-89.085 38.171-38.172 68.144-82.63 89.085-132.141 21.688-51.276 32.685-105.727 32.685-161.838-0.001-56.112-10.998-110.562-32.686-161.837zM512 864.252c-194.232 0-352.252-158.02-352.252-352.252S317.768 159.748 512 159.748 864.252 317.768 864.252 512 706.232 864.252 512 864.252z"
|
||||
fill="#070102" p-id="15829"></path>
|
||||
|
@ -208,14 +210,15 @@
|
|||
<p>
|
||||
<svg class="my-svg-icon"
|
||||
style="vertical-align: middle;fill: currentColor;overflow: hidden;"
|
||||
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
||||
p-id="15828">
|
||||
viewBox="0 0 1024 1024" version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" p-id="15828">
|
||||
<path
|
||||
d="M895.063 350.163c-20.941-49.511-50.914-93.969-89.085-132.141-38.172-38.171-82.63-68.144-132.141-89.085C622.562 107.249 568.111 96.252 512 96.252c-56.112 0-110.562 10.997-161.837 32.685-49.511 20.941-93.969 50.914-132.141 89.085s-68.144 82.63-89.085 132.141C107.249 401.438 96.252 455.888 96.252 512c0 56.111 10.997 110.562 32.685 161.838 20.941 49.511 50.914 93.969 89.085 132.141 38.171 38.171 82.63 68.144 132.141 89.085 51.276 21.688 105.726 32.685 161.837 32.685 56.111 0 110.562-10.997 161.838-32.685 49.511-20.941 93.969-50.914 132.141-89.085 38.171-38.172 68.144-82.63 89.085-132.141 21.688-51.276 32.685-105.727 32.685-161.838-0.001-56.112-10.998-110.562-32.686-161.837zM512 864.252c-194.232 0-352.252-158.02-352.252-352.252S317.768 159.748 512 159.748 864.252 317.768 864.252 512 706.232 864.252 512 864.252z"
|
||||
fill="#070102" p-id="15829"></path>
|
||||
<path
|
||||
d="M672 512c17.673 0 32-14.327 32-32s-14.327-32-32-32h-89.245l72.795-72.795c12.496-12.497 12.497-32.757 0-45.255-12.498-12.497-32.759-12.497-45.255 0L512 428.245l-98.295-98.294c-12.496-12.497-32.757-12.497-45.255 0-12.497 12.498-12.496 32.758 0 45.255L441.246 448H352c-17.673 0-32 14.327-32 32s14.327 32 32 32h127v64H352c-17.673 0-32 14.326-32 32s14.327 32 32 32h127v72c0 17.674 14.326 32 32 32s32-14.326 32-32v-72h129c17.673 0 32-14.326 32-32s-14.327-32-32-32H543v-64h129z"
|
||||
fill="#070102" p-id="15830"></path>
|
||||
laborPersonnelData
|
||||
</svg>
|
||||
开累完成
|
||||
</p>
|
||||
|
@ -229,8 +232,8 @@
|
|||
<p>
|
||||
<svg class="my-svg-icon"
|
||||
style="vertical-align: middle;fill: currentColor;overflow: hidden;"
|
||||
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
||||
p-id="16844">
|
||||
viewBox="0 0 1024 1024" version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" p-id="16844">
|
||||
<path
|
||||
d="M128 213.333333a42.666667 42.666667 0 0 0-42.666667 42.666667v597.333333a42.666667 42.666667 0 0 0 42.666667 42.666667h768a42.666667 42.666667 0 0 0 42.666667-42.666667V256a42.666667 42.666667 0 0 0-42.666667-42.666667H128z m0-42.666666h768a85.333333 85.333333 0 0 1 85.333333 85.333333v597.333333a85.333333 85.333333 0 0 1-85.333333 85.333334H128a85.333333 85.333333 0 0 1-85.333333-85.333334V256a85.333333 85.333333 0 0 1 85.333333-85.333333z"
|
||||
fill="#595959" p-id="16845"></path>
|
||||
|
@ -275,8 +278,8 @@
|
|||
<p>
|
||||
<svg class="my-svg-icon"
|
||||
style="vertical-align: middle;fill: currentColor;overflow: hidden;"
|
||||
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
||||
p-id="16844">
|
||||
viewBox="0 0 1024 1024" version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" p-id="16844">
|
||||
<path
|
||||
d="M128 213.333333a42.666667 42.666667 0 0 0-42.666667 42.666667v597.333333a42.666667 42.666667 0 0 0 42.666667 42.666667h768a42.666667 42.666667 0 0 0 42.666667-42.666667V256a42.666667 42.666667 0 0 0-42.666667-42.666667H128z m0-42.666666h768a85.333333 85.333333 0 0 1 85.333333 85.333333v597.333333a85.333333 85.333333 0 0 1-85.333333 85.333334H128a85.333333 85.333333 0 0 1-85.333333-85.333334V256a85.333333 85.333333 0 0 1 85.333333-85.333333z"
|
||||
fill="#595959" p-id="16845"></path>
|
||||
|
@ -321,8 +324,8 @@
|
|||
<p>
|
||||
<svg class="my-svg-icon"
|
||||
style="vertical-align: middle;fill: currentColor;overflow: hidden;"
|
||||
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
||||
p-id="16844">
|
||||
viewBox="0 0 1024 1024" version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" p-id="16844">
|
||||
<path
|
||||
d="M128 213.333333a42.666667 42.666667 0 0 0-42.666667 42.666667v597.333333a42.666667 42.666667 0 0 0 42.666667 42.666667h768a42.666667 42.666667 0 0 0 42.666667-42.666667V256a42.666667 42.666667 0 0 0-42.666667-42.666667H128z m0-42.666666h768a85.333333 85.333333 0 0 1 85.333333 85.333333v597.333333a85.333333 85.333333 0 0 1-85.333333 85.333334H128a85.333333 85.333333 0 0 1-85.333333-85.333334V256a85.333333 85.333333 0 0 1 85.333333-85.333333z"
|
||||
fill="#595959" p-id="16845"></path>
|
||||
|
@ -366,8 +369,8 @@
|
|||
<p>
|
||||
<svg class="my-svg-icon"
|
||||
style="vertical-align: middle;fill: currentColor;overflow: hidden;"
|
||||
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
||||
p-id="16844">
|
||||
viewBox="0 0 1024 1024" version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" p-id="16844">
|
||||
<path
|
||||
d="M128 213.333333a42.666667 42.666667 0 0 0-42.666667 42.666667v597.333333a42.666667 42.666667 0 0 0 42.666667 42.666667h768a42.666667 42.666667 0 0 0 42.666667-42.666667V256a42.666667 42.666667 0 0 0-42.666667-42.666667H128z m0-42.666666h768a85.333333 85.333333 0 0 1 85.333333 85.333333v597.333333a85.333333 85.333333 0 0 1-85.333333 85.333334H128a85.333333 85.333333 0 0 1-85.333333-85.333334V256a85.333333 85.333333 0 0 1 85.333333-85.333333z"
|
||||
fill="#595959" p-id="16845"></path>
|
||||
|
@ -411,8 +414,8 @@
|
|||
<p>
|
||||
<svg class="my-svg-icon"
|
||||
style="vertical-align: middle;fill: currentColor;overflow: hidden;"
|
||||
viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg"
|
||||
p-id="17500">
|
||||
viewBox="0 0 1024 1024" version="1.1"
|
||||
xmlns="http://www.w3.org/2000/svg" p-id="17500">
|
||||
<path
|
||||
d="M800 894.1H224c-16.9 0-30.5-13.7-30.5-30.5v-47.2h-41.6c-16.9 0-30.5-13.7-30.5-30.5V229.7c0-16.9 13.7-30.5 30.5-30.5h41.6V129c0-16.9 13.7-30.5 30.5-30.5h576c16.9 0 30.5 13.7 30.5 30.5v70.2h55.9c16.9 0 30.5 13.7 30.5 30.5v556.1c0 16.9-13.7 30.5-30.5 30.5h-55.9v47.2c0.1 16.9-13.6 30.6-30.5 30.6z m-545.5-61h515v-47.2c0-16.9 13.7-30.5 30.5-30.5h55.9V260.3H800c-16.9 0-30.5-13.7-30.5-30.5v-70.2h-515v70.2c0 16.9-13.7 30.5-30.5 30.5h-41.6v495.1H224c16.9 0 30.5 13.7 30.5 30.5v47.2z"
|
||||
fill="#666666" p-id="17501"></path>
|
||||
|
@ -425,7 +428,7 @@
|
|||
</svg>
|
||||
建筑面积
|
||||
</p>
|
||||
<div><span>244449 </span> 平方米</div>
|
||||
<div><span>{{ floorArea }} </span> 平方米</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -477,8 +480,8 @@
|
|||
<div :class="prjResNav == '07' ? 'active' : ''" @click="doPrjRes('07', '验收成果')">验收阶段</div>
|
||||
</div>
|
||||
<div class="quality-table prj-result-table prj-finish-node">
|
||||
<el-table :data="prjResultsData" class="elTable" style="width: 100%;background: transparent;"
|
||||
height="215" ref="fbsubordinateUnit">
|
||||
<el-table :data="prjResultsData" class="elTable"
|
||||
style="width: 100%;background: transparent;" height="215" ref="fbsubordinateUnit">
|
||||
|
||||
<el-table-column prop="nodeText" label="事项"> </el-table-column>
|
||||
<el-table-column prop="planEndDate" label="计划完成时间"> </el-table-column>
|
||||
|
@ -493,7 +496,8 @@
|
|||
{{ it.original }}
|
||||
</div>
|
||||
</div>
|
||||
<span slot="reference" style="cursor: pointer;">{{ row.files.length }} 个</span>
|
||||
<span slot="reference" style="cursor: pointer;">{{ row.files.length }}
|
||||
个</span>
|
||||
</el-popover>
|
||||
<span v-else>/</span>
|
||||
</template>
|
||||
|
@ -650,11 +654,11 @@ export default {
|
|||
infoNav: 0,
|
||||
staffText: '在岗人员',
|
||||
surveyUrl: 'images/survey_icon_4.png',
|
||||
laborPersonnelTotal: 149,
|
||||
laborPersonnelTotal: 0,
|
||||
laborPersonnelData: [
|
||||
{ text: "职工", value: 52 },
|
||||
{ text: "劳务派遣", value: 45 },
|
||||
{ text: "其他", value: 20 },
|
||||
{ text: "职工", value: 0 },
|
||||
{ text: "劳务派遣", value: 0 },
|
||||
{ text: "其他", value: 0 },
|
||||
],
|
||||
//设备概况
|
||||
overview: 0,
|
||||
|
@ -736,6 +740,7 @@ export default {
|
|||
finishBuildNode: [],
|
||||
modleMap: [],
|
||||
elDeptWorks: 0,
|
||||
floorArea:"-",
|
||||
}
|
||||
},
|
||||
created() {
|
||||
|
@ -764,34 +769,53 @@ export default {
|
|||
this.loadFilshNode();
|
||||
}));
|
||||
this.$bus.$on("deptChange", debounce(dept => {
|
||||
this.dept = dept;
|
||||
this.dept = dept;
|
||||
}));
|
||||
if (this.$root.hasInitHeader) {
|
||||
this.initMe();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getFloorArea() {
|
||||
this.getProjectId(id => {
|
||||
if (id == 0) {
|
||||
return "-";
|
||||
}
|
||||
let tmps = this.prjs.filter(d => d.id == id);
|
||||
let tmp=tmps.length > 0 ? tmps[0].floorArea : "-";
|
||||
this.floorArea=tmp||"-";
|
||||
});
|
||||
},
|
||||
doShowAttendanceDetail() {
|
||||
this.getProjectId(id => {
|
||||
let data = {
|
||||
deptId: this.dept.id || 0,
|
||||
projectId: id || 0,
|
||||
attendanceTime: this.$dt(new Date()).format("YYYY-MM-DD")
|
||||
}
|
||||
if (this.infoNav == 1) {
|
||||
this.$refs.attDetailDlg.showDialog(data);
|
||||
} else {
|
||||
this.$refs.jobWorkerdlg.showDialog({
|
||||
...data,
|
||||
total:this.laborPersonnelTotal,
|
||||
datas:this.laborPersonnelData.map(it=>{
|
||||
return {
|
||||
text:it.text.replace("总包人员","101").replace("监理人员","102").replace("劳务人员","103"),
|
||||
cnt:it.value
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
if (id == 0) {
|
||||
this.laborPersonnelTotal = 0;
|
||||
this.laborPersonnelData = [
|
||||
{ text: "职工", value: 0 },
|
||||
{ text: "劳务派遣", value: 0 },
|
||||
{ text: "其他", value: 0 },
|
||||
];
|
||||
return;
|
||||
}
|
||||
let data = {
|
||||
deptId: this.dept.id || 0,
|
||||
projectId: id || 0,
|
||||
attendanceTime: this.$dt(new Date()).format("YYYY-MM-DD")
|
||||
}
|
||||
if (this.infoNav == 1) {
|
||||
this.$refs.attDetailDlg.showDialog(data);
|
||||
} else {
|
||||
this.$refs.jobWorkerdlg.showDialog({
|
||||
...data,
|
||||
total: this.laborPersonnelTotal,
|
||||
datas: this.laborPersonnelData.map(it => {
|
||||
return {
|
||||
text: it.text.replace("总包人员", "101").replace("监理人员", "102").replace("劳务人员", "103"),
|
||||
cnt: it.value
|
||||
}
|
||||
})
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
initMe() {
|
||||
|
@ -878,9 +902,9 @@ export default {
|
|||
if (!this.prjs || this.prjs.length == 0) {
|
||||
setTimeout(func, 100);
|
||||
} else {
|
||||
if(this.prjs.length>1){
|
||||
if (this.prjs.length > 1) {
|
||||
cb && cb(this.prjs[1].id);
|
||||
}else{
|
||||
} else {
|
||||
cb(0);
|
||||
}
|
||||
}
|
||||
|
@ -892,22 +916,22 @@ export default {
|
|||
},
|
||||
loadFilshNode() {
|
||||
this.getProjectId(id => {
|
||||
this.$api.buildNode.queryFinishProject(id).then(d => {
|
||||
this.$api.buildNode.queryFinishProject(id).then(d => {
|
||||
this.finishBuildNode = d || [];
|
||||
let findLvl='030101,030102,030103,030104,030105,030101,0302,030201,030202'.split(",");
|
||||
let tmps=(d||[]);
|
||||
let obj=null;
|
||||
for(let i=0;i<findLvl.length;i++){
|
||||
let objs=tmps.filter(it=>it.lvl==findLvl[i]);
|
||||
if(objs.length>0 && objs[0].files){
|
||||
let findLvl = '030101,030102,030103,030104,030105,030101,0302,030201,030202'.split(",");
|
||||
let tmps = (d || []);
|
||||
let obj = null;
|
||||
for (let i = 0; i < findLvl.length; i++) {
|
||||
let objs = tmps.filter(it => it.lvl == findLvl[i]);
|
||||
if (objs.length > 0 && objs[0].files) {
|
||||
let files = (objs[0].files || '[]')
|
||||
if(files.length>0){
|
||||
let fs=tryToJson(files,[]);
|
||||
if(fs.length>0){
|
||||
obj=objs;
|
||||
if (files.length > 0) {
|
||||
let fs = tryToJson(files, []);
|
||||
if (fs.length > 0) {
|
||||
obj = objs;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
if (obj && obj.length > 0) {
|
||||
|
@ -925,34 +949,46 @@ export default {
|
|||
});
|
||||
},
|
||||
loadData() {
|
||||
this.getProjectId(id => {
|
||||
this.$api.schedule.projectConstructionProgress(id).then(d => {
|
||||
let obj = d?.data || {};
|
||||
if (obj.image) {
|
||||
obj.images = obj.image.split(",").filter(d => d).map(f => {
|
||||
return this.$apiPath + f;
|
||||
});
|
||||
} else {
|
||||
obj.images = [];
|
||||
}
|
||||
this.scheduleInfo = obj;
|
||||
if (this.$refs.mapModle) {
|
||||
this.$refs.mapModle.initImgs(obj?.images || []);
|
||||
}
|
||||
});
|
||||
this.photographyList=[];
|
||||
this.$api.project.selectLastPhotography(id).then(d => {
|
||||
this.photographyList = d.data || [];
|
||||
});
|
||||
this.getProjectId(id => {
|
||||
if (id > 0) {
|
||||
this.$api.schedule.projectConstructionProgress(id).then(d => {
|
||||
let obj = d?.data || {};
|
||||
if (obj.image) {
|
||||
obj.images = obj.image.split(",").filter(d => d).map(f => {
|
||||
return this.$apiPath + f;
|
||||
});
|
||||
} else {
|
||||
obj.images = [];
|
||||
}
|
||||
this.scheduleInfo = obj;
|
||||
if (this.$refs.mapModle) {
|
||||
this.$refs.mapModle.initImgs(obj?.images || []);
|
||||
}
|
||||
});
|
||||
this.photographyList = [];
|
||||
this.$api.project.selectLastPhotography(id).then(d => {
|
||||
this.photographyList = d.data || [];
|
||||
});
|
||||
}
|
||||
else {
|
||||
this.photographyList = [];
|
||||
this.scheduleInfo=null;
|
||||
}
|
||||
this.projectBuildNode = [];
|
||||
this.getProjectBuildNode();
|
||||
this.loadAttendanceData();
|
||||
this.getProjectUser();
|
||||
this.getCostOut(id);
|
||||
this.getFloorArea();
|
||||
});
|
||||
},
|
||||
getCostOut(id) {
|
||||
let dt = this.$dt(new Date())
|
||||
if (id == 0) {
|
||||
this.costOut = {};
|
||||
this.elCostOut++;
|
||||
return;
|
||||
}
|
||||
this.$api.costOut.selectYearAndMonth({
|
||||
projectId: id,
|
||||
year: dt.$y,
|
||||
|
@ -966,6 +1002,11 @@ export default {
|
|||
},
|
||||
getProjectUser() {
|
||||
this.getProjectId(id => {
|
||||
if (id == 0) {
|
||||
this.projectUsers = [];
|
||||
this.elPrjUser++;
|
||||
return;
|
||||
}
|
||||
this.$api.project.getProjectUser(id).then(d => {
|
||||
this.projectUsers = d.data || [];
|
||||
this.elPrjUser++;
|
||||
|
@ -974,6 +1015,10 @@ export default {
|
|||
},
|
||||
getProjectBuildNode() {
|
||||
this.getProjectId(id => {
|
||||
if (id == 0) {
|
||||
this.projectBuildNode = [];
|
||||
return;
|
||||
}
|
||||
this.$api.project.getProjectBuildNode(id).then(d => {
|
||||
this.projectBuildNode = this.$api.buildNode.covertData(d.data || []).filter(it => it.lvl.length == 2);
|
||||
this.maxWidth = 200 * this.projectBuildNode.length;
|
||||
|
@ -1003,17 +1048,27 @@ export default {
|
|||
//造价 定时器
|
||||
this.costInterval = setInterval(this.manufacturingCostRoll, 5000);
|
||||
},
|
||||
//查询在岗人数
|
||||
//查询在岗人数
|
||||
loadAttendanceData() {
|
||||
this.getProjectId(id => {
|
||||
if (id == 0) {
|
||||
this.laborPersonnelTotal = 0;
|
||||
this.laborPersonnelData = [
|
||||
{ text: "职工", value: 0 },
|
||||
{ text: "劳务派遣", value: 0 },
|
||||
{ text: "其他", value: 0 },
|
||||
];
|
||||
this.elDeptWorks++;
|
||||
return;
|
||||
}
|
||||
let data = {
|
||||
subDeptId: this.dept.id || 0,
|
||||
projectId: id || 0,
|
||||
attendanceTime: this.$dt(new Date()).format("YYYY-MM-DD")
|
||||
}
|
||||
let ajax=this.$api.attendance.groupByComany;
|
||||
let ajax = this.$api.attendance.groupByComany;
|
||||
if (this.infoNav == 0) {
|
||||
ajax=this.$api.attendance.groupAllByComany;
|
||||
ajax = this.$api.attendance.groupAllByComany;
|
||||
}
|
||||
ajax(data).then(d => {
|
||||
let tmps = d.data || [];
|
||||
|
@ -1026,14 +1081,14 @@ export default {
|
|||
}
|
||||
|
||||
this.laborPersonnelTotal = 0;
|
||||
this.laborPersonnelData = [{ text: "劳务人员", value: func(["0","2","3","4","5"]) }, { text: "监理人员", value: func(["8"]) }, { text: "总包人员", value: func(["1","6"]) }];
|
||||
this.laborPersonnelData = [{ text: "劳务人员", value: func(["0", "2", "3", "4", "5"]) }, { text: "监理人员", value: func(["8"]) }, { text: "总包人员", value: func(["1", "6"]) }];
|
||||
this.laborPersonnelData.forEach(it => {
|
||||
this.laborPersonnelTotal += it.value;
|
||||
})
|
||||
this.elDeptWorks++;
|
||||
});
|
||||
});
|
||||
},
|
||||
},
|
||||
//项目介绍弹窗
|
||||
projectIntroduction() {
|
||||
//this.popupShow = true
|
||||
|
@ -1046,8 +1101,8 @@ export default {
|
|||
this.prjResNav = n;
|
||||
if (n == '06') {
|
||||
this.prjResultsData = this.finishBuildNode.filter(d => d.lvl.length == 4 && d.lvl.substring(0, 2) == '06').map(it => {
|
||||
if (it.files && !Array.isArray(it.files)) {
|
||||
it.files = tryToJson(it.files,[]);
|
||||
if (it.files && !Array.isArray(it.files)) {
|
||||
it.files = tryToJson(it.files, []);
|
||||
} else {
|
||||
it.files = [];
|
||||
}
|
||||
|
@ -1055,8 +1110,8 @@ export default {
|
|||
});
|
||||
} else {
|
||||
this.prjResultsData = this.finishBuildNode.filter(d => d.lvl.length == 6 && d.lvl.substring(0, 2) == n).map(it => {
|
||||
if (it.files && !Array.isArray(it.files)) {
|
||||
it.files = tryToJson(it.files,[]);
|
||||
if (it.files && !Array.isArray(it.files)) {
|
||||
it.files = tryToJson(it.files, []);
|
||||
} else {
|
||||
it.files = [];
|
||||
}
|
||||
|
@ -1296,14 +1351,15 @@ export default {
|
|||
};
|
||||
</script>
|
||||
|
||||
<style lang="less" >
|
||||
<style lang="less">
|
||||
.proj-detail {
|
||||
.prj-process-list {
|
||||
padding: 20px
|
||||
}
|
||||
.el-carousel__arrow{
|
||||
width:100px;
|
||||
height:100px;
|
||||
|
||||
.el-carousel__arrow {
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
font-size: 40px;
|
||||
}
|
||||
|
||||
|
@ -1438,4 +1494,5 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
}</style>
|
||||
}
|
||||
</style>
|
Loading…
Reference in New Issue