提交 50588234 authored 作者: quanlili's avatar quanlili

修改交接

上级 58508764
...@@ -26,7 +26,7 @@ ...@@ -26,7 +26,7 @@
<img :src="pdf.fileName" alt="" class="pic_show"> <img :src="pdf.fileName" alt="" class="pic_show">
</div> </div>
<!-- 图册 --> <!-- 图册 -->
<div style="width:80%;margin:0 auto;height:800px;text-align:center" v-if="resourceType==5"> <div style="width:80%;margin:0 auto;height:800px;text-align:center" v-else-if="resourceType==5">
</div> </div>
<div style="width:80%;margin:0 auto;height:800px" v-else> <div style="width:80%;margin:0 auto;height:800px" v-else>
......
...@@ -317,11 +317,12 @@ export default { ...@@ -317,11 +317,12 @@ export default {
remark:this.pdf.remark remark:this.pdf.remark
} }
batchUpdateStatusAPI(data).then(res => { batchUpdateStatusAPI(data).then(res => {
operationMsg.apply(this, [ if(res.data.code==0){
res.data.code, this.$message.success(`批量提交${this.multipleSelection.length}项`);
`批量提交${this.multipleSelection.length}项` this.getList();
]); }else{
//this.getList(); this.$message.error('提交失败')
}
this.passVisible=false; this.passVisible=false;
}); });
}, },
...@@ -342,12 +343,13 @@ export default { ...@@ -342,12 +343,13 @@ export default {
remark:this.pdf.remark remark:this.pdf.remark
} }
batchUpdateStatusAPI(data).then(res => { batchUpdateStatusAPI(data).then(res => {
operationMsg.apply(this, [ if(res.data.code==0){
res.data.code, this.$message.success(`批量提交${this.multipleSelection.length}项`);
`批量提交${this.multipleSelection.length}项` this.getList();
]); }else{
this.$message.error('提交失败')
}
this.passVisible=false; this.passVisible=false;
this.getList();
}); });
}, },
alertUpdate(item){ alertUpdate(item){
...@@ -364,12 +366,11 @@ export default { ...@@ -364,12 +366,11 @@ export default {
singleUpdate(){ singleUpdate(){
this.dataUpdate.remark=this.pdf.remark; this.dataUpdate.remark=this.pdf.remark;
batchUpdateStatusAPI(this.dataUpdate).then(res => { batchUpdateStatusAPI(this.dataUpdate).then(res => {
operationMsg.apply(this, [
res.data.code,
`提交`
]);
if(res.data.code==0){ if(res.data.code==0){
this.$message.success('提交成功');
this.getList(); this.getList();
}else{
this.$message.error('提交失败')
} }
this.passVisible=false; this.passVisible=false;
}); });
...@@ -393,12 +394,13 @@ export default { ...@@ -393,12 +394,13 @@ export default {
remark:this.pdf.remark remark:this.pdf.remark
} }
batchUpdateStatusAPI(data).then(res => { batchUpdateStatusAPI(data).then(res => {
operationMsg.apply(this, [ if(res.data.code==0){
res.data.code, this.$message.success('提交成功');
`提交` this.getList();
]); }else{
this.$message.error('提交失败')
}
this.passVisible=false; this.passVisible=false;
this.getList();
}); });
}, },
handleCheckAllChange(val) { handleCheckAllChange(val) {
......
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
</span> </span>
<span v-else> <span v-else>
<img src="~@/assets/img/pdf.png" alt="pdf" class="pdf_icon"> <img src="~@/assets/img/pdf.png" alt="pdf" class="pdf_icon">
<el-button type="primary" icon="el-icon-refresh" size="mini">重新转码</el-button> <!-- <el-button type="primary" icon="el-icon-refresh" size="mini">重新转码</el-button>
<el-button type="primary" icon="el-icon-document" size="mini">目录转译</el-button> <el-button type="primary" icon="el-icon-document" size="mini">目录转译</el-button> -->
</span> </span>
</p> </p>
</div> </div>
...@@ -104,9 +104,9 @@ ...@@ -104,9 +104,9 @@
</div> </div>
</div> </div>
<div class="status-btn" v-if="pdf.status==1"> <div class="status-btn" v-if="pdf.status==1">
<el-button type="danger" icon="el-icon-close">拒绝</el-button> <el-button type="danger" icon="el-icon-close" @click="refuse">拒绝</el-button>
<el-button type="success" icon="el-icon-check" @click="passVisible=true">通过</el-button> <el-button type="success" icon="el-icon-check" @click="passVisible=true">通过</el-button>
<el-button type="warning" icon="el-icon-edit">编辑</el-button> <el-button type="warning" icon="el-icon-edit" @click="linkToEdit">编辑</el-button>
</div> </div>
<div class="step_wrap"> <div class="step_wrap">
<!-- //0待录入,2待挂接,1待交接,3通过交接(待丰富化),4拒绝交接 ,5已入库 --> <!-- //0待录入,2待挂接,1待交接,3通过交接(待丰富化),4拒绝交接 ,5已入库 -->
...@@ -129,6 +129,7 @@ ...@@ -129,6 +129,7 @@
:visible.sync="passVisible" :visible.sync="passVisible"
width="800px" width="800px"
class="" class=""
@close="closePass"
> >
<el-form ref="form" :model="pdf" label-width="80px"> <el-form ref="form" :model="pdf" label-width="80px">
<el-form-item label="题名:"> <el-form-item label="题名:">
...@@ -201,6 +202,8 @@ export default { ...@@ -201,6 +202,8 @@ export default {
if(res.data.code===0){ if(res.data.code===0){
let {fileName}=res.data.data; let {fileName}=res.data.data;
this.pdf=res.data.data; this.pdf=res.data.data;
//回显,置空备注
this.pdf.remark='';
this.activeStatus=this.pdf.status; this.activeStatus=this.pdf.status;
this.fileName=fileName; this.fileName=fileName;
this.pdf.fileName=`${this.domain}${requestPath.file}?fileName=${fileName}&isOnLine=true`; this.pdf.fileName=`${this.domain}${requestPath.file}?fileName=${fileName}&isOnLine=true`;
...@@ -232,6 +235,30 @@ export default { ...@@ -232,6 +235,30 @@ export default {
linkPic(){ linkPic(){
this.$router.push({path:'/submission/infoview/photolook',query:{oid:this.pdf.albumId}}) this.$router.push({path:'/submission/infoview/photolook',query:{oid:this.pdf.albumId}})
}, },
refuse(){
confirm.apply(this,['确定要拒绝交接吗?']).then(() => {
let data={
ids:[this.id],
status: 4,//拒绝交接
remark:this.pdf.remark
}
batchUpdateStatusAPI(data).then(res => {
if(res.data.code==0){
this.$message.success('提交成功');
this.getDetail();
}else{
this.$message.error('提交失败')
}
});
})
},
linkToEdit(){
//console.log(this.pdf.albumId,'this.pdf.albumId')
this.$router.push({path:'/submission/resourcecommit',query:{oid:this.id}})
},
closePass(){
this.pdf.remark='';
},
handleClick(){ handleClick(){
}, },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论