update code
parent
9ed7ca5643
commit
cddb82212e
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<MyDialog v-if="show" v-model="show" width="1600px" height="650px" class="flow-detail-state-dialog">
|
<MyDialog v-if="show" v-model="show" width="1600px" height="650px" class="flow-detail-state-dialog">
|
||||||
<template slot="title">质量-审批进度</template>
|
<template slot="title">质量-审批进度{{ prjName?' - '+prjName:'' }}</template>
|
||||||
<div class="head-title-tab" style="padding: 10px 0px;">
|
<div class="head-title-tab" style="padding: 10px 0px;">
|
||||||
<div :class="nav == 1 ? 'head-nav active' : 'head-nav'" @click="doNav(1)">全部审批</div>
|
<div :class="nav == 1 ? 'head-nav active' : 'head-nav'" @click="doNav(1)">全部审批</div>
|
||||||
<div :class="nav == 2 ? 'head-nav active' : 'head-nav'" @click="doNav(2)">进行中</div>
|
<div :class="nav == 2 ? 'head-nav active' : 'head-nav'" @click="doNav(2)">进行中</div>
|
||||||
|
@ -49,6 +49,7 @@ export default {
|
||||||
deptId:0,
|
deptId:0,
|
||||||
projectId:0,
|
projectId:0,
|
||||||
total:0,
|
total:0,
|
||||||
|
prjName:'',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -69,6 +70,11 @@ export default {
|
||||||
showDialog(data) {
|
showDialog(data) {
|
||||||
this.deptId=data.deptId;
|
this.deptId=data.deptId;
|
||||||
this.projectId=data.projectId;
|
this.projectId=data.projectId;
|
||||||
|
if(data.prj){
|
||||||
|
this.prjName=data.prj.name||'';
|
||||||
|
}else{
|
||||||
|
this.prjName="";
|
||||||
|
}
|
||||||
this.nav=1;
|
this.nav=1;
|
||||||
this.index=1;
|
this.index=1;
|
||||||
this.loadData();
|
this.loadData();
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<MyDialog v-if="show" v-model="show" width="1600px" height="850px" class="project-standard-dialog">
|
<MyDialog v-if="show" v-model="show" width="1600px" height="850px" class="project-standard-dialog">
|
||||||
<template slot="title">待审批</template>
|
<template slot="title">项目标准化管理{{ prjName?' - '+prjName:'' }}</template>
|
||||||
<div class="head-title-tab" style="padding: 10px 0px;width:unset;">
|
<div class="head-title-tab" style="padding: 10px 0px;width:unset;">
|
||||||
<div :class="nav == 1 ? 'head-nav active' : 'head-nav'" @click="doNav(1)">现场管理标准化</div>
|
<div :class="nav == 1 ? 'head-nav active' : 'head-nav'" @click="doNav(1)">现场管理标准化</div>
|
||||||
<div :class="nav == 2 ? 'head-nav active' : 'head-nav'" @click="doNav(2)">作业标准化</div>
|
<div :class="nav == 2 ? 'head-nav active' : 'head-nav'" @click="doNav(2)">作业标准化</div>
|
||||||
|
@ -36,6 +36,7 @@ export default {
|
||||||
deptId: 0,
|
deptId: 0,
|
||||||
projectId: 0,
|
projectId: 0,
|
||||||
total: 0,
|
total: 0,
|
||||||
|
prjName:'',
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -56,6 +57,11 @@ export default {
|
||||||
showDialog(data) {
|
showDialog(data) {
|
||||||
this.deptId = data.deptId;
|
this.deptId = data.deptId;
|
||||||
this.projectId = data.projectId;
|
this.projectId = data.projectId;
|
||||||
|
if(data.prj){
|
||||||
|
this.prjName=data.prj.name
|
||||||
|
}else{
|
||||||
|
this.prjName="";
|
||||||
|
}
|
||||||
this.nav = 1;
|
this.nav = 1;
|
||||||
this.index = 1;
|
this.index = 1;
|
||||||
this.loadData();
|
this.loadData();
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
<th>上传数量</th>
|
<th>上传数量</th>
|
||||||
<th>上传占比</th>
|
<th>上传占比</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr v-for="(it, idx) in list1" :key="idx">
|
<tr v-for="(it, idx) in list1" :key="idx" class="tr-cmd" @click="doStandardDlg(it)">
|
||||||
<td>{{ it.no }}</td>
|
<td>{{ it.no }}</td>
|
||||||
<td>{{ it.name }}</td>
|
<td>{{ it.name }}</td>
|
||||||
<td>{{ it.value }}</td>
|
<td>{{ it.value }}</td>
|
||||||
|
@ -44,7 +44,7 @@
|
||||||
<th>申请数量</th>
|
<th>申请数量</th>
|
||||||
<th>申请占比</th>
|
<th>申请占比</th>
|
||||||
</tr>
|
</tr>
|
||||||
<tr v-for="(it, idx) in list2" :key="idx">
|
<tr v-for="(it, idx) in list2" :key="idx" class="tr-cmd" @click="doStateDlg(it)">
|
||||||
<td>{{ it.no }}</td>
|
<td>{{ it.no }}</td>
|
||||||
<td>{{ it.name }}</td>
|
<td>{{ it.name }}</td>
|
||||||
<td>{{ it.value }}</td>
|
<td>{{ it.value }}</td>
|
||||||
|
@ -151,11 +151,16 @@ export default {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
doStandardDlg(){
|
doStandardDlg(it){
|
||||||
this.$refs.standardDlg.showDialog({
|
let obj={
|
||||||
deptId: this.dept?.id || 0,
|
deptId: this.dept?.id || 0,
|
||||||
projectId: this.project?.id || 0
|
projectId: this.project?.id || 0
|
||||||
});
|
};
|
||||||
|
if(it){
|
||||||
|
obj.projectId=it.id;
|
||||||
|
obj.prj=it;
|
||||||
|
}
|
||||||
|
this.$refs.standardDlg.showDialog(obj);
|
||||||
},
|
},
|
||||||
initMe() {
|
initMe() {
|
||||||
this.project = this.$root.project || {};
|
this.project = this.$root.project || {};
|
||||||
|
@ -163,11 +168,16 @@ export default {
|
||||||
this.prjs = this.$root.projects || [];
|
this.prjs = this.$root.projects || [];
|
||||||
this.loadData();
|
this.loadData();
|
||||||
},
|
},
|
||||||
doStateDlg() {
|
doStateDlg(it) {
|
||||||
this.$refs.stateDlg.showDialog({
|
let obj={
|
||||||
deptId: this.dept?.id || 0,
|
deptId: this.dept?.id || 0,
|
||||||
projectId: this.project?.id || 0
|
projectId: this.project?.id || 0
|
||||||
});
|
}
|
||||||
|
if(it){
|
||||||
|
obj.projectId=it.id;
|
||||||
|
obj.prj=it;
|
||||||
|
}
|
||||||
|
this.$refs.stateDlg.showDialog(obj);
|
||||||
},
|
},
|
||||||
doUnitDlg() {
|
doUnitDlg() {
|
||||||
this.$refs.unitDlg.showDialog({
|
this.$refs.unitDlg.showDialog({
|
||||||
|
@ -560,7 +570,12 @@ export default {
|
||||||
left: 196px;
|
left: 196px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/deep/ .tr-cmd{
|
||||||
|
cursor: pointer;
|
||||||
|
td{
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
}
|
||||||
.tb-list1 {
|
.tb-list1 {
|
||||||
margin: 12px;
|
margin: 12px;
|
||||||
width: calc(100% - 24px);
|
width: calc(100% - 24px);
|
||||||
|
|
Loading…
Reference in New Issue