|
@@ -118,10 +118,41 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</m-dialog>
|
|
|
+
|
|
|
+
|
|
|
+ <!-- 驳回弹窗 -->
|
|
|
+ <m-dialog
|
|
|
+ :show.sync="isOpenRejectDia"
|
|
|
+ width="40%"
|
|
|
+ title="驳回意见"
|
|
|
+ @close="isOpenRejectDia = false"
|
|
|
+ center
|
|
|
+ >
|
|
|
+
|
|
|
+ <ul class="notice-reject-container" v-if="rejectInfo">
|
|
|
+ <li>
|
|
|
+ <label>报告标题:</label>
|
|
|
+ <div>{{rejectInfo.ApproveMsg.Title}}</div>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <label>驳回人: </label>
|
|
|
+ <div>{{rejectInfo.ApproveMsg.ApproveUserName}}</div>
|
|
|
+ </li>
|
|
|
+ <li>
|
|
|
+ <label>被驳回意见:</label>
|
|
|
+ <div>{{rejectInfo.ApproveMsg.ApproveRemark}}</div>
|
|
|
+ </li>
|
|
|
+ </ul>
|
|
|
+
|
|
|
+ <span slot="footer" class="dialog-footer">
|
|
|
+ <el-button type="primary" @click="isOpenRejectDia = false">知道了</el-button>
|
|
|
+ </span>
|
|
|
+ </m-dialog>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script>
|
|
|
+import { reportV2Interface } from '@/api/modules/reportV2';
|
|
|
import {approveInterence} from '@/api/modules/approve.js';
|
|
|
import { operateAuthInterface } from '@/api/modules/setApi';
|
|
|
import {etaBaseConfigInterence} from '@/api/modules/etaBaseConfigApi.js';
|
|
@@ -151,10 +182,14 @@ export default {
|
|
|
SubSource: 0,
|
|
|
},
|
|
|
tabsShow:{
|
|
|
- first:false, //研报
|
|
|
+ first:true, //研报
|
|
|
second:false, //BI
|
|
|
third:true, //资产
|
|
|
},
|
|
|
+
|
|
|
+ //驳回弹窗
|
|
|
+ isOpenRejectDia:false,
|
|
|
+ rejectInfo: null
|
|
|
};
|
|
|
},
|
|
|
computed: {
|
|
@@ -216,6 +251,15 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
|
+ handleReportNotice(item) {
|
|
|
+ if(item.ReportState===4) {
|
|
|
+ return this.$message.warning('报告已提交,无需编辑!')
|
|
|
+ }else if(item.ReportState===5) {
|
|
|
+ this.isOpenRejectDia = true;
|
|
|
+ this.rejectInfo = item
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
async handleTabs(){
|
|
|
return new Promise(async resolve=>{
|
|
|
const res = await etaBaseConfigInterence.getBaseConfig()
|
|
@@ -224,7 +268,7 @@ export default {
|
|
|
let isETAApprove = (IsReportApprove==='true'?true:false) && ReportApproveType==='eta'
|
|
|
let IsBIApprove_v = IsBIApprove==='true'?true:false
|
|
|
|
|
|
- if(isETAApprove) this.tabsShow.first = true;
|
|
|
+ // if(isETAApprove) this.tabsShow.first = true;
|
|
|
if(IsBIApprove_v) this.tabsShow.second = true;
|
|
|
if(!tabNames.includes(this.activeName)){//默认选中第一个显示的tab
|
|
|
this.activeName = Object.entries(this.tabsShow).filter(_=>_[1])[0][0] || 'third';
|
|
@@ -234,7 +278,7 @@ export default {
|
|
|
},
|
|
|
async readMsg(msg){
|
|
|
const res = this.activeName === 'first'
|
|
|
- ? await approveInterence.readApproveMsg({MessageId:msg.Id})
|
|
|
+ ? await reportV2Interface.readReportNotice({MessageId:msg.Id})
|
|
|
: this.activeName === 'second' ? await approveInterence.readBiApproveMsg({MessageId:msg.Id})
|
|
|
: await operateAuthInterface.redMessage({ MessageId: msg.DataPermissionMessageId })
|
|
|
|
|
@@ -242,7 +286,8 @@ export default {
|
|
|
this.getMsgList()
|
|
|
this.getUnreadNum()
|
|
|
|
|
|
- if(this.activeName === 'first' || this.activeName === 'second'){
|
|
|
+ this.activeName === 'first' && this.handleReportNotice(msg)
|
|
|
+ if(this.activeName === 'second'){
|
|
|
const type = msg.ApproveState===1?'approve':msg.ApproveState===4?'detail':'myself'
|
|
|
this.$router.push({
|
|
|
path:'/approveDetail',
|
|
@@ -257,7 +302,7 @@ export default {
|
|
|
},
|
|
|
async getMsgList(){
|
|
|
const res = this.activeName === 'first'
|
|
|
- ? await approveInterence.getApproveMsgList({
|
|
|
+ ? await reportV2Interface.getReportNotice({
|
|
|
CurrentIndex:1,
|
|
|
PageSize:1000
|
|
|
})
|
|
@@ -424,4 +469,12 @@ export default {
|
|
|
margin-top: 30px;
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+.notice-reject-container {
|
|
|
+ padding: 0 30px;
|
|
|
+ li {
|
|
|
+ margin: 20px 0;
|
|
|
+ font-size: 15px;
|
|
|
+ }
|
|
|
+}
|
|
|
</style>
|