Commit 8ecc18f4 by nanrui

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

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