Commit 47c806a4 by liushikai
parents 20929483 719dbe02
...@@ -40,6 +40,10 @@ export default { ...@@ -40,6 +40,10 @@ export default {
return return
let data =await Api.post("display/"+inr) let data =await Api.post("display/"+inr)
Utils.copyValueFromVO(this.model,JSON.parse(data.data)) Utils.copyValueFromVO(this.model,JSON.parse(data.data))
} },
executeNotify(params)
{
return Api.post(this.declareParams.trnName+"/executeNotify", Utils.getRequestDataFn.call(this, params))
},
} }
} }
\ No newline at end of file
...@@ -217,6 +217,7 @@ export default class Cptadv{ ...@@ -217,6 +217,7 @@ export default class Cptadv{
libflg:"", // 是否报送跨境人民币2106表 .cnybop.libflg libflg:"", // 是否报送跨境人民币2106表 .cnybop.libflg
vouflg:"", // 是否报送跨境人民币2122表 .cnybop.vouflg vouflg:"", // 是否报送跨境人民币2122表 .cnybop.vouflg
}, },
pageId: "" // ctx的key
} }
} }
} }
\ No newline at end of file
...@@ -602,8 +602,12 @@ function checkFinmodAct3N1000() ...@@ -602,8 +602,12 @@ function checkFinmodAct3N1000()
* source:cptopn.@0023.script * source:cptopn.@0023.script
* *
*/ */
function checkCpdgrpCbsNom1AmtN1000() function checkCpdgrpCbsNom1AmtN1000(rule, value, callback)
{ {
const that = this;
that.exeuteCheck("cpdgrp.cbs.nom1.amt").then(res => {
callback()
})
} }
/** /**
* source:finmod.@0024.script * source:finmod.@0024.script
......
...@@ -37,6 +37,7 @@ export default { ...@@ -37,6 +37,7 @@ export default {
"cptp.orcadr" :defaultCptpOrcadr, "cptp.orcadr" :defaultCptpOrcadr,
"trdgrp.rec.pntref" :defaultTrdgrpRecPntref, "trdgrp.rec.pntref" :defaultTrdgrpRecPntref,
"cpdgrp.cbs.nom1.cur" :defaultCpdgrpCbsNom1Cur, "cpdgrp.cbs.nom1.cur" :defaultCpdgrpCbsNom1Cur,
"cpdgrp.cbs.nom1.amt" :defaultCpdgrpCbsNom1Amt,
"finmod.ovdintrat" :defaultFinmodOvdintrat, "finmod.ovdintrat" :defaultFinmodOvdintrat,
"cptp.evebch" :defaultCptpEvebch, "cptp.evebch" :defaultCptpEvebch,
"trdgrp.rec.pntnam" :defaultTrdgrpRecPntnam, "trdgrp.rec.pntnam" :defaultTrdgrpRecPntnam,
...@@ -208,8 +209,28 @@ function defaultCptpOrcadr() ...@@ -208,8 +209,28 @@ function defaultCptpOrcadr()
function defaultTrdgrpRecPntref() function defaultTrdgrpRecPntref()
{ {
} }
function defaultCpdgrpCbsNom1Cur() function defaultCpdgrpCbsNom1Cur(rule, value, callback)
{ {
const that = this;
that.executeDefault("cpdgrp.rec.nam").then(res => {
that.model.cpdgrp.cbs.max.cur = value;
that.model.cpdgrp.rec.nam = res.data.cpdgrp_rec_nam;
callback()
})
}
function defaultCpdgrpCbsNom1Amt(rule, value, callback)
{
const that = this;
that.executeDefault("cpdgrp.cbs.max.amt").then(res => {
that.model.cpdgrp.rec.nam = res.data.cpdgrp_rec_nam;
// // 信用证最大金额
// that.model.didgrp.cbs.max.amt = res.data.didgrp_cbs_max_amt;
callback()
})
that.executeDefault("cpdgrp.rec.nam").then(res => {
that.model.cpdgrp.rec.nam = res.data.cpdgrp_rec_nam;
callback()
})
} }
function defaultFinmodOvdintrat() function defaultFinmodOvdintrat()
{ {
......
...@@ -29,7 +29,7 @@ export default { ...@@ -29,7 +29,7 @@ export default {
"cpdgrp.cbs.nom1.amt":[ "cpdgrp.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位" }
], ],
......
...@@ -269,6 +269,7 @@ export default class Cptopn{ ...@@ -269,6 +269,7 @@ export default class Cptopn{
libflg:"", // 是否报送跨境人民币2106表 .cnybop.libflg libflg:"", // 是否报送跨境人民币2106表 .cnybop.libflg
vouflg:"", // 是否报送跨境人民币2122表 .cnybop.vouflg vouflg:"", // 是否报送跨境人民币2122表 .cnybop.vouflg
}, },
pageId: "" // ctx的key
} }
} }
} }
\ No newline at end of file
...@@ -322,6 +322,7 @@ export default class Ditame{ ...@@ -322,6 +322,7 @@ export default class Ditame{
}, },
}, },
}, },
pageId: "" // ctx的key
} }
} }
} }
\ No newline at end of file
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
<el-col :span="11"> <el-col :span="11">
<el-form-item label="Name" prop="cpdgrp.rec.ownref"> <el-form-item label="Name" prop="cpdgrp.rec.ownref">
<c-input <c-input
v-model="model.cpdgrp.rec.ownref" v-model="model.cpdgrp.rec.nam"
maxlength="16" maxlength="16"
placeholder="" placeholder=""
readonly readonly
...@@ -278,7 +278,9 @@ ...@@ -278,7 +278,9 @@
<el-col :span="10"> <el-col :span="10">
<el-form-item label="报文类型" label-width="120px"> <el-form-item label="报文类型" label-width="120px">
<c-input style="width: 100%" placeholder="" readonly> </c-input> <c-select style="width: 100%" placeholder="" v-model="model.cpdgrp.rec.swftyp">
<el-option v-for="item in codes.swftyp" :label="item.label" :value="item.value" :key="item.value"></el-option>
</c-select>
</el-form-item> </el-form-item>
</el-col> </el-col>
</el-col> </el-col>
...@@ -1374,20 +1376,20 @@ export default { ...@@ -1374,20 +1376,20 @@ export default {
{value:'8',label:'大豆'}, {value:'8',label:'大豆'},
], ],
options6:[ options6:[
{value:'1',label:'贸易'}, {value:'0',label:'贸易'},
{value:'2',label:'非贸易'}, {value:'1',label:'非贸易'},
{value:'3',label:'资本'}, {value:'2',label:'资本'},
{value:'4',label:'其他'}, {value:'3',label:'其他'},
], ],
options7:[ options7:[
{value:'1',label:'电汇'}, {value:'0',label:'电汇'},
{value:'2',label:'票汇'}, {value:'1',label:'票汇'},
{value:'3',label:'信汇'}, {value:'2',label:'信汇'},
{value:'4',label:'其他'}, {value:'3',label:'其他'},
], ],
options8:[ options8:[
{value:'1',label:'对公'}, {value:'0',label:'对公'},
{value:'2',label:'对私'}, {value:'1',label:'对私'},
], ],
options9:[ options9:[
{value:'1',label:'跨境收支'}, {value:'1',label:'跨境收支'},
......
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
ref="modelForm" ref="modelForm"
label-width="200px" label-width="200px"
size="small" size="small"
:validate-on-rule-change="false"
> >
<el-tabs ref="elment" type="card" @tab-click="tabClick"> <el-tabs ref="elment" type="card" @tab-click="tabClick">
<el-tab-pane label="Overview"> <el-tab-pane label="Overview">
...@@ -71,10 +72,13 @@ ...@@ -71,10 +72,13 @@
</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 Cptopn from "~/model/Cptopn"; import Cptopn from "~/model/Cptopn";
import CommonProcess from "~/mixin/CommonProcess"; import CommonProcess from "~/mixin/CommonProcess";
import Pattern from "~/model/Cptopn/Pattern"; import Pattern from "~/model/Cptopn/Pattern";
import Default from "~/model/Cptopn/Default";
import Check from "~/model/Cptopn/Check";
import Opnp1 from "./Opnp1"; import Opnp1 from "./Opnp1";
import Setpan from "./Setpan"; import Setpan from "./Setpan";
import Glepan from "./Glepan"; import Glepan from "./Glepan";
...@@ -106,11 +110,13 @@ export default { ...@@ -106,11 +110,13 @@ export default {
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理 mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
data() { data() {
return { return {
trnName:"cptopn",
model: new Cptopn().data, model: new Cptopn().data,
// defaultRule:Default, checkRules: Check,
// rules:this.mergeRules(Pattern,Check), defaultRules: Default,
rules: Pattern, pattern: Pattern,
codes: {}, rules:null,
codes: {...CodeTable},
// init: { // init: {
// uri: "/cptopn/init", // uri: "/cptopn/init",
// fileName: "cptopn.json", // fileName: "cptopn.json",
...@@ -1339,8 +1345,8 @@ export default { ...@@ -1339,8 +1345,8 @@ export default {
created: async function () { created: async function () {
console.log("进入cptopn交易"); console.log("进入cptopn交易");
let rtnmsg = await Api.post("cptopn/init", { params: {} }); let rtnmsg = await Api.post("cptopn/init", { params: {} });
if (rtnmsg.retcod == SUCCESS) { if (rtnmsg.respCode == SUCCESS) {
//TODO 处理数据逻辑 Utils.copyValueFromVO(this.model,rtnmsg.data)
} else { } else {
this.$notify.error({ title: "错误", message: "服务请求失败!" }); this.$notify.error({ title: "错误", message: "服务请求失败!" });
} }
......
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