import commonFunctions from '~/mixin/commonFunctions.js';
import Api from '~/service/Api';
export default {
mixins: [commonFunctions],
methods: {
async onMctpButgetref(){
if (this.model.mcdgrp.ade.pts.ptainr == "") {
this.$notify.warning({
title: '提示',
message: '请先选择申请人!'
});
return;
}
let params = {
ownref: this.model.mcdgrp.rec.ownref,
ptainr: this.model.mcdgrp.ade.pts.ptainr,
mcttyp: this.model.mcdgrp.rec.mcttyp,
};
let rtnmsg = await Api.post('/Derivative/mctfre/getRef', params);
if (rtnmsg.respCode == SUCCESS) {
this.model.mcdgrp.rec.ownref = rtnmsg.data
this.model.mcdgrp.rec.subref = rtnmsg.data
if(!this.model.mctp.tag20){
this.model.mctp.tag20 = this.model.mcdgrp.rec.ownref
}
if(this.model.mctp.tag20){
this.model.fremsg.tag20ref = this.model.mctp.tag20
}else{
this.model.fremsg.tag20ref = 'NONREF'
}
} else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
}
}