Commit 0703a81b by wangren
parents 3eea60f2 eb2e04c6
...@@ -2666,7 +2666,23 @@ const CodeTable = { ...@@ -2666,7 +2666,23 @@ const CodeTable = {
{ label: "信用证单据承兑", value: "1" }, { label: "信用证单据承兑", value: "1" },
], ],
docsta: [ docsta: [
{ label: "label", value: "INST" }, { label: "Goods released, Adv. of Payment received", value: "A" },
{ label: "Goods released, Adv. of Payment + docs", value: "B" },
{ label: "Adv. of Payment received, wait for docs", value: "C" },
{ label: "Advice of Payment and documents received", value: "D" },
{ label: "Adv. of Discrep. received, wait for docs", value: "E" },
{ label: "Advice of Discrepancy and docs received", value: "F" },
{ label: "Documents received", value: "G" },
{ label: "Clean documents received", value: "H" },
{ label: "Discrepant documents received", value: "I" },
{ label: "Goods released, wait for documents", value: "J" },
{ label: "Goods released, documents received", value: "K" },
{ label: "Documents sent on approval basis", value: "L" },
{ label: "Documents taken up", value: "M" },
{ label: "Documents settled free of payment", value: "N" },
{ label: "Discrepant document received in trust", value: "T" },
{ label: "Other Type of Advice, wait for documents", value: "O" },
{ label: "Documents have been refused and returned", value: "R" },
], ],
doctyp: [ doctyp: [
{ label: "买方单据", value: "BDD" }, { label: "买方单据", value: "BDD" },
...@@ -3633,6 +3649,109 @@ const CodeTable = { ...@@ -3633,6 +3649,109 @@ const CodeTable = {
{ label: "Transaction", value: "TRN" }, { label: "Transaction", value: "TRN" },
{ label: "Database", value: "DBF" }, { label: "Database", value: "DBF" },
], ],
payrol:[
{label:"2nd Advising Bank",value:"A2B"},
{label:"2.Adv.Bk. Transfer",value:"A2T"},
{label:"Acc. with Bank (ACB)",value:"ACB"},
{label:"Accounting Bank",value:"ACC"},
{label:"Search Account for",value:"ACT"},
{label:"Acc. with Bank (AcW)",value:"ACW "},
{label:"Adv.Bank APL Side",value:"ADA"},
{label:"Addressee",value:"ADE"},
{label:"Adv.Bank Transfer",value:"ADT"},
{label:"Advising Bank",value:"ADV"},
{label:"Correspondent Bank",value:"AGB"},
{label:"Agent",value:"AGT"},
{label:"2nd Applicant",value:"AP2"},
{label:"3rd Applicant",value:"AP3"},
{label:"4th Applicant",value:"AP4"},
{label:"5th Applicant",value:"AP5"},
{label:"Applicant's Bank",value:"APB"},
{label:"Applicant",value:"APL"},
{label:"Account Party",value:"APY"},
{label:"2nd Adv. thr.Bank",value:"AT2"},
{label:"1st Adv. thr. Bank",value:"ATB"},
{label:"Available with Bank",value:"AVB"},
{label:"Avail. w.Bank Tr.",value:"AVT"},
{label:"Account with Inst.",value:"AWl"},
{label:"2nd Benef.'s Bank",value:"B2B"},
{label:"1st Beneficiary",value:"BE1"},
{label:"2nd Beneficiary",value:"BE2"},
{label:"Beneficiary's Bank",value:"BEB"},
{label:"Benef.'s lnstitution",value:"BEI"},
{label:"Beneficiary",value:"BEN"},
{label:"Buyer 1",value:"BU1"},
{label:"Buyer 2",value:"BU2"},
{label:"Buyer 3",value:"BU3"},
{label:"Buyer",value:"BUY"},
{label:"Carrier (CAR)",value:"CAR"},
{label:"Claiming Bank",value:"CLB"},
{label:"Our Client",value:"CLI"},
{label:"2nd Collecting Bank",value:"CO2"},
{label:"Collecting Bank",value:"COL"},
{label:"Confirming Bank",value:"CON"},
{label:"Correspondent",value:"COR"},
{label:"2nd Accountee",value:"CT2"},
{label:"3rd Accountee",value:"CT3"},
{label:"4th Accountee",value:"CT4"},
{label:"5th Accountee",value:"CT5"},
{label:"Accountee",value:"CTR"},
{label:"Delivery Group",value:"DEG"},
{label:"Drawee (DRE)",value:"DRE"},
{label:"Drawee Bank",value:"DRO"},
{label:"Drawer",value:"DRR"},
{label:"Drawee (DRW)",value:"DRW"},
{label:"Advanced Party",value:"FIA"},
{label:"Financed Party",value:"FIP"},
{label:"Account Held by",value:"HOL"},
{label:"Init. Inst.",value:"IIB"},
{label:"Initiating inst.",value:"INI"},
{label:"Insurance",value:"INS"},
{label:"Intermediary bank",value:"INT"},
{label:"Invoice Party",value:"INV"},
{label:"Issuing Bank",value:"ISS"},
{label:"Negotiation Bank",value:"NEG"},
{label:"Notily Party",value:"NOP"},
{label:"Old Account Party",value:"OAP"},
{label:"Old Buyer",value:"OBU"},
{label:"Old Invoice Party",value:"OIN"},
{label:"Ordering Customer",value:"ORC"},
{label:"Ordering Institution",value:"ORI"},
{label:"Futher Party",value:"OTH"},
{label:"Ourselves",value:"OWN"},
{label:"Presenter (PRP)",value:"PRB"},
{label:"Presenting Bnk",value:"PRE"},
{label:"Presenter (PRB)",value:"PRP"},
{label:"Paying Bank",value:"PYB"},
{label:"Payee",value:"PYE"},
{label:"Remboursement Bank 1",value:"RB1"},
{label:"Remboursement Bank 2",value:"RB2"},
{label:"Reimbursement Bank",value:"RMB"},
{label:"Remitting Bank",value:"RMI"},
{label:"Beneficiary (Paym.)",value:"RMS"},
{label:"Reimb. Bank Transfer",value:"RMT"},
{label:"Carrier (ROG)",value:"ROG"},
{label:"Payer / Payee",value:"ROL"},
{label:"Receiver of 2nd mail",value:"RSM"},
{label:"Seller",value:"SEL"},
{label:"Account Serviced by",value:"SER"},
{label:"Shipper",value:"SHR"},
{label:"Third Party",value:"TPO"},
{label:"1st Third Party .",value:"TP1"},
{label:"2nd Third Party",value:"TP2"},
{label:"3rd Third Party",value:"TP3"},
{label:"4th Third Party",value:"TP4"},
{label:"5th Third Party",value:"TP5"},
{label:"6th Third Party",value:"TP6"},
{label:"7th Third Party",value:"TP7"},
{label:"8th Third Party",value:"TP8"},
{label:"9th Third Party",value:"TP9"},
{label:"3rd Remb Institution",value:"TRI"},
{label:"Credit Party",value:"UMH"},
{label:"Debit Party",value:"UMS"},
],
lcrtyp: [ lcrtyp: [
{ label: "可转让", value: "IT" }, { label: "可转让", value: "IT" },
{ label: "不可转让", value: "I" }, { label: "不可转让", value: "I" },
...@@ -3935,6 +4054,13 @@ const CodeTable = { ...@@ -3935,6 +4054,13 @@ const CodeTable = {
{ label: "Pending Items Manager", value: "spttsk" }, { label: "Pending Items Manager", value: "spttsk" },
{ label: "Outgoing Workflow Manager", value: "mgrtsk" }, { label: "Outgoing Workflow Manager", value: "mgrtsk" },
], ],
docprbrol:[
{label:"2nd Advising Bank",value:"A2B"},
{label:"Advising Bank",value:"ADV"},
{label:"Beneficiary",value:"BEN"},
{label:"Presenter(PRP)",value:"PRB"},
],
mhtyp: [ mhtyp: [
{ label: "更换单据", value: "A" }, { label: "更换单据", value: "A" },
{ label: "二次到单", value: "R" }, { label: "二次到单", value: "R" },
...@@ -5893,6 +6019,14 @@ const CodeTable = { ...@@ -5893,6 +6019,14 @@ const CodeTable = {
{ label: "TD Metafile Viewer", value: "TMF" }, { label: "TD Metafile Viewer", value: "TMF" },
{ label: "Formatted Display", value: "SWT" }, { label: "Formatted Display", value: "SWT" },
], ],
docflg:[
{label:"Mixed Payment Documents",value:"M"},
{label:"Sight Documents",value:"P"},
{label:"Usance Documents(Acceptance)",value:"A"},
{label:"Usance Documents(Deferred)",value:"D"},
],
vouflg: [ vouflg: [
{ label: "申报", value: "1" }, { label: "申报", value: "1" },
{ label: "不申报", value: "2" }, { label: "不申报", value: "2" },
......
...@@ -26,6 +26,7 @@ export default { ...@@ -26,6 +26,7 @@ export default {
}, },
buttons: { buttons: {
save: "Save",
add: "Add", add: "Add",
delete: "Delete", delete: "Delete",
query: "Query", query: "Query",
......
...@@ -26,6 +26,7 @@ export default { ...@@ -26,6 +26,7 @@ export default {
}, },
buttons: { buttons: {
save: "保存",
add: "添加", add: "添加",
delete: "删除", delete: "删除",
query: "查询", query: "查询",
......
...@@ -103,7 +103,7 @@ export default { ...@@ -103,7 +103,7 @@ export default {
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
{ {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.updateModel(rtnmsg.data)
} }
else else
{ {
......
export default { export default {
"bfdgrp.blk.docdis":[ "bfdgrp.blk.docdis":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 50,message:"长度不能超过50"} {max: 50,message:"长度不能超过50"}
], ],
"bfdgrp.blk.intdis":[ "bfdgrp.blk.intdis":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 65,message:"长度不能超过65"} {max: 65,message:"长度不能超过65"}
], ],
...@@ -26,23 +26,23 @@ export default { ...@@ -26,23 +26,23 @@ export default {
], ],
"bfdgrp.oth.namelc":[ "bfdgrp.oth.namelc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bfdgrp.oth.pts.adrblk":[ "bfdgrp.oth.pts.adrblk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bfdgrp.oth.dbfadrblkcn":[ "bfdgrp.oth.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bfdgrp.oth.adrelc":[ "bfdgrp.oth.adrelc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bfdgrp.rec.expmno":[ "bfdgrp.rec.expmno":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 60,message:"长度不能超过60"} {max: 60,message:"长度不能超过60"}
], ],
"dedgrp.rec.kzref":[ "dedgrp.rec.kzref":[
...@@ -51,27 +51,22 @@ export default { ...@@ -51,27 +51,22 @@ export default {
], ],
"bfdgrp.rec.lescom":[ "bfdgrp.rec.lescom":[
{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位" }
], ],
"letprbl1blk":[ "letprbl1blk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 200,message:"长度不能超过200"} {max: 200,message:"长度不能超过200"}
], ],
"letissl1blk":[ "letissl1blk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 200,message:"长度不能超过200"} {max: 200,message:"长度不能超过200"}
], ],
"bfdgrp.cbs.max.cur":[ "bfdgrp.cbs.max.cur":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"bfdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"bfdgrp.cbs.max2.amt":[ "bfdgrp.cbs.max2.amt":[
{type: "number", required: false, message: "必输项"}, {type: "number", required: false, message: "必输项"},
...@@ -79,11 +74,11 @@ export default { ...@@ -79,11 +74,11 @@ export default {
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
"bfdgrp.blk.chaded":[ "bfdgrp.blk.chaded":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bfdgrp.blk.chaadd":[ "bfdgrp.blk.chaadd":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bfdgrp.rec.totcur":[ "bfdgrp.rec.totcur":[
...@@ -109,23 +104,23 @@ export default { ...@@ -109,23 +104,23 @@ export default {
], ],
"bfdgrp.acb.namelc":[ "bfdgrp.acb.namelc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bfdgrp.acb.pts.adrblk":[ "bfdgrp.acb.pts.adrblk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bfdgrp.acb.dbfadrblkcn":[ "bfdgrp.acb.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bfdgrp.acb.adrelc":[ "bfdgrp.acb.adrelc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bfdgrp.blk.nartxt77a":[ "bfdgrp.blk.nartxt77a":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bftp.rmbp.ptsget.sdamod.dadsnd":[ "bftp.rmbp.ptsget.sdamod.dadsnd":[
...@@ -142,19 +137,19 @@ export default { ...@@ -142,19 +137,19 @@ export default {
], ],
"bfdgrp.rmb.namelc":[ "bfdgrp.rmb.namelc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bfdgrp.rmb.pts.adrblk":[ "bfdgrp.rmb.pts.adrblk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bfdgrp.rmb.dbfadrblkcn":[ "bfdgrp.rmb.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bfdgrp.rmb.adrelc":[ "bfdgrp.rmb.adrelc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bftp.bebp.ptsget.sdamod.dadsnd":[ "bftp.bebp.ptsget.sdamod.dadsnd":[
...@@ -171,19 +166,19 @@ export default { ...@@ -171,19 +166,19 @@ export default {
], ],
"dedgrp.beb.namelc":[ "dedgrp.beb.namelc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.beb.pts.adrblk":[ "dedgrp.beb.pts.adrblk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.beb.dbfadrblkcn":[ "dedgrp.beb.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"dedgrp.beb.adrelc":[ "dedgrp.beb.adrelc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bfdgrp.rec.totdat":[ "bfdgrp.rec.totdat":[
...@@ -206,7 +201,7 @@ export default { ...@@ -206,7 +201,7 @@ export default {
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"dedgrp.cbs.opn1.amt":[ "dedgrp.cbs.opn1.amt":[
{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位" }
], ],
...@@ -292,7 +287,7 @@ export default { ...@@ -292,7 +287,7 @@ export default {
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"dedgrp.cbs.nom1.amt":[ "dedgrp.cbs.nom1.amt":[
{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位" }
], ],
...@@ -315,7 +310,7 @@ export default { ...@@ -315,7 +310,7 @@ export default {
{type: "date", required: false, message: "输入正确的日期"} {type: "date", required: false, message: "输入正确的日期"}
], ],
"dedgrp.rec.expplc":[ "dedgrp.rec.expplc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bfdgrp.prb.pts.nam":[ "bfdgrp.prb.pts.nam":[
...@@ -339,7 +334,7 @@ export default { ...@@ -339,7 +334,7 @@ export default {
{max: 3,message:"长度不能超过3"} {max: 3,message:"长度不能超过3"}
], ],
"bfdgrp.cbs.max.amt":[ "bfdgrp.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位" }
], ],
...@@ -362,7 +357,7 @@ export default { ...@@ -362,7 +357,7 @@ export default {
{type: "date", required: false, message: "输入正确的日期"} {type: "date", required: false, message: "输入正确的日期"}
], ],
"bfdgrp.prb.pts.jigomc":[ "bfdgrp.prb.pts.jigomc":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bfdgrp.rec.matdat":[ "bfdgrp.rec.matdat":[
...@@ -373,17 +368,14 @@ export default { ...@@ -373,17 +368,14 @@ export default {
], ],
"bfdgrp.prb.pts.dizhii":[ "bfdgrp.prb.pts.dizhii":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"bfdgrp.blk.matper":[ "bfdgrp.blk.matper":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 65,message:"长度不能超过65"} {max: 65,message:"长度不能超过65"}
], ],
"bfdgrp.rec.invtyp":[
{type: "string", required: true, message: "必输项"},
"dedgrp.rec.utlnbr":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
], ],
} }
\ No newline at end of file
...@@ -83,6 +83,7 @@ export default class Detdrv{ ...@@ -83,6 +83,7 @@ export default class Detdrv{
bftp:{ bftp:{
docgrdm:{ docgrdm:{
docdsclab:"", // Label of document description .bftp.docgrdm.docdsclab docdsclab:"", // Label of document description .bftp.docgrdm.docdsclab
docgrd:"",
}, },
folwupopt:"", // Processing Options .bftp.folwupopt folwupopt:"", // Processing Options .bftp.folwupopt
othp:{ othp:{
......
...@@ -4,6 +4,9 @@ import Utils from "~/utils" ...@@ -4,6 +4,9 @@ import Utils from "~/utils"
* Fctcan Check规则 * Fctcan Check规则
*/ */
let checkObj = { let checkObj = {
"fcdgrp.apl.pts.extkey" :null,
"fcdgrp.apl.pts.nam" :null,
"fcdgrp.rec.ownref" :null,
} }
for (const key in checkObj) { for (const key in checkObj) {
......
...@@ -6,5 +6,9 @@ import Api from "~/service/Api"; ...@@ -6,5 +6,9 @@ import Api from "~/service/Api";
import Utils from "~/utils/index" import Utils from "~/utils/index"
export default { export default {
"fcdgrp.apl.pts.extkey" :Utils.defaultFunction,
"gleflg" :Utils.defaultFunction,
"cshstm" :Utils.defaultFunction,
"fcdgrp.apl.pts.nam" :Utils.defaultFunction,
} }
//你可以添加自动default处理 //你可以添加自动default处理
...@@ -2,5 +2,17 @@ import Api from "~/service/Api" ...@@ -2,5 +2,17 @@ import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
export default { export default {
async onAplpDet(){
let rtnmsg = await this.executeRule("aplp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
} }
\ No newline at end of file
export default { export default {
"aplp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fcdgrp.apl.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"aplp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fcdgrp.apl.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"fcdgrp.apl.pta.nam1":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"fcdgrp.rec.ownref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fcdgrp.rec.reason":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"fcdgrp.rec.amt":[
{required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"fcdgrp.rec.extact":[
{type: "string", required: false, message: "必输项"},
{max: 8,message:"长度不能超过8"}
],
"fcdgrp.rec.engact":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"cshstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
} }
\ No newline at end of file
...@@ -4,6 +4,33 @@ import Pts from "../Common/Pts" ...@@ -4,6 +4,33 @@ import Pts from "../Common/Pts"
export default class Fctcan{ export default class Fctcan{
constructor () { constructor () {
this.data = { this.data = {
fcdgrp:{
apl:{
pts:new Pts().data,
pta:{
nam1:"", // Externally Visible Name of Address .fcdgrp.apl.pta.nam1
},
},
rec:{
ownref:"", // Our Reference .fcdgrp.rec.ownref
cur:"", // currency .fcdgrp.rec.cur
amt:"", // 保证金金额 .fcdgrp.rec.amt
reason:"", // collect reason .fcdgrp.rec.reason
extact:"", // Extend Account .fcdgrp.rec.extact
engact:"", // Engagement account .fcdgrp.rec.engact
},
},
aplp:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .aplp.ptsget.sdamod.dadsnd
seainf:"", // .aplp.ptsget.sdamod.seainf
},
},
},
gleflg:"", // 是否过�'� .gleflg
cshstm:"", // stream of csh .cshstm
errflg:"", // 已使用保证金 .errflg
pageId: "" // ctx的key pageId: "" // ctx的key
} }
} }
......
...@@ -4,6 +4,11 @@ import Utils from "~/utils" ...@@ -4,6 +4,11 @@ import Utils from "~/utils"
* Fctopn Check规则 * Fctopn Check规则
*/ */
let checkObj = { let checkObj = {
"fcdgrp.apl.pts.extkey" :null,
"fcdgrp.apl.pts.nam" :null,
"cashamt" :null,
"cashcur" :null,
"cashacc" :null,
} }
for (const key in checkObj) { for (const key in checkObj) {
......
...@@ -6,5 +6,13 @@ import Api from "~/service/Api"; ...@@ -6,5 +6,13 @@ import Api from "~/service/Api";
import Utils from "~/utils/index" import Utils from "~/utils/index"
export default { export default {
"fcdgrp.apl.pts.extkey" :Utils.defaultFunction,
"cashamt" :Utils.defaultFunction,
"trmtyp" :Utils.defaultFunction,
"cashcur" :Utils.defaultFunction,
"cashacc" :Utils.defaultFunction,
"cshstm" :Utils.defaultFunction,
"gleflg" :Utils.defaultFunction,
"fcdgrp.apl.pts.nam" :Utils.defaultFunction,
} }
//你可以添加自动default处理 //你可以添加自动default处理
...@@ -2,5 +2,29 @@ import Api from "~/service/Api" ...@@ -2,5 +2,29 @@ import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
export default { export default {
async onAplpDet(){
let rtnmsg = await this.executeRule("aplp.det")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
async onGet(){
let rtnmsg = await this.executeRule("get")
if(rtnmsg.respCode == SUCCESS)
{
//TODO 处理数据逻辑
}
else
{
this.$notify.error({title: '错误',message: '服务请求失败!'});
}
},
} }
\ No newline at end of file
export default { export default {
"aplp.ptsget.sdamod.dadsnd":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"fcdgrp.apl.pts.extkey":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
],
"aplp.ptsget.sdamod.seainf":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"fcdgrp.apl.pts.nam":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"fcdgrp.apl.pta.nam1":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"reason":[
{type: "string", required: false, message: "必输项"},
{max: 40,message:"长度不能超过40"}
],
"cashamt":[
{required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"cshstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
} }
\ No newline at end of file
...@@ -4,6 +4,29 @@ import Pts from "../Common/Pts" ...@@ -4,6 +4,29 @@ import Pts from "../Common/Pts"
export default class Fctopn{ export default class Fctopn{
constructor () { constructor () {
this.data = { this.data = {
fcdgrp:{
apl:{
pts:new Pts().data,
pta:{
nam1:"", // Externally Visible Name of Address .fcdgrp.apl.pta.nam1
},
},
},
aplp:{
ptsget:{
sdamod:{
dadsnd:"", // Drag Drop Sender .aplp.ptsget.sdamod.dadsnd
seainf:"", // .aplp.ptsget.sdamod.seainf
},
},
},
cashcur:"", // currency .cashcur
cashamt:"", // 金额 .cashamt
gleflg:"", // 是否过帐 .gleflg
cashacc:"", // account .cashacc
trmtyp:"", // 科目 .trmtyp
reason:"", // collect reason .reason
cshstm:"", // STREAM OF CSH .cshstm
pageId: "" // ctx的key pageId: "" // ctx的key
} }
} }
......
...@@ -42,6 +42,8 @@ ...@@ -42,6 +42,8 @@
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
</el-form> </el-form>
<c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty">
</c-grid-ety-prompt-dialog>
</div> </div>
</template> </template>
<script> <script>
...@@ -93,6 +95,7 @@ export default { ...@@ -93,6 +95,7 @@ export default {
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: { codes: {
...CodeTable
}, },
} }
}, },
......
...@@ -69,6 +69,8 @@ import Bctcan from "./Bctcan" ...@@ -69,6 +69,8 @@ import Bctcan from "./Bctcan"
import Inffee from "./Inffee" import Inffee from "./Inffee"
import Infbcd from "./Infbcd" import Infbcd from "./Infbcd"
import Bdtcan from "./Bdtcan" import Bdtcan from "./Bdtcan"
import Fctcan from "./Fctcan"
import Fctopn from "./Fctopn"
import Bttcan from "./Bttcan" import Bttcan from "./Bttcan"
import Bttacc from "./Bttacc" import Bttacc from "./Bttacc"
...@@ -252,6 +254,8 @@ const BusRouter = [ ...@@ -252,6 +254,8 @@ const BusRouter = [
{ path: 'detopn', component: Detopn, name: 'Detopn', meta: { title: '卖方信用证开立' } }, { path: 'detopn', component: Detopn, name: 'Detopn', meta: { title: '卖方信用证开立' } },
{ path: 'detame', component: Detame, name: 'Detame', meta: { title: '卖方信用证修改' } }, { path: 'detame', component: Detame, name: 'Detame', meta: { title: '卖方信用证修改' } },
{ path: 'detsel', component: Detsel, name: 'Detsel', meta: { title: '卖方信用证查询' } }, { path: 'detsel', component: Detsel, name: 'Detsel', meta: { title: '卖方信用证查询' } },
{ path: 'fctcan', component: Fctcan, name: 'Fctcan', meta: { title: '保证金注销' } },
{ path: 'fctopn', component: Fctopn, name: 'Fctopn', meta: { title: '保证金收取' } },
{ path: 'bftsnd', component: Bftsnd, name: 'Bftsnd', meta: { title: '卖方信用证寄单' } }, { path: 'bftsnd', component: Bftsnd, name: 'Bftsnd', meta: { title: '卖方信用证寄单' } },
......
...@@ -28,14 +28,20 @@ ...@@ -28,14 +28,20 @@
</el-tab-pane> </el-tab-pane>
<!--PD000139 --> <!--PD000139 -->
<el-tab-pane label="不符点通知" name="mt750p"> <!-- <el-tab-pane label="不符点通知" name="mt750p">
<m-mt750p :model="model" :codes="codes"/> <m-mt750p :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane> -->
<el-tab-pane label="或有" name="engp">
<c-content>
<m-engp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000147 --> <!--PD000147 -->
<el-tab-pane label="Advice of Payment" name="mt754p"> <!-- <el-tab-pane label="Advice of Payment" name="mt754p">
<m-mt754p :model="model" :codes="codes"/> <m-mt754p :model="model" :codes="codes"/>
</el-tab-pane> </el-tab-pane> -->
<el-tab-pane label="费用及账务" name="setpan"> <el-tab-pane label="费用及账务" name="setpan">
...@@ -45,24 +51,20 @@ ...@@ -45,24 +51,20 @@
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="分录" name="glepan"> <el-tab-pane label="附言" name="coninfp">
<m-glepan :model="model" :codes="codes" ref="glepan" /> <m-coninfp :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="表外" name="engp"> <!-- <el-tab-pane label="分录" name="glepan">
<!--PD000027 --> <m-glepan :model="model" :codes="codes" ref="glepan" />
<c-content>
<m-engp :model="model" :codes="codes" />
</c-content>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="保证金" name="ccvpan"> -->
<m-ccvpan :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane label="附言" name="coninfp"> <!-- <el-tab-pane label="保证金" name="ccvpan">
<m-coninfp :model="model" :codes="codes" /> <m-ccvpan :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane> -->
<!--PD000529 --> <!--PD000529 -->
<el-tab-pane label="面函" name="docpan"> <el-tab-pane label="面函" name="docpan">
<m-docpan :model="model" :codes="codes" ref="docpan" /> <m-docpan :model="model" :codes="codes" ref="docpan" />
...@@ -70,7 +72,7 @@ ...@@ -70,7 +72,7 @@
<!--PD000001 --> <!--PD000001 -->
<el-tab-pane label="授信额度" name="limitbody"> <el-tab-pane label="统一授信" name="limitbody">
<m-limitbody :model="model" :codes="codes" /> <m-limitbody :model="model" :codes="codes" />
</el-tab-pane> </el-tab-pane>
...@@ -83,6 +85,7 @@ import Api from "~/service/Api" ...@@ -83,6 +85,7 @@ import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Detdrv from "~/model/Detdrv" import Detdrv from "~/model/Detdrv"
import commonProcess from "~/mixin/commonProcess" import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Detdrv/Check" import Check from "~/model/Detdrv/Check"
import Default from "~/model/Detdrv/Default" import Default from "~/model/Detdrv/Default"
import Pattern from "~/model/Detdrv/Pattern" import Pattern from "~/model/Detdrv/Pattern"
...@@ -126,7 +129,7 @@ export default { ...@@ -126,7 +129,7 @@ export default {
root: this root: this
} }
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data(){ data(){
return { return {
tabVal: "drv", tabVal: "drv",
......
<template>
<div class="eibs-tab">
<c-col :span="24">
<c-col :span="12">
<c-fullbox>
<el-form-item label="申请人" prop="fcdgrp.apl.pts.extkey">
<c-input
v-model="model.fcdgrp.apl.pts.extkey"
maxlength="16"
placeholder="请输入申请人Extkey"
@keyup.enter.native="showGridPromptDialog('fcdgrp.apl.pts.extkey')"
></c-input>
</el-form-item>
<template slot="footer">
<c-button size="small" type="primary" @click="onAplpDet">
Details
</c-button>
</template>
</c-fullbox>
</c-col>
<c-col :span="12">
<el-form-item label="">
<c-checkbox v-model="model.errflg">已使用保证金</c-checkbox>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="" prop="fcdgrp.apl.pts.nam">
<c-input
v-model="model.fcdgrp.apl.pts.nam"
maxlength="40"
placeholder="请输入Name of Party"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="" prop="fcdgrp.apl.pta.nam1">
<c-input
v-model="model.fcdgrp.apl.pta.nam1"
maxlength="40"
placeholder="请输入Externally Visible Name of Address"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<el-form-item label="Our Reference" prop="fcdgrp.rec.ownref">
<c-input
v-model="model.fcdgrp.rec.ownref"
maxlength="16"
placeholder="请输入Our Reference"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="说明" prop="fcdgrp.rec.reason">
<c-input
v-model="model.fcdgrp.rec.reason"
maxlength="40"
placeholder="请输入collect reason"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<c-col :span="12">
<el-form-item label="保证金金额" prop="fcdgrp.rec.cur">
<c-select
v-model="model.fcdgrp.rec.cur"
style="width: 100%"
placeholder="请选择currency"
disabled
>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" label-width="20px" prop="fcdgrp.rec.amt">
<c-input
v-model="model.fcdgrp.rec.amt"
placeholder="请输入保证金金额"
disabled
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12">
<c-col :span="12">
<el-form-item label="保证金账户" prop="fcdgrp.rec.extact">
<c-input
v-model="model.fcdgrp.rec.extact"
maxlength="8"
placeholder="请输入Extend Account"
disabled
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-fullbox>
<el-form-item label="" label-width="20px" prop="fcdgrp.rec.engact">
<c-input
v-model="model.fcdgrp.rec.engact"
maxlength="16"
placeholder="请输入Engagement account"
disabled
></c-input>
</el-form-item>
<template slot="footer">
<el-form-item label="" label-width="0" prop="gleflg">
<c-checkbox v-model="model.gleflg" style="margin-left: 10px"
>是否过帐</c-checkbox
>
</el-form-item>
</template>
</c-fullbox>
</c-col>
</c-col>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="" prop="aplp.ptsget.sdamod.seainf">
<c-input
v-model="model.aplp.ptsget.sdamod.seainf"
placeholder="请输入"
></c-input>
</el-form-item>
</c-col> -->
<c-col :span="24">
<c-istream-table
:list="model.cshstm.rows || []"
:columns="columns"
v-on:chooseRowEvent="chooseRowEvent"
></c-istream-table>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Fctcan/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
columns: [
'0 1 "INR" 100',
'1 2 "Own Reference" 150',
'2 3 "收取日期" 120 4 7',
'3 4 "Cur" 56',
'4 5 "Relevant Amount" 150 2 8:1 2 5',
'5 6 "" auto',
'6 7 "保证金帐号" 120',
'7 8 "是否过帐" 120',
'8 9 "是否到帐" 120',
'9 10 "是否被用" 120',
'10 11 "说明 " 200',
'11 12 "被用在交易" 120',
"P COLORED TRUE",
"P VERTLINES TRUE",
"P HORZLINES TRUE",
"P MULTISELECT FLASE",
],
};
},
methods: {
...Event,
async chooseRowEvent(row) {
const selIds = [row.IDX + 1]; //rowno选中行
const selDst = "cshstm" //列表对应后台模型中的stream
let params = { selDst: selDst, selIds: selIds };
let rtnmsg = await this.executeRule("cshstm", params)
if(rtnmsg.respCode == SUCCESS) {
this.updateModel(rtnmsg.data)
}
}
},
created: function () {},
};
</script>
<style>
</style>
<template> <template>
<div class="eContainer"> <c-page title="保证金注销">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="200px" size="small" :validate-on-rule-change="false"> <div class="eContainer">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> <div class="bus-button">
</c-tabs> <c-button type="primary" v-on:click="handleSave">{{ $t("buttons.save") }}</c-button>
</el-form> <c-button type="primary" v-on:click="handleCheck">{{ $t("buttons.check") }}</c-button>
</div> </div>
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--PD000001 -->
<el-tab-pane label="PD000001" name="opnp1">
<c-content>
<m-opnp1 :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
</c-tabs>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
v-on:select-ety="selectEty"
>
</c-grid-ety-prompt-dialog>
</el-form>
</div>
</c-page>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Fctcan from "~/model/Fctcan" import Fctcan from "~/model/Fctcan"
import commonProcess from "~/mixin/commonProcess" import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs"
import Check from "~/model/Fctcan/Check" import Check from "~/model/Fctcan/Check"
import Default from "~/model/Fctcan/Default" import Default from "~/model/Fctcan/Default"
import Pattern from "~/model/Fctcan/Pattern" import Pattern from "~/model/Fctcan/Pattern"
import Opnp1 from "./Opnp1"
export default { export default {
name: "Fctcan",
components:{ components:{
"m-opnp1" : Opnp1,
}, },
provide() { provide() {
return { return {
root: this root: this
} }
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data(){ data(){
return { return {
tabVal: "", tabVal: "opnp1",
trnName: "fctcan", trnName: "fctcan",
model: new Fctcan().data, model: new Fctcan().data,
checkRules: Check, checkRules: Check,
...@@ -39,7 +62,38 @@ export default { ...@@ -39,7 +62,38 @@ export default {
} }
}, },
methods:{ methods:{
tabClick(){ myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
},
async handleSave() {
let result = await this.save();
if (result.respCode == SUCCESS && Object.keys(result.fieldErrors).length == 0) {
this.$notify({
title: "成功",
message: "保存成功",
type: "success",
});
} else if(result.fieldErrors && Object.keys(result.fieldErrors).length > 0 ){
const tab = this.showBackendErrors(result.fieldErrors)
if (tab) {
// tab切换之后,需出发tab-click的事件
this.tabClick(tab);
}
this.$notify({
title: "错误",
message: "检核失败!",
type: "error",
});
} else{
this.$notify({
title: "失败",
message: "保存失败",
type: "error",
});
}
} }
}, },
created:async function(){ created:async function(){
...@@ -47,6 +101,7 @@ export default { ...@@ -47,6 +101,7 @@ export default {
let rtnmsg = await this.init({}) let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
{ {
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑 //TODO 处理数据逻辑
} }
......
<template>
<div class="eibs-tab">
<c-col :span="24">
<c-col :span="12">
<c-col :span="24">
<c-fullbox>
<el-form-item label="申请人" prop="fcdgrp.apl.pts.extkey">
<c-input
v-model="model.fcdgrp.apl.pts.extkey"
maxlength="16"
placeholder="请输入申请人Extkey"
@keyup.enter.native="
showGridPromptDialog('fcdgrp.apl.pts.extkey')
"
></c-input>
</el-form-item>
<template slot="footer">
<c-button size="small" type="primary" @click="onAplpDet">
Details
</c-button>
</template>
</c-fullbox>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="fcdgrp.apl.pts.nam">
<c-input
v-model="model.fcdgrp.apl.pts.nam"
maxlength="40"
placeholder="请输入Name of Party"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="" prop="fcdgrp.apl.pta.nam1">
<c-input
v-model="model.fcdgrp.apl.pta.nam1"
maxlength="40"
placeholder="请输入Externally Visible Name of Address"
></c-input>
</el-form-item>
</c-col>
</c-col>
</c-col>
<!-- <c-col :span="12">
<el-form-item label="" prop="aplp.ptsget.sdamod.seainf">
<c-input v-model="model.aplp.ptsget.sdamod.seainf" placeholder="请输入"></c-input>
</el-form-item>
</c-col> -->
<c-col :span="24">
<c-col :span="12">
<c-col :span="14">
<el-form-item label="保证金账号" prop="cashacc">
<!-- <c-select
v-model="model.cashacc"
style="width: 100%"
placeholder="请选择account"
>
</c-select> -->
<c-input
v-model="model.cashacc"
placeholder="请选择account"
></c-input>
</el-form-item>
</c-col>
<c-col :span="10">
<el-form-item label="科目" label-width="60px" prop="trmtyp">
<c-select
v-model="model.trmtyp"
style="width: 100%"
placeholder="请选择科目"
>
<el-option v-for="k in codes.trmtyp" :label="k" :value="k.split('\t')[0]" :key="k"></el-option>
</c-select>
</el-form-item>
</c-col>
</c-col>
<c-col :span="12">
<el-form-item label="说明" prop="reason">
<c-input
v-model="model.reason"
maxlength="40"
placeholder="请输入collect reason"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="12">
<c-fullbox>
<c-col :span="12">
<el-form-item label="金额" prop="cashcur">
<c-select
v-model="model.cashcur"
style="width: 100%"
placeholder="请选择currency"
>
<el-option v-for="k in codes.cashcur" :label="k" :value="k" :key="k"></el-option>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="" label-width="20px" prop="cashamt">
<c-input
v-model="model.cashamt"
placeholder="请输入金额"
></c-input>
</el-form-item>
</c-col>
<template slot="footer">
<c-button size="small" type="primary" @click="onGet" disabled>
Get
</c-button>
</template>
</c-fullbox>
</c-col>
<c-col :span="12">
<el-form-item label="" prop="gleflg">
<c-checkbox v-model="model.gleflg">是否过帐</c-checkbox>
</el-form-item>
</c-col>
</c-col>
<c-col :span="24">
<c-istream-table
:list="model.cshstm.rows || []"
:columns="columns"
></c-istream-table>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Fctopn/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {
columns: [
"0 1 \"INR\" 100",
"1 2 \"Own Reference\" 150",
"2 3 \"收取日期\" auto 4 7",
"3 4 \"Cur\" 100",
"4 5 \"Relevant Amount\" 150 2 8:1 2 5",
"5 6 \"机构号\" 120",
"6 7 \"保证金帐号\" 120",
"7 8 \"是否过帐\" 120 1 0 1 FCD:GLEFLG",
"8 9 \"是否到帐\" 120 1 0 1 FCD:RELFLG",
"9 10 \"是否被用\" 120 1 0 1 FCD:USEFLG",
"10 11 \"说明 \" 200",
"P COLORED TRUE",
"P VERTLINES TRUE",
"P HORZLINES TRUE",
"P MULTISELECT FALSE"
],
};
},
methods: { ...Event },
created: function () {},
};
</script>
<style>
</style>
<template> <template>
<div class="eContainer"> <c-page title="保证金收取">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="200px" size="small" :validate-on-rule-change="false"> <div class="eContainer">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick"> <div class="bus-button">
</c-tabs> <c-button type="primary" v-on:click="handleSave">{{ $t("buttons.save") }}</c-button>
</el-form> <c-button type="primary" v-on:click="handleCheck">{{ $t("buttons.check") }}</c-button>
</div> </div>
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small" :validate-on-rule-change="false">
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--PD000002 -->
<el-tab-pane label="PD000002" name="opnp1">
<c-content>
<m-opnp1 :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
</c-tabs>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
v-on:select-ety="selectEty"
>
</c-grid-ety-prompt-dialog>
</el-form>
</div>
</c-page>
</template> </template>
<script> <script>
import Api from "~/service/Api" import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Fctopn from "~/model/Fctopn" import Fctopn from "~/model/Fctopn"
import commonProcess from "~/mixin/commonProcess" import commonProcess from "~/mixin/commonProcess"
import commonFuncs from "~/mixin/commonFuncs"
import Check from "~/model/Fctopn/Check" import Check from "~/model/Fctopn/Check"
import Default from "~/model/Fctopn/Default" import Default from "~/model/Fctopn/Default"
import Pattern from "~/model/Fctopn/Pattern" import Pattern from "~/model/Fctopn/Pattern"
import Opnp1 from "./Opnp1"
export default { export default {
name: "Fctopn",
components:{ components:{
"m-opnp1" : Opnp1,
}, },
provide() { provide() {
return { return {
root: this root: this
} }
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data(){ data(){
return { return {
tabVal: "", tabVal: "opnp1",
trnName: "fctopn", trnName: "fctopn",
model: new Fctopn().data, model: new Fctopn().data,
checkRules: Check, checkRules: Check,
...@@ -35,11 +58,44 @@ export default { ...@@ -35,11 +58,44 @@ export default {
pattern: Pattern, pattern: Pattern,
rules: null, rules: null,
codes: { codes: {
cashcur: [],
trmtyp: []
}, },
} }
}, },
methods:{ methods:{
tabClick(){ myTabClick(tab){
this.tabClick(tab)
/**
* do it yourself
**/
},
async handleSave() {
let result = await this.save();
if (result.respCode == SUCCESS && Object.keys(result.fieldErrors).length == 0) {
this.$notify({
title: "成功",
message: "保存成功",
type: "success",
});
} else if(result.fieldErrors && Object.keys(result.fieldErrors).length > 0 ){
const tab = this.showBackendErrors(result.fieldErrors)
if (tab) {
// tab切换之后,需出发tab-click的事件
this.tabClick(tab);
}
this.$notify({
title: "错误",
message: "检核失败!",
type: "error",
});
} else{
this.$notify({
title: "失败",
message: "保存失败",
type: "error",
});
}
} }
}, },
created:async function(){ created:async function(){
...@@ -47,8 +103,10 @@ export default { ...@@ -47,8 +103,10 @@ export default {
let rtnmsg = await this.init({}) let rtnmsg = await this.init({})
if(rtnmsg.respCode == SUCCESS) if(rtnmsg.respCode == SUCCESS)
{ {
this.updateModel(rtnmsg.data)
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.codes.cashcur = rtnmsg.codeSet.cashcur
this.codes.trmtyp = rtnmsg.codeSet.trmtyp
} }
else else
{ {
......
<template> <template>
<div class="eibs-tab"> <div>
<c-col :span="20"> <c-col :span="20">
<el-form-item <el-form-item
:label="`${argadr.title}`" :label="`${argadr.title}`"
......
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