Commit c352671a by liaoxing

cctdav修改

parent 0e033694
...@@ -19,14 +19,17 @@ export default { ...@@ -19,14 +19,17 @@ export default {
}, },
buildCommonData (model, trnName) { buildCommonData (model, trnName) {
let ptsptaList = []; let ptsptaList = [];
if (model.ccdgrp.col.pts.extkey) { if (model.ccdgrp.cor.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ccdgrp.col)); ptsptaList.push(this.buildPtspta(model.ccdgrp.cor));
}
if (model.ccdgrp.pre.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ccdgrp.pre));
} }
if (model.ccdgrp.drr.pts.extkey) { if (model.ccdgrp.dro.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ccdgrp.drr)); ptsptaList.push(this.buildPtspta(model.ccdgrp.dro));
} }
if (model.ccdgrp.dre.pts.extkey) { if (model.ccdgrp.col.pts.extkey) {
ptsptaList.push(this.buildPtspta(model.ccdgrp.dre)); ptsptaList.push(this.buildPtspta(model.ccdgrp.col));
} }
let dataObj = { let dataObj = {
rec: { rec: {
......
...@@ -94,7 +94,7 @@ export default { ...@@ -94,7 +94,7 @@ export default {
// 业务信息=》基本信息=》托收业务编号-----获取托收业务编号 // 业务信息=》基本信息=》托收业务编号-----获取托收业务编号
async getCcdgrpOwnRef() { async getCcdgrpOwnRef() {
let params = { let params = {
ptainr: this.model.ccdgrp.drr.pts.ptainr, ptainr: this.model.ccdgrp.pre.pts.ptainr,
businessType: 'CC', businessType: 'CC',
tbl: 'CC', tbl: 'CC',
}; };
......
...@@ -4,34 +4,8 @@ import Utils from "~/utils" ...@@ -4,34 +4,8 @@ import Utils from "~/utils"
* Cctdav Check规则 * Cctdav Check规则
*/ */
let checkObj = { let checkObj = {
// "ccdgrp.cbs.max.cur" :null,
// "ccdgrp.dro.pts.extkey" :null,
// "setmod.dspflg" :null,
// "ccdgrp.cor.pts.adrblk" :null,
// "ccdgrp.cbs.max.amt" :null,
// "ccdgrp.rec.purflg" :null,
// "ccdgrp.col.pts.extkey" :null,
// "ccdgrp.col.pts.adrblk" :null,
// "ccdgrp.pre.adrelc" :null,
// "ccdgrp.dro.pts.adrblk" :null,
// "ccdgrp.cor.namelc" :null,
// "ccdgrp.col.namelc" :null,
// "ccdgrp.dro.namelc" :null,
// "ccdgrp.rec.tocsel" :null,
// "ccdgrp.pre.namelc" :null,
// "ccdgrp.rec.modset" :null,
// "mtabut.coninf.conexedat" :null,
// "ccdgrp.cor.adrelc" :null,
// "ccdgrp.cor.pts.extkey" :null,
// "ccdgrp.rec.ownref" :null,
// "ccdgrp.dro.adrelc" :null,
// "ccdgrp.col.adrelc" :null,
// "ccdgrp.blk.setins" :null,
// "ccdgrp.pre.pts.adrblk" :null,
// "setmod.docamt" :null,
// "ccdgrp.pre.pts.extkey" :null,
"ccdgrp.rec.ownref":[ "ccdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"cctp.recget.sdamod.seainf":[ "cctp.recget.sdamod.seainf":[
...@@ -53,17 +27,18 @@ let checkObj = { ...@@ -53,17 +27,18 @@ let checkObj = {
], ],
"ccdgrp.cbs.max.amt":[ "ccdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
"ccdgrp.pre.pts.ref":[ "ccdgrp.pre.pts.ref":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"ccdgrp.cbs.opn1.amt":[ "ccdgrp.cbs.opn1.amt":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
...@@ -190,17 +165,17 @@ let checkObj = { ...@@ -190,17 +165,17 @@ let checkObj = {
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"ccdgrp.cor.pts.adrblk":[ "ccdgrp.cor.pts.adrblk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 150, message:"长度不能超过150"} {max: 150, message:"长度不能超过150"}
], ],
"ccdgrp.cor.dbfadrblkcn":[ "ccdgrp.cor.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"ccdgrp.col.pts.adrblk":[ // "ccdgrp.col.pts.adrblk":[
{type: "string", required: true, message: "必输项"}, // {type: "string", required: true, message: "必输项"},
{max: 150,message:"长度不能超过150"} // {max: 150,message:"长度不能超过150"}
], // ],
"ccdgrp.col.dbfadrblkcn":[ "ccdgrp.col.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
...@@ -245,19 +220,19 @@ let checkObj = { ...@@ -245,19 +220,19 @@ let checkObj = {
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"mtabut.coninf.oitinf.oit.inftxt":[ // "mtabut.coninf.oitinf.oit.inftxt":[
{type: "string", required: true, message: "必输项"}, // {type: "string", required: true, message: "必输项"},
{max: 60,message:"长度不能超过60"} // {max: 60,message:"长度不能超过60"}
], // ],
"mtabut.coninf.oitset.oit.inftxt":[ // "mtabut.coninf.oitset.oit.inftxt":[
{type: "string", required: true, message: "必输项"}, // {type: "string", required: true, message: "必输项"},
{max: 60,message:"长度不能超过60"} // {max: 60,message:"长度不能超过60"}
], // ],
"mtabut.coninf.conexedat":[ // "mtabut.coninf.conexedat":[
{type: "date", required: false, message: "输入正确的日期"} // {type: "date", required: false, message: "输入正确的日期"}
], // ],
"mtabut.coninf.usr.extkey":[ "mtabut.coninf.usr.extkey":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"} {max: 8,message:"长度不能超过8"}
...@@ -268,7 +243,7 @@ let checkObj = { ...@@ -268,7 +243,7 @@ let checkObj = {
], ],
"setmod.docamt":[ "setmod.docamt":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
...@@ -281,10 +256,37 @@ let checkObj = { ...@@ -281,10 +256,37 @@ let checkObj = {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"} {max: 1,message:"长度不能超过1"}
], ],
"ccdgrp.blk.setins":[ // "ccdgrp.blk.setins":[
{type: "string", required: true, message: "必输项"}, // {type: "string", required: true, message: "必输项"},
{max: 600,message:"长度不能超过600"} // {max: 600,message:"长度不能超过600"}
], // ],
// "ccdgrp.cbs.max.cur" :null,
// "ccdgrp.dro.pts.extkey" :null,
// "setmod.dspflg" :null,
// "ccdgrp.cor.pts.adrblk" :null,
// "ccdgrp.cbs.max.amt" :null,
// "ccdgrp.rec.purflg" :null,
// "ccdgrp.col.pts.extkey" :null,
// "ccdgrp.col.pts.adrblk" :null,
// "ccdgrp.pre.adrelc" :null,
// "ccdgrp.dro.pts.adrblk" :null,
// "ccdgrp.cor.namelc" :null,
// "ccdgrp.col.namelc" :null,
// "ccdgrp.dro.namelc" :null,
// "ccdgrp.rec.tocsel" :null,
// "ccdgrp.pre.namelc" :null,
// "ccdgrp.rec.modset" :null,
// "mtabut.coninf.conexedat" :null,
// "ccdgrp.cor.adrelc" :null,
// "ccdgrp.cor.pts.extkey" :null,
// "ccdgrp.rec.ownref" :null,
// "ccdgrp.dro.adrelc" :null,
// "ccdgrp.col.adrelc" :null,
// "ccdgrp.blk.setins" :null,
// "ccdgrp.pre.pts.adrblk" :null,
// "setmod.docamt" :null,
// "ccdgrp.pre.pts.extkey" :null,
} }
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
size="small" size="small"
type="primary" type="primary"
@click="onSeainf"
> >
<i class="el-icon-info"></i> <i class="el-icon-info"></i>
</c-button> </c-button>
...@@ -25,8 +24,8 @@ ...@@ -25,8 +24,8 @@
style="margin: 0 0" style="margin: 0 0"
size="small" size="small"
type="primary" type="primary"
@click="onCctmodButgetref" @click="getCcdgrpOwnRef"
:disabled="model.ccdgrp.pre.pts.extkey !== ''" :disabled="model.ccdgrp.pre.pts.extkey == '' && model.ccdgrp.rec.ownref == ''"
> >
获取 获取
</c-button> </c-button>
...@@ -214,7 +213,6 @@ ...@@ -214,7 +213,6 @@
<c-button <c-button
size="small" size="small"
type="primary" type="primary"
@click="onSeainf"
> >
<i class="el-icon-info"></i> <i class="el-icon-info"></i>
</c-button> </c-button>
...@@ -230,7 +228,7 @@ ...@@ -230,7 +228,7 @@
v-model="model.ccdgrp.cor.pts.extkey" v-model="model.ccdgrp.cor.pts.extkey"
maxlength="16" maxlength="16"
@keyup.enter.native=" @keyup.enter.native="
showGridPromptDialog('ccdgrp.cor.pts.extkey') queryGridEtyPromptDialogData('COR', 'B')
" "
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
...@@ -238,7 +236,6 @@ ...@@ -238,7 +236,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
size="small" size="small"
type="primary" type="primary"
@click="onSeainf"
> >
<i class="el-icon-info"></i> <i class="el-icon-info"></i>
</c-button> </c-button>
...@@ -270,7 +267,7 @@ ...@@ -270,7 +267,7 @@
<c-col :span="24"> <c-col :span="24">
<el-form-item label="业务名称" prop="ccdgrp.rec.nam"> <el-form-item label="业务名称" prop="ccdgrp.rec.nam">
<c-input <c-input
v-model="model.ccdgrp.rec.nam" v-model="totalnam"
maxlength="40" maxlength="40"
placeholder="请输入业务名称" placeholder="请输入业务名称"
disabled disabled
...@@ -289,7 +286,7 @@ ...@@ -289,7 +286,7 @@
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-ptap <!-- <c-ptap
:model="model" :model="model"
:argadr="{ :argadr="{
title: '委托人', title: '委托人',
...@@ -298,9 +295,17 @@ ...@@ -298,9 +295,17 @@
}" }"
disabled disabled
> >
</c-ptap> -->
<c-ptap :model="model" :argadr="{
title: '委托人',
grp: 'ccdgrp',
rol: 'pre',
}" :isAdrblk="true" disabled
@keyup.enter.native="queryGridEtyPromptDialogData('PRE', 'C')">
</c-ptap> </c-ptap>
<c-ptap <!-- <c-ptap
:model="model" :model="model"
:argadr="{ :argadr="{
title: '付款人账户行', title: '付款人账户行',
...@@ -309,6 +314,14 @@ ...@@ -309,6 +314,14 @@
}" }"
:disabled="this.flag2" :disabled="this.flag2"
> >
</c-ptap> -->
<c-ptap :model="model" :argadr="{
title: '付款人账户行',
grp: 'ccdgrp',
rol: 'dro',
}" :isAdrblk="true" :disabled="this.flag2"
@keyup.enter.native="queryGridEtyPromptDialogData('DRO', 'B')">
</c-ptap> </c-ptap>
<c-col :span="24"> <c-col :span="24">
...@@ -330,7 +343,7 @@ ...@@ -330,7 +343,7 @@
maxlength="16" maxlength="16"
placeholder="请输入托收委托人编号" placeholder="请输入托收委托人编号"
@keyup.enter.native=" @keyup.enter.native="
showGridPromptDialog('ccdgrp.col.pts.extkey') queryGridEtyPromptDialogData('COL', 'B')
" "
:disabled="model.ccdgrp.rec.modset == '2'" :disabled="model.ccdgrp.rec.modset == '2'"
></c-input> ></c-input>
...@@ -339,7 +352,6 @@ ...@@ -339,7 +352,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
size="small" size="small"
type="primary" type="primary"
@click="onSeainf"
> >
<i class="el-icon-info"></i> <i class="el-icon-info"></i>
</c-button> </c-button>
...@@ -424,8 +436,17 @@ export default { ...@@ -424,8 +436,17 @@ export default {
} }
}, },
}, },
methods: { ...Event },
created: function () {}, created: function () {},
methods: { ...Event },
computed: {
totalnam(){
const cur = this.model.ccdgrp.cbs.max.cur + ' '
const amt = this.model.ccdgrp.cbs.max.amt + ' '
const preNam = this.model.ccdgrp.pre.pts.nam + ''
this.model.ccdgrp.rec.nam =(cur + amt + preNam).substring(0,40)
return this.model.ccdgrp.rec.nam
}
}
}; };
</script> </script>
<style> <style>
......
...@@ -44,7 +44,7 @@ export default { ...@@ -44,7 +44,7 @@ export default {
data() { data() {
return {}; return {};
}, },
methods: { ...Event }, // methods: { ...Event },
created: function () {}, created: function () {},
}; };
</script> </script>
......
...@@ -49,26 +49,18 @@ ...@@ -49,26 +49,18 @@
</el-form> </el-form>
<c-grid-ety-prompt-dialog <c-grid-ety-prompt-dialog
ref="etyDialog" ref="etyDialog"
:promptData="promptData" :promptData="promptData"
@select-ety="selectGridEtyPromptData" @select-ety="selectGridEtyPromptData"
> >
<!-- v-on:select-ety="selectEty" --> </c-grid-ety-prompt-dialog>
</c-grid-ety-prompt-dialog>
<!-- <c-grid-ety-prompt-dialog <c-function-btn
ref="doxpDialog" :handleSubmit="handleSubmit"
:isPty="false" :handleCheck="handleCheck"
:promptData="promptData" :handleStash="handleStash"
@select-ety="selectMsg" >
> </c-function-btn>
</c-grid-ety-prompt-dialog> -->
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
</c-function-btn>
</c-page> </c-page>
</div> </div>
</template> </template>
...@@ -85,7 +77,7 @@ import Coninfp from "~/components/business/coninfp/views"; ...@@ -85,7 +77,7 @@ import Coninfp from "~/components/business/coninfp/views";
import Docpan from "~/components/business/docpan/views"; import Docpan from "~/components/business/docpan/views";
import Engp from "~/components/business/engp/views"; import Engp from "~/components/business/engp/views";
import Glentry from "~/components/business/glentry/views"; import Glentry from "~/components/business/glentry/views";
import Doctre from "~/views/Public/Doctre" import Doctre from "~/views/Public/Doctre";
import operationFunc from "@/mixin/operationFunc"; import operationFunc from "@/mixin/operationFunc";
import event from "../event"; import event from "../event";
...@@ -106,7 +98,7 @@ export default { ...@@ -106,7 +98,7 @@ export default {
root: this, root: this,
}; };
}, },
mixins: [operationFunc, event], // 里面包含了Default、Check等的公共处理 mixins: [operationFunc, event], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
tabVal: "cctdav1", tabVal: "cctdav1",
...@@ -115,9 +107,50 @@ export default { ...@@ -115,9 +107,50 @@ export default {
model: new Cctdav().data, model: new Cctdav().data,
rules: formRules, rules: formRules,
codes: { ...CodeTable }, codes: { ...CodeTable },
promptData: {
title: 'Select a Party',
columns: [
{
prop: 'ptyInr',
label: 'Party Number'
},
{
prop: 'inr',
label: 'Address Number'
},
{
prop: 'branch',
label: 'Branch Code'
},
{
prop: 'bchName',
label: 'Branch Name'
},
{
prop: 'adrName',
label: 'Address Name'
},
{
prop: 'adr1',
label: 'Address1'
},
{
prop: 'locCty',
label: 'City'
},
{
prop: 'locZip',
label: 'Zip'
},
{
prop: 'bicCode',
label: 'BIC'
}
],
data: []
},
}; };
}, },
activeNames: ["engp"],
methods: { methods: {
// myTabClick(tab) { // myTabClick(tab) {
// this.tabClick(tab); // this.tabClick(tab);
......
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