Переглянути джерело

根据成果id查询审批记录接口提交

wanger 5 місяців тому
батько
коміт
7372edd425
2 змінених файлів з 65 додано та 3 видалено
  1. 12 0
      website/src/api/ghcgysc/cggl.js
  2. 53 3
      website/src/views/ghcgscygl/common.vue

+ 12 - 0
website/src/api/ghcgysc/cggl.js

@@ -162,4 +162,16 @@ export function startczghcgsc(parameter) {
             'Content-Type': 'application/json;charset=UTF-8'
         }
     })
+}
+
+//根据成果id查询审批记录
+export function viewscjl(data) {
+    return request({
+        url: '/apply/cggl/viewscjl',
+        method: 'post',
+        data: data,
+        headers: {
+            'Content-Type': 'multipart/form-data'
+        },
+    })
 }

+ 53 - 3
website/src/views/ghcgscygl/common.vue

@@ -82,6 +82,17 @@
             <el-table-column label="操作" fixed="right" align="center">
               <template #default="scope">
                 <div class="max-width">
+                  <el-button
+                    v-if="
+                      scope.row.sczt.indexOf('完结') > -1 ||
+                      scope.row.sczt.indexOf('退回') > -1
+                    "
+                    type="primary"
+                    link
+                    class="caozuo"
+                    @click="openscjl(scope.row)"
+                    >审查记录</el-button
+                  >
                   <el-button
                     v-if="['待审', '审查中'].indexOf(scope.row.sczt) > -1"
                     type="primary"
@@ -91,7 +102,7 @@
                     >审查</el-button
                   >
 
-                  <el-button
+                  <!-- <el-button
                     v-if="scope.row.sczt == '6' || scope.row.sczt == '7'"
                     type="primary"
                     link
@@ -124,7 +135,7 @@
                     class="caozuo"
                     @click="download(scope.row)"
                     >查看审查报告</el-button
-                  >
+                  > -->
                   <!-- <el-divider v-if="['完结'].indexOf(scope.row.sczt) > -1" direction="vertical"></el-divider>
                   <el-button v-if="['完结'].indexOf(scope.row.sczt) > -1" type="primary" link class="caozuo"
                     @click="ruku(scope.row)">入库</el-button> -->
@@ -160,6 +171,33 @@
       :active_bsm="active_bsm"
       @getlist="getlist"
     ></Examination>
+    <el-dialog
+      title="审查记录"
+      v-model="dialogVisible"
+      width="30%"
+      :before-close="handleClose"
+    >
+      <el-collapse>
+        <el-collapse-item
+          v-for="(item, index) in scjllist"
+          :key="index"
+          :title="`${item.username}-->${item.scjl}`"
+        >
+          <template slot="title">
+            一致性 Consistency<i class="header-icon el-icon-info"></i>
+          </template>
+          <!-- <template slot="title">
+            <span style="float:left;font-weight:bold;font-size:14px;color:#2C8DF4;">{{item.username}}</span>
+          </template> -->
+          <div>审批意见:{{ item.scyj }}</div>
+          <div>审批时间:{{ item.sctime }}</div>
+        </el-collapse-item>
+      </el-collapse>
+      <!-- <span slot="footer" class="dialog-footer">
+        <el-button @click="dialogVisible = false">取 消</el-button>
+        <el-button type="primary" @click="dialogVisible = false">确 定</el-button>
+      </span> -->
+    </el-dialog>
   </div>
 </template>
 
@@ -167,7 +205,7 @@
 import { reactive, toRefs, ref } from "@vue/reactivity";
 import Details from "@/components/ghcgscygl/details.vue";
 import Examination from "@/components/ghcgscygl/examination.vue";
-import { selectCgSclist, cgsc } from "@/api/ghcgysc/cggl.js";
+import { selectCgSclist, cgsc, viewscjl } from "@/api/ghcgysc/cggl.js";
 import { GetXzq } from "@/api/homeApi.js";
 import {
   getCurrentInstance,
@@ -210,6 +248,8 @@ export default {
     const cgdb = reactive({
       loading: false,
       detailsVisible: false,
+      dialogVisible: false,
+      scjllist: [],
       examinationVisible: false,
       active_bsm: "",
       active_name: "",
@@ -237,6 +277,16 @@ export default {
         cgdb.formInline.page = val;
         cgdb.getlist();
       },
+      //查看审查记录
+      openscjl(row) {
+        cgdb.dialogVisible = true;
+        cgdb.scjllist = [];
+        let formData = new FormData();
+        formData.append("cgid", row.id);
+        viewscjl(formData).then((res) => {
+          cgdb.scjllist = res.data;
+        });
+      },
       // 审查
       examdata(row) {
         if (row.sczt.indexOf("待审") > -1) {