Commit 5a4287dc by 潘际乾

init初始化

parent effd3d01
...@@ -55,7 +55,7 @@ export default { ...@@ -55,7 +55,7 @@ export default {
"lidgrp.cbs.nom1.amt":[ "lidgrp.cbs.nom1.amt":[
{type: "number", required: false, message: "必输项"}, {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位" }
], ],
...@@ -101,10 +101,10 @@ export default { ...@@ -101,10 +101,10 @@ export default {
], ],
"lidgrp.rec.opndat":[ "lidgrp.rec.opndat":[
{type: "date", required: false, message: "输入正确的日期"} {required: false, message: "输入正确的日期"}
], ],
"lidgrp.rec.expdat":[ "lidgrp.rec.expdat":[
{type: "date", required: false, message: "输入正确的日期"} {required: false, message: "输入正确的日期"}
], ],
"lidgrp.adv.pts.adrblk":[ "lidgrp.adv.pts.adrblk":[
{type: "string", required: true, message: "必输项"}, {type: "string", required: true, message: "必输项"},
...@@ -115,7 +115,7 @@ export default { ...@@ -115,7 +115,7 @@ export default {
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"lidgrp.rec.shpdat":[ "lidgrp.rec.shpdat":[
{type: "date", required: false, message: "输入正确的日期"} {required: false, message: "输入正确的日期"}
], ],
...@@ -178,7 +178,7 @@ export default { ...@@ -178,7 +178,7 @@ export default {
{max: 2,message:"长度不能超过2"} {max: 2,message:"长度不能超过2"}
], ],
"lidgrp.rec.revdat":[ "lidgrp.rec.revdat":[
{type: "date", required: false, message: "输入正确的日期"} {required: false, message: "输入正确的日期"}
], ],
...@@ -252,7 +252,7 @@ export default { ...@@ -252,7 +252,7 @@ export default {
], ],
"lidgrp.rec.autdat":[ "lidgrp.rec.autdat":[
{type: "date", required: false, message: "输入正确的日期"} {required: false, message: "输入正确的日期"}
], ],
"lidgrp.blk.preper":[ "lidgrp.blk.preper":[
...@@ -430,7 +430,7 @@ export default { ...@@ -430,7 +430,7 @@ export default {
], ],
"mtabut.coninf.conexedat":[ "mtabut.coninf.conexedat":[
{type: "date", required: false, message: "输入正确的日期"} {required: false, message: "输入正确的日期"}
], ],
"liaall.liaccv.concur":[ "liaall.liaccv.concur":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
......
...@@ -9,6 +9,7 @@ export default class Ditopn{ ...@@ -9,6 +9,7 @@ export default class Ditopn{
ownref:"", // 参考号 .lidgrp.rec.ownref ownref:"", // 参考号 .lidgrp.rec.ownref
lcrtyp:"", // 信用证类型 .lidgrp.rec.lcrtyp lcrtyp:"", // 信用证类型 .lidgrp.rec.lcrtyp
opndat:"", // 开证日期 .lidgrp.rec.opndat opndat:"", // 开证日期 .lidgrp.rec.opndat
expdat: "", // 有效日期
shpdat:"", // 最迟装运日期/最迟服务提供日 .lidgrp.rec.shpdat shpdat:"", // 最迟装运日期/最迟服务提供日 .lidgrp.rec.shpdat
expdat:"", // Date of Expiry .lidgrp.rec.expdat expdat:"", // Date of Expiry .lidgrp.rec.expdat
expplc:"", // 有效地点 .lidgrp.rec.expplc expplc:"", // 有效地点 .lidgrp.rec.expplc
......
...@@ -199,6 +199,7 @@ ...@@ -199,6 +199,7 @@
<c-date-picker <c-date-picker
type="date" type="date"
v-model="model.lidgrp.rec.opndat" v-model="model.lidgrp.rec.opndat"
value-format="yyyy-MM-dd"
style="width: 100%" style="width: 100%"
placeholder="请选择Date L/C Opened/Issued" placeholder="请选择Date L/C Opened/Issued"
></c-date-picker> ></c-date-picker>
...@@ -443,16 +444,18 @@ ...@@ -443,16 +444,18 @@
</c-button> </c-button>
</el-form-item> </el-form-item>
</c-col> </c-col>
<el-form-item label=""> <c-col>
<c-input <el-form-item label="">
type="textarea" <c-input
v-model="model.lidgrp.ben.pts.adrblk" type="textarea"
maxlength="35" v-model="model.lidgrp.ben.pts.adrblk"
:rows="5" maxlength="35"
show-word-limit :rows="5"
placeholder="请输入Address Block" show-word-limit
></c-input> placeholder="请输入Address Block"
</el-form-item> ></c-input>
</el-form-item>
</c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="受益人帐号" prop="lidgrp.ben.pts.extact"> <el-form-item label="受益人帐号" prop="lidgrp.ben.pts.extact">
<c-input <c-input
...@@ -462,7 +465,6 @@ ...@@ -462,7 +465,6 @@
></c-input> ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="受益人开户行" prop="lidgrp.ben.pts.issbchinf"> <el-form-item label="受益人开户行" prop="lidgrp.ben.pts.issbchinf">
<c-input <c-input
......
<template> <template>
<div class="eContainer"> <div class="eContainer">
<el-form :model="model" :rules="rules" ref="modelForm" label-width="200px" size="small"> <el-form :model="model" :rules="rules" ref="modelForm" label-width="200px" size="small" :validate-on-rule-change="false">
<c-tabs v-model="activeName" ref="elment" type="card" @tab-click="tabClick" > <c-tabs v-model="activeName" ref="elment" type="card" @tab-click="tabClick" >
<!--PD000001 --> <!--PD000001 -->
...@@ -97,15 +97,20 @@ ...@@ -97,15 +97,20 @@
<m-ccvpan :model="model" :codes="codes"/> <m-ccvpan :model="model" :codes="codes"/>
</el-tab-pane> --> </el-tab-pane> -->
</c-tabs> </c-tabs>
<c-bus-button :$pntvm="this"></c-bus-button>
</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>
import Api from "~/service/Api" import Api from "~/service/Api"
import Utils from "~/utils/index"
import CodeTable from "~/config/CodeTable" import CodeTable from "~/config/CodeTable"
import Ditopn from "~/model/Ditopn" import Ditopn from "~/model/Ditopn"
import CommonProcess from "~/mixin/CommonProcess" import CommonProcess from "~/mixin/CommonProcess"
import Pattern from "~/model/Ditopn/Pattern" import Pattern from "~/model/Ditopn/Pattern"
import Default from "~/model/Ditopn/Default";
import Check from "~/model/Ditopn/Check";
import Ovwp from "./Ovwp" import Ovwp from "./Ovwp"
import Revp from "./Revp" import Revp from "./Revp"
import Tk from "./Tk" import Tk from "./Tk"
...@@ -152,10 +157,12 @@ export default { ...@@ -152,10 +157,12 @@ export default {
data(){ data(){
return { return {
activeName: "ovwp", activeName: "ovwp",
trnName:"ditopn",
model:new Ditopn().data, model:new Ditopn().data,
// defaultRule:Default, checkRules: Check,
// rules:this.mergeRules(Pattern,Check), defaultRules: Default,
rules:Pattern, pattern: Pattern,
rules:null,
codes:{ codes:{
}, },
} }
...@@ -167,10 +174,10 @@ export default { ...@@ -167,10 +174,10 @@ export default {
created:async function(){ created:async function(){
console.log("进入ditopn交易"); console.log("进入ditopn交易");
let rtnmsg = await Api.post("ditopn/init",{params:{}}) let rtnmsg = await Api.post("ditopn/init",{params:{}})
if(rtnmsg.retcod == SUCCESS) if(rtnmsg.respCode == SUCCESS)
{ {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
Utils.copyValueFromVO(this.model,rtnmsg.data)
} }
else else
{ {
......
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