Commit c352671a by liaoxing

cctdav修改

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