Commit 5e5e87b1 by nanrui

cltdav优化

parent 7644c663
......@@ -2,11 +2,53 @@ import Api from "~/service/Api"
import Utils from "~/utils"
export default {
async handleSearch() {
// this.stmData.data = [];
let colflg = this.model.cldgrp.rec.colflg;
if (!colflg || colflg == '') {
this.$notify.error({ title: '错误', message: 'Payemnt Disposition必输!' });
return;
}
let cur = this.model.cur;
if (!cur || cur == '') {
this.$notify.error({ title: '错误', message: 'cur必输!' });
return;
}
let rtnmsg = await this.executeRule("butsea")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.model.bptbckg.docgrd = rtnmsg.data.ccdbatg;
// this.updateModel(rtnmsg.data);
// this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
//this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
console.log(this.model.bptbckg.docgrd);
},
async handleReset() {
// this.model.infcon.seaownref = ""
// this.model.infcon.opndatfrom = new Date();
// this.model.infcon.opndatto = new Date();
// this.model.infcon.searef = "";
// this.model.infcon.pty.extkey = "";
// this.model.infcon.usr.extkey = "";
// this.model.infcon.searol = "";
// this.model.infcon.pty.nam = "";
// this.model.infcon.seapty = "";
// this.model.infcon.curtxt1 = "";
// this.model.infcon.nam = "";
// this.model.infcon.seaamtfr = "";
// this.model.infcon.seaamtto = "";
// this.model.infcon.seasta = "";
// this.model.infcon.doctypcod = "";
},
async onCltpButgetref() {
let rtnmsg = await this.executeRule("cltp.butgetref")
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
this.model.cldgrp.rec.ownref= rtnmsg.data.cldgrp_rec_ownref;
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
......
import Api from "~/service/Api"
import Pts from "../Common/Pts"
import Pub from "../Public"
export default class Cltdav{
constructor () {
this.data = {
export default class Cltdav {
constructor() {
this.data = {
cltdavl2blk:"",
cltdavl1blk:"",
bptbckg: [],
liaall: new Pub().data.Liaall,
cldgrp:{
rec:{
ownref:"", // Batch No. .cldgrp.rec.ownref
valdat:"", // Value Date .cldgrp.rec.valdat
credat:"", // Date of creation .cldgrp.rec.credat
colflg:"", // Payemnt Disposition .cldgrp.rec.colflg
regref:"", // Register Ref. .cldgrp.rec.regref
count:"", // ITEM COUNT .cldgrp.rec.count
colref:"", // COLL BANK REF .cldgrp.rec.colref
nam:"", // Name of CC contract .cldgrp.rec.nam
creact:"", // Credit to Account .cldgrp.rec.creact
acno:"", // A/C NO. .cldgrp.rec.acno
},
col:{
pts:new Pts().data,
},
blk:{
setins:"", // Settlement Instructions .cldgrp.blk.setins
},
cldgrp: {
rec: {
ownref: "", // Batch No. .cldgrp.rec.ownref
valdat: "", // Value Date .cldgrp.rec.valdat
credat: "", // Date of creation .cldgrp.rec.credat
colflg: "", // Payemnt Disposition .cldgrp.rec.colflg
regref: "", // Register Ref. .cldgrp.rec.regref
count: "", // ITEM COUNT .cldgrp.rec.count
colref: "", // COLL BANK REF .cldgrp.rec.colref
nam: "", // Name of CC contract .cldgrp.rec.nam
creact: "", // Credit to Account .cldgrp.rec.creact
acno: "", // A/C NO. .cldgrp.rec.acno
},
col: {
pts: new Pts().data,
},
blk: {
setins: "", // Settlement Instructions .cldgrp.blk.setins
},
},
rowcntr: "", // Total Row Count .rowcntr
cur: "", // currency .cur
amount: "", // AMOUNT .amount
items: "", // Item Count .items
colbnk: "", // Collection Bank .colbnk
cltp: {
colp: {
ptsget: {
sdamod: {
dadsnd: "", // Drag Drop Sender .cltp.colp.ptsget.sdamod.dadsnd
seainf: "", // .cltp.colp.ptsget.sdamod.seainf
},
rowcntr:"", // Total Row Count .rowcntr
cur:"", // currency .cur
amount:"", // AMOUNT .amount
items:"", // Item Count .items
colbnk:"", // Collection Bank .colbnk
cltp:{
colp:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .cltp.colp.ptsget.sdamod.dadsnd
seainf:"", // .cltp.colp.ptsget.sdamod.seainf
},
},
},
},
colmet:"", // Collection Method .colmet
// trnmod:{
// trndoc:{
// advlabel:"", // ADVLABEL .trnmod.trndoc.advlabel
// amdnam:"", // AMDNAM .trnmod.trndoc.amdnam
// advdoc:"", // 国内证通知书 .trnmod.trndoc.advdoc
// advnam:"", // 国内证落款 .trnmod.trndoc.advnam
// amdapl:"", // 修改申请人名称 .trnmod.trndoc.amdapl
// doclbl:"", // Lable for CONDOCSTM .trnmod.trndoc.doclbl
// doctrestm:"", // Document tree .trnmod.trndoc.doctrestm
// shwinc:"", // Show Incoming Messages .trnmod.trndoc.shwinc
// shwout:"", // Show Outgoing Messages .trnmod.trndoc.shwout
// condocstm:"", // Connected Documents .trnmod.trndoc.condocstm
// rcvatt:{
// seainf:"", // .trnmod.trndoc.rcvatt.seainf
// },
// filrecv:"", // File Receiver .trnmod.trndoc.filrecv
// },
// },
trnmod: new Pub().data.Trnmod,
mtabut:{
coninf:{
oitinf:{
labinftxt:"", // Label for INFTXT .mtabut.coninf.oitinf.labinftxt
oit:{
inftxt:"", // Infotext .mtabut.coninf.oitinf.oit.inftxt
inflev:"", // Infotext Level .mtabut.coninf.oitinf.oit.inflev
},
},
oitset:{
labinftxt:"", // Label for INFTXT .mtabut.coninf.oitset.labinftxt
oit:{
inftxt:"", // Infotext .mtabut.coninf.oitset.oit.inftxt
inflev:"", // Infotext Level .mtabut.coninf.oitset.oit.inflev
},
},
conexedat:"", // 执行日期 .mtabut.coninf.conexedat
usr:{
extkey:"", // User ID .mtabut.coninf.usr.extkey
},
},
},
setmod:{
docamttyplab:"", // settled amount description as label .setmod.docamttyplab
retmsg:"", // Label showing Retry overflow condition .setmod.retmsg
ref:"", // our reference .setmod.ref
doccur:"", // document currency .setmod.doccur
docamt:"", // document amount .setmod.docamt
dspflg:"", // Type of settlement .setmod.dspflg
xreflg:"", // Recalculate Rates .setmod.xreflg
setglg:{
labdspflg:"", // Label for Type of Settlement .setmod.setglg.labdspflg
},
zmqacclab:"", // 主�'�号LABEL .setmod.zmqacclab
zmqacc:"", // 自�'�区主�'�号 .setmod.zmqacc
setfog:{
setfol:[]
},
setfeg:{
setfel:[]
},
glemod:{
gleshwstm: {}
},
},
modflg:"", // MODIFY .modflg
pageId: "" // ctx的key
}
}
},
},
},
colmet: "", // Collection Method .colmet
trnmod: new Pub().data.Trnmod,
// mtabut: {
// coninf: {
// oitinf: {
// labinftxt: "", // Label for INFTXT .mtabut.coninf.oitinf.labinftxt
// oit: {
// inftxt: "", // Infotext .mtabut.coninf.oitinf.oit.inftxt
// inflev: "", // Infotext Level .mtabut.coninf.oitinf.oit.inflev
// },
// },
// oitset: {
// labinftxt: "", // Label for INFTXT .mtabut.coninf.oitset.labinftxt
// oit: {
// inftxt: "", // Infotext .mtabut.coninf.oitset.oit.inftxt
// inflev: "", // Infotext Level .mtabut.coninf.oitset.oit.inflev
// },
// },
// conexedat: "", // 执行日期 .mtabut.coninf.conexedat
// usr: {
// extkey: "", // User ID .mtabut.coninf.usr.extkey
// },
// },
// },
mtabut: new Pub().data.Mtabut,
// setmod: {
// docamttyplab: "", // settled amount description as label .setmod.docamttyplab
// retmsg: "", // Label showing Retry overflow condition .setmod.retmsg
// ref: "", // our reference .setmod.ref
// doccur: "", // document currency .setmod.doccur
// docamt: "", // document amount .setmod.docamt
// dspflg: "", // Type of settlement .setmod.dspflg
// xreflg: "", // Recalculate Rates .setmod.xreflg
// setglg: {
// labdspflg: "", // Label for Type of Settlement .setmod.setglg.labdspflg
// },
// zmqacclab: "", // 主�'�号LABEL .setmod.zmqacclab
// zmqacc: "", // 自�'�区主�'�号 .setmod.zmqacc
// setfog: {
// setfol: []
// },
// setfeg: {
// setfel: []
// },
// glemod: {
// gleshwstm: {}
// },
// },
setmod: new Pub().data.Setmod,
modflg: "", // MODIFY .modflg
pageId: "" // ctx的key
}
}
}
\ No newline at end of file
<template>
<div class="eibs-tab">
<c-col :span="12">
<el-form-item label="Credit to Account" prop="cldgrp.rec.creact">
<c-select v-model="model.cldgrp.rec.creact" style="width:100%" placeholder="请选择Credit to Account">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="A/C NO." prop="cldgrp.rec.acno">
<c-input v-model="model.cldgrp.rec.acno" maxlength="20" placeholder="请输入A/C NO."></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Settlement Instructions" prop="cldgrp.blk.setins">
<c-input type="textarea" v-model="model.cldgrp.blk.setins" maxlength="65" show-word-limit placeholder="请输入Settlement Instructions" ></c-input>
</el-form-item>
<div class="eibs-tab">
<c-col :span="11">
<el-form-item label="Credit to Account" prop="cldgrp.rec.creact">
<c-select v-model="model.cldgrp.rec.creact" style="width: 100%" placeholder="请选择Credit to Account"
:code="codes.creact">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.modflg">修改</c-checkbox>
<c-button size="small" type="primary" icon="el-icon-search" @click="onSetinsButtxmsel">
...
</c-button>
</c-col>
<!--
<c-col :span="11" :offset="1">
<el-form-item label="A/C NO." prop="cldgrp.rec.acno">
<c-input v-model="model.cldgrp.rec.acno" maxlength="20" placeholder="请输入A/C NO.">
</c-input>
</el-form-item>
</c-col>
<c-col :span="11">
<el-form-item label="Settlement Instructions" prop="cldgrp.blk.setins">
<c-input type="textarea" v-model="model.cldgrp.blk.setins" maxlength="65" show-word-limit
placeholder="请输入Settlement Instructions"></c-input>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="">
<c-checkbox v-model="model.modflg" disabled>修改</c-checkbox>
<c-button size="small" type="primary" icon="el-icon-search" @click="onSetinsButtxmsel">
...
</c-button>
</el-form-item>
</c-col>
<!--
<c-col :span="12">
<c-button size="small" type="primary" icon="el-icon-search" @click="onSetinsButtxmsel">
...
</c-button>
</c-col>
-->
-->
</div>
</div>
</template>
<script>
import Api from "~/service/Api"
......@@ -43,15 +48,15 @@ import Event from "~/model/Cltdav/Event"
export default {
inject: ['root'],
props:["model","codes"],
props: ["model", "codes"],
mixins: [commonProcess],
data(){
data() {
return {
}
},
methods:{...Event},
created:function(){
methods: { ...Event },
created: function () {
}
}
......
......@@ -19,27 +19,7 @@
<el-tab-pane label="内容" name="sel">
<m-sel :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000057 -->
<!-- <el-tab-pane label="关联账号" name="account">
<m-account :model="model" :codes="codes" />
</el-tab-pane> -->
<!--PD000000 -->
<el-tab-pane label="费用及账务" name="setpan">
<c-content>
<m-setpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="表外信息" name="engp">
<m-engp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane label="分录信息" name="glepan">
<m-glepan :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane label="保证金" name="ccvpan">
<m-ccvpan :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000529 -->
<el-tab-pane label="面函及报文" name="docpan">
<m-docpan :model="model" :codes="codes" />
......@@ -54,8 +34,34 @@
<el-tab-pane label="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane label="费用及账务" name="setpan">
<c-content>
<m-setpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000057 -->
<el-tab-pane label="关联账号" name="account">
<m-account :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000027 -->
<!-- <el-tab-pane label="表外信息" name="engp">
<m-engp :model="model" :codes="codes" />
</el-tab-pane> -->
<!--PD000001 -->
<!-- <el-tab-pane label="分录信息" name="glepan">
<m-glepan :model="model" :codes="codes" />
</el-tab-pane> -->
<!-- <el-tab-pane label="保证金" name="ccvpan">
<m-ccvpan :model="model" :codes="codes" />
</el-tab-pane> -->
</c-tabs>
</el-form>
<c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty">
</c-grid-ety-prompt-dialog>
</div>
</c-page>
</template>
......@@ -82,52 +88,53 @@ import Coninfp from "~/views/Public/Coninfp";
import Doctre from "~/views/Public/Doctre";
export default {
name: "Cltdav",
components: {
"m-sel": Sel,
"m-account": Account,
"m-setpan": Setpan,
"m-engp": Engp,
"m-glepan": Glepan,
"m-docpan": Docpan,
"m-doctre": Doctre,
"m-coninfp": Coninfp,
"m-ccvpan": Ccvpan,
},
name: "Cltdav",
components: {
"m-sel": Sel,
"m-account": Account,
"m-setpan": Setpan,
"m-engp": Engp,
"m-glepan": Glepan,
"m-docpan": Docpan,
"m-doctre": Doctre,
"m-coninfp": Coninfp,
"m-ccvpan": Ccvpan,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "sel",
trnName: "cltdav",
model: new Cltdav().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: { ...CodeTable },
}
},
methods: {
tabClick() {
}
},
created: async function () {
console.log("进入cltdav交易");
let rtnmsg = await this.init({})
if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑
provide() {
return {
root: this
}
},
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "sel",
trnName: "cltdav",
model: new Cltdav().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: { ...CodeTable },
}
},
methods: {
tabClick() {
}
},
created: async function () {
console.log("进入cltdav交易");
let rtnmsg = await this.init({})
if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
//TODO 处理数据逻辑
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
}
else {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
}
}
</script>
<style>
......
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