armg 1 рік тому
батько
коміт
38876b0b24

+ 50 - 8
ruoyi-ui/src/api/invest/pool.js

@@ -22,10 +22,7 @@ export function addPool(data) {
   return request({
     url: '/invest/pool',
     method: 'post',
-    data: data,
-    // headers: {
-    //   'Content-Type': 'multipart/form-data'
-    // }
+    data: data
   })
 }
 
@@ -34,10 +31,7 @@ export function updatePool(data) {
   return request({
     url: '/invest/pool',
     method: 'put',
-    data: data,
-    // headers: {
-    //   'Content-Type': 'multipart/form-data'
-    // }
+    data: data
   })
 }
 
@@ -64,4 +58,52 @@ export function listProjectPoolId(id) {
     method: 'get',
     params: {projectPoolId:id}
   })
+}
+
+// 尽调
+// 根据项目ID获取尽调数据
+export function getlistProjectPoolId(id) {
+  return request({
+    url: '/invest/investigate/listProjectPoolId',
+    method: 'get',
+    params: {projectPoolId:id}
+    
+  })
+}
+
+// 新增尽调关联
+export function addInvestigate(data) {
+  return request({
+    url: '/invest/investigate',
+    method: 'post',
+    data: data
+  })
+}
+
+// 修改尽调关联
+export function updateInvestigate(data) {
+  return request({
+    url: '/invest/investigate',
+    method: 'put',
+    data: data
+  })
+}
+
+//  获取尽调人员关联表详细信息
+export function getProjectInvestigateId(id) {
+  return request({
+    url: '/invest/person/getProjectInvestigateId',
+    method: 'get',
+    params: {projectInvestigateId:id}
+    
+  })
+}
+
+// 新增尽调人员关联表
+export function addInvestigatePerson(data) {
+  return request({
+    url: '/invest/person',
+    method: 'post',
+    data: data
+  })
 }

+ 4 - 0
ruoyi-ui/src/assets/styles/public.scss

@@ -462,4 +462,8 @@
 }
 .custom-orange-color {
   color: orange !important;
+}
+
+.el-upload-list__item {
+  transition: none !important;
 }

+ 9 - 2
ruoyi-ui/src/views/invest/components/fileItem.vue

@@ -1,5 +1,5 @@
 <template>
-  <div>
+  <div class="uploadWrapper">
     <el-upload
       ref="upload"
       class="upload"
@@ -82,4 +82,11 @@ export default {
     },
   },
 };
-</script>
+</script>
+<style lang="scss">
+.uploadWrapper
+::v-deep .el-upload-list__item {
+  transition: none !important;
+}
+
+</style>

+ 1 - 1
ruoyi-ui/src/views/invest/components/poolForm.vue

@@ -297,7 +297,7 @@ export default {
   dicts: ["CUSTOMER_TRADE", "project_group"],
   data() {
     return {
-      deptId: "",
+      deptId: "103",
       title: "新增项目",
       baseUrl: process.env.VUE_APP_BASE_API,
 

+ 474 - 37
ruoyi-ui/src/views/invest/components/projectList.vue

@@ -362,7 +362,7 @@
         width="100"
       />
       <el-table-column
-        width="300"
+        width="350"
         fixed="right"
         label="操作"
         align="center"
@@ -389,31 +389,6 @@
             >发起立项会议</el-button
           >
 
-          <el-button
-            class="custom-orange-color"
-            v-if="stage == '4'"
-            size="mini"
-            type="text"
-            icon="el-icon-document"
-            @click="handleSurvey(scope.row)"
-            >尽职调查</el-button
-          >
-          <el-button
-            class="custom-orange-color"
-            v-if="stage == '4'"
-            size="mini"
-            type="text"
-            icon="el-icon-upload2"
-            >上传尽调报告</el-button
-          >
-          <el-button
-            class="custom-orange-color"
-            v-if="stage == '4'"
-            size="mini"
-            type="text"
-            icon="el-icon-edit-outline"
-            >修改尽调报告</el-button
-          >
           <el-button
             class="custom-orange-color"
             v-if="stage == '5'"
@@ -458,6 +433,37 @@
             v-hasPermi="['invest:pool:remove']"
             >终止</el-button
           >
+          <el-dropdown
+            v-if="stage == '4'"
+            trigger="click"
+            @command="handleSurvey($event, scope.row)"
+          >
+            <span class="el-dropdown-link" @click="getButtonItem(scope.row)">
+              <el-button size="mini" type="text" icon="el-icon-d-arrow-right"
+                >更多</el-button
+              >
+            </span>
+            <el-dropdown-menu slot="dropdown">
+              <el-dropdown-item
+                command="1"
+                v-if="isInitiator && needInitiate"
+                icon="el-icon-document-remove"
+                >发起尽调申请</el-dropdown-item
+              >
+              <el-dropdown-item
+                v-if="isInitiator && !needInitiate"
+                command="2"
+                icon="el-icon-document-remove"
+                >修改尽调申请</el-dropdown-item
+              >
+              <el-dropdown-item
+                v-if="needUpload"
+                icon="el-icon-search"
+                command="3"
+                >上传尽调报告</el-dropdown-item
+              >
+            </el-dropdown-menu>
+          </el-dropdown>
         </template>
       </el-table-column>
     </el-table>
@@ -499,20 +505,201 @@
         <el-button @click="cancel">取 消</el-button>
       </div>
     </el-dialog>
+    <!-- 添加或修改尽调申请 -->
+    <el-dialog
+      :title="dueDiligenceTit"
+      :visible.sync="dueDiligenceOpen"
+      width="1000px"
+      append-to-body
+    >
+      <el-form
+        ref="dueForm"
+        class="special-el-form"
+        :model="dueForm"
+        :rules="dueRules"
+        label-width="100px"
+      >
+        <el-form-item label="尽调名称" prop="investigateName">
+          <el-input
+            :disabled="dueDiligenceType === '3'"
+            v-model="dueForm.investigateName"
+            placeholder="请输入尽调名称"
+          />
+        </el-form-item>
+        <el-form-item label="项目名称" prop="projectName">
+          <el-input
+            disabled
+            v-model="dueForm.projectName"
+            placeholder="请输入尽调名称"
+          />
+        </el-form-item>
+        <el-form-item label="尽调人员" prop="investigatePerson">
+          <div
+            class="el-input__inner inputSimulation"
+            @click="userVisible = true"
+            :class="{ show_disabled: dueDiligenceType === '3' }"
+          >
+            {{
+              dueForm.investigatePerson
+                ? dueForm.investigatePerson
+                : "请选择尽调人员"
+            }}
+          </div>
+        </el-form-item>
+        <el-form-item label="尽调费用" prop="investigateCost">
+          <el-input
+            :disabled="dueDiligenceType === '3'"
+            v-model="dueForm.investigateCost"
+            placeholder="请输入尽调费用"
+          />
+        </el-form-item>
+        <el-form-item label="文件" prop="file" class="special-el-form-item">
+          <fileItem
+            :class="{ show_disabled: dueDiligenceType === '3' }"
+            ref="fileItems"
+            :id="dueForm.id"
+            @getFileList="getFileList"
+          ></fileItem>
+        </el-form-item>
+        <el-form-item label="描述" prop="describe" class="special-el-form-item">
+          <el-input
+            :disabled="dueDiligenceType === '3'"
+            rows="4"
+            v-model="dueForm.describe"
+            type="textarea"
+            placeholder="请输入内容"
+          />
+        </el-form-item>
+        <el-form-item label="备注" prop="remark" class="special-el-form-item">
+          <el-input
+            :disabled="dueDiligenceType === '3'"
+            rows="4"
+            type="textarea"
+            v-model="dueForm.remark"
+            placeholder="请输入备注"
+          />
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitDueForm">确 定</el-button>
+        <el-button @click="cancelDueForm">取 消</el-button>
+      </div>
+    </el-dialog>
+    <!-- 添加或修改尽调报告 -->
+    <el-dialog
+      :title="dueDiligenceTit1"
+      :visible.sync="dueDiligenceOpen1"
+      width="1000px"
+      append-to-body
+    >
+      <h3>尽调申请详情</h3>
+      <el-divider></el-divider>
+      <el-form
+        ref="duePeportForm"
+        class="special-el-form"
+        :model="duePeportForm"
+        :rules="dueRules1"
+        label-width="100px"
+      >
+        <el-form-item label="尽调名称">
+          <el-input
+            disabled
+            v-model="dueForm.investigateName"
+            placeholder="请输入尽调名称"
+          />
+        </el-form-item>
+        <el-form-item label="项目名称">
+          <el-input disabled v-model="dueForm.projectName" />
+        </el-form-item>
+        <el-form-item label="尽调人员">
+          <el-input disabled v-model="dueForm.investigatePerson" />
+        </el-form-item>
+        <el-form-item label="尽调费用">
+          <el-input disabled v-model="dueForm.investigateCost" />
+        </el-form-item>
+        <el-form-item label="文件" class="special-el-form-item">
+          <fileItem
+            class="show_disabled"
+            ref="fileItems"
+            :id="dueForm.id"
+            @getFileList="getFileList"
+          ></fileItem>
+        </el-form-item>
+        <el-form-item label="描述" class="special-el-form-item">
+          <el-input
+            disabled
+            rows="4"
+            v-model="dueForm.describe"
+            type="textarea"
+          />
+        </el-form-item>
+        <el-form-item label="备注" class="special-el-form-item">
+          <el-input
+            disabled
+            rows="4"
+            type="textarea"
+            v-model="dueForm.remark"
+          />
+        </el-form-item>
+        <h3>尽调报告</h3>
+        <el-divider></el-divider>
+        <el-form-item label="文件" prop="listFile" class="special-el-form-item">
+          <fileItem
+            ref="reportFileItems"
+            :id="duePeportForm.id"
+            @getFileList="getreportFileList"
+          ></fileItem>
+        </el-form-item>
+        <el-form-item label="备注" prop="remark" class="special-el-form-item">
+          <el-input
+            rows="4"
+            type="textarea"
+            v-model="duePeportForm.remark"
+            placeholder="请输入备注"
+          />
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitduePeportForm">确 定</el-button>
+        <el-button @click="cancelduePeportForm">取 消</el-button>
+      </div>
+    </el-dialog>
+    <!--选择人员-->
+    <el-dialog
+      title="选择人员"
+      :visible.sync="userVisible"
+      width="60%"
+      :show-close="false"
+    >
+      <flow-user
+        :checkType="checkType"
+        :selectValues="selectValues"
+        @handleUserSelect="handleUserSelect"
+      ></flow-user>
+      <span slot="footer" class="dialog-footer">
+        <el-button @click="userVisible = false">取 消</el-button>
+        <el-button type="primary" @click="checkUserComplete">确 定</el-button>
+      </span>
+    </el-dialog>
   </div>
 </template>
 
 <script>
 import {
   listPool,
-  getPool,
   delPool,
-  addPool,
-  updatePool,
   editStage,
+  getlistProjectPoolId,
+  addInvestigate,
+  updateInvestigate,
+  addInvestigatePerson,
+  getProjectInvestigateId,
 } from "@/api/invest/pool";
 import { selectByFlowKey } from "@/api/flowable/definition";
 import { listChannel } from "@/api/invest/channel";
+import projectItem from "./projectItem";
+import fileItem from "./fileItem";
+import FlowUser from "@/components/flow/User";
 export default {
   props: {
     type: {
@@ -528,8 +715,21 @@ export default {
     },
   },
   dicts: ["project_group", "project_stage", "project_state"],
+  components: { projectItem, fileItem, FlowUser },
   data() {
+    const validateLogo = (rule, value, callback) => {
+      if (this.reportFileList.length <= 0) {
+        callback(new Error("请上传文件"));
+      } else {
+        callback();
+      }
+    };
     return {
+      // 人员选择器
+      checkType: "multiple",
+      // 数据回显
+      selectValues: null,
+      userVisible: false,
       project_state: [],
       projectState: [
         [
@@ -673,9 +873,75 @@ export default {
         deploymentId: null,
         id: null,
       },
+
+      isInitiator: false, //是否是发起人
+      needInitiate: false, //需要发起申请
+      needUpload: false, //需要上传
+      user: {
+        userId: null,
+        nickName: null,
+      },
+      dueDiligenceTit: "",
+      dueDiligenceOpen: false,
+      dueDiligenceTit1: "",
+      dueDiligenceOpen1: false,
+      duePeportForm: {
+        createBy: null,
+        createTime: null,
+        deptId: null,
+        deptName: null,
+        id: null,
+        investigatePerson: null,
+        investigatePersonId: null,
+        listFile: null,
+        projectInvestigateId: null,
+        remark: null,
+        updateBy: null,
+        updateTime: null,
+      },
+      dueForm: {
+        id: null,
+        investigateName: null,
+        investigateCode: null,
+        projectPoolId: null,
+        investigatePerson: null,
+        investigatePersonId: null,
+        investigateCost: null,
+        describe: null,
+        remark: null,
+        delFlag: null,
+        createBy: null,
+        createTime: null,
+        updateBy: null,
+        updateTime: null,
+        projectPoolId: null,
+        projectName: null,
+      },
+      dueRules1: {
+        listFile: [{ required: true, validator: validateLogo }],
+        remark: [{ required: true, trigger: "blur", message: "请输入" }],
+      },
+      dueRules: {
+        investigateName: [
+          { required: true, trigger: "blur", message: "请输入" },
+        ],
+        projectName: [{ required: true, trigger: "blur", message: "请输入" }],
+        investigatePerson: [
+          { required: true, trigger: "blur", message: "请选择" },
+        ],
+        investigateCost: [
+          { required: true, trigger: "blur", message: "请输入" },
+        ],
+        describe: [{ required: true, trigger: "blur", message: "请输入" }],
+      },
+      fileList: [],
+      reportFileList: [],
+      dueDiligenceType: "0",
     };
   },
   mounted() {
+    this.user = this.$store.getters.user;
+    this.user.userId = this.user.userId.toString();
     // 项目阶段
     if (this.stage != "0") {
       this.queryParams.projectStage = this.stage;
@@ -707,6 +973,26 @@ export default {
     this.getList();
   },
   methods: {
+    /*用户选中赋值*/
+    checkUserComplete() {
+      this.userVisible = false;
+      this.checkType = "";
+    },
+    // 用户选中数据
+    handleUserSelect(selection) {
+      const that = this;
+      if (selection) {
+        if (selection instanceof Array) {
+          const userIds = selection.map((item) => item.userId);
+          const nickName = selection.map((item) => item.nickName);
+          this.dueForm.investigatePerson = nickName.join(",");
+          this.dueForm.investigatePersonId = userIds.join(",");
+        } else {
+          this.dueForm.investigatePerson = selection.nickName;
+          this.dueForm.investigatePersonId = selection.userId;
+        }
+      }
+    },
     // 下拉框改变
     handleProjectSelect(index, dict) {
       this.form.projectState = null;
@@ -774,17 +1060,168 @@ export default {
         query: { id: row.id, type: "1", meetingType: meetingType },
       });
     },
+
+    // 获取fileList
+    getFileList(fileList) {
+      this.fileList = fileList;
+    },
+    getreportFileList(fileList) {
+      this.reportFileList = fileList;
+    },
+    // 获取公司信息
+    getProjectInfo(info) {
+      this.dueForm.projectPoolId = info[0].id;
+      this.dueForm.projectName = info[0].projectName;
+      this.dueForm.projectStage = info[0].projectStage;
+      this.dueForm.projectState = info[0].projectState;
+    },
+
+    handleProjectItem() {
+      this.$refs.projectItem.showProjectItem = true;
+    },
+    getButtonItem(row) {
+      let that = this;
+      this.needUpload = false;
+      // 是否是发起人
+      this.isInitiator = row.investHead == this.user.nickName;
+      getlistProjectPoolId(row.id).then((response) => {
+        // 是否有尽调报告
+        if (response.tProjectInvestigate) {
+          // 修改尽调申请
+          this.needInitiate = false;
+          this.dueForm = response.tProjectInvestigate;
+          // 如果上传人有 this.user.userId  那么 needUpload=true
+          // 需要上传的人数组
+          let investigatePersonIdList =
+            response.tProjectInvestigate.investigatePersonId.split(",");
+          if (investigatePersonIdList.indexOf(this.user.userId) > -1) {
+            this.needUpload = true;
+          }
+        } else {
+          // 发起尽调申请
+          this.needInitiate = true;
+          if (!this.isInitiator) {
+            this.$message.warning("暂无更多操作权限");
+          }
+        }
+      });
+    },
     // 发起尽调申请
-    handleSurvey(row) {
-      this.$router.push({
-        path: "/invest/pool/surveyForm",
-        query: {
-          deployId: this.surveyForm.deploymentId,
-          procDefId: this.surveyForm.id,
-        },
+    handleSurvey(type, row) {
+      let that = this;
+      this.dueDiligenceType = type;
+      //type 1=发起  2=修改  3=上传
+      console.log(type, row);
+      if (type === "1") {
+        this.resetDueForm();
+        setTimeout(() => {
+          that.$refs.fileItems.fileList = [];
+        }, 200);
+        this.dueDiligenceTit = "发起尽调申请";
+        this.dueDiligenceOpen = true;
+      } else if (type === "2") {
+        setTimeout(() => {
+          that.$refs.fileItems.getListFileBusinessId(this.dueForm.id);
+        }, 200);
+        this.dueDiligenceTit = "修改尽调申请";
+        this.dueDiligenceOpen = true;
+      } else if (type === "3") {
+        this.duePeportForm.projectInvestigateId = this.dueForm.id;
+        setTimeout(() => {
+          that.$refs.fileItems.getListFileBusinessId(this.dueForm.id);
+          that.$refs.reportFileItems.fileList = [];
+          that.$refs.reportFileItems.getListFileBusinessId(
+            this.duePeportForm.id
+          );
+        }, 200);
+        this.dueDiligenceTit1 = "上传尽调报告";
+        getProjectInvestigateId(this.dueForm.id).then((response) => {
+          if (response.data) {
+            this.duePeportForm = response.data;
+          }
+          this.dueDiligenceOpen1 = true;
+        });
+      }
+      this.dueForm.projectName = row.projectName;
+      this.dueForm.projectPoolId = row.id;
+    },
+    // 尽调报告
+    submitduePeportForm() {
+      this.$refs["duePeportForm"].validate((valid) => {
+        if (valid) {
+          this.duePeportForm.listFile = this.reportFileList;
+          addInvestigatePerson(this.duePeportForm).then((response) => {
+            this.$modal.msgSuccess("操作成功");
+            this.dueDiligenceOpen1 = false;
+          });
+        }
       });
     },
-
+    cancelduePeportForm() {
+      this.dueDiligenceOpen1 = false;
+      this.resetduePeportForm();
+    },
+    resetduePeportForm() {
+      this.duePeportForm = {
+        createBy: null,
+        createTime: null,
+        deptId: null,
+        deptName: null,
+        id: null,
+        investigatePerson: null,
+        investigatePersonId: null,
+        listFile: null,
+        remark: null,
+        updateBy: null,
+        updateTime: null,
+        projectInvestigateId: this.dueForm.id,
+      };
+    },
+    // 尽调申请
+    submitDueForm() {
+      this.$refs["dueForm"].validate((valid) => {
+        if (valid) {
+          this.dueForm.listFile = this.fileList;
+          if (this.dueForm.id != null) {
+            updateInvestigate(this.dueForm).then((response) => {
+              this.$modal.msgSuccess("修改成功");
+              this.dueDiligenceOpen = false;
+            });
+          } else {
+            addInvestigate(this.dueForm).then((response) => {
+              this.$modal.msgSuccess("新增成功");
+              this.dueDiligenceOpen = false;
+            });
+          }
+        }
+      });
+    },
+    cancelDueForm() {
+      this.dueDiligenceOpen = false;
+      this.resetDueForm();
+    },
+    // 表单重置
+    resetDueForm() {
+      this.dueForm = {
+        id: null,
+        investigateName: null,
+        investigateCode: null,
+        projectPoolId: null,
+        investigatePerson: null,
+        investigatePersonId: null,
+        investigateCost: null,
+        describe: null,
+        remark: null,
+        delFlag: null,
+        createBy: null,
+        createTime: null,
+        updateBy: null,
+        updateTime: null,
+        projectPoolId: null,
+        projectName: null,
+      };
+      this.resetForm("dueForm");
+    },
     // 上传跟进记录
     handlefollowRecord(row) {
       this.$store.commit("SET_PROJECTITEMMESSAGE", row);

+ 98 - 225
ruoyi-ui/src/views/invest/pool/surveyForm.vue

@@ -1,18 +1,76 @@
 <template>
   <div class="app-container">
-    
+    <!-- 添加或修改渠道信息对话框 -->
+    <el-dialog
+      :title="title"
+      :visible.sync="open"
+      width="1000px"
+      append-to-body
+    >
+      <el-form
+        class="special-el-form"
+        ref="form"
+        :model="form"
+        :rules="rules"
+        label-width="120px"
+      >
+        <el-form-item label="尽调主题" prop="channelName">
+          <el-input v-model="form.channelName" placeholder="请输入渠道名称" />
+        </el-form-item>
+        <el-form-item label="项目名称" prop="projectName">
+          <div
+            class="el-input__inner inputSimulation"
+            @click="handleProjectItem"
+          >
+            {{ form.projectName ? form.projectName : "请选择 " }}
+          </div>
+          <projectItem
+            ref="projectItem"
+            @getProjectInfo="getProjectInfo"
+          ></projectItem>
+        </el-form-item>
+        <el-form-item label="尽调费用" prop="contacts">
+          <el-input v-model="form.contacts" placeholder="请输入尽调费用" />
+        </el-form-item>
+        <el-form-item label="文件" prop="file">
+          <fileItem
+            ref="fileItems"
+            :id="form.id"
+            @getFileList="getFileList"
+          ></fileItem>
+        </el-form-item>
+        <el-form-item
+          label="尽调描述"
+          prop="channelBlurb"
+          class="special-el-form-item"
+        >
+          <el-input
+            rows="4"
+            type="textarea"
+            v-model="form.channelBlurb"
+            placeholder="请输入尽调描述"
+          />
+        </el-form-item>
+        <el-form-item label="备注" prop="mark" class="special-el-form-item">
+          <el-input
+            rows="4"
+            type="textarea"
+            v-model="form.mark"
+            placeholder="请输入备注"
+          />
+        </el-form-item>
+      </el-form>
+      <div slot="footer" class="dialog-footer">
+        <el-button type="primary" @click="submitForm">确 定</el-button>
+        <el-button @click="cancel">取 消</el-button>
+      </div>
+    </el-dialog>
   </div>
 </template>
 
 <script>
-import Parser from '@/components/parser/Parser'
-import {definitionStart, flowXmlAndNode} from "@/api/flowable/definition";
-import flow from '../../flowable/task/myProcess/send/flow'
-import {flowFormData} from "@/api/flowable/process";
-import {getNextFlowNodeByStart} from "@/api/flowable/todo";
-import FlowUser from '@/components/flow/User'
-import FlowRole from '@/components/flow/Role'
-
+import projectItem from "../components/projectItem";
+import fileItem from "../components/fileItem";
 export default {
   name: "investPoolSurveyForm",
   components: {
@@ -22,239 +80,54 @@ export default {
     FlowRole,
   },
   props: {},
+  components: { projectItem, fileItem },
   data() {
     return {
-      // 模型xml数据
-      flowData: {},
-      activeName: '1', // 切换tab标签
-      defaultProps: {
-        children: "children",
-        label: "label"
-      },
+      open: false,
       // 查询参数
       queryParams: {
-        deptId: undefined
+        deptId: undefined,
       },
-      // 遮罩层
-      loading: true,
-      deployId: "",  // 流程定义编号
-      procDefId: "",  // 流程实例编号
-      formConf: {}, // 默认表单数据
-      variables: [], // 流程变量数据
-      taskTitle: null,
-      taskOpen: false,
-      checkSendUser: false, // 是否展示人员选择模块
-      checkSendRole: false,// 是否展示角色选择模块
-      checkType: '', // 选择类型
-      checkValues: null, // 选中任务接收人员数据
-      formData: {}, // 填写的表单数据,
-      multiInstanceVars: '' // 会签节点
+      form:{}
     };
   },
   created() {
-    this.deployId = this.$route.query && this.$route.query.deployId;
-    // 初始化表单
-    this.procDefId  = this.$route.query && this.$route.query.procDefId;
-    // this.getNextFlowNodeByStart(this.deployId);
-    this.getFlowFormData(this.deployId);
+    this.open = true;
   },
   methods: {
-    handleClick(tab, event) {
-      if (tab.name === '2'){
-        flowXmlAndNode({deployId:this.deployId}).then(res => {
-          this.flowData = res.data;
-        })
-      }
-    },
-    /** 流程表单数据 */
-    getFlowFormData(deployId) {
-      const that = this
-      const params = {deployId: deployId}
-      flowFormData(params).then(res => {
-        // 流程过程中不存在初始化表单 直接读取的流程变量中存储的表单值
-          that.formConf = res.data;
-      }).catch(res => {
-        this.goBack();
-      })
-    },
-    /** 返回页面 */
-    goBack() {
-      // 关闭当前标签页并返回上个页面
-      const obj = { path: "/task/process", query: { t: Date.now()} };
-      this.$tab.closeOpenPage(obj);
-    },
-    /** 接收子组件传的值 */
-    getData(data) {
-      if (data) {
-        const variables = [];
-        data.fields.forEach(item => {
-          let variableData = {};
-          variableData.label = item.__config__.label
-          // 表单值为多个选项时
-          if (item.__config__.defaultValue instanceof Array) {
-            const array = [];
-            item.__config__.defaultValue.forEach(val => {
-              array.push(val)
-            })
-            variableData.val = array;
-          } else {
-            variableData.val = item.__config__.defaultValue
-          }
-          variables.push(variableData)
-        })
-        this.variables = variables;
-      }
-    },
-    /** 申请流程表单数据提交 */
-    submitForm(formData) {
-      // 根据当前任务或者流程设计配置的下一步节点 todo 暂时未涉及到考虑网关、表达式和多节点情况
-      getNextFlowNodeByStart({deploymentId: this.deployId,variables:formData.valData}).then(res => {
-        const data = res.data;
-        if (data) {
-          this.formData = formData;
-          if (data.dataType === 'dynamic') {
-            if (data.type === 'assignee') { // 指定人员
-              this.checkSendUser = true;
-              this.checkType = "single";
-            } else if (data.type === 'candidateUsers') {  // 候选人员(多个)
-              this.checkSendUser = true;
-              this.checkType = "multiple";
-            } else if (data.type === 'candidateGroups') { // 指定组(所属角色接收任务)
-              this.checkSendRole = true;
-            } else { // 会签
-              // 流程设计指定的 elementVariable 作为会签人员列表
-              this.multiInstanceVars = data.vars;
-              this.checkSendUser = true;
-              this.checkType = "multiple";
-            }
-            this.taskOpen = true;
-            this.taskTitle = "选择任务接收";
-          } else {
-            const variables = this.formData.valData;
-            const formData = this.formData.formData;
-            formData.disabled = true;
-            formData.formBtns = false;
-            if (this.procDefId) {
-              variables.variables = formData;
-              // 启动流程并将表单数据加入流程变量
-              definitionStart(this.procDefId, JSON.stringify(variables)).then(res => {
-                this.$modal.msgSuccess(res.msg);
-                this.goBack();
-              })
-            }
-          }
-        }
-      })
+    //展示人员
+    handleProjectItem() {
+      this.$refs.projectItem.showProjectItem = true;
     },
-    /** 提交流程 */
-    submitTask() {
-      if (!this.checkValues && this.checkSendUser){
-        this.$modal.msgError("请选择任务接收!");
-        return;
-      }
-      if (!this.checkValues && this.checkSendRole){
-        this.$modal.msgError("请选择流程接收角色组!");
-        return;
-      }
-      if (this.formData) {
-        const variables = this.formData.valData;
-        const formData = this.formData.formData;
-        // 表单是否禁用
-        formData.disabled = true;
-        // 是否显示按钮
-        formData.formBtns = false;
-        variables.variables = formData;
-        if (this.multiInstanceVars) {
-          this.$set(variables, this.multiInstanceVars, this.checkValues);
-        } else {
-          this.$set(variables, "approval", this.checkValues);
-        }
-        console.log(variables,"流程发起提交表单数据")
-        // 启动流程并将表单数据加入流程变量
-        definitionStart(this.procDefId, JSON.stringify(variables)).then(res => {
-          this.$modal.msgSuccess(res.msg);
-          this.goBack();
-        })
-      }
-    },
-    /** 根据当前任务获取流程设计配置的下一步节点 */
-    getNextFlowNodeByStart(deploymentId,variables) {
-      // 根据当前任务或者流程设计配置的下一步节点 todo 暂时未涉及到考虑网关、表达式和多节点情况
-      getNextFlowNodeByStart({deploymentId: deploymentId,variables:variables}).then(res => {
-        const data = res.data;
-        if (data) {
-          if (data.type === 'assignee') { // 指定人员
-            this.checkSendUser = true;
-            this.checkType = "single";
-          } else if (data.type === 'candidateUsers') {  // 候选人员(多个)
-            this.checkSendUser = true;
-            this.checkType = "multiple";
-          } else if (data.type === 'candidateGroups') { // 指定组(所属角色接收任务)
-            this.checkSendRole = true;
-          } else if (data.type === 'multiInstance') { // 会签?
-            // 流程设计指定的 elementVariable 作为会签人员列表
-            this.multiInstanceVars = data.vars;
-            this.checkSendUser = true;
-            this.checkType = "multiple";
-          }
-        }
-      })
+    // 获取fileList
+    getFileList(fileList) {
+      this.fileList = fileList;
     },
-    // 用户信息选中数据
-    handleUserSelect(selection) {
-      if (selection) {
-        if (selection instanceof Array) {
-          const selectVal = selection.map(item => item.userId);
-          if (this.multiInstanceVars) {
-            this.checkValues = selectVal;
+     /** 提交按钮 */
+    submitForm() {
+      this.$refs["form"].validate((valid) => {
+        if (valid) {
+          this.form.listFile = this.fileList;
+          if (this.form.id != null) {
+            // updateRecord(this.form).then((response) => {
+            //   this.$modal.msgSuccess("修改成功");
+            //   this.open = false;
+            //   this.getList();
+            // });
           } else {
-            this.checkValues = selectVal.join(',');
+            // addRecord(this.form).then((response) => {
+            //   this.$modal.msgSuccess("新增成功");
+            //   this.open = false;
+            //   this.getList();
+            // });
           }
-        } else {
-          this.checkValues = selection.userId;
-        }
-      }
-    },
-    // 角色信息选中数据
-    handleRoleSelect(selection) {
-      if (selection) {
-        if (selection instanceof Array) {
-          const selectVal = selection.map(item => item.roleId);
-          this.checkValues = selectVal.join(',')
-        } else {
-          this.checkValues = selection;
         }
-      }
+      });
     },
-  }
+    /** 返回页面 */
+    goBack() {},
+  },
 };
 </script>
 <style lang="scss" scoped>
-.test-form {
-  margin: 15px auto;
-  width: 800px;
-  padding: 15px;
-}
-
-.clearfix:before,
-.clearfix:after {
-  display: table;
-  content: "";
-}
-.clearfix:after {
-  clear: both
-}
-
-.box-card {
-  width: 100%;
-  margin-bottom: 20px;
-}
-
-.el-tag + .el-tag {
-  margin-left: 10px;
-}
-
-.my-label {
-  background: #E1F3D8;
-}
 </style>