Commit d397263d by 潘际乾

受益人获取namelc与adrelc

parent f898480e
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* Ditopn Default规则 * Ditopn Default规则
*/ */
import Api from "~/service/Api"; import Api from "~/service/Api";
import Utils from "~/utils/index" import Utils from "~/utils/indeAvatarx"
export default { export default {
"didgrp.rec.resflg": defaultDidgrpRecResflg, "didgrp.rec.resflg": defaultDidgrpRecResflg,
...@@ -117,7 +117,9 @@ export default { ...@@ -117,7 +117,9 @@ export default {
"trnmod.trndoc.amdnam": defaultTrnmodTrndocAmdnam, "trnmod.trndoc.amdnam": defaultTrnmodTrndocAmdnam,
"liaall.liaccv.cshpct": defaultLiaallLiaccvCshpct, "liaall.liaccv.cshpct": defaultLiaallLiaccvCshpct,
"didgrp.blk.preper": defaultDidgrpBlkPreper, "didgrp.blk.preper": defaultDidgrpBlkPreper,
"didgrp.cbs.max.amt": defaultDidgrpCbsMaxAmt "didgrp.cbs.max.amt": defaultDidgrpCbsMaxAmt,
"didgrp.rec.nomtop": defaultDidgrpRecNomtop,
"didgrp.rec.nomton": defaultDidgrpRecNomton
} }
function defaultDidgrpRecResflg() { function defaultDidgrpRecResflg() {
} }
...@@ -224,9 +226,7 @@ function defaultDidgrpCbsNom1Cur(newVal, oldVal) ...@@ -224,9 +226,7 @@ function defaultDidgrpCbsNom1Cur(newVal, oldVal)
function defaultDidgrpCbsNom1Amt(newVal, oldVal) { function defaultDidgrpCbsNom1Amt(newVal, oldVal) {
const that = this; const that = this;
// 信用证最大金额 // 信用证最大金额
that.executeDefault("didgrp.cbs.max.amt").then(res => { caculateMaxAmt(that)
that.model.didgrp.cbs.max.amt = res.data.didgrp_cbs_max_amt;
})
// 大写金额 // 大写金额
that.executeDefault("ditp.amt").then(res => { that.executeDefault("ditp.amt").then(res => {
that.model.ditp.amt = res.data.ditp_amt; that.model.ditp.amt = res.data.ditp_amt;
...@@ -412,3 +412,17 @@ function defaultDidgrpBlkPreper() { ...@@ -412,3 +412,17 @@ function defaultDidgrpBlkPreper() {
} }
function defaultDidgrpCbsMaxAmt() { function defaultDidgrpCbsMaxAmt() {
} }
function defaultDidgrpRecNomtop() {
caculateMaxAmt(this)
}
function defaultDidgrpRecNomton() {
// caculateMaxAmt(this)
}
function caculateMaxAmt (that) {
that.executeDefault("didgrp.cbs.max.amt").then(res => {
that.model.didgrp.cbs.max.amt = res.data.didgrp_cbs_max_amt;
})
}
\ No newline at end of file
...@@ -406,12 +406,16 @@ export default { ...@@ -406,12 +406,16 @@ export default {
const data = res.data; const data = res.data;
this.model.didgrp.apl.namelc = data.didgrp_apl_namelc; this.model.didgrp.apl.namelc = data.didgrp_apl_namelc;
this.model.didgrp.apl.adrelc = data.didgrp_apl_adrelc; this.model.didgrp.apl.adrelc = data.didgrp_apl_adrelc;
this.model.didgrp.apl.pts.extkey = data.didgrp_apl_pts_extkey;
}) })
}, },
benExtkeyEvent() { benExtkeyEvent() {
const data = Utils.flatObject(this.model) const data = Utils.flatObject(this.model)
Api.post("ditopn/executeRule/didgrp.ben.pts.extkey",data).then(res => { Api.post("ditopn/executeRule/didgrp.ben.pts.extkey",data).then(res => {
const data = res.data; const data = res.data;
this.model.didgrp.ben.namelc = data.didgrp_ben_namelc;
this.model.didgrp.ben.adrelc = data.didgrp_ben_adrelc;
this.model.didgrp.ben.pts.extkey = data.didgrp_ben_pts_extkey;
}) })
} }
}, },
......
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