Commit a4c2fb20 by nanrui

cltdav优化

parent 79deb300
......@@ -23,23 +23,6 @@ export default {
this.$notify.error({ title: '错误', message: '服务请求失败!' });
}
},
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) {
......
......@@ -19,7 +19,7 @@ export default {
{type: "date", required: true, message: "必输项"}
],
"rowcntr":[
{type: "string", required: false, message: "必输项"},
{type: "number", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
......@@ -28,16 +28,16 @@ export default {
{max: 16,message:"长度不能超过16"}
],
"amount":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 16,message:"整数位不能超过12位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cldgrp.rec.count":[
{type: "string", required: false, message: "必输项"},
{type: "number", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"items":[
{type: "string", required: false, message: "必输项"},
{type: "number", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
......
......@@ -17,7 +17,7 @@ export default class Cltdav {
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
count: Number(), // 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
......@@ -30,10 +30,10 @@ export default class Cltdav {
setins: "", // Settlement Instructions .cldgrp.blk.setins
},
},
rowcntr: "", // Total Row Count .rowcntr
rowcntr: Number(), // Total Row Count .rowcntr
cur: "", // currency .cur
amount: "", // AMOUNT .amount
items: "", // Item Count .items
items: Number(), // Item Count .items
colbnk: "", // Collection Bank .colbnk
cltp: {
colp: {
......
<template>
<div class="eibs-tab">
<c-list-search @form-reset="handleReset" @form-search="handleSearch">
<!-- 持续展示区 -->
<template v-slot="searchSlot">
<el-form class="m-table-search-form" ref="paramsForm" :inline="true" label-position="right"
label-width="110px" size="small">
<c-row>
<c-col :span="24">
<c-col :span="11">
<c-col :span="20">
<el-form-item label="Batch No." prop="cldgrp.rec.ownref" style="width:100%">
<c-input v-model="model.cldgrp.rec.ownref" maxlength="16"
placeholder="请输入Reference" style="width:100%" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="4" style="text-align:right">
<c-button size="small" type="primary" @click="onCltpButgetref">
获取
</c-button>
</c-col>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="Name" prop="cldgrp.rec.nam" style="width:100%">
<c-input v-model="model.cldgrp.rec.nam" maxlength="40"
placeholder="请输入Name of CC contract">
</c-input>
</el-form-item>
</c-col>
<c-row>
<c-col :span="24">
<c-col :span="11">
<c-col :span="20">
<el-form-item label="Batch No." prop="cldgrp.rec.ownref" style="width:100%">
<c-input v-model="model.cldgrp.rec.ownref" maxlength="16" placeholder="请输入Reference"
style="width:100%" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="4" style="text-align:right">
<c-button size="small" type="primary" @click="onCltpButgetref">
获取
</c-button>
</c-col>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="Name" prop="cldgrp.rec.nam" style="width:100%">
<c-input v-model="model.cldgrp.rec.nam" maxlength="40" placeholder="请输入Name of CC contract">
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<el-form-item label="Payment Disposition" prop="cldgrp.rec.colflg" style="width:100%">
<c-select v-model="model.cldgrp.rec.colflg" style="width: 100%" maxlength="1"
placeholder="请输入Payment Disposition">
<el-option v-for="item in codes.colflg" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="Value Date" prop="cldgrp.rec.valdat" style="width:100%">
<c-col :span="11">
<c-date-picker type="date" v-model="model.cldgrp.rec.valdat" style="width:100%"
placeholder="请选择Value Date"></c-date-picker>
</c-col>
<c-col :span="24">
<c-col :span="11">
<el-form-item label="Payment Disposition" prop="cldgrp.rec.colflg" style="width:100%">
<c-select v-model="model.cldgrp.rec.colflg" style="width: 100%" maxlength="1"
placeholder="请输入Payment Disposition">
<el-option v-for="item in codes.colflg" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="Value Date" prop="cldgrp.rec.valdat" style="width:100%">
<c-col :span="11">
<c-date-picker type="date" v-model="model.cldgrp.rec.valdat" style="width:100%"
placeholder="请选择Value Date"></c-date-picker>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">Date</label>
</c-col>
<c-col :span="11">
<c-date-picker type="date" v-model="model.cldgrp.rec.credat" style="width:100%"
placeholder="请选择Date of creation"></c-date-picker>
</c-col>
</el-form-item>
</c-col>
<c-col :span="2" style="text-align: center">
<label style="display: inline-block; width: 100%">Date</label>
</c-col>
<c-col :span="24">
<c-col :span="11">
<el-form-item label="Total Row Count" prop="rowcntr" style="width:100%">
<c-input v-model="model.rowcntr" placeholder="请输入Total Row Count" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="Currency" prop="cur" style="width:100%">
<c-select v-model="model.cur" style="width: 100%" placeholder="请选择币种">
<el-option v-for="item in codes.curtxt1" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<el-form-item label="Amount" prop="amount" style="width: 100%">
<c-input v-model="model.amount" placeholder="请输入AMOUNT" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="Register Ref." prop="cldgrp.rec.regref" style="width: 100%">
<c-input v-model="model.cldgrp.rec.regref" tyle="width: 100%" maxlength="16"
placeholder="请输入Register Ref." disabled></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<el-form-item label="Item Count" prop="cldgrp.rec.count" style="width: 100%">
<c-input v-model="model.cldgrp.rec.count" placeholder="请输入ITEM COUNT" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="Actual Items" prop="items" style="width:100%">
<c-input v-model="model.items" placeholder="请输入Item Count"></c-input>
</el-form-item>
</c-col>
<c-col :span="11">
<c-date-picker type="date" v-model="model.cldgrp.rec.credat" style="width:100%"
placeholder="请选择Date of creation"></c-date-picker>
</c-col>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<el-form-item label="Total Row Count" prop="rowcntr" style="width:100%">
<c-input v-model="model.rowcntr" placeholder="请输入Total Row Count" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="Currency" prop="cur" style="width:100%">
<c-select v-model="model.cur" style="width: 100%" placeholder="请选择币种">
<el-option v-for="item in codes.curtxt1" :key="item.value" :label="item.label"
:value="item.value">
</el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<el-form-item label="Amount" prop="amount" style="width: 100%">
<c-input v-model="model.amount" placeholder="请输入AMOUNT" disabled></c-input>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="Register Ref." prop="cldgrp.rec.regref" style="width: 100%">
<c-input v-model="model.cldgrp.rec.regref" tyle="width: 100%" maxlength="16"
placeholder="请输入Register Ref." disabled></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<el-form-item label="Item Count" prop="cldgrp.rec.count" style="width: 100%">
<c-input v-model="model.cldgrp.rec.count" placeholder="请输入ITEM COUNT" disabled>
</c-input>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="Actual Items" prop="items" style="width:100%">
<c-input v-model="model.items" placeholder="请输入Item Count"></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<c-col :span="20">
<el-form-item label="Collection Bank" prop="colbnk" style="width:100%">
<c-input v-model="model.colbnk" style="width:100%"
placeholder="请选择Collection Bank" :disabled="model.cldgrp.rec.colflg == 'G'">
</c-input>
</el-form-item>
</c-col>
<c-col :span="4" style="text-align:right">
<c-button size="small" type="primary" @click="onGet" :disabled="model.cldgrp.rec.colflg == 'G'">
Get Swt
</c-button>
</c-col>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="Collection Method" prop="colmet" style="width:100%">
<c-input v-model="model.colmet" style="width:100%"
placeholder="请选择Collection Method" disabled></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<c-col :span="20">
<el-form-item label="Collection Bank" prop="colbnk" style="width:100%">
<c-input v-model="model.colbnk" style="width:100%" placeholder="请选择Collection Bank"
:disabled="model.cldgrp.rec.colflg == 'G'">
</c-input>
</el-form-item>
</c-col>
<c-col :span="4" style="text-align:right">
<c-button size="small" type="primary" @click="onGet" :disabled="model.cldgrp.rec.colflg == 'G'">
Get Swt
</c-button>
</c-col>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="Collection Method" prop="colmet" style="width:100%">
<c-input v-model="model.colmet" style="width:100%" placeholder="请选择Collection Method">
</c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<c-col :span="20">
<el-form-item label="Extkey" prop="cldgrp.col.pts.extkey" style="width:100%">
<c-input v-model="model.cldgrp.col.pts.extkey" maxlength="16"
placeholder="请输入External Key of Address"
@keyup.enter.native="showGridPromptDialog('cldgrp.col.pts.extkey')">
</c-input>
</el-form-item>
</c-col>
<c-col :span="4" style="text-align:right">
<!-- <el-form-item label="" label-width="15px" style="text-align:right"> -->
<!-- <c-button size="small" type="primary;width:10%" @click="onSeainf('cldgrp.col.pts.extkey')">i</c-button> -->
<c-button size="small" type="primary">
Details
</c-button>
<!-- </el-form-item> -->
</c-col>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<c-col :span="20">
<el-form-item label="Extkey" prop="cldgrp.col.pts.extkey" style="width:100%">
<c-input v-model="model.cldgrp.col.pts.extkey" maxlength="16"
placeholder="请输入External Key of Address"
@keyup.enter.native="showGridPromptDialog('cldgrp.col.pts.extkey')">
</c-input>
</el-form-item>
</c-col>
<c-col :span="4" style="text-align:right">
<!-- <el-form-item label="" label-width="15px" style="text-align:right"> -->
<!-- <c-button size="small" type="primary;width:10%" @click="onSeainf('cldgrp.col.pts.extkey')">i</c-button> -->
<c-button size="small" type="primary">
Details
</c-button>
<!-- </el-form-item> -->
</c-col>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<el-form-item label="Address Block" prop="cldgrp.col.pts.nam" style="width:100%">
<c-input type="textarea" :rows="4" v-model="model.cldgrp.col.pts.nam" maxlength="35"
disabled show-word-limit placeholder="请输入Address Block"></c-input>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="Coll Bank Ref" prop="cldgrp.rec.colref" style="width:100%">
<c-input v-model="model.cldgrp.rec.colref" maxlength="16"
placeholder="请输入COLL BANK REF"></c-input>
</el-form-item>
</c-col>
</c-col>
</c-row>
</el-form>
</template>
</c-list-search>
<c-col :span="24">
<c-col :span="11">
<el-form-item label="Address Block" prop="cldgrp.col.pts.nam" style="width:100%">
<c-input type="textarea" :rows="4" v-model="model.cldgrp.col.pts.nam" maxlength="35" disabled
show-word-limit placeholder="请输入Address Block"></c-input>
</el-form-item>
</c-col>
<c-col :span="11" :offset="1">
<el-form-item label="Coll Bank Ref" prop="cldgrp.rec.colref" style="width:100%">
<c-input v-model="model.cldgrp.rec.colref" maxlength="16" placeholder="请输入COLL BANK REF">
</c-input>
</el-form-item>
</c-col>
</c-col>
</c-row>
<c-row>
<c-col :span="4" :offset="20" style="text-align:center">
<el-button type="primary" @click="handleSearch">查询</el-button>
</c-col>
</c-row>
<c-col :span="24">
<c-edit-table :model="model" v-bind="docgrd">
</c-edit-table>
......@@ -235,10 +231,22 @@ export default {
...Event,
multipleSelect() {
console.log(123);
},
checkedChange() {
console.log(456);
}
},
created: function () {
},
watch: {
// "model.bptbck.bptbckg": {
// async handler(){
// console.log(4456);
// let rtnmsg = await this.executeRule("butsea")
// this.model.bptbck.bptbckg = rtnmsg.data.ccdbatg;
// }
// }
}
}
</script>
......
......@@ -17,7 +17,9 @@
<!--PD000002 -->
<el-tab-pane label="内容" name="sel">
<m-sel :model="model" :codes="codes" />
<c-content>
<m-sel :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000529 -->
......
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