Commit e9c8d541 by WH

修复缺陷

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