|
@@ -1,6 +1,5 @@
|
|
|
<template>
|
|
|
<div class="app-container">
|
|
|
-
|
|
|
<el-form :model="formInline" ref="formInline" size="mini" :inline="true">
|
|
|
<el-form-item label="实施项目名称:">
|
|
|
<el-input v-model="formInline.name" placeholder="项目名称"></el-input>
|
|
@@ -113,6 +112,85 @@
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
|
|
|
+ <el-dialog title="启动实施流程" :visible.sync="editEnforceFormVisible" width="45%" @click="closeEnforceDialog">
|
|
|
+ <el-form label-width="120px" :model="enforceForm" >
|
|
|
+ <el-descriptions title="" :column="2" border>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template slot="label">
|
|
|
+ 项目名称
|
|
|
+ </template>
|
|
|
+ {{enforceFlow.name}}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template slot="label">
|
|
|
+ 实施人员
|
|
|
+ </template>
|
|
|
+ {{enforceFlow.enforcer}}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template slot="label">
|
|
|
+ 实施医院
|
|
|
+ </template>
|
|
|
+ {{enforceFlow.hno}}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item>
|
|
|
+ <template slot="label">
|
|
|
+ 实施系统
|
|
|
+ </template>
|
|
|
+ {{enforceFlow.hsytem}}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item >
|
|
|
+ <template slot="label">
|
|
|
+ 实施时间
|
|
|
+ </template>
|
|
|
+ {{enforceFlow.time}}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item >
|
|
|
+ <template slot="label">
|
|
|
+ 实施状态
|
|
|
+ </template>
|
|
|
+ <span style="color: red">待开始</span>
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item :span="2">
|
|
|
+ <template slot="label">
|
|
|
+ 实施内容
|
|
|
+ </template>
|
|
|
+ {{enforceFlow.content}}
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item :span="2">
|
|
|
+ <template slot="label">
|
|
|
+ 项目启动人
|
|
|
+ </template>
|
|
|
+ <el-input size="small" v-model="enforceForm.director"></el-input>
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item :span="2">
|
|
|
+ <template slot="label">
|
|
|
+ 备注说明
|
|
|
+ </template>
|
|
|
+ <el-input size="small" v-model="enforceForm.remark" type="textarea" :rows="4" ></el-input>
|
|
|
+ </el-descriptions-item>
|
|
|
+ <el-descriptions-item :span="2">
|
|
|
+ <template slot="label">
|
|
|
+ 文件列表
|
|
|
+ </template>
|
|
|
+ <el-upload
|
|
|
+ class="upload-demo"
|
|
|
+ ref="upload"
|
|
|
+ action="https://jsonplaceholder.typicode.com/posts/"
|
|
|
+ :on-remove="handleRemove"
|
|
|
+ :file-list="fileList"
|
|
|
+ :auto-upload="false">
|
|
|
+ <el-button slot="trigger" size="small" type="primary">选取文件</el-button>
|
|
|
+ </el-upload>
|
|
|
+ </el-descriptions-item>
|
|
|
+ </el-descriptions>
|
|
|
+ </el-form>
|
|
|
+ <div slot="footer" class="dialog-footer">
|
|
|
+ <el-button size="small" @click="closeEnforceDialog">取消</el-button>
|
|
|
+ <el-button size="small" type="primary" :loading="loading" class="title" @click="submitEnforceForm('editForm')">保存</el-button>
|
|
|
+ </div>
|
|
|
+ </el-dialog>
|
|
|
+
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
@@ -151,7 +229,24 @@ export default {
|
|
|
editFormVisible: false,
|
|
|
title : '创建实施项目',
|
|
|
hnos:[],
|
|
|
- hsytem: []
|
|
|
+ hsytem: [],
|
|
|
+ editEnforceFormVisible:false,
|
|
|
+ enforceForm:{
|
|
|
+ id:null,
|
|
|
+ enforceId:null,
|
|
|
+ director:null,
|
|
|
+ directorId:null,
|
|
|
+ remark:null,
|
|
|
+ },
|
|
|
+ enforceFlow:{
|
|
|
+ name:'',
|
|
|
+ enforcer:'',
|
|
|
+ time:null,
|
|
|
+ hno:null,
|
|
|
+ hsytem:null,
|
|
|
+ content:''
|
|
|
+ },
|
|
|
+ fileList: []
|
|
|
|
|
|
}
|
|
|
},
|
|
@@ -237,7 +332,26 @@ export default {
|
|
|
this.editFormVisible=true
|
|
|
},
|
|
|
startEnforceFlow(row){
|
|
|
- alert('开启实时流程')
|
|
|
+
|
|
|
+ this.editEnforceFormVisible=true
|
|
|
+ this.enforceFlow.name=row.name
|
|
|
+ this.enforceFlow.enforcer=row.enforcer
|
|
|
+ this.enforceFlow.time=row.beginTime+'至'+row.endTime
|
|
|
+ this.enforceFlow.content=row.content
|
|
|
+ this.enforceFlow.hno=row.hname
|
|
|
+ this.enforceFlow.hsytem=row.hsytem
|
|
|
+
|
|
|
+ this.enforceForm.enforceId=row.id
|
|
|
+
|
|
|
+ },
|
|
|
+ closeEnforceDialog(){
|
|
|
+ this.editEnforceFormVisible=false
|
|
|
+ },
|
|
|
+ handleRemove(file, fileList) {
|
|
|
+ alert('Remove')
|
|
|
+ },
|
|
|
+ submitEnforceForm(){
|
|
|
+ alert('添加保存实施流程哦')
|
|
|
}
|
|
|
}
|
|
|
}
|