| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757 |
- <template>
- <el-container v-loading="isLoading">
- <el-main style="position: relative">
- <el-tabs v-model="activeName" @tab-click="handleClick" class="tabs_wrapper">
- <el-tab-pane v-for="(item,index) in tabList" :label="item.label" :name="item.type" :lazy="true">
- <el-form :inline="true" size="mini" label-width="84px" class="demo-form-inline report_filter_select">
- <el-form-item label="选择年度">
- <el-select v-model="addForm.year" @change="changeYear" style="width: 120px;">
- <el-option :label="item.pnm" :value="item.id" :key="index"
- v-for="(item,index) in yearList"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="选择批次">
- <el-select v-model="addForm.batch" @change="changeBatch" style="width: 120px;">
- <el-option :label="item.pnm" :value="item.id" :key="index" v-for="(item,index) in pcList"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="督查组">
- <el-select v-model="addForm.group" @change="changeGroup" style="width: 120px;">
- <el-option :label="item.pnm" :value="item.id" :key="index"
- v-for="(item,index) in groupList"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="区/县">
- <el-select v-model="addForm.area" @change="changeArea" clearable style="width: 120px;">
- <el-option :label="item.pnm" :value="item.adCode" :key="index"
- v-for="(item,index) in areaList"></el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="项目名称">
- <el-select v-model="addForm.rgstrId" @clear="remove" @change="changeProject" clearable placeholder="请选择"
- style="width: 120px;">
- <el-option
- v-for="item in projectList"
- :key="item.id"
- :label="item.pnm"
- :value="item.id">
- </el-option>
- </el-select>
- </el-form-item>
- <el-form-item label="专业">
- <el-select v-model="addForm.pblmChType" placeholder="请选择" clearable style="width: 120px;">
- <el-option
- v-for="item in professionList"
- :key="item.value"
- :label="item.label"
- :value="item.value">
- </el-option>
- </el-select>
- </el-form-item>
- </el-form>
- <component :is="item.value" :currentNodeId="addForm.rgstrId" :objId="objId" :stepId='item.nowId'
- :year="addForm.year" :batch="addForm.batch"
- :type="addForm.pblmChType" :groupId="addForm.group" :areaId="addForm.area" :flag="flag"
- :backStatus="backStatus" :isShowaddrollback="isShowaddrollback" :isEdit="editable"
- :curprvId='curprvId' :curnextId="curnextId" :isRevision="item.isRevision" :isShowRc="item.isShowRc" :label="item.label"
- @sendSubmitStatus="sendSubmitStatus" ref="mychild"></component>
- </el-tab-pane>
- </el-tabs>
- <div class="report_btn_group">
- <!-- <el-button type="success">生成阶段稿</el-button> -->
- <!-- <el-button v-if="activeName != '1'" type="warning" @click="backProfession">驳回</el-button>-->
- <!-- <el-button type="success" @click="stageSubmit">{{curStage}}</el-button> -->
- <!--经办人可见-->
- <!--浙江驳回按钮隐藏-->
- <el-button v-if="hasPriv1('pers_hand') && isShowaddrollback && isShowPriv" type="warning" @click="showDialogCallBack">驳回
- </el-button>
- <el-button v-if="hasPriv1('pers_hand') && isShowaddrollback && !isStopStep && examineStatus && isShowPriv" type="success"
- @click="stageSubmit1">
- {{curStage}}
- </el-button>
- <!--审定人驳回后显示-->
- <el-button v-if="hasPriv1('pers_hand') && isShowaddrollback && isExamine && sendExamineStatus && isShowPriv" type="danger"
- @click="sendExamine">提交审定
- </el-button>
- <!--审定人可见-->
- <el-button v-if="hasPriv1('pers_examine') && isShowaddrollback && isExamine && stageStatus=='0' && isShowPriv" type="danger"
- @click="examine">审定
- </el-button>
- <!--经办人||审定人-->
- <el-button v-if="isExamine && isShowPriv" type="primary" @click="examRecord">审定意见</el-button>
- <el-button type="primary" @click="showDailyRecord">流程日志</el-button>
- </div>
- <el-dialog
- title="操作日志"
- :visible.sync="dailyRecordVisible"
- v-if="dailyRecordVisible"
- width="80%">
- <daily-record :rgstrId="addForm.rgstrId" :professionType="addForm.pblmChType"></daily-record>
- </el-dialog>
- <el-dialog
- title="当前工程阶段审定"
- :visible.sync="examVisible"
- v-if="examVisible"
- @close="dialogClose"
- width="80%">
- <examine-add :rgstrId="addForm.rgstrId" :planProcessId='planProcessId'
- :planProcessName='planProcessName' @dialogClose="dialogClose"></examine-add>
- </el-dialog>
- <el-dialog
- title="当前工程阶段审定意见"
- :visible.sync="examRecordVisible"
- v-if="examRecordVisible"
- @close="dialogClose"
- width="80%">
- <exam-record-show :rgstrId="addForm.rgstrId" :planProcessId='planProcessId'
- :planProcessName='planProcessName'></exam-record-show>
- </el-dialog>
- <el-dialog
- title="驳回说明"
- :visible.sync="callbackNoteVisible"
- v-if="callbackNoteVisible"
- @close="callBackDialogClose"
- width="30%">
- <span style="display: flex;align-items: center;"><span style="width: 80px;display: block">说明:</span><el-input type="textarea" v-model="callBackNote"></el-input></span>
- <span slot="footer" class="dialog-footer">
- <el-button @click="callbackNoteVisible = false">取 消</el-button>
- <el-button type="primary" @click="backProfession">确 定</el-button>
- </span>
- </el-dialog>
- </el-main>
- </el-container>
- </template>
- <script>
- import changeAdvice from './resultDiscuss1'
- import resultDiscuss from './resultDiscuss1'
- import centerModify from './resultDiscuss1'
- import bureauModify from './resultDiscuss1'
- import lastModify from './resultDiscuss1'
- import dailyRecord from '../dialogCom/dailyRecord';
- import examineAdd from '../dialogCom/examineAdd';
- import examRecordShow from '../dialogCom/examRecordShow';
- import request from "@util/gw_ajax_request"
- import {backProfessionApi} from "@api/InspectionReport.js";
- export default {
- name:"result2",
- data() {
- return {
- isLoading:false,
- activeName: '',
- tabList: [],
- operation: [],
- arr: ['changeAdvice',
- 'resultDiscuss',
- 'centerModify',
- 'bureauModify',
- 'lastModify',
- 'changeAdvice1',
- 'resultDiscuss2',
- 'centerModify3',
- 'bureauModify4',
- 'lastModify5',
- 'changeAdvice6',
- 'resultDiscuss7',
- 'centerModify8',
- 'bureauModify9',
- 'lastModify10',
- 'changeAdvice11',
- 'resultDiscuss12',
- 'centerModify13',
- 'bureauModify14',
- 'lastModify15'],
- curStage: '提交到下一阶段',
- addForm: {
- year: '',
- batch: '',
- group: '',
- area: '',
- rgstrId: '',
- pblmChType: "1",
- persId: localStorage.getItem("userid")
- },
- yearList: [],
- pcList: [],
- groupList: [],
- areaList: [],
- projectList: [],
- professionList: [
- {label: '前期与设计', value: '1'},
- {label: '建设管理', value: '2'},
- {label: '计划下达与执行', value: '3'},
- {label: '资金使用与管理', value: '4'},
- {label: '工程质量', value: '5'},
- {label: '工程安全', value: '6'}
- ],
- flag: '1',
- objId: '',
- editable: true,
- backStatus: false, //回退状态
- dailyRecordVisible: false, //操作日志弹窗
- stepId: '',
- subjectList: [],
- curprvId: '0',
- curnextId: '',
- isShowaddrollback: false,//当前阶段是否是工程所处阶段
- isShowPriv: false,//当前阶段是否是工程所处阶段
- isStopStep: false,
- examRecordVisible: false,//审定意见
- examVisible: false,//审定
- planProcessId: "",
- planProcessName: "",
- isExamine: false,
- stageStatus: "",
- zjstates: false,
- examineStatus: false,//审定通过后提交下一阶段按钮显隐
- sendExamineStatus: false,//经办人提交审定按钮显隐
- callbackNoteVisible:false,//驳回弹框说明
- callBackNote:""//驳回说明
- }
- },
- components: {
- changeAdvice: resolve => {
- require(['./resultDiscuss1'], resolve)
- },
- resultDiscuss: resolve => {
- require(['./resultDiscuss1'], resolve)
- },
- centerModify: resolve => {
- require(['./resultDiscuss1'], resolve)
- },
- bureauModify: resolve => {
- require(['./resultDiscuss1'], resolve)
- },
- lastModify: resolve => {
- require(['./resultDiscuss1'], resolve)
- },
- dailyRecord,
- changeAdvice1: resolve => {
- require(['./resultDiscuss1'], resolve)
- },
- resultDiscuss2: resolve => {
- require(['./resultDiscuss1'], resolve)
- },
- centerModify3: resolve => {
- require(['./resultDiscuss1'], resolve)
- },
- bureauModify4: resolve => {
- require(['./resultDiscuss1'], resolve)
- },
- lastModify5: resolve => {
- require(['./resultDiscuss1'], resolve)
- },
- changeAdvice6: resolve => {
- require(['./resultDiscuss1'], resolve)
- },
- resultDiscuss7: resolve => {
- require(['./resultDiscuss1'], resolve)
- },
- centerModify8: resolve => {
- require(['./resultDiscuss1'], resolve)
- },
- bureauModify9: resolve => {
- require(['./resultDiscuss1'], resolve)
- },
- lastModify10: resolve => {
- require(['./resultDiscuss1'], resolve)
- },
- changeAdvice11: resolve => {
- require(['./resultDiscuss1'], resolve)
- },
- resultDiscuss1: resolve => {
- require(['./resultDiscuss1'], resolve)
- },
- centerModify13: resolve => {
- require(['./resultDiscuss1'], resolve)
- },
- bureauModify14: resolve => {
- require(['./resultDiscuss1'], resolve)
- },
- lastModify15: resolve => {
- require(['./resultDiscuss1'], resolve)
- },
- examineAdd,
- examRecordShow
- },
- watch: {
- 'addForm.rgstrId': {
- deep: true,
- handler(n, o) {
- if (!n && this.addForm.pblmChType) {
- this.addForm.rgstrId = o
- }
- }
- }
- },
- //监听属性 类似于data概念
- computed: {
- persId() {
- return localStorage.getItem("userid")
- ? localStorage.getItem("userid")
- : "1098101939614724096";
- },
- currentRlcode(){
- return localStorage.getItem("currentRlcode");
- }
- },
- mounted() {
- this.$nextTick(() => {
- this.getTreeData();
- })
- },
- methods: {
- remove() {
- if (this.addForm.pblmChType) {
- this.$message.warning('请先清空专业名称')
- return false;
- }
- },
- async getYearPc() {
- await request.post(`/tac/insp/year/list`, {}).then(res => {
- if (res.success) {
- this.$nextTick(() => {
- this.yearList = res.data;
- })
- }
- })
- request.post(`/tac/insp/batch/list`, {}).then(res => {
- if (res.success) {
- this.pcList = res.data;
- }
- })
- },
- //稽查流程
- getJiprocess() {
- var _self = this;
- request.post(`/tac/province/plan/process/list`, {}).then(res => {
- if (res.success && res.data) {
- var tabArr = [];
- var opArr = [];
- res.data.forEach((ele, index) => {
- let obj = {
- label: ele['nowStep'],
- value: index < 20 ? _self.arr[index] : _self.arr[0],
- type: (index + 1) + '',
- nowId: ele['nowId'],
- isRevision: ele['isRevision'],
- isShowRc:false
- }
- if(this.currentRlcode.indexOf("330000000000")>-1){
- if(index==(res.data.length-2)){
- obj.isShowRc = true;
- }
- }else if(ele.nextId=="1" && ele.nextStep=="结束"){
- obj.isShowRc = true;
- }
- tabArr.push(obj);
- opArr.push((index + 1)+'');
- })
- if(this.hasPriv1('rexpert') && this.hasPriv1('cexpert') && this.hasPriv1('supervise')){
- this.tabList = tabArr;
- this.operation = opArr;
- _self.isShowPriv = true;
- }else if(!this.hasPriv1('rexpert') && !this.hasPriv1('cexpert') && !this.hasPriv1('supervise')){
- this.tabList = [];
- this.operation = [];
- _self.isShowPriv = false;
- }else{
- if(this.hasPriv1('rexpert') && !this.hasPriv1('cexpert') && !this.hasPriv1('supervise')){
- this.tabList = tabArr.slice(tabArr.length-1,tabArr.length)
- this.operation = [];
- _self.isShowPriv = false;
- }
- if(this.hasPriv1('cexpert') && !this.hasPriv1('rexpert') && !this.hasPriv1('supervise')){
- this.tabList = tabArr.slice(0,tabArr.length-1)
- this.operation = opArr.slice(0,opArr.length-1);
- _self.isShowPriv = true;
- }
- if(this.hasPriv1('supervise') && !this.hasPriv1('rexpert') && !this.hasPriv1('cexpert')){
- this.tabList = tabArr
- this.operation = opArr.slice(opArr.length-2,opArr.length);
- _self.isShowPriv = false;
- }
- if(this.hasPriv1('rexpert') && this.hasPriv1('cexpert') && !this.hasPriv1('supervise')){
- this.tabList = tabArr
- this.operation = opArr.slice(0,opArr.length-1);
- _self.isShowPriv = true;
- }
- if(this.hasPriv1('rexpert') && this.hasPriv1('supervise') && !this.hasPriv1('cexpert')){
- this.tabList = tabArr
- this.operation = opArr.slice(opArr.length-2,opArr.length);
- _self.isShowPriv = false;
- }
- if(this.hasPriv1('supervise') && this.hasPriv1('cexpert') && !this.hasPriv1('rexpert')){
- this.tabList = tabArr
- this.operation = opArr;
- _self.isShowPriv = true;
- }
- }
- _self.activeName = _self.tabList[0].type;
- _self.subjectList = res.data
- console.log(_self.tabList, 'this.tabList')
- _self.planProcessName = _self.subjectList[0]['nowStep'];
- _self.planProcessId = _self.subjectList[0]['nowId'];
- this.hideOrShow();
- this.initTabAll();
- this.isLoading = false;
- }else{
- this.$message.warning("获取阶段信息为空");
- }
- }).catch((err) => {
- this.$message.error(err)
- });
- },
- //获取左侧树数据
- getTreeData() {
- let _self = this;
- this.isLoading = true;
- request.post(`/tac/insp/year/batch/obj/getObjTreeListV2`, {
- "persId": _self.persId
- }).then(res => {
- let treeDataLists
- treeDataLists = res.data.children;
- if(treeDataLists){
- this.yearList = treeDataLists;
- this.pcList = this.yearList[0].children;
- this.groupList = this.pcList[0].children;
- this.areaList = this.groupList[0].children;
- this.projectList = this.areaList[0].children;
- // 赋予默认值
- this.addForm.year = this.yearList[0].id
- this.addForm.batch = this.pcList[0].id
- this.addForm.group = this.groupList[0].id
- this.addForm.area = this.areaList[0].adCode
- this.addForm.rgstrId = this.projectList[0].id
- this.objId = this.projectList[0].objId
- this.getJiprocess();
- }else{
- this.$message.warning("获取查询条件信息失败");
- }
- }).catch((err) => {
- this.$message.error(err)
- });
- },
- changeYear(val) {
- this.addForm.batch = ''
- this.addForm.rgstrId = ''
- this.addForm.group = ''
- this.addForm.area = ''
- this.yearList.forEach(ele => {
- if (val == ele.id) {
- this.pcList = ele.children
- }
- })
- },
- changeBatch(val) {
- this.addForm.rgstrId = ''
- this.addForm.group = ''
- this.addForm.area = ''
- this.pcList.forEach(ele => {
- if (val == ele.id) {
- this.groupList = ele.children
- this.addForm.group = this.groupList[0].id
- this.areaList = this.groupList[0].children
- this.addForm.area = this.areaList[0].adCode
- this.projectList = this.areaList[0].children
- this.addForm.rgstrId = this.projectList[0].id
- }
- })
- },
- changeGroup(val) {
- this.addForm.area = ''
- this.addForm.rgstrId = ''
- this.groupList.forEach(ele => {
- if (val == ele.id) {
- this.areaList = ele.children
- }
- })
- },
- changeArea(val) {
- this.addForm.rgstrId = ''
- this.areaList.forEach(ele => {
- if (val == ele.adCode) {
- this.projectList = ele.children
- }
- })
- },
- changeProject(val) {
- this.projectList.forEach(ele => {
- if (val == ele.id) {
- this.objId = ele.objId
- this.hideOrShow();
- this.initTabAll();
- }
- })
- },
- handleClick(data) {
- console.log(data);
- this.flag = data.name;
- this.planProcessName = this.subjectList[parseInt(this.flag) - 1]['nowStep'];
- this.planProcessId = this.subjectList[parseInt(this.flag) - 1]['nowId'];
- this.hideOrShow();
- this.curprvId = this.subjectList[parseInt(this.flag) - 1]['prvId'];
- this.curnextId = this.subjectList[parseInt(this.flag) - 1]['nextId'];
- this.isShowPriv = false
- if(this.operation.indexOf(data.name)>-1){
- this.isShowPriv = true
- }
- this.initTabAll();
- // if(this.flag == '1'){
- // // this.curStage = '提交到交换意见阶段'
- // }else if(this.flag == '2'){
- // // this.curStage = '提交到送审阶段'
- // }else if(this.flag == '3'){
- // // this.curStage = '提交到符合性审查阶段'
- // }else if(this.flag == '4'){
- // // this.curStage = '提交到稽查办审批阶段'
- // }else if(this.flag == '5'){
- // this.curStage = '提交'
- // }
- },
- initTabAll(){
- if(this.$refs.mychild && this.$refs.mychild.length>0){
- for(var i = 0;i<this.$refs.mychild.length;i++){
- this.$refs.mychild[i].getProblemList();
- }
- }
- },
- stageSubmit1() {
- var _self = this;
- if (this.addForm.rgstrId) {
- if (this.activeName == this.tabList.length) {
- this.$message.success('当前阶段为最终阶段,无法提交')
- } else {
- this.$confirm(`注意:提交后将不能更改!确定内容已修改完成,并将成果“${this.curStage}”吗?`, '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- request.get(`/tac/province/pblm/info/planProcess/${this.addForm.rgstrId}/${this.subjectList[parseInt(this.activeName) - 1]['nextId']}`,{params:{pblmChType:this.addForm.pblmChType}}).then(res => {
- if (res.success) {
- _self.hideOrShow();
- _self.initTabAll();
- _self.editable = false
- _self.$message.success('提交成功')
- } else {
- _self.$message.error(res.message)
- }
- })
- }).catch((err) => {
- this.$message.error("取消提交")
- });
- }
- } else {
- this.$message.warning('项目名称不能为空')
- }
- },
- stageSubmit() {
- if (this.addForm.rgstrId) {
- let url
- if (this.flag == '7') {
- url = `/tac/pawp/rgstr/siju/${this.addForm.rgstrId}/8`
- } else {
- url = `/tac/pawp/rgstr/chengguo/submit/${this.addForm.rgstrId}/${Number(this.flag) + 1}`
- }
- this.$confirm(`注意:提交后将不能更改!确定内容已修改完成,并将成果“${this.curStage}”吗?`, '提示', {
- confirmButtonText: '确定',
- cancelButtonText: '取消',
- type: 'warning'
- }).then(() => {
- request.get(url).then(res => {
- if (res.success) {
- this.editable = false
- this.$message.success('提交成功')
- } else {
- this.$message.error(res.message)
- }
- })
- }).catch(() => {
- });
- } else {
- this.$message.warning("项目名称不能为空");
- }
- },
- showDialogCallBack(){
- this.callBackNote = "";
- this.callbackNoteVisible = true;
- },
- // 助理退回工作底稿
- backProfession() {
- var _self = this;
- let prvId = this.subjectList[parseInt(this.activeName) - 1]['prvId']
- if(parseInt(this.activeName)==1){
- if (!this.addForm.pblmChType) {
- this.$message.warning('请选择专业')
- return
- }
- if (this.addForm.pblmChType && this.addForm.rgstrId) {
- request.get(`/tac/province/pblm/info/rollback/${this.addForm.rgstrId}/${prvId}/${this.addForm.pblmChType}`,{params:{note:this.callBackNote,pblmChType:this.addForm.pblmChType}}).then(res => {
- if (res.success) {
- _self.hideOrShow();
- _self.callbackNoteVisible = false;
- _self.initTabAll();
- _self.$message.success('回退成功');
- } else {
- this.$message.warning(res.message)
- }
- }).catch(err => {
- _self.$message.warning(err)
- })
- } else {
- this.$message.warning("项目名称和专业不能为空");
- }
- }else{
- request.get(`/tac/province/pblm/info/rollback/allType/${this.addForm.rgstrId}/${prvId}`,{params:{note:this.callBackNote,pblmChType:this.addForm.pblmChType}}).then(res => {
- if (res.success) {
- _self.hideOrShow();
- _self.callbackNoteVisible = false;
- _self.initTabAll();
- _self.$message.success('回退成功');
- } else {
- this.$message.warning(res.message)
- }
- }).catch(err => {
- _self.$message.warning(err)
- })
- }
- },
- //项目阶段是当前选中阶段则显示提交、驳回按钮
- hideOrShow() {
- var _self = this;
- let currentOrgId = localStorage.getItem("currentOrgId")
- if (currentOrgId == '036') {
- //浙江将驳回按钮隐藏
- _self.zjstates = false;
- } else {
- _self.zjstates = true;
- }
- if (this.addForm.rgstrId && _self.planProcessId) {
- request.get(`/tac/province/pblm/info/taskProcess/${_self.addForm.rgstrId}/${_self.planProcessId}`).then(res => {
- if (res.success && res.data) {
- //阶段是否为工程提交的当前阶段
- if (res.data.nowId && res.data.nowId == _self.subjectList[parseInt(_self.activeName) - 1]['nowId']) {
- _self.isShowaddrollback = true;
- } else {
- _self.isShowaddrollback = false;
- }
- //阶段是否需要审定,审定状态
- if (res.data.isExamine && res.data.isExamine == '1') {
- _self.isExamine = true;
- //需要审定阶段,必须通过审定人审定后才能显示提交到下一阶段按钮
- if (res.data.stageStatus && res.data.stageStatus == '1') {
- _self.examineStatus = true;
- } else {
- _self.examineStatus = false;
- }
- //需要审定阶段,经办人提交审定按钮显隐
- if (res.data.stageStatus == null ||
- res.data.stageStatus == '' ||
- res.data.stageStatus == '2') {
- _self.sendExamineStatus = true;
- } else {
- _self.sendExamineStatus = false;
- }
- } else {
- _self.examineStatus = true;
- _self.isExamine = false;
- }
- //审定状态
- _self.stageStatus = res.data.stageStatus;
- //是否为最后阶段,最后阶段不显示提交到下一阶段
- if (1 == _self.subjectList[parseInt(_self.activeName) - 1]['nextId']) {
- _self.isStopStep = true
- } else {
- _self.isStopStep = false
- }
- } else {
- _self.isShowaddrollback = false;
- }
- })
- }
- },
- sendSubmitStatus(val) {
- this.editable = val
- },
- // 展示操作日志
- showDailyRecord() {
- if (!this.addForm.pblmChType) {
- this.$message.warning('请选择专业')
- return
- }
- this.dailyRecordVisible = true
- },
- //当前工程阶段审定
- examine() {
- if (!this.addForm.rgstrId) {
- this.$message.warning('请选择工程')
- return
- }
- this.examVisible = true
- },
- sendExamine() {
- if (!this.addForm.rgstrId) {
- this.$message.warning('请选择工程')
- return
- }
- var _self = this;
- if (this.addForm.rgstrId && this.planProcessId) {
- let data = {
- rgstrId: this.addForm.rgstrId,
- planProcessId: this.planProcessId,
- stageStatus: '0'
- }
- request.post(`/tac/province/examine/add`, data).then(res => {
- if (res.success) {
- this.hideOrShow();
- this.initTabAll();
- _self.$message.success('提交成功')
- } else {
- _self.$message.error(res.message)
- }
- }).catch((err) => {
- this.$message.error(err)
- });
- } else {
- this.$message.warning('项目名称以及阶段不能为空')
- }
- },
- //当前工程阶段审定意见
- examRecord() {
- if (!this.addForm.rgstrId) {
- this.$message.warning('请选择工程')
- return
- }
- this.examRecordVisible = true
- },
- dialogClose() {
- this.examRecordVisible = false;
- this.examVisible = false;
- this.hideOrShow();
- this.initTabAll();
- },
- callBackDialogClose() {
- this.callbackNoteVisible = false;
- },
- hasPriv1(item) {
- return this.ownPriv(item)
- },
- }
- }
- </script>
- <style lang="scss">
- .tabs_wrapper .el-tabs__item, .report_filter_select .el-form-item__label {
- font-size: 16px;
- color: #333;
- }
- .report_btn_group {
- position: absolute;
- top: 20px;
- right: 10px;
- }
- </style>
|