123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156 |
- <template>
- <div class="tv-container">
-
- <div class="container-box">
- <div>
- <div class="el-label"><i class="el-icon-collection-tag"></i>基本信息</div>
- <div class="el-line"></div>
- <baseTable ref="bTable" v-if="woNo" :woNo="woNo" step="15" @callBack="callBack"/>
- <div class="el-line"></div>
- <div class="el-label"><i class="el-icon-collection-tag"></i>上线</div>
- <div class="el-line"></div>
- <div>
- <el-row>
- <el-col :span="6"> </el-col>
- <el-col :span="12">
- <el-form ref="form" :model="form" label-width="80px">
- <el-form-item label="备注信息">
- <el-input type="textarea" v-model="form.note"></el-input>
- </el-form-item>
- </el-form>
- </el-col>
- <el-col :span="6"> </el-col>
- </el-row>
- </div>
- <div class="el-line"></div>
- <div class="el-label"></div>
- <div class="el-line"></div>
- <div style="text-align:right">
- <el-button type="primary" @click="handleAudit">确定</el-button>
- </div>
- </div>
- </div>
- <!--<fullscreen :fullscreen.sync="fullscreen" class="container"></fullscreen>-->
- </div>
- </template>
- <script>
- import baseTable from "./basePeerReview"
- export default {
- components:{ baseTable },
- data(){
- return{
- woNo:'',
- itemId:'',
- fullscreen:true,
- form:{note:""},
- assigneeNo:'',
- assigneeName:'',
- bpmInfo:{},
- puhlishFileList:[]
- }
- },
- methods:{
- callBack(itemId){
- this.itemId = itemId
- },
- completeTask(){
- if(this.assigneeNo===""){
- this.$message({ showClose: true, message:"数据异常",type: 'error'});
- return
- }
- //拼装参数
- let info={}
- info.params={
- "note":this.form.note,
- "itemId":this.itemId,
- "woNo":this.woNo,
- "assigneeNo":this.assigneeNo,
- "assigneeName":this.assigneeName,
- },
- info.taskId = this.bpmInfo.taskId
- info.woNo = this.bpmInfo.woNo
- info.stepId = this.bpmInfo.stepId
- info.procId = this.bpmInfo.procId
- info.procVersion = this.bpmInfo.procVersion
- //POST请求
- this.$http({
- url: "/bpm/api/submitTask",
- method: "post",
- headers: {"Content-Type": "application/json"},
- data:info
- }).then((res) => {
- if(res.data.result==0){
- this.$router.push({ path: '/tvIntroduction'});
- }else{
- this.$message({ showClose: true, message: res.data.desc,type: 'error'});
- }
- });
- },
- handleAudit(){
- //均给发起人
- this.$http({
- url: "/market/tvImport/beforePublish2",
- method: "post",
- headers: {"Content-Type": "application/json"},
- data:{"itemId":this.itemId,"woNo":this.woNo}
- }).then((res) => {
- if(res.data.result!==0){
- this.$message({ showClose: true, message: res.data.desc,type: 'error'});
- }else{
- this.$http({
- url: "/market/tvImport/basicInfo",
- method: "post",
- headers: {"Content-Type": "application/json"},
- data:{"itemId":this.itemId,"woNo":this.woNo}
- }).then((res) => {
- if(res.data.result==0){
- let user = res.data.body.imp
- if(null==user){
- this.$message({ showClose: true, message: "数据异常",type: 'error'});
- }else{
- this.assigneeNo = user.createLogin
- this.assigneeName = user.createLoginName
- this.completeTask()
- }
- }else{
- this.$message({ showClose: true, message: res.data.desc,type: 'error'});
- }
- });
- }
- });
- }
- },
- mounted(){
- this.woNo = this.$route.query.woNo
- this.bpmInfo.taskId = this.$route.query.taskId
- this.bpmInfo.woNo = this.woNo
- this.bpmInfo.stepId = this.$route.query.stepId
- this.bpmInfo.procId = this.$route.query.procId
- this.bpmInfo.procVersion = this.$route.query.procVersion
- }
- }
- </script>
- <style lang="scss" scoped>
- .tv-container{
- background-color: white;
- margin:15px 15px 15px 15px;
- padding:20px ;
- }
- .el-label{
- /*border-left:5px solid #0b82ff;*/
- /*padding-left:5px;*/
- color: #606266;
- border-bottom:1px dotted #bfc1c5;
- padding-bottom:5px;
- }
- .el-line{
- margin: 0px 0px 20px 0px;
- }
- </style>
|