Commit 893a580f by 李少勇

待经办处理

parent 6b86682f
......@@ -15,6 +15,38 @@ export default {
...engp,
...docpan,
...ccvpan,
async init () {
const params = {
spt: this.toHandleRowData
}
const res = await Api.post('/service/gitopn/init', {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
});
if (res.data.addbcb) {
this.$set(this.model, 'addbcb', res.data.addbcb)
}
if (res.data.gitp) {
this.$set(this.model, 'gitp', res.data.gitp)
}
if (res.data.gidgrp) {
this.$set(this.model, 'gidgrp', res.data.gidgrp)
}
if (res.data.cfagit) {
this.$set(this.model, 'cfagit', res.data.cfagit)
}
if (res.data.cnybop) {
this.$set(this.model, 'cnybop', res.data.cnybop)
}
this.$set(this.model, 'setmod', {
...this.model.setmod,
setfeg: res.data.setfeg,
setfog: res.data.setfog,
setglg: res.data.setglg,
})
console.log(res)
},
// 提交
handleSubmit() {
console.log('提交', this.model);
......
......@@ -109,7 +109,7 @@
</template>
<script>
import event from '../event'
import commonProcess from "~/mixin/commonProcess";
// import commonProcess from "~/mixin/commonProcess";
import formRules from '../model/check'
import CodeTable from "~/config/CodeTable";
import Gitopn from "../model";
......@@ -142,7 +142,6 @@ import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/views/Public/Doctre";
import Limitbody from "~/views/Public/Limitbody";
import moment from "moment";
import { mapState } from 'vuex';
export default {
......@@ -180,7 +179,7 @@ export default {
},
computed: {
...mapState({
toHandleRowData: (state) => state.toHandleRowData
toHandleRowData: (state) => state.gitopn.toHandleRowData
})
},
provide() {
......@@ -189,8 +188,7 @@ export default {
activeNames: ["ovwp"],
};
},
// 里面包含了Default、Check等的公共处理
mixins: [commonProcess, event],
mixins: [event],
data() {
return {
tabVal: "ovwp",
......@@ -245,84 +243,11 @@ export default {
}
};
},
methods: {
// 初始化给model赋值
initModelData () {
this.model.label1 = '1、申请人与我行已签署贸易融资协议(如需);'
this.model.label2 = '2、申请人已提交全套业务所需资料;'
this.model.label3 = '3、申请书要素齐全并已签章,签章已经核符;'
this.model.label4 = '4、占用授信额度的开证业务;'
this.model.cfagit.recgrp.bas.actiontype = 'A'
this.model.cfagit.recgrp.bas.guaranamount = '0.00'
this.model.cfagit.recgrp.bas.intrat = '0.0000000'
this.model.cfagit.recgrp.bas.maindebtamount = '0.00'
this.model.cfagit.recgrp.bas.maindebtdate = -1
this.model.cfagit.recgrp.bas.thje = '0.00'
this.model.cnybop.cnyflg = '2'
this.model.cnybop.cnyvou.fvouchamt = '0.000'
this.model.cnybop.libflg = '2'
this.model.cnybop.outflg = '2'
this.model.cnybop.traflg = '2'
this.model.cnybop.vouflg = '2'
this.model.gidgrp.blk.apprul = 'URDG'
this.model.gidgrp.blk.apprulc = 'NONE'
this.model.gidgrp.cbs.cnf.amt = '0.000'
this.model.gidgrp.cbs.mac2.amt = '0.000'
this.model.gidgrp.cbs.mac.amt = '0.000'
this.model.gidgrp.cbs.max.amt = '0.000'
this.model.gidgrp.cbs.opc2.amt = '0.000'
this.model.gidgrp.cbs.opn1.amt = '0.000'
this.model.gidgrp.gidcxm.cxmflg = 'N'
this.model.gidgrp.rec.bilvvv = '0.00000'
this.model.gidgrp.rec.cnfdat = moment(new Date()).format("YYYY-MM-DD")
this.model.gidgrp.rec.cnfsta = 'Y'
this.model.gidgrp.rec.guaflg = '0'
this.model.gidgrp.rec.legfrm = 'DGAR'
this.model.gidgrp.rec.legfrm = '0.000 .'
this.model.gidgrp.rec.opndat = moment(new Date()).format("YYYY-MM-DD")
this.model.gidgrp.rec.orcamt = '0.000'
this.model.gidgrp.rec.orcamtc = '0.000'
this.model.gidgrp.rec.orcrat = '0.000000'
this.model.gidgrp.rec.orcratc = '0.000000'
this.model.gidgrp.rec.orddat = moment(new Date()).format("YYYY-MM-DD")
this.model.gidgrp.rec.partcon = '100.00'
this.model.gitp.bantyp = 'Adv\\Rcv bank Ref'
this.model.gitp.labissbak = 'Issuing Bank'
this.model.gitp.labissref = 'Issuing Bank\'s Ref.'
this.model.gitp.laborcdat = 'Contract Date'
this.model.gitp.letterlabel = '面函标题'
this.model.gitp.usr.extkey = window.sessionStorage.userId || 'ZL'
this.model.liaall.exttotamt = '0.000'
this.model.liaall.exttotoldamt = '0.000'
this.model.liaccv.cshpct = '0.00'
this.model.liaccv.newamt = '0.000'
this.model.liaccv.newresamt = '0.000'
this.model.liaccv.pctresamt = '0.000'
this.model.liaccv.relcshpct = '0.00'
this.model.liaccv.totcovamt = '0.000'
this.model.liaall.limmod.ccvamt = '0.000'
this.model.liaall.limmod.comamt = '0.000'
this.model.liaall.misamt = '0.000'
this.model.setmod.dspflg = 'CG'
},
async init () {
const params = {
...this.toHandleRowData
}
const res = await Api.post('/service/xxx/xxx', {
...params,
transName: this.trnName,
userId: window.sessionStorage.userId || 'ZL',
});
console.log(res)
}
},
created () {
// this.initModelData()
// this.init()
methods: {},
mounted () {
this.init()
this.queryHndtypCodeTableList(this.trnName)
},
mounted () {},
};
</script>
<style scoped>
......
......@@ -4,7 +4,7 @@ const store = {
},
mutations: {
updateToHandleRowData(state, params) {
state.toBehandleRowData = params
state.toHandleRowData = params
}
}
}
......
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