|
@@ -3,7 +3,7 @@
|
|
|
<inputLegend :label="'工程信息'" isopen="true">
|
|
|
<projectInfo :type="4" :processId="processId" ref="lookinfo"></projectInfo>
|
|
|
</inputLegend>
|
|
|
- <inputLegend :label="'负责人变更申请'" isopen="true">
|
|
|
+ <inputLegend :label="'施工班组变更申请'" isopen="true">
|
|
|
<lookForm v-if='showContent' :config="config1" ref="config1"></lookForm>
|
|
|
</inputLegend>
|
|
|
</div>
|
|
@@ -16,7 +16,8 @@ import inputLegend from '@/components/projectCom/legend/index.vue'
|
|
|
|
|
|
import projectInfo from '@/views/zhpt/projectManager/newInstall/components/projectInfo.vue'
|
|
|
import { subMixin } from '@/views/zhpt/projectManager/common/mixins/subPage.js'
|
|
|
-import {getProcesssById} from "@/api/flowInfo";
|
|
|
+import { getProcesssById } from "@/api/flowInfo";
|
|
|
+import imConfig from '@/views/imConfig.js'
|
|
|
export default {
|
|
|
name: 'designChange',
|
|
|
mixins: [subMixin],
|
|
@@ -24,34 +25,51 @@ export default {
|
|
|
data() {
|
|
|
return {
|
|
|
processId: '',
|
|
|
- showContent:false,
|
|
|
+ taskInfo: {
|
|
|
+ pageCode: imConfig.flowKey.proDispatchProTeamPerson,
|
|
|
+ serviceImpls: "tfConstructionTeamWService"
|
|
|
+ },
|
|
|
+ showContent: false,
|
|
|
config1: {
|
|
|
showfield: [
|
|
|
{
|
|
|
group: [
|
|
|
{
|
|
|
- field: 'billDutyPostName',
|
|
|
- label: '原负责岗位',
|
|
|
+ field: 'sgbzName',
|
|
|
+ label: '原施工班组',
|
|
|
},
|
|
|
{
|
|
|
- field: 'billDutyUserName',
|
|
|
- label: '原负责人',
|
|
|
+ field: 'sgfzrName',
|
|
|
+ label: '原施工负责人',
|
|
|
},
|
|
|
{
|
|
|
- field: 'dutyPostName',
|
|
|
- label: '现负责岗位',
|
|
|
+ field: 'lxdhName',
|
|
|
+ label: '原联系电话',
|
|
|
},
|
|
|
{
|
|
|
- field: 'dutyUserName',
|
|
|
- label: '现项目负责人',
|
|
|
+ field: 'sgryName',
|
|
|
+ label: '原施工人员',
|
|
|
},
|
|
|
{
|
|
|
- field: "telephone",
|
|
|
- label: "联系电话",
|
|
|
+ field: "teamName",
|
|
|
+ label: "施工班组",
|
|
|
},
|
|
|
{
|
|
|
- field: 'content',
|
|
|
- label: '终止原因',
|
|
|
+ field: 'leaderName', //存储字段
|
|
|
+ label: '施工负责人', //显示标签
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'leaderPhone', //存储字段
|
|
|
+ label: '联系电话', //显示标签
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'conUserNames', //存储字段
|
|
|
+ label: '施工人员', //显示标签
|
|
|
+ type: 'area',
|
|
|
+ },
|
|
|
+ {
|
|
|
+ field: 'reason',
|
|
|
+ label: '变更原因',
|
|
|
type: 'area'
|
|
|
},
|
|
|
{
|
|
@@ -92,28 +110,65 @@ export default {
|
|
|
getProcesssById({ id: this.inputData.data.processId }).then((res) => {
|
|
|
if (res.data && res.data.nodes) {
|
|
|
res.data.nodes.forEach((val) => {
|
|
|
- if (val.processStep == this.inputData.currentStep && val.stepNode == this.inputData.currentStepNode&&val.isValid) {
|
|
|
- this.config1.showfield.forEach(item=>{
|
|
|
- item.group.forEach((item2,index)=>{
|
|
|
- if(item2.field&&val.dataMap&&val.dataMap[this.inputData.currentserviceImpls]&&val.dataMap[this.inputData.currentserviceImpls][0]&&val.isValid){
|
|
|
- item2.value=val.dataMap[this.inputData.currentserviceImpls][0][item2.field];
|
|
|
- if(item2.type=="file"){//一般的详情页面取最外层的附件数据
|
|
|
- item2.value=val[item2.field];
|
|
|
+ if (val.processStep == this.inputData.currentStep && val.stepNode == this.inputData.currentStepNode && val.isValid) {
|
|
|
+ this.config1.showfield.forEach(item => {
|
|
|
+ item.group.forEach((item2, index) => {
|
|
|
+ if (item2.field && val.dataMap && val.dataMap[this.inputData.currentserviceImpls] && val.dataMap[this.inputData.currentserviceImpls][0] && val.isValid) {
|
|
|
+ item2.value = val.dataMap[this.inputData.currentserviceImpls][0][item2.field];
|
|
|
+ if (item2.type == "file") {//一般的详情页面取最外层的附件数据
|
|
|
+ item2.value = val[item2.field];
|
|
|
}
|
|
|
- if(!item2.value){
|
|
|
- item2.value=val[item2.field];
|
|
|
+ if (!item2.value) {
|
|
|
+ item2.value = val[item2.field];
|
|
|
}
|
|
|
}
|
|
|
})
|
|
|
})
|
|
|
}
|
|
|
})
|
|
|
- this.processId=res.data.relationId;
|
|
|
- this.showContent = true;
|
|
|
+ if (res.data.relationId) {
|
|
|
+ this.getUpdateInfo2(res.data.relationId)
|
|
|
+ }
|
|
|
+ this.processId = res.data.relationId;
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+ getUpdateInfo2(processId) {
|
|
|
+ getProcesssById({ id: processId }).then((res) => {
|
|
|
+ if (res.data && res.data.nodes) {
|
|
|
+ res.data.nodes.forEach((val) => {//主要获取任务分配环节的数据
|
|
|
+ if (val.pageCode == this.taskInfo.pageCode && val.isValid && this.taskInfo.serviceImpls) {
|
|
|
+ const temp = val.dataMap[this.taskInfo.serviceImpls];
|
|
|
+ console.log('当前步骤', temp);
|
|
|
+ if (temp) {
|
|
|
+ this.config1.showfield.forEach(item => {
|
|
|
+ item.group.forEach((item2, index) => {
|
|
|
+ if (item2.field == "sgbzName") {
|
|
|
+ item2.value = temp.teamIdName;
|
|
|
+ }
|
|
|
+ if (item2.field == "sgfzrName") {
|
|
|
+ item2.value = temp.leaderName;
|
|
|
+ }
|
|
|
+ if (item2.field == "lxdhName") {
|
|
|
+ item2.value = temp.leaderPhone;
|
|
|
+ }
|
|
|
+ if (item2.field == "sgryName") {
|
|
|
+ item2.value = temp.conUserNames;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ })
|
|
|
+ // this.$refs.config1.setValue(
|
|
|
+ // { sgbzName: temp.teamIdName || '', sgfzrName: temp.leaderName || '', lxdhName: temp.leaderPhone || '', sgryName: temp.conUserNames || '', },
|
|
|
+ // false
|
|
|
+ // )
|
|
|
+ }
|
|
|
+ }
|
|
|
+ })
|
|
|
+ this.showContent = true;
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
},
|
|
|
created() {
|
|
|
this.getCurrentUpdateInfo();
|
|
@@ -121,5 +176,4 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
-<style>
|
|
|
-</style>
|
|
|
+<style></style>
|