Commit a84733ac by 潘际乾

trtopn的初始化、pattern

parent 2fc96aed
...@@ -7,15 +7,15 @@ import Utils from "~/utils/index" ...@@ -7,15 +7,15 @@ import Utils from "~/utils/index"
export default { export default {
"trdgrp.fip.pts.extkey" :Utils.defaultFunction, "trdgrp.fip.pts.extkey" :Utils.defaultFunction,
"trtmod.finmod.accbch":defaultTrtmodFinmodAccbch, "trtmod.finmod.accbch":Utils.defaultFunction,
"trtmod.finmod.dinjdm" :Utils.defaultFunction, "trtmod.finmod.dinjdm" :Utils.defaultFunction,
"trdgrp.cbs.max.amt" :Utils.defaultFunction, "trdgrp.cbs.max.amt" :Utils.defaultFunction,
"trdgrp.rec.fintyp" :Utils.defaultFunction, "trdgrp.rec.fintyp" :Utils.defaultFunction,
"trdgrp.cbs.max.cur" :Utils.defaultFunction, "trdgrp.cbs.max.cur" :Utils.defaultFunction,
"trtmod.finmod.act1":defaultTrtmodFinmodAct1, "trtmod.finmod.act1":Utils.defaultFunction,
"trdgrp.rec.pntref" :Utils.defaultFunction, "trdgrp.rec.pntref" :Utils.defaultFunction,
"trtmod.finmod.acttyp" :Utils.defaultFunction, "trtmod.finmod.acttyp" :Utils.defaultFunction,
"trtmod.finmod.act3":defaultTrtmodFinmodAct3, "trtmod.finmod.act3":Utils.defaultFunction,
"trtmod.finmod.inttyp" :Utils.defaultFunction, "trtmod.finmod.inttyp" :Utils.defaultFunction,
"setmod.doccur" :Utils.defaultFunction, "setmod.doccur" :Utils.defaultFunction,
"setmod.dspflg" :Utils.defaultFunction, "setmod.dspflg" :Utils.defaultFunction,
...@@ -52,7 +52,7 @@ export default { ...@@ -52,7 +52,7 @@ export default {
"trdgrp.rec.reccountrycode" :Utils.defaultFunction, "trdgrp.rec.reccountrycode" :Utils.defaultFunction,
"ledgrp.apl.pts.nam" :Utils.defaultFunction, "ledgrp.apl.pts.nam" :Utils.defaultFunction,
"trtmod.finmod.intdat" :Utils.defaultFunction, "trtmod.finmod.intdat" :Utils.defaultFunction,
"trtp.act" :defaultTrtpAct, "trtp.act" :Utils.defaultFunction,
"trtmod.finmod.flttyp" :Utils.defaultFunction, "trtmod.finmod.flttyp" :Utils.defaultFunction,
"trtmod.finmod.dinmod.jzllgz" :Utils.defaultFunction, "trtmod.finmod.dinmod.jzllgz" :Utils.defaultFunction,
} }
......
...@@ -65,7 +65,7 @@ export default { ...@@ -65,7 +65,7 @@ export default {
{max: 40,message:"长度不能超过40"} {max: 40,message:"长度不能超过40"}
], ],
"trdgrp.fip.pts.ref":[ "trdgrp.fip.pts.ref":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"trtp.usr.extkey":[ "trtp.usr.extkey":[
...@@ -81,7 +81,7 @@ export default { ...@@ -81,7 +81,7 @@ export default {
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"trdgrp.fip.pts.extkey":[ "trdgrp.fip.pts.extkey":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 16,message:"长度不能超过16"} {max: 16,message:"长度不能超过16"}
], ],
"trtp.fipp.ptsget.sdamod.seainf":[ "trtp.fipp.ptsget.sdamod.seainf":[
...@@ -114,7 +114,7 @@ export default { ...@@ -114,7 +114,7 @@ export default {
"trdgrp.cbs.max.amt":[ "trdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"}, {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位" }
], ],
...@@ -139,10 +139,10 @@ export default { ...@@ -139,10 +139,10 @@ export default {
{max: 4,message:"长度不能超过4"} {max: 4,message:"长度不能超过4"}
], ],
"trdgrp.rec.matdat":[ "trdgrp.rec.matdat":[
{type: "date", required: false, message: "输入正确的日期"} {type: "date", required: true, message: "输入正确的日期"}
], ],
"trdgrp.rec.tenday":[ "trdgrp.rec.tenday":[
{type: "string", required: false, message: "必输项"}, {required: false, message: "必输项"},
{max: 10,message:"长度不能超过10"} {max: 10,message:"长度不能超过10"}
], ],
"trtmod.finmod.graday":[ "trtmod.finmod.graday":[
...@@ -166,11 +166,11 @@ export default { ...@@ -166,11 +166,11 @@ export default {
"trtmod.finmod.ovdintrat":[ "trtmod.finmod.ovdintrat":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 8,message:"长度不能超过8"} {max: 8,message:"长度不能超过8"}
], ],
"trdgrp.rec.actrat":[ "trdgrp.rec.actrat":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 12,message:"长度不能超过12"} {max: 12,message:"长度不能超过12"}
], ],
...@@ -203,12 +203,16 @@ export default { ...@@ -203,12 +203,16 @@ export default {
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"trtmod.finmod.dinjdm":[ "trtmod.finmod.dinjdm":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 20,message:"长度不能超过20"} {max: 20,message:"长度不能超过20"}
], ],
"trdgrp.rec.mycontno":[ "trdgrp.rec.mycontno":[
{type: "string", required: false, message: "必输项"}, {type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"trdgrp.rec.invtyp":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
...@@ -523,4 +527,16 @@ export default { ...@@ -523,4 +527,16 @@ export default {
{type: "string", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 26,message:"长度不能超过26"} {max: 26,message:"长度不能超过26"}
], ],
"trdgrp.cbs.max.cur": [
{type: "string", required: true, message: "必选项"}
],
"trtmod.finmod.flttyp": [
{type: "string", required: true, message: "必选项"}
],
"cfatrt.cfaflg": [
{type: "string", required: true, message: "必选项"}
],
"trdgrp.rec.stagod": [
{type: "string", required: true, message: "必选项"}
]
} }
\ No newline at end of file
import Api from "~/service/Api" import Api from "~/service/Api"
import Pts from "../Common/Pts" import Pts from "../Common/Pts"
import Trnmod from "../Public/Trnmod"
import Setmod from "../Public/Setmod"
export default class Trtopn{ export default class Trtopn{
constructor () { constructor () {
...@@ -239,29 +241,8 @@ export default class Trtopn{ ...@@ -239,29 +241,8 @@ export default class Trtopn{
rzkx5:"", // 融资款项 .financ.rzkx5 rzkx5:"", // 融资款项 .financ.rzkx5
ref5:"", // 业务编号 .financ.ref5 ref5:"", // 业务编号 .financ.ref5
}, },
setmod:{ setmod:new Setmod().data,
docamttyplab:"", // settled amount description as label .setmod.docamttyplab trnmod:new Trnmod().data,
retmsg:"", // Label showing Retry overflow condition .setmod.retmsg
ref:"", // our reference .setmod.ref
doccur:"", // document currency .setmod.doccur
docamt:"", // document amount .setmod.docamt
dspflg:"", // Type of settlement .setmod.dspflg
xreflg:"", // Recalculate Rates .setmod.xreflg
setglg:{
labdspflg:"", // Label for Type of Settlement .setmod.setglg.labdspflg
},
zmqacclab:"", // 主�'�号LABEL .setmod.zmqacclab
zmqacc:"", // 自�'�区主�'�号 .setmod.zmqacc
},
trnmod:{
trndoc:{
advlabel:"", // ADVLABEL .trnmod.trndoc.advlabel
amdnam:"", // AMDNAM .trnmod.trndoc.amdnam
advdoc:"", // 国内证通知书 .trnmod.trndoc.advdoc
advnam:"", // 国内证落款 .trnmod.trndoc.advnam
amdapl:"", // 修改申请人名称 .trnmod.trndoc.amdapl
},
},
pageId: "" // ctx的key pageId: "" // ctx的key
} }
} }
......
...@@ -54,7 +54,9 @@ import Litdav from "./Litdav" ...@@ -54,7 +54,9 @@ import Litdav from "./Litdav"
import Litdck from "./Litdck" import Litdck from "./Litdck"
import Inflid from "./Inflid" import Inflid from "./Inflid"
import Inftrd from "./Inftrd" import Inftrd from "./Inftrd"
import Trtopn from "./Trtopn"
import Trtame from "./Trtame" import Trtame from "./Trtame"
import Trtsel from "./Trtsel"
import Lttcan from "./Lttcan" import Lttcan from "./Lttcan"
// import Infdet from "./Infdet" // import Infdet from "./Infdet"
import Botdav from "./Botdav" import Botdav from "./Botdav"
...@@ -234,7 +236,9 @@ const BusRouter = [ ...@@ -234,7 +236,9 @@ const BusRouter = [
{ path: 'litdck', component: Litdck, name: 'Litdck', meta: { title: '进口信用证到单' } }, { path: 'litdck', component: Litdck, name: 'Litdck', meta: { title: '进口信用证到单' } },
{ path: 'inflid', component: Inflid, name: 'Inflid', meta: { title: '进口信用证查询' } }, { path: 'inflid', component: Inflid, name: 'Inflid', meta: { title: '进口信用证查询' } },
{ path: 'inftrd', component: Inftrd, name: 'Inftrd', meta: { title: '进口押汇查询' } }, { path: 'inftrd', component: Inftrd, name: 'Inftrd', meta: { title: '进口押汇查询' } },
{ path: 'trtopn', component: Trtopn, name: 'Trtopn', meta: { title: '进口融资开立' } },
{ path: 'trtame', component: Trtame, name: 'Trtame', meta: { title: '进口融资修改' } }, { path: 'trtame', component: Trtame, name: 'Trtame', meta: { title: '进口融资修改' } },
{ path: 'trtsel', component: Trtsel, name: 'Trtsel', meta: { title: '进口融资入口交易' } },
{ path: 'brtdck', component: Brtdck, name: 'Brtdck', meta: { title: '进口信用证单据改单/二次到单' } }, { path: 'brtdck', component: Brtdck, name: 'Brtdck', meta: { title: '进口信用证单据改单/二次到单' } },
{ path: 'inftxm', component: Inftxm, name: 'Inftxm', meta: { title: '条式语句查询' } }, { path: 'inftxm', component: Inftxm, name: 'Inftxm', meta: { title: '条式语句查询' } },
......
...@@ -427,7 +427,9 @@ ...@@ -427,7 +427,9 @@
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data() { data() {
return {}; return {
flag: false
};
}, },
methods: { ...Event }, methods: { ...Event },
created: function() {} created: function() {}
......
...@@ -73,6 +73,13 @@ ...@@ -73,6 +73,13 @@
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
</c-tabs> </c-tabs>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
v-on:select-ety="selectEty"
>
</c-grid-ety-prompt-dialog>
</el-form> </el-form>
</div> </div>
</c-page> </c-page>
...@@ -83,6 +90,7 @@ ...@@ -83,6 +90,7 @@
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Trtopn from "~/model/Trtopn"; import Trtopn from "~/model/Trtopn";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import commonFuncs from "~/mixin/commonFuncs";
import Check from "~/model/Trtopn/Check"; import Check from "~/model/Trtopn/Check";
import Default from "~/model/Trtopn/Default"; import Default from "~/model/Trtopn/Default";
import Pattern from "~/model/Trtopn/Pattern"; import Pattern from "~/model/Trtopn/Pattern";
...@@ -101,6 +109,7 @@ ...@@ -101,6 +109,7 @@
import Dinpan from "./Dinpan"; import Dinpan from "./Dinpan";
export default { export default {
name: 'Trtopn',
components: { components: {
"m-ovwp": Ovwp, "m-ovwp": Ovwp,
"m-letinf": Letinf, "m-letinf": Letinf,
...@@ -120,7 +129,7 @@ ...@@ -120,7 +129,7 @@
root: this root: this
}; };
}, },
mixins: [commonProcess], // 里面包含了Default、Check等的公共处理 mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
tabVal: "ovwp", tabVal: "ovwp",
...@@ -141,6 +150,7 @@ ...@@ -141,6 +150,7 @@
let rtnmsg = await this.init({}); let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑 //TODO 处理数据逻辑
this.updateModel(rtnmsg.data);
} else { } else {
this.$notify.error({ title: "错误", message: "服务请求失败!" }); this.$notify.error({ title: "错误", message: "服务请求失败!" });
} }
......
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
</template> </template>
<script> <script>
import Utils from "~/utils";
import { createNamespacedHelpers } from 'vuex' import { createNamespacedHelpers } from 'vuex'
const { mapState, mapMutations, mapActions } = createNamespacedHelpers('UserContext') const { mapState, mapMutations, mapActions } = createNamespacedHelpers('UserContext')
...@@ -49,7 +50,7 @@ const { setLoginInfo } = mapMutations(["setLoginInfo"]) ...@@ -49,7 +50,7 @@ const { setLoginInfo } = mapMutations(["setLoginInfo"])
submitForm(formName) { submitForm(formName) {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
if (valid) { if (valid) {
this.setLoginInfo({userId:this.loginForm.username}) this.setLoginInfo({userId:this.loginForm.username, token: Utils.generateUUID()})
this.$router.push("/home"); this.$router.push("/home");
} else { } else {
console.log('error submit!!'); console.log('error submit!!');
......
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