Browse Source

大中型流程优化2

wucl 1 year ago
parent
commit
b7b1513324

+ 9 - 1
src/views/finance/fundClaim.vue

@@ -198,7 +198,7 @@
       </el-form>
     </el-dialog>
     <el-dialog :visible.sync="myMajorOrderDialog" width="95%" center custom-class="doWarehouseClass" @closed="getList">
-      <y-page-list-layout :page-list="myMajorPageData" :page-para="majorListQuery" :get-page-list="getMyMajorOrder">
+      <y-page-list-layout :page-list="myMajorPageData" :page-para="majorListQuery" :get-page-list="getMyMajor">
         <template slot="left">
           <el-switch style="width: 270px;float: left;margin-top: 5px;" v-model="toProd" active-color="#13ce66"
             inactive-color="#ff4949" active-text="认领到产品" inactive-text="认领到订单">
@@ -885,6 +885,14 @@ export default {
       this.getList()
     },
 
+    getMyMajor(){
+      if (this.toProd){
+          this.getMyMajorProd();
+      }else{
+        this.getMyMajorOrder();
+      }
+    },
+
     getMyMajorOrderResetSearch() {
       this.$router.push({ query: {} });
       this.majorListQuery = {

+ 3 - 3
src/views/income/major/evaluate.vue

@@ -109,7 +109,7 @@
               <el-button v-if="row.declareResult == null || row.declareResult == '审核拒绝'" type="text" size="small"
                 @click="openDeclareDialog(row)">申报</el-button>
               <el-button v-if="row.declareResult == '审核中' || row.declareResult == '审核通过' || row.declareResult == '审核拒绝'" type="text" size="small"
-                @click="checkDetail(row.id)">查看</el-button>
+                @click="checkDetail(row.cid)">查看</el-button>
             </div>
           </template>
         </el-table-column>
@@ -248,8 +248,8 @@ export default {
         this.declareForm.businessId = row.businessId;
         this.declareForm.productionId= row.productionId;
     },
-    checkDetail(id){
-      this.$router.push(`/income/major/market/detail?businessId=${id}&businessType=COMMISSION_DECLARE_MAJOR_EVALUATE&doWorkflow=${false}&back=${'/income/major/declare/evaluate'}`)
+    checkDetail(cid){
+      this.$router.push(`/income/major/market/detail?businessId=${cid}&businessType=COMMISSION_DECLARE_MAJOR_EVALUATE&doWorkflow=${false}&back=${'/income/major/declare/evaluate'}`)
     },
     declareEvaluate(){
       this.$refs.declareForm.validate(valid=>{

+ 3 - 3
src/views/income/major/market.vue

@@ -114,7 +114,7 @@
               <el-button v-if="row.declareResult == null || row.declareResult == '审核拒绝'" type="text" size="small"
                 @click="openDeclareDialog(row)">申报</el-button>
               <el-button v-if="row.declareResult == '审核中' || row.declareResult == '审核通过' || row.declareResult == '审核拒绝'" type="text" size="small"
-                @click="checkDetail(row.id)">查看</el-button>
+                @click="checkDetail(row.cid)">查看</el-button>
             </div>
           </template>
         </el-table-column>
@@ -325,8 +325,8 @@ export default {
     removeUser(index) {
       this.declareForm.userShareRates.splice(index, 1)
     },
-    checkDetail(id) {
-      this.$router.push(`/income/major/market/detail?businessId=${id}&businessType=COMMISSION_DECLARE_MAJOR_MARKET&doWorkflow=${false}&back=${'/income/major/declare/market'}`)
+    checkDetail(cid) {
+      this.$router.push(`/income/major/market/detail?businessId=${cid}&businessType=COMMISSION_DECLARE_MAJOR_MARKET&doWorkflow=${false}&back=${'/income/major/declare/market'}`)
     }
 
   },

+ 38 - 13
src/views/major/detail.vue

@@ -3,10 +3,11 @@
     <el-collapse v-model="activeName" @change="handleChange"  v-if="nodeBusinessInfo.currentNodeInstanceId">
       <el-collapse-item>
         <template slot="title" >
-          <span style="font-size:20px; margin-left:20px;letter-spacing:2px;color:red">
-            <i class="el-icon-warning"></i>
-           <span> 当前节点:{{currentNode==null ?'???':currentNode.nodeName?currentNode.nodeName:'结束'}}</span>
-           <span style="margin-left:30px">该流程已取:<el-tag type="success" v-if="statementNo">{{statementNo}}</el-tag><el-tag type="danger" v-if="reportNo">{{reportNo}}</el-tag></span>
+          <span style="font-size:20px; color:RGB(168,168,168)">
+            <i class="el-icon-star-on"></i>
+           <span> {{currentNode==null ?'???':currentNode.nodeName?currentNode.nodeName:'结束'}}</span>
+           <span style="margin-left:30px" v-if="reportNo || statementNo">已取号:<span style="font-style:italic;" v-if="statementNo">{{statementNo}}</span>
+           <span style="font-style:italic;margin-left:30px" v-if="reportNo">{{reportNo}}</span></span>
           </span>
           <span style="font-size:15px; margin-left:15px;letter-spacing:2px; color:RGB(168,168,168)">
             点击展开查看实时流程图
@@ -2167,6 +2168,15 @@
             }
         },
         deep: true
+      },
+      nodeBusinessInfo: {
+        handler(newValue, oldValue) {
+          const board = this.$refs.board;
+          if (board){
+            board.getInstanceQueue();
+          }
+        },
+        deep: true,
       }
     },
 
@@ -2443,6 +2453,7 @@
         this.showBtn = this.$route.query.showBtn ==='true';
         this.couldBack = this.$route.query.couldBack ==='true';
         this.reportNo = this.$route.query.reportNo;
+        this.production = this.$route.query.pt;
         this.statementNo = this.$route.query.statementNo;
         this.saveOrderBtn = this.$route.query.saveOrderBtn;
         this.majorId = this.$route.query.id;
@@ -2460,7 +2471,8 @@
           this.getCurrentNodeInfo();
         }
         if (this.activeTagName === 'order'){
-        this.getAllotDepartment();
+          this.getAllotDepartment();
+          this.getLandTargetList();
         }
         if (this.activeTagName === 'evaluate'){
           if (this.major.businessObjectType==='土地'){
@@ -2476,11 +2488,11 @@
         if (this.activeTagName === 'quality'){
           this.getPerformance(this.majorId,(this.reportNo==null?this.statementNo:this.reportNo));
         }
-        if (this.nodeBusinessInfo.currentNodeInstanceId){
-          setTimeout(() => {
-            this.$refs.board.getInstanceQueue();
-          }, 1000);
-        }
+        // if (this.nodeBusinessInfo.currentNodeInstanceId){
+        //   setTimeout(() => {
+        //     this.$refs.board.getInstanceQueue();
+        //   }, 1000);
+        // }
     },
     methods: {
       handleChange(){
@@ -2664,14 +2676,26 @@
             const obj = new Object();
             obj.majorId = this.majorId;
             obj.statementNo =this.statementNo;
-            if (this.feedback.production.includes("REPORT")){
-              obj.reportNo = this.reportNo;
+            if (!this.production){
+              if (this.feedback.production.includes("REPORT")){
+                obj.reportNo = this.reportNo;
+              }else{
+                obj.letterNo = this.reportNo;
+              }
             }else{
-              obj.letterNo = this.reportNo;
+              if (this.production === 'STATEMENT'){
+                obj.statementNo = this.reportNo;
+              } else if (this.production === 'REPORT'){
+                obj.reportNo = this.reportNo;
+              }else{
+                obj.letterNo = this.reportNo;
+              }
             }
+            
             this.$api.majorTarget.list(obj).then(res=>{
               if (res.code === 200){
                   this.evaluateLandData = res.data;
+                  this.statementNo = this.evaluateLandData[0].statementNo
                   let totalAcreages = [];
                   let totalValues = this.evaluateLandData.map(item=>item.evaluateValue);
                   if (this.major.businessObjectType === '土地'){
@@ -2694,6 +2718,7 @@
          }
       },
       getWorkflowLogs(){
+        console.log(this.statementNo);
         let param = {
           businessId:this.majorId,
           businessSubId: this.statementNo,

+ 1 - 1
src/views/major/saveFileDoneList.vue

@@ -177,7 +177,7 @@ export default {
     },
    
     toDetail(row){
-      this.$router.push(`/major/detail?id=${row.majorId}&couldEdit=${false}&reportNo=${row.reportNo}&currentNodeId=${row.currentNodeId}&back=${'/major/saveFileDone'}`)
+      this.$router.push(`/major/detail?id=${row.majorId}&couldEdit=${false}&reportNo=${row.reportNo}&pt=${row.production}&back=${'/major/saveFileDone'}`)
     },
     aliasProductionType(code){
         if (code === 'STATEMENT'){

+ 10 - 8
src/views/major/saveFileTodoList.vue

@@ -29,11 +29,11 @@
           saveFileProduction
           width="100" border="true">
         </el-table-column>
-        <el-table-column label="订单名称" align="center" width="200" show-overflow-tooltip >
+        <!-- <el-table-column label="订单名称" align="center" width="200" show-overflow-tooltip >
           <template slot-scope="{row}">
             <span>{{ row.orderName }}</span>
           </template>
-        </el-table-column>
+        </el-table-column> -->
         <el-table-column label="订单号" align="center"  width="200" >
           <template slot-scope="{row}">
             <span>{{ row.orderId }}</span>
@@ -44,12 +44,12 @@
             <span>{{ row.name }}</span>
           </template>
         </el-table-column>
-        <el-table-column label="报告号/复评函" align="center" width="280">
+        <el-table-column label="产品号" align="center" width="280">
           <template slot-scope="{row}">
-            <span>{{ row.businessMinId }}</span>
+            <span>{{ row.reportNo }}</span>
           </template>
         </el-table-column>
-        <el-table-column label="产品类型" align="center">
+        <el-table-column label="产品类型" align="center" width="100">
           <template slot-scope="{row}">
             <span>{{ aliasProductionType(row.production)}}</span>
           </template>
@@ -94,8 +94,8 @@
     <el-dialog :visible.sync="saveFileDialog" width="55%" center  custom-class="doWarehouseClass">
         <el-result icon="warning" subTitle="请确认将以下报告进行归档操作?"></el-result>
         <div style="width:100%;text-align:center;">
-            <el-tag v-for="(p,productionId) in saveFileProduction"   style="font-size:18px;margin-right: 10px;" type="success" effect="plain" :key="p.businessMinId"> 
-              {{p.businessMinId}}</el-tag>
+            <el-tag v-for="(p,productionId) in saveFileProduction"   style="font-size:18px;margin-right: 10px;" type="success" effect="plain" :key="p.reportNo"> 
+              {{p.reportNo}}</el-tag>
         </div>
         <div style="width:100%;text-align:center;margin-top:20px">
           <el-button type="success" @click="batchSaveFile()">确认归档</el-button>
@@ -176,12 +176,14 @@ export default {
           picked.taskId = val[i].taskId;
           picked.currentNodeId = val[i].currentNodeId;
           picked.businessId = val[i].businessId;
-          picked.businessMinId = val[i].businessMinId;
+          picked.reportNo = val[i].reportNo;
           picked.state = "PASS";
           picked.productionId = val[i].productionId;
           picked.orderId = val[i].orderId;
           picked.name = val[i].name;
           picked.taskCreated = val[i].taskCreated;
+          picked.businessSubId = val[i].businessSubId;
+          picked.businessMinId = val[i].businessMinId;
           pickeds.push(picked);
         }
         this.saveFileProduction = pickeds;

+ 6 - 9
src/views/major/todoDetail.vue

@@ -6,16 +6,13 @@
     <el-collapse v-model="activeName" @change="handleChange">
       <el-collapse-item>
         <template slot="title">
-          <span style="font-size:20px; margin-left:20px;letter-spacing:2px;color:red">
-            <i class="el-icon-warning"></i>
-            <span> 当前节点:{{ currentNode == null ? '???' : currentNode.nodeName }}</span>
-            <!-- <span v-if = "currentNode.tasks.length>0" style="margin-left:30px">任务:</span>  -->
-            <!-- <span v-for="( t,index) in currentNode.tasks" :key=index  >{{t.info}}</span> -->
-            <span style="margin-left:30px" v-if="statementNo || reportNo">该流程已取:<el-tag type="success"
-                v-if="statementNo">{{ statementNo }}</el-tag> <el-tag type="danger"
-                v-if="reportNo">{{ reportNo }}</el-tag></span>
+          <span style="font-size:20px; color:RGB(42,143,277)">
+            <i class="el-icon-star-on"></i>
+           <span> {{currentNode==null ?'???':currentNode.nodeName?currentNode.nodeName:'结束'}}</span>
+           <span style="margin-left:30px" v-if="reportNo || statementNo">已取号:<span style="font-style:italic;" v-if="statementNo">{{statementNo}}</span>
+           <span style="font-style:italic;margin-left:30px" v-if="reportNo">{{reportNo}}</span></span>
           </span>
-          <span style="font-size:15px; margin-left:15px;letter-spacing:2px; color:RGB(168,168,168)">
+          <span style="font-size:15px; margin-left:15px;letter-spacing:2px; color:RGB(42,143,277)">
             点击展开查看实时流程图
           </span>
         </template>