Commit e9c8d541 by WH

修复缺陷

parent 9dfcaf9b
......@@ -35,8 +35,7 @@ export default {
const res = await Api.post('/service/betdcr/init', {
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
// brdinr: this.$route.query.inr,
brdgrp:{
bedgrp:{
rec:{
inr: this.$route.query.inr
}
......
......@@ -35,8 +35,7 @@ export default {
const res = await Api.post('/service/betsnd/init', {
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
// brdinr: this.$route.query.inr,
brdgrp:{
bedgrp:{
rec:{
inr: this.$route.query.inr
}
......
......@@ -36,13 +36,11 @@ export default {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
// brdinr: this.$route.query.inr,
// brdgrp:{
// rec:{
// inr: this.$route.query.inr
// // inr: '00000484'
// }
// },
bedgrp:{
rec:{
inr: this.$route.query.inr
}
},
});
if (!res.data) {
return
......
......@@ -36,13 +36,11 @@ export default {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
// brdinr: this.$route.query.inr,
// brdgrp:{
// rec:{
// inr: this.$route.query.inr
// // inr: '00000484'
// }
// },
bedgrp:{
rec:{
inr: this.$route.query.inr
}
},
});
if (!res.data) {
return
......
......@@ -9,6 +9,7 @@ import docpan from '~/components/business/docpan/event';
import ccvpan from '~/components/business/ccvpan/event';
import limitbody from '~/components/business/limitbody/event';
import doctre from '~/components/business/doctre/event';
export default {
mixins: [commonFunctions],
methods: {
......@@ -22,19 +23,24 @@ export default {
async init() {
const params = {
spt: JSON.parse(localStorage.getItem('row_' + this.trnName)),
trnmod:{
trn:JSON.parse(localStorage.getItem('review_'+this.trnName))
trnmod: {
trn: JSON.parse(localStorage.getItem('review_' + this.trnName))
}
}
if ( typeof(this.$route.query.inr) == 'string' ){
if (typeof (this.$route.query.inr) == 'string') {
params.spt = null
params.trnmod.trn =null
params.trnmod.trn = null
}
const loading = this.loading();
const res = await Api.post('/service/letnot/init', {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
ledgrp: {
rec: {
inr: this.$route.query.inr
}
}
});
loading.close();
if (!res.data) {
......@@ -46,7 +52,7 @@ export default {
this.copyValueFromVoData(this.model.setmod.setglg, res.data.setglg)
},
// 兼容处理在前端model中定义了字段,后端返回的数据中不存在字段的问题
copyValueFromVoData (model, data) {
copyValueFromVoData(model, data) {
let keysList = Object.keys(model)
keysList.map((key) => {
if (data[key]) {
......@@ -171,13 +177,13 @@ export default {
this.model.ledgrp.rec.apprultxt = ''
}
},
openAddAmount(val){
if(val ==='' && !(this.model.ledgrp.cbs.max2.amt =='0.000'&& this.model.ledgrp.blk.addamtcov === '') ){
this.$confirm('是否确定要删除此合同的附加金额?','提示',{
openAddAmount(val) {
if (val === '' && !(this.model.ledgrp.cbs.max2.amt == '0.000' && this.model.ledgrp.blk.addamtcov === '')) {
this.$confirm('是否确定要删除此合同的附加金额?', '提示', {
confirmButtonText: '是',
cancelButtonText: '否',
type: 'warning',
showClose:false
showClose: false
}).then(() => {//yes的执行在这里写
this.executeRule('letp.aamp.aammod.addamtflg').then(res => {
if (res.respCode == SUCCESS) {
......@@ -191,7 +197,7 @@ export default {
// message: '删除成功!'
// });
}).catch(() => {//No的功能在这里写
this.model.letp.aamp.aammod.addamtflg ='X'
this.model.letp.aamp.aammod.addamtflg = 'X'
// this.$message({
// type: 'info',
// message: '已取消'
......
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