Sfoglia il codice sorgente

feat(contractReview): 合同评审完成

liujt 8 mesi fa
parent
commit
a8fe7def31

+ 0 - 39
src/views/contractManage/contractReview/components/addDialog.vue

@@ -344,36 +344,6 @@
   };
 </script>
 <style scoped lang="scss">
-  .box {
-    display: flex;
-    height: 450px;
-
-    .left-box {
-      width: 55%;
-      border-right: 1px solid #e2e4e7;
-      padding-right: 15px;
-      height: 100%;
-
-      .el-tree {
-        height: 85%;
-        overflow-y: auto;
-      }
-    }
-
-    .right-box {
-      flex: 1;
-      padding-left: 20px;
-      height: 100%;
-
-      .right-box-item {
-        margin-top: 5px;
-        display: flex;
-        justify-content: space-between;
-        align-items: center;
-      }
-    }
-  }
-
   .form-box {
     // max-height: 500px;
     min-width: 400px;
@@ -390,13 +360,4 @@
       color: #ffffff;
     }
   }
-  .blank_adopzrdd {
-    display: flex;
-    align-items: center;
-    > span {
-      display: inline-block;
-      width: 80px;
-    }
-    margin-bottom: 10px;
-  }
 </style>

+ 36 - 16
src/views/contractManage/contractReview/components/detail.vue

@@ -1,7 +1,7 @@
 <template>
   <ele-modal
     :visible="detailFlag"
-    :width="modelWidth"
+    width="1100px"
     :centered="true"
     :close-on-click-modal="false"
     append-to-body
@@ -25,8 +25,22 @@
         </el-tag>
       </div>
     </template>
-    <div style="display: flex; height: 100%; justify-content: space-between">
-      <div class="form-box">
+    <div>
+      <div class="switch">
+        <div class="switch_left">
+          <ul>
+            <li
+              v-for="item in tabOptions"
+              :key="item.key"
+              :class="{ active: activeComp == item.key }"
+              @click="handleTag(item.key)"
+            >
+              {{ item.name }}
+            </li>
+          </ul>
+        </div>
+      </div>
+      <div v-if="activeComp === 'main'" class="form-box">
         <fm-generate-form
           v-if="Object.keys(form?.formJson || {}).length !== 0"
           :data="jsonData"
@@ -46,6 +60,10 @@
 
         </fm-generate-form>
       </div>
+      <bpmDetail
+        v-if="activeComp === 'bpm' && form.id"
+        :id="form.id"
+      ></bpmDetail>
       <!-- <div
         style="
           align-self: center;
@@ -89,6 +107,7 @@
 <script>
   import dictMixins from '@/mixins/dictMixins';
   import { getToken } from '@/utils/token-util';
+  import bpmDetail from '@/views/bpm/processInstance/detail.vue';
   // import outgoingDetails from '@/views/bpm/outgoingManagement/details.vue';
   // import storageApi from '@/api/warehouseManagement';
   // import Detail from '@/views/bpm/processInstance/detailNew.vue';
@@ -96,6 +115,7 @@
   export default {
     name: 'formDetailDialog',
     // components: {outgoingDetails, businessComponent, useSealComponent, useQualificationComponent, productSpecificationComponent, eventComponent, reissueComponent, Detail},
+    components: {bpmDetail},
     props: {
       detailFlag: {
         type: Boolean,
@@ -109,26 +129,26 @@
     mixins: [dictMixins],
     data() {
       return {
+        activeComp: 'main',
+        tabOptions: [
+          { key: 'main', name: '合同详情' },
+          { key: 'bpm', name: '流程详情' }
+        ],
         form: {},
         jsonData: {},
         outgoingData:{},
         isRight: false,
       };
     },
-    computed: {
-      // modelWidth() {
-      //   return (this.outgoingData?.id || this.jsonData.config?.platform && this.jsonData.config.platform === 'pc') ? '80%' : '400px';
-      // }
-      modelWidth() {
-        let width = this.jsonData.config?.platform && this.jsonData.config.platform === 'pc' ? 1100 : 450;
-        if(this.isRight) {
-          return width + 750 + 'px'
-        } else {
-          return width + 'px'
-        }
-      }
-    },
     methods: {
+      handleTag(val) {
+          this.activeComp = val;
+          // if (val == 'store') {
+          //   this.$nextTick(() => {
+          //     // this.$refs.innerBoundDetailsRef._getInfo(this.form.docNo);
+          //   });
+          // }
+       },
        open(row) {
         this.form = _.cloneDeep(row);
         // if(this.form.id){

+ 1 - 2
src/views/contractManage/contractReview/index.vue

@@ -99,8 +99,7 @@
       >
         <template v-slot:toolbar="{ row }">
           <el-button
-            type="primary"
-            icon="el-icon-search"
+            type="primary" 
             class="ele-btn-icon"
             @click="handleStartProcess"
           >