Commit 889d424e by fukai

修改错误

parent 8f257b05
<template>
<div class="bus-button">
<c-button type="primary" v-onclick="save">提交</c-button>
<c-button type="primary" v-onclick="pedding">暂存</c-button>
<c-button type="primary" v-onclick="check">校核</c-button>
<c-button v-onclick="exit">退出</c-button>
</div>
</template>
<script>
export default {
props:["parent"],
data(){
},
methods:{
save(){
},
pedding(){
},
check(){
},
exit(){
}
}
}
</script>
<style>
.bus-button{
text-align: center;
}
</style>
\ No newline at end of file
......@@ -34,6 +34,7 @@ import InstPicker from "./InstPicker"
import AutoComplete from "./AutoComplete"
import PagedSelect from "./PagedSelect"
import FunctionBtn from "./FunctionBtn"
import BusinessButon from "./BusinessButton"
export default {
install(Vue) {
......@@ -71,5 +72,6 @@ export default {
Vue.component("c-highlight-content", HighlightContent)
Vue.component("c-paged-select",PagedSelect)
Vue.component("c-function-btn", FunctionBtn)
Vue.component("c-bus-button",BusinessButon)
}
}
\ No newline at end of file
import Api from "~/service/Api";
import Utils from "~/utils";
export async function declareTrial(params, model, secModel, thrdModel) {
const declareTrial = await Api.post("v1/declare/trial", params)
if (declareTrial.code == '000000') {
let formatedData = Utils.toDepthObject(declareTrial.data)
//汇出登记
if (params.head.txCode == "040101") {
if (model != undefined) {
Object.assign(model.decmstOrtBaseVo, formatedData.decmstOrtBaseVo)
Object.assign(model.decdtlOrtDeclrVo, formatedData.decdtlOrtDeclrVo)
Object.assign(model.decdtlOrtManageVo, formatedData.decdtlOrtManageVo)
}
if (secModel != undefined) {
Object.assign(secModel.decmstDrtBaseVo, formatedData.decmstDrtBaseVo)
Object.assign(secModel.decdtlDrtManageVo, formatedData.decdtlDrtManageVo)
}
if (thrdModel != undefined) {
Object.assign(thrdModel, formatedData.decmstExpnVo)
}
}
//汇入汇款登记解付/后续解付
if (params.head.txCode == "040201" || params.head.txCode == "040203") {
if (model != undefined) {
Object.assign(model.decmstOinBaseVo, formatedData.decmstOinBaseVo)
Object.assign(model.decdtlOinDeclrVo, formatedData.decdtlOinDeclrVo)
}
if (secModel != undefined) {
Object.assign(secModel.decmstDinBaseVo, formatedData.decmstDinBaseVo)
Object.assign(secModel.decdtlDinManageVo, formatedData.decdtlDinManageVo)
}
if (thrdModel != undefined) {
Object.assign(thrdModel, formatedData.decmstIncomeVo)
}
}
//出口托收收汇
if (params.head.txCode == "050205") {
if (model != undefined) {
Object.assign(model.decmstOinBaseVo, formatedData.decmstOinBaseVo)
Object.assign(model.decdtlOinDeclrVo, formatedData.decdtlOinDeclrVo)
}
if (secModel != undefined) {
Object.assign(secModel.decmstDinBaseVo, formatedData.decmstDinBaseVo)
Object.assign(secModel.decdtlDinManageVo, formatedData.decdtlDinManageVo)
}
if (thrdModel != undefined) {
Object.assign(thrdModel, formatedData.decmstIncomeVo)
}
}
//进口代收付汇
if (params.head.txCode == "050105") {
if (model != undefined) {
//对外付款/承兑通知书
Object.assign(model.decmstOpyBaseVo, formatedData.decmstOpyBaseVo)
Object.assign(model.decdtlOpyDeclrVo, formatedData.decdtlOpyDeclrVo)
Object.assign(model.decdtlOpyManageVo, formatedData.decdtlOpyManageVo)
}
if (secModel != undefined) {
//境内付款/承兑通知书
Object.assign(secModel.decmstDpyBaseVo, formatedData.decmstDpyBaseVo)
Object.assign(secModel.decdtlDpyManageVo, formatedData.decdtlDpyManageVo)
}
if (thrdModel != undefined) {
Object.assign(thrdModel, formatedData.decmstExpnVo)
}
}
//出口托收登记
if(params.head.txCode == "050201"){
if(model != undefined){
Object.assign(model, formatedData.decmstbankdocsetVo)
}
}
//进口代收登记
if(params.head.txCode == "050101"){
if(model != undefined){
Object.assign(model, formatedData.decmstbankdocsetVo)
}
}
//国际保函备用信用证开立
if (params.head.txCode == "030301") {
if (model != undefined) {
Object.assign(model, formatedData.decmstExtGuarSignVo)
//反担保人信息
if (model.cgs.length === formatedData.decmstExtGuarSignVo.fdbpts.length) {
model.cgs.forEach((item, index) => {
for (var inr in formatedData.decmstExtGuarSignVo.fdbpts[index]) {
if (inr === "cgcode" || inr === "cgname" || inr === "cgnamen" || inr === "cgcountrycode") {
if (formatedData.decmstExtGuarSignVo.fdbpts[index][inr] != "") {
Object.assign(item, formatedData.decmstExtGuarSignVo.fdbpts[index])
}
}
}
});
} else {
model.cgs = formatedData.decmstExtGuarSignVo.fdbpts.map(item => {
return {
cgcode: item.cgcode,
cgname: item.cgname,
cgnamen: item.cgnamen,
cgcountrycode: item.cgcountrycode
}
});
}
//受益人信息
if (formatedData.bfcys != undefined) {
var benefitType = null;
if (model.bfcys[0] != null) {
benefitType = model.bfcys[0].bentype;
}
var list = {
bencode: formatedData.bfcys.bencode, //受益人代码
bename: formatedData.bfcys.bename, //受益人中文名称
benamen: formatedData.bfcys.benamen, //受益人英文文名称
bentype: benefitType,
bencountrycode: formatedData.bfcys.bencountrycode //受益人国别/地区
};
if (list.bencode != undefined || list.bename != undefined || list.benamen != undefined || list.bencountrycode != undefined) {
model.bfcys = [list];
}
}
//被担保人
if (formatedData.gueds != undefined) {
var guedincode = null;
var guedtyp = null;
if (model.gueds[0] != null) {
guedincode = model.gueds[0].guedindustrycode;
guedtyp = model.gueds[0].guedtype;
}
var list1 = {
guedcode: formatedData.gueds.guedcode, //被担保人代码
guedname: formatedData.gueds.guedname, //被担保人中文名称
guednamen: formatedData.gueds.guednamen, //被担保人英文名称
guedtype: guedtyp, //被担保人类型
guedcouncode: formatedData.gueds.guedcouncode, //被担保人国别/地区代码
guedparecompname: formatedData.gueds.guedparecompname, //被担保人境内母公司中文名称
guedparecompnamen: formatedData.gueds.guedparecompnamen, //被担保人境内母公司英文名称
guedparecompcode: formatedData.gueds.guedparecompcode, //被担保人境内母公司代码
issuecountrycode: formatedData.gueds.issuecountrycode, //发行/上市国家与地区
guedindustrycode: guedincode
};
if (list1.guedcode != undefined || list1.guedname != undefined || list1.guednamen != undefined || list1.guedcouncode != undefined ||
list1.guedparecompname != undefined || list1.guedparecompnamen != undefined || list1
.guedparecompcode != undefined || list1.issuecountrycode != undefined
) {
model.gueds = [list1];
}
}
}
if (secModel != undefined) {
Object.assign(secModel, formatedData.decdtlExtGuarBalVo)
}
if (thrdModel != undefined) {
Object.assign(thrdModel, formatedData.decmstGuaenrInfoVo)
}
}
//进口信用证来单付汇
if (params.head.txCode == "020314") {
if (model != undefined) {
//对外付款/承兑通知书
Object.assign(model.decmstOpyBaseVo, formatedData.decmstOpyBaseVo)
Object.assign(model.decdtlOpyDeclrVo, formatedData.decdtlOpyDeclrVo)
Object.assign(model.decdtlOpyManageVo, formatedData.decdtlOpyManageVo)
}
if (secModel != undefined) {
//境内付款/承兑通知书
Object.assign(secModel.decmstDpyBaseVo, formatedData.decmstDpyBaseVo)
Object.assign(secModel.decdtlDpyManageVo, formatedData.decdtlDpyManageVo)
}
if (thrdModel != undefined) {
Object.assign(thrdModel, formatedData.decmstExpnVo)
}
}
//出口信用证收汇
if (params.head.txCode == "020412") {
if (model != undefined) {
Object.assign(model.decmstOinBaseVo, formatedData.decmstOinBaseVo)
Object.assign(model.decdtlOinDeclrVo, formatedData.decdtlOinDeclrVo)
}
if (secModel != undefined) {
Object.assign(secModel.decmstDinBaseVo, formatedData.decmstDinBaseVo)
Object.assign(secModel.decdtlDinManageVo, formatedData.decdtlDinManageVo)
}
if (thrdModel != undefined) {
Object.assign(thrdModel, formatedData.decmstIncomeVo)
}
}
return Promise.resolve(true)
}
return Promise.resolve(false)
}
\ No newline at end of file
......@@ -11,12 +11,16 @@ export default {
},
methods: {
ruleWatcher() {
if(!this.defaultRules)
return
const that = this;
Object.keys(that.defaultRules).forEach(key => {
that.$watch("model." + key, that.defaultRules[key])
})
},
ruleCheck() {
if(!this.pattern)
return
const keySet = new Set(Object.keys(this.pattern).concat(Object.keys(this.checkRules)))
const res = {};
for (let key of keySet.keys()) {
......
export default class Pts{
constructor()
{
this.data={
}
}
}
\ No newline at end of file
import Api from "~/service/Api";
import Pts from "../Common/Pts"
export default class Ditopn{
constructor () {
this.data = {
......
<?xml version="1.0" encoding="UTF-8"?>
<eibs:Module xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI" xmlns:eibs="http://eibs.brilliance.com"
name="office" table="office" title="Unnamed transaction"/>
import Request from "~/utils/request"
//TODO: 删除 经办提交
export function addDraft(params) {
return Request.post('v1/pm/draft',params)
}
//TODO: 删除 任务提交
export function delDraft(params) {
return Request.delete('v1/pm/draft/'+ params)
}
// 暂存
export function saveDraft(params) {
return Request.post('v1/pm/save-draft',params)
}
// 暂存回显
export function getDraft(id) {
return Request.get(`v1/pm/draft/${id}`)
}
\ No newline at end of file
<template>
<c-page title="买房信用证开立">
<div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="200px" size="small">
<el-tabs ref="elment" type="border-card" @tab-click="tabClick">
<el-tabs ref="elment" type="card" @tab-click="tabClick">
<el-tab-pane label="内容">
<!--PD000001 -->
<m-ovwp :model="model" :codes="codes"/>
......@@ -84,15 +85,17 @@
</el-tabs>
<c-bus-button></c-bus-button>
</el-form>
</div>
</c-page>
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Ditopn from "~/Model/Ditopn"
import Ditopn from "~/model/Ditopn"
import CommonProcess from "~/mixin/CommonProcess"
import Pattern from "~/Model/Ditopn/Pattern"
import Pattern from "~/model/Ditopn/Pattern"
import Default from "~/model/Ditopn/Default";
import Check from "~/model/Ditopn/Check";
import Ovwp from "./Ovwp"
......@@ -141,19 +144,15 @@ export default {
return {
model:new Ditopn().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
defaultRules: Default,
pattern: Pattern,
rules:null,
codes:{
},
declareParams:{"fileName":"ditopn.json","basePath":"{{basePath}}","method":"post","scheme":"{{schemes}}","host":"{{host}}","consume":"0","produce":"0","uri":"/ditopn/init"},
}
},
methods:{
tabClick(){
console.log("-----------------")
console.log(this.$refs)
console.log(this.$refs.modelForm)
this.$refs.modelForm.validate(valid => {
if (valid){
console.log(1)
......@@ -161,12 +160,11 @@ export default {
console.log(0)
}
})
console.log("-----------------")
}
},
created:async function(){
console.log("进入ditopn交易");
let rtnmsg = await Api.post(this,"init",{params:{}})
let rtnmsg = await Api.post("ditopn/init",{params:{}})
if(rtnmsg.retcod == SUCCESS)
{
//TODO 处理数据逻辑
......
<template>
<div class="display">
<p>快照模式</p>
<businessContainer></businessContainer>
</div>
</template>
......
<template>
<div class="loginContainer">
<div id="loginForamWrapper">
<h2>欢迎银行国际结算系统</h2>
<h2>欢迎使用新一代国际结算系统</h2>
<div id="loginForm">
<p style="text-align:left;font-size:1.2em;color:#888">用户登录 / LOGIN IN</p>
<el-form :model="loginForm" status-icon :rules="rules" ref="loginForm" size="small" >
......
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