Commit 39fc7064 authored by zhengke's avatar zhengke

增加单据驳回备注

parent 84b138e5
...@@ -352,6 +352,19 @@ ...@@ -352,6 +352,19 @@
color: #3980C8; color: #3980C8;
font-size: 12px; font-size: 12px;
} }
.FD_remark_list{
margin-top:10px;
color:#E95252;
}
.FD_remark_list span:first-child{
display: inline-block;
width:26px;
vertical-align: top;
}
.FD_remark_list span:last-child{
display: inline-block;
width:90%;
}
</style> </style>
<template> <template>
...@@ -772,6 +785,21 @@ ...@@ -772,6 +785,21 @@
<viewer :images="images" :options='imageOptions' @inited="inited" class="viewer" ref="viewer"> <viewer :images="images" :options='imageOptions' @inited="inited" class="viewer" ref="viewer">
<img v-for="src in images" :src="src" :key="src"> <img v-for="src in images" :src="src" :key="src">
</viewer> </viewer>
<el-dialog custom-class='w400' title="提示" :visible.sync="finacialDialog" center>
<template>
<el-input type="textarea" v-model="AuditOrRefundMsg.Description" rows="3" resize="none"></el-input>
<div class="FD_remark_list">
<span>注:</span>
<span>驳回后,单据将重新开始审批流程。备注内容将在操作日志里显示</span>
</div>
<div slot="footer" class="dialog-footer">
<button class="hollowFixedBtn" @click="finacialDialog=false">{{$t('pub.cancelBtn')}}</button>
<button class="normalBtn" type="primary" @click="setBoHui()">{{$t('pub.sureBtn')}}</button>
</div>
</template>
</el-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -790,6 +818,8 @@ import myDJieBill from "./FinancialSubmodule/DjieMergeBillModule.vue"; ...@@ -790,6 +818,8 @@ import myDJieBill from "./FinancialSubmodule/DjieMergeBillModule.vue";
export default { export default {
data(){ data(){
return{ return{
//驳回弹窗
finacialDialog:false,
ZhiDanRen: -1, ZhiDanRen: -1,
imageOptions:{ imageOptions:{
navbar:false, navbar:false,
...@@ -808,6 +838,7 @@ export default { ...@@ -808,6 +838,7 @@ export default {
}, },
AuditOrRefundMsg:{ AuditOrRefundMsg:{
WorkFlowId:'', WorkFlowId:'',
Description:''
}, },
AuditListData:{ AuditListData:{
AuditList:[] AuditList:[]
...@@ -951,30 +982,20 @@ export default { ...@@ -951,30 +982,20 @@ export default {
}, null) }, null)
}, },
bohui(){ bohui(){
this.AuditOrRefundMsg.WorkFlowId = this.ID; this.finacialDialog = true;
this.$confirm('是否驳回单号'+'“'+this.ID+'”'+'的单据?驳回后,单据将重新开始审批流程。', '提示', { this.AuditOrRefundMsg.WorkFlowId = this.ID;
confirmButtonText: '确定', },
cancelButtonText: '取消', //确定驳回
type: 'warning' setBoHui(){
}).then(() => {
this.apipost('Financial_post_PersonRefund',this.AuditOrRefundMsg,res=>{ this.apipost('Financial_post_PersonRefund',this.AuditOrRefundMsg,res=>{
if(res.data.resultCode==1){ if(res.data.resultCode==1){
this.$message.success(res.data.message); this.Success(res.data.message);
let _this = this; this.finacialDialog = false;
setTimeout(function () { this.Financial_post_GetDetail(this.ID)
_this.MsgBus.$emit('msg','close');
},500)
}else{ }else{
this.resultCode = res.data.resultCode; this.Error(res.data.message);
this.$message.error(res.data.message);
} }
},err=>{}) },err=>{})
}).catch(() => {
this.$message({
type: 'info',
message: '已取消'
});
});
}, },
goPrintPage(type,id,Merge,OrderSource){ goPrintPage(type,id,Merge,OrderSource){
if(type===1){ if(type===1){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment