extendCentralAudit.vue 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. <template>
  2. <div class="tv-container">
  3. <div class="container-box">
  4. <div>
  5. <div class="el-label"><i class="el-icon-collection-tag"></i>基本信息</div>
  6. <div class="el-line"></div>
  7. <baseTable v-if="woNo" :woNo="woNo" step="10" @callBack="callBack"/>
  8. <div class="el-line"></div>
  9. <div class="el-label"><i class="el-icon-collection-tag"></i>中心主任复审</div>
  10. <div class="el-line"></div>
  11. <div>
  12. <el-row>
  13. <el-col :span="6">&nbsp;</el-col>
  14. <el-col :span="12">
  15. <el-form ref="form" :model="form" label-width="80px">
  16. <el-form-item label="审核结果">
  17. <el-radio v-model="audit6" label="Y">通过</el-radio>
  18. <el-radio v-model="audit6" label="N">未通过</el-radio>
  19. </el-form-item>
  20. <el-form-item label="备注信息">
  21. <el-input type="textarea" v-model="form.note"></el-input>
  22. </el-form-item>
  23. </el-form>
  24. </el-col>
  25. <el-col :span="6">&nbsp;</el-col>
  26. </el-row>
  27. </div>
  28. <div class="el-line"></div>
  29. <div class="el-label"></div>
  30. <div class="el-line"></div>
  31. <div style="text-align:right">
  32. <el-button type="primary" @click="handleAudit">确定</el-button>
  33. </div>
  34. </div>
  35. </div>
  36. <!--<fullscreen :fullscreen.sync="fullscreen" class="container"></fullscreen>-->
  37. </div>
  38. </template>
  39. <script>
  40. import baseTable from "./basePeerReview"
  41. export default {
  42. components:{ baseTable },
  43. data(){
  44. return{
  45. woNo:'',
  46. itemId:'',
  47. fullscreen:true,
  48. form:{note:""},
  49. audit6:"Y",
  50. assigneeNo:'',
  51. assigneeName:'',
  52. bpmInfo:{},
  53. }
  54. },
  55. methods:{
  56. callBack(itemId){
  57. this.itemId = itemId
  58. },
  59. completeTask(){
  60. if(this.assigneeNo===""){
  61. this.$message({ showClose: true, message:"数据异常",type: 'error'});
  62. return
  63. }
  64. //拼装参数
  65. let info={}
  66. info.params={
  67. "note":this.form.note,
  68. "itemId":this.itemId,
  69. "woNo":this.woNo,
  70. "assigneeNo":this.assigneeNo,
  71. "assigneeName":this.assigneeName,
  72. "audit6":this.audit6
  73. },
  74. info.taskId = this.bpmInfo.taskId
  75. info.woNo = this.bpmInfo.woNo
  76. info.stepId = this.bpmInfo.stepId
  77. info.procId = this.bpmInfo.procId
  78. info.procVersion = this.bpmInfo.procVersion
  79. //POST请求
  80. this.$http({
  81. url: "/bpm/api/submitTask",
  82. method: "post",
  83. headers: {"Content-Type": "application/json"},
  84. data:info
  85. }).then((res) => {
  86. if(res.data.result==0){
  87. this.$router.push({ path: '/tvIntroduction'});
  88. }else{
  89. this.$message({ showClose: true, message: res.data.desc,type: 'error'});
  90. }
  91. });
  92. },
  93. handleAudit(){
  94. //通过 or 不通过 均给发起人
  95. this.$http({
  96. url: "/market/tvImport/basicInfo",
  97. method: "post",
  98. headers: {"Content-Type": "application/json"},
  99. data:{"itemId":this.itemId,"woNo":this.woNo}
  100. }).then((res) => {
  101. if(res.data.result==0){
  102. let user = res.data.body.imp
  103. if(null==user){
  104. this.$message({ showClose: true, message: "数据异常",type: 'error'});
  105. }else{
  106. this.assigneeNo = user.createLogin
  107. this.assigneeName = user.createLoginName
  108. this.completeTask()
  109. }
  110. }else{
  111. this.$message({ showClose: true, message: res.data.desc,type: 'error'});
  112. }
  113. });
  114. }
  115. },
  116. mounted(){
  117. this.woNo = this.$route.query.woNo
  118. this.bpmInfo.taskId = this.$route.query.taskId
  119. this.bpmInfo.woNo = this.woNo
  120. this.bpmInfo.stepId = this.$route.query.stepId
  121. this.bpmInfo.procId = this.$route.query.procId
  122. this.bpmInfo.procVersion = this.$route.query.procVersion
  123. }
  124. }
  125. </script>
  126. <style lang="scss" scoped>
  127. .tv-container{
  128. background-color: white;
  129. margin:15px 15px 15px 15px;
  130. padding:20px ;
  131. }
  132. .el-label{
  133. /*border-left:5px solid #0b82ff;*/
  134. /*padding-left:5px;*/
  135. color: #606266;
  136. border-bottom:1px dotted #bfc1c5;
  137. padding-bottom:5px;
  138. }
  139. .el-line{
  140. margin: 0px 0px 20px 0px;
  141. }
  142. </style>