Commit 8ecc18f4 by nanrui

cltdav,cltset,clttra表格数据显示处理

parent 7a06554a
...@@ -3,7 +3,6 @@ import Utils from "~/utils" ...@@ -3,7 +3,6 @@ import Utils from "~/utils"
export default { export default {
async handleSearch() { async handleSearch() {
// this.stmData.data = [];
let colflg = this.model.cldgrp.rec.colflg; let colflg = this.model.cldgrp.rec.colflg;
if (!colflg || colflg == '') { if (!colflg || colflg == '') {
this.$notify.error({ title: '错误', message: 'Payemnt Disposition必输!' }); this.$notify.error({ title: '错误', message: 'Payemnt Disposition必输!' });
...@@ -16,16 +15,13 @@ export default { ...@@ -16,16 +15,13 @@ export default {
} }
let rtnmsg = await this.executeRule("butsea") let rtnmsg = await this.executeRule("butsea")
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data);
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.model.bptbckg.docgrd = rtnmsg.data.ccdbatg; this.model.bptbck.bptbckg = rtnmsg.data.ccdbatg;
// this.updateModel(rtnmsg.data);
// this.stmData.data = rtnmsg.data.infbut_dspstm.rows;
//this.model.infbut.dspstm = rtnmsg.data.infbut_dspstm
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
console.log(this.model.bptbckg.docgrd);
}, },
async handleReset() { async handleReset() {
// this.model.infcon.seaownref = "" // this.model.infcon.seaownref = ""
......
...@@ -6,7 +6,9 @@ export default class Cltdav { ...@@ -6,7 +6,9 @@ export default class Cltdav {
this.data = { this.data = {
cltdavl2blk:"", cltdavl2blk:"",
cltdavl1blk:"", cltdavl1blk:"",
bptbckg: [], bptbck:{
bptbckg:[],
},
liaall: new Pub().data.Liaall, liaall: new Pub().data.Liaall,
cldgrp: { cldgrp: {
rec: { rec: {
......
...@@ -4,7 +4,9 @@ import Pub from "../Public" ...@@ -4,7 +4,9 @@ import Pub from "../Public"
export default class Cltset { export default class Cltset {
constructor() { constructor() {
this.data = { this.data = {
bptbckg:[], bptbck: {
bptbckg: [], // .bptbck.bptbckg
},
liaall: new Pub().data.Liaall, liaall: new Pub().data.Liaall,
cldgrp: { cldgrp: {
rec: { rec: {
......
...@@ -4,7 +4,9 @@ import Pub from "../Public" ...@@ -4,7 +4,9 @@ import Pub from "../Public"
export default class Clttra { export default class Clttra {
constructor() { constructor() {
this.data = { this.data = {
bptbckg: [], bptbck:{
bptbckg:[],
},
liaall: new Pub().data.Liaall, liaall: new Pub().data.Liaall,
trnmod: new Pub().data.Trnmod, trnmod: new Pub().data.Trnmod,
cldgrp: { cldgrp: {
......
...@@ -183,14 +183,20 @@ export default { ...@@ -183,14 +183,20 @@ export default {
docgrd: { docgrd: {
columns: [ columns: [
{ {
title: "Check Number",
width: "120px",
dataIndex: "chcknum",
show: "text",
},
{
title: "Our Reference", title: "Our Reference",
width: "150px", width: "120px",
dataIndex: "ownref", dataIndex: "ownref",
show: "text", show: "text",
}, },
{ {
title: "Description", title: "Description",
width: "200px", width: "220px",
dataIndex: "nam", dataIndex: "nam",
show: "text", show: "text",
}, },
...@@ -208,7 +214,7 @@ export default { ...@@ -208,7 +214,7 @@ export default {
}, },
{ {
title: "Amount", title: "Amount",
width: "200px", width: "150px",
dataIndex: "amt", dataIndex: "amt",
show: "text", show: "text",
}, },
...@@ -220,7 +226,7 @@ export default { ...@@ -220,7 +226,7 @@ export default {
}, },
], ],
urls: "bptbckg.docgrd", urls: "bptbck.bptbckg",
}, },
} }
......
...@@ -122,38 +122,44 @@ export default { ...@@ -122,38 +122,44 @@ export default {
docgrd: { docgrd: {
columns: [ columns: [
{ {
title: "Check Number",
width: "120px",
dataIndex: "chcknum",
show: "text",
},
{
title: "Our Reference", title: "Our Reference",
width: "150px", width: "120px",
dataIndex: "ownref", dataIndex: "ownref",
show: "text", show: "text",
}, },
{ {
title: "Description", title: "Description",
width: "200px", width: "240px",
dataIndex: "nam", dataIndex: "nam",
show: "text", show: "text",
}, },
{ {
title: "Presenter Name", title: "Presenter Name",
width: "200px", width: "230px",
dataIndex: "prenam", dataIndex: "prenam",
show: "text", show: "text",
}, },
{ {
title: "cur", title: "cur",
width: "100px", width: "50px",
dataIndex: "cur", dataIndex: "cur",
show: "text", show: "text",
}, },
{ {
title: "Amount", title: "Amount",
width: "200px", width: "100px",
dataIndex: "amt", dataIndex: "amt",
show: "text", show: "text",
}, },
{ {
title: "Pay To", title: "Pay To",
width: "200px", width: "120px",
dataIndex: "paytoamt", dataIndex: "paytoamt",
show: "input", show: "input",
}, },
...@@ -165,7 +171,7 @@ export default { ...@@ -165,7 +171,7 @@ export default {
}, },
], ],
urls: "bptbckg.docgrd", urls: "bptbck.bptbckg",
}, },
} }
}, },
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
<!-- <el-tab-pane label="保证金" name="ccvpan"> <!-- <el-tab-pane label="保证金" name="ccvpan">
<m-ccvpan :model="model" :codes="codes" /> <m-ccvpan :model="model" :codes="codes" />
</el-tab-pane> --> </el-tab-pane> -->
<!--PD000546 --> <!--PD000546 -->
</c-tabs> </c-tabs>
...@@ -84,56 +84,57 @@ import Doctre from "~/views/Public/Doctre"; ...@@ -84,56 +84,57 @@ import Doctre from "~/views/Public/Doctre";
export default { export default {
name: "Cltset", name: "Cltset",
components: { components: {
"m-sel": Sel, "m-sel": Sel,
"m-setpan": Setpan, "m-setpan": Setpan,
"m-engp": Engp, "m-engp": Engp,
"m-glepan": Glepan, "m-glepan": Glepan,
"m-docpan": Docpan, "m-docpan": Docpan,
"m-doctre": Doctre, "m-doctre": Doctre,
"m-coninfp": Coninfp, "m-coninfp": Coninfp,
"m-ccvpan": Ccvpan, "m-ccvpan": Ccvpan,
}, },
provide() { provide() {
return { return {
root: this root: this
} }
}, },
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
tabVal: "sel", tabVal: "sel",
trnName: "cltset", trnName: "cltset",
model: new Cltset().data, model: new Cltset().data,
checkRules: Check, checkRules: Check,
defaultRules: Default, defaultRules: Default,
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: { codes: {
...CodeTable, ...CodeTable,
}, },
} }
}, },
methods: { methods: {
// tabClick() { // tabClick() {
// } // }
}, },
created: async function () { created: async function () {
console.log("进入cltset交易"); console.log("进入cltset交易");
let rtnmsg = await this.init({}) let rtnmsg = await this.init(this.$route.query)
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑 this.updateModel(rtnmsg.data);
this.updateModel(rtnmsg.data); //TODO 处理数据逻辑
this.model.bptbckg.docgrd = rtnmsg.data.ccdbatg; this.model.bptbck.bptbckg = rtnmsg.data.ccdbatg;
console.log(this.model.bptbckg.docgrd); console.log(this.model.bptbck.bptbckg);
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', message: '服务请求失败!' });
} }
} }
} }
</script> </script>
<style> <style>
</style> </style>
\ No newline at end of file
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
<c-col :span="24"> <c-col :span="24">
<c-col :span="11"> <c-col :span="11">
<el-form-item label="Coll.bank ref." prop="cldgrp.rec.colref"> <el-form-item label="Coll.bank ref." prop="cldgrp.rec.colref">
<c-input v-model="model.cldgrp.rec.colref" maxlength="16" placeholder="请输入Coll.bank ref." disabled> <c-input v-model="model.cldgrp.rec.colref" maxlength="16" placeholder="请输入Coll.bank ref.">
</c-input> </c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -124,14 +124,20 @@ export default { ...@@ -124,14 +124,20 @@ export default {
docgrd: { docgrd: {
columns: [ columns: [
{ {
title: "Check NUmber",
width: "120px",
dataIndex: "chcknum",
show: "text",
},
{
title: "Our Reference", title: "Our Reference",
width: "150px", width: "120px",
dataIndex: "ownref", dataIndex: "ownref",
show: "text", show: "text",
}, },
{ {
title: "Name of CC contact", title: "Name of CC contact",
width: "200px", width: "220px",
dataIndex: "nam", dataIndex: "nam",
show: "text", show: "text",
}, },
...@@ -149,18 +155,18 @@ export default { ...@@ -149,18 +155,18 @@ export default {
}, },
{ {
title: "balance", title: "balance",
width: "200px", width: "100px",
dataIndex: "amt", dataIndex: "amt",
show: "text", show: "text",
}, },
{ {
title: "Pay To", title: "PAY TO",
width: "200px", width: "100px",
dataIndex: "paytoamt", dataIndex: "paytoamt",
show: "input", show: "input",
}, },
], ],
urls: "bptbckg.docgrd", urls: "bptbck.bptbckg",
}, },
} }
}, },
......
...@@ -113,12 +113,12 @@ export default { ...@@ -113,12 +113,12 @@ export default {
}, },
created: async function () { created: async function () {
console.log("进入clttra交易"); console.log("进入clttra交易");
let rtnmsg = await this.init({}) let rtnmsg = await this.init(this.$route.query)
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.updateModel(rtnmsg.data); this.updateModel(rtnmsg.data);
this.model.bptbckg.docgrd = rtnmsg.data.ccdbatg; this.model.bptbck.bptbckg = rtnmsg.data.ccdbatg;
console.log(this.model.bptbckg.docgrd); console.log(this.model.bptbck.bptbckg);
} }
else { else {
this.$notify.error({ title: '错误', message: '服务请求失败!' }); this.$notify.error({ title: '错误', 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