Commit 5e35b3cb by zhoujunpeng

退汇清算交易修改

parent e53ab2d1
...@@ -25,9 +25,17 @@ export default { ...@@ -25,9 +25,17 @@ export default {
return { return {
rec: { rec: {
objtyp: "CRD", objtyp: "CRD",
forare:model.crtp.forare,
opndat:model.crdgrp.rec.opndat,
rcvbchinr:model.crdgrp.rec.rcvbchinr,
custyp:model.crdgrp.rec.custyp,
rcvactInr:model.rcvact.inr,
rcvactExtkey:model.rcvact.extkey,
rcvobjtyp:model.crdgrp.rec.rcvobjtyp,
valdat:model.cpdgrp.rec.valdat,
}, },
cbsMap: { cbsMap: {
MAX: model.crdgrp.cbs.max,
}, },
ptsList: ptsptaList, ptsList: ptsptaList,
transName: trnName, transName: trnName,
......
...@@ -4,8 +4,25 @@ import Api from '~/service/Api'; ...@@ -4,8 +4,25 @@ import Api from '~/service/Api';
export default { export default {
mixins: [commonFunctions], mixins: [commonFunctions],
methods: { methods: {
async getOwnref(){ async getOwnref() {
if (this.model.crdgrp.rec.clrtyp == "") {
} this.$notify.warning({
title: "提示",
message: "清算类型为空!",
});
return;
}
const loading = this.loading();
let res = await Api.post(
`/${this.moduleRouter()}/crtcbk/getRef`,
this.model
);
loading.close();
if (res.respCode !== SUCCESS) {
this.$message.error(res.respMsg);
return;
}
this.model.crdgrp.rec.ownref = res.data;
},
} }
} }
\ No newline at end of file
...@@ -42,7 +42,7 @@ export default { ...@@ -42,7 +42,7 @@ export default {
"crdgrp.cbs.max.amt":[ "crdgrp.cbs.max.amt":[
{type: "number", required: false, message: "必输项"}, {type: "number", 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位" }
], ],
......
...@@ -4,24 +4,41 @@ ...@@ -4,24 +4,41 @@
<c-col :span="12" style="padding-right: 20px"> <c-col :span="12" style="padding-right: 20px">
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('crtp.业务编号')" prop="crdgrp.rec.ownref"> <el-form-item :label="$t('crtp.业务编号')" prop="crdgrp.rec.ownref">
<c-input v-model="model.crdgrp.rec.ownref" maxlength="16"></c-input> <c-fullbox>
<c-input
v-model="model.crdgrp.rec.ownref"
maxlength="16"
disabled
></c-input>
<template slot="footer">
<c-button
style="margin: 0 0"
size="small"
type="primary"
:disabled=" model.crdgrp.rec.ownref != '' || model.crdgrp.rec.clrtyp == '' "
@click="getOwnref"
>
获取
</c-button>
</template>
</c-fullbox>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('crtp.经办柜员')" prop="crtp.usr.extkey"> <el-form-item :label="$t('crtp.经办柜员')" prop="crtp.usr.extkey">
<c-input v-model="model.crtp.usr.extkey" maxlength="8"></c-input> <c-input v-model="model.crtp.usr.extkey" maxlength="8" disabled></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<!-- S0000026 : 清算币种及金额 --> <!-- S0000026 : 清算币种及金额 -->
<c-col :span="24" class="custom-box-wrap"> <c-col :span="24" class="custom-box-wrap">
<el-form-item :label="$t('crtp.清算币种及金额')" prop="crdgrp.cbs.max.cur"> <el-form-item :label="$t('crtp.清算币种及金额')" prop="crdgrp.cbs.max.cur">
<c-select-cur v-model="model.crdgrp.cbs.max.cur" style="width: 115px" placeholder="请选择币种" dbCode="curtxt"> <c-select-cur v-model="model.crdgrp.cbs.max.cur" style="width: 115px" placeholder="请选择币种" disabled dbCode="curtxt">
</c-select-cur> </c-select-cur>
</el-form-item> </el-form-item>
<div class="box-3"> <div class="box-3">
<el-form-item label-width="5px" prop="crdgrp.cbs.max.amt"> <el-form-item label-width="5px" prop="crdgrp.cbs.max.amt">
<c-input-currency v-model="model.crdgrp.cbs.max.amt" :currency="model.crdgrp.cbs.max.cur" style="width: 100%"> <c-input-currency v-model="model.crdgrp.cbs.max.amt" :currency="model.crdgrp.cbs.max.cur" disabled style="width: 100%">
</c-input-currency> </c-input-currency>
</el-form-item> </el-form-item>
</div> </div>
...@@ -29,14 +46,14 @@ ...@@ -29,14 +46,14 @@
<!-- S0000028 : 业务种类 --> <!-- S0000028 : 业务种类 -->
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('crtp.业务种类')" prop="crdgrp.rec.rcvobjtyp"> <el-form-item :label="$t('crtp.业务种类')" prop="crdgrp.rec.rcvobjtyp">
<c-select dbCode="RMB122" v-model="model.crdgrp.rec.rcvobjtyp" style="width:100%"> <c-select dbCode="RMB122" v-model="model.crdgrp.rec.rcvobjtyp" disabled style="width:100%">
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
<!-- S0000033 : 账户行 --> <!-- S0000033 : 账户行 -->
<!-- S0000034 : Ref. --> <!-- S0000034 : Ref. -->
<c-col :span="24"> <c-col :span="24">
<c-ptap :model="model" :isAdrblk="false" :haveAdrLabel="true" :requiredExtkey="true" :isAdrVisible="false" <c-ptap :model="model" :isAdrblk="false" :haveAdrLabel="true" :requiredExtkey="true" :isAdrVisible="false" disabled
:argadr="{ title: '账户行', grp: 'crdgrp', rol: 'acc' }" ptytyp="C"></c-ptap> :argadr="{ title: '账户行', grp: 'crdgrp', rol: 'acc' }" ptytyp="C"></c-ptap>
</c-col> </c-col>
</c-col> </c-col>
...@@ -45,14 +62,20 @@ ...@@ -45,14 +62,20 @@
<!-- S0000027 : 前手付汇业务编号 --> <!-- S0000027 : 前手付汇业务编号 -->
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('crtp.前手付汇业务编号')" prop="crdgrp.rec.msgref"> <el-form-item :label="$t('crtp.前手付汇业务编号')" prop="crdgrp.rec.msgref">
<c-input v-model="model.crdgrp.rec.msgref" maxlength="16"></c-input> <c-input v-model="model.crdgrp.rec.msgref" maxlength="16" disabled></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<!-- S0000029 : 业务所属机构 --> <!-- S0000029 : 业务所属机构 -->
<c-col :span="24"> <c-col :span="24">
<el-form-item :label="$t('crtp.业务所属机构')" prop="crdgrp.rec.rcvbchinr"> <el-form-item :label="$t('crtp.业务所属机构')" prop="crdgrp.rec.rcvbchinr">
<c-select v-model="model.crdgrp.rec.rcvbchinr" style="width:100%"> <c-select v-model="model.crdgrp.rec.rcvbchinr" style="width:100%" disabled>
<el-option
v-for="(item, idx) in rcvbchinrCode"
:key="idx"
:label="item.label"
:value="item.value"
></el-option>
</c-select> </c-select>
</el-form-item> </el-form-item>
</c-col> </c-col>
...@@ -73,7 +96,7 @@ export default { ...@@ -73,7 +96,7 @@ export default {
mixins: [Event], mixins: [Event],
data() { data() {
return { return {
rcvbchinrCode: [],
} }
}, },
methods: {}, methods: {},
......
...@@ -63,7 +63,7 @@ export default { ...@@ -63,7 +63,7 @@ export default {
trnName: "crtcbk", trnName: "crtcbk",
trnType: "", trnType: "",
model: new Crtcbk().data, model: new Crtcbk().data,
rules: Check, rules: {},
codes: { ...CodeTable }, codes: { ...CodeTable },
} }
}, },
......
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