Commit 0c63606f by wangren

bctacc交易修改

parent 718eb5a2
......@@ -70,18 +70,18 @@ export default {
{max: 40,message:"长度不能超过40"}
],
"setmod.docamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
// "setmod.docamt":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
"bcdgrp.rec.accdat":[
{type: "string", required: false, message: "输入正确的日期"}
],
"bcdgrp.blk.colins":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
{max: 165,message:"长度不能超过165"}
],
......@@ -91,7 +91,7 @@ export default {
],
"bcdgrp.blk.dftins":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
{max: 165,message:"长度不能超过165"}
],
......@@ -203,7 +203,7 @@ export default {
],
"bcdgrp.co2.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
{max: 150,message:"长度不能超过150"}
],
"bcdgrp.co2.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
......@@ -211,7 +211,7 @@ export default {
],
"bcdgrp.drr.pts.adrblk":[
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
{max: 150,message:"长度不能超过150"}
],
"bcdgrp.drr.dbfadrblkcn":[
{type: "string", required: true, message: "必输项"},
......@@ -225,11 +225,11 @@ export default {
{type: "string", required: true, message: "必输项"},
{max: 35,message:"长度不能超过35"}
],
"liaall.outamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
// "liaall.outamt":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
"liaall.outpct":[
{type: "string", required: false, message: "必输项"},
{max: 6,message:"长度不能超过6"}
......@@ -238,23 +238,23 @@ export default {
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"liaall.misamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
// "liaall.misamt":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
"liaall.exttotoldamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"liaall.exttotamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
// "liaall.exttotoldamt":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
// "liaall.exttotamt":[
// {type: "number", required: false, message: "必输项"},
// {max: 18,message:"整数位不能超过14位"},
// {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
// ],
"setmod.ref":[
{type: "string", required: false, message: "必输项"},
{max: 16,message:"长度不能超过16"}
......
......@@ -128,24 +128,26 @@
</c-col>
<c-col :span="24">
<el-form-item label="Payment Condition" prop="bcdgrp.rec.doctypcod">
<c-input
<c-select
v-model="model.bcdgrp.rec.doctypcod"
:code="codes.doctypcod"
style="width: 100%"
placeholder="请选择Payment Condition"
disabled
>
</c-input>
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="Document Set Status" prop="bcdgrp.rec.docsta">
<c-input
<c-select
v-model="model.bcdgrp.rec.docsta"
:code="codes.docsta"
style="width: 100%"
placeholder="请输入Document Set Status"
disabled
>
</c-input>
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
......@@ -262,9 +264,9 @@
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item prop="bcdgrp.drr.pts.ref">
<el-form-item prop="bcdgrp.drr.pts.nam">
<c-input
v-model="model.bcdgrp.drr.pts.ref"
v-model="model.bcdgrp.drr.pts.nam"
maxlength="40"
style="width: 100%"
disabled
......
......@@ -5,24 +5,35 @@
<c-col :span="24">
<c-col :span="20">
<el-form-item label="Delivery of Documents Instructions" prop="bcdgrp.blk.colins">
<c-input type="textarea" v-model="model.bcdgrp.blk.colins" maxlength="65" show-word-limit
<c-input
:rows="4"
type="textarea" v-model="model.bcdgrp.blk.colins" maxlength="165" show-word-limit
placeholder="请输入Delivery of Documents Instructions"></c-input>
</el-form-item>
</c-col>
<c-col :span="4">
<c-button size="small" type="primary" icon="el-icon-search" @click="onColinsButtxmsel">
<c-button size="small" type="primary" icon="el-icon-search"
@click="showGridPromptDialog('bctp.colins.buttxmsel', null, null,{TXT: 'bcdgrp.blk.colins'}, {TXT: false},'doxpDialog')"
>
</c-button>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="20">
<el-form-item label="Draft Instructions" prop="bcdgrp.blk.dftins">
<c-input type="textarea" v-model="model.bcdgrp.blk.dftins" maxlength="65" show-word-limit
<c-input
:rows="4"
type="textarea" v-model="model.bcdgrp.blk.dftins" maxlength="165" show-word-limit
placeholder="请输入Draft Instructions"></c-input>
</el-form-item>
</c-col>
<c-col :span="4">
<c-button size="small" type="primary" icon="el-icon-search" @click="onDftinsButtxmsel">
<c-button
size="small" type="primary" icon="el-icon-search"
@click="showGridPromptDialog('bctp.dftins.buttxmsel', null, null,{TXT: 'bcdgrp.blk.dftins'}, {TXT: false},'doxpDialog')"
>
</c-button>
</c-col>
</c-col>
......@@ -37,13 +48,17 @@
</c-col>
<c-col :span="20">
<el-form-item label="Other Instructions" prop="bcdgrp.blk.othins">
<c-input type="textarea" v-model="model.bcdgrp.blk.othins" maxlength="65" show-word-limit
<c-input
:rows="4"
type="textarea" v-model="model.bcdgrp.blk.othins" maxlength="65" show-word-limit
placeholder="请输入Other Instructions">
</c-input>
</el-form-item>
</c-col>
<c-col :span="4">
<c-button size="small" type="primary" icon="el-icon-search" @click="onOthins1Buttxmsel">
<c-button size="small" type="primary" icon="el-icon-search"
@click="showGridPromptDialog('bctp.othins.buttxmsel', null, null,{TXT: 'bcdgrp.blk.othins'}, {TXT: false},'doxpDialog')"
>
</c-button>
</c-col>
<c-col :span="24">
......@@ -72,7 +87,9 @@
</c-col>
<c-col :span="24">
<el-form-item label="Charges Text" prop="bcdgrp.blk.chgtxt">
<c-input type="textarea" v-model="model.bcdgrp.blk.chgtxt" maxlength="35" style="width:76%"
<c-input
:rows="4"
type="textarea" v-model="model.bcdgrp.blk.chgtxt" maxlength="35" style="width:76%"
show-word-limit placeholder="请输入Charges Text"></c-input>
</el-form-item>
</c-col>
......
......@@ -87,7 +87,7 @@
v-model="model.bcdgrp.co2.pts.extkey"
maxlength="50"
placeholder="请输入External Key of Address"
@keyup.enter.native="showGridPromptDialog('bcdgrp.co2.pts.extkey')"
></c-input>
<template slot="footer">
<c-button
......@@ -119,8 +119,8 @@
type="textarea"
:rows="4"
v-model="model.bcdgrp.co2.pts.adrblk"
maxlength="50"
disabled
maxlength="150"
show-word-limit
placeholder="请输入Address Block"
></c-input>
......@@ -152,7 +152,7 @@
v-model="model.bcdgrp.rmi.pts.extkey"
maxlength="50"
placeholder="请输入External Key of Address"
@keyup.enter.native="showGridPromptDialog('bcdgrp.rmi.pts.extkey')"
></c-input>
<template slot="footer">
<c-button
......@@ -213,7 +213,7 @@
v-model="model.bcdgrp.drr.pts.extkey"
maxlength="50"
placeholder="请输入External Key of Address"
@keyup.enter.native="showGridPromptDialog('bcdgrp.drr.pts.extkey')"
></c-input>
<template slot="footer">
<c-button
......@@ -245,7 +245,7 @@
type="textarea"
:rows="4"
v-model="model.bcdgrp.drr.pts.adrblk"
maxlength="50"
maxlength="150"
disabled
show-word-limit
placeholder="请输入Address Block"
......
<template>
<c-page title="进口代收承兑">
<div class="eContainer">
<c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
</c-function-btn>
<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="tabClick">
<c-page title="进口代收承兑">
<div class="eContainer">
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
</c-function-btn>
<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="tabClick">
<!--Settle BC -->
<el-tab-pane label="Settle BC" name="bctset">
<c-content>
<m-bctset :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--Settle BC -->
<el-tab-pane label="Settle BC" name="bctset">
<c-content>
<m-bctset :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--Instructions -->
<el-tab-pane label="Instructions" name="detp">
<m-detp :model="model" :codes="codes" />
</el-tab-pane>
<!--Instructions -->
<el-tab-pane label="Instructions" name="detp">
<m-detp :model="model" :codes="codes" />
</el-tab-pane>
<!--Parties -->
<el-tab-pane label="Parties" name="ptyp">
<c-content>
<m-ptyp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--Parties -->
<el-tab-pane label="Parties" name="ptyp">
<c-content>
<m-ptyp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--Liability -->
<el-tab-pane label="Liability" name="engp">
<m-engp :model="model" :codes="codes" />
</el-tab-pane>
<!--Liability -->
<el-tab-pane label="Liability" name="engp">
<m-engp :model="model" :codes="codes" />
</el-tab-pane>
<!--Settlement -->
<el-tab-pane label="Settlement" name="setpan">
<c-content>
<m-setpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--Settlement -->
<el-tab-pane label="Settlement" name="setpan">
<c-content>
<m-setpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--Completion -->
<el-tab-pane label="Completion" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
<!--Completion -->
<el-tab-pane label="Completion" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
<!--Messages -->
<el-tab-pane label="Messages" name="docpan">
<m-docpan :model="model" :codes="codes" />
</el-tab-pane>
<!--Messages -->
<el-tab-pane label="Messages" name="docpan">
<m-docpan :model="model" :codes="codes" />
</el-tab-pane>
<!--Attachments -->
<el-tab-pane label="Attachments" name="doctre">
<m-doctre :model="model" :codes="codes" />
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</c-page>
<!--Attachments -->
<el-tab-pane label="Attachments" name="doctre">
<m-doctre :model="model" :codes="codes" />
</el-tab-pane>
</c-tabs>
</el-form>
<c-grid-ety-prompt-dialog
ref="etyDialog"
:promptData="promptData"
@select-ety="selectEty"
>
</c-grid-ety-prompt-dialog>
<c-grid-ety-prompt-dialog
ref="doxpDialog"
:isPty="false"
:promptData="promptData"
@select-ety="selectMsg"
>
</c-grid-ety-prompt-dialog>
</div>
</c-page>
</template>
<script>
import Api from "~/service/Api"
import Utils from "~/utils/index"
import CodeTable from "~/config/CodeTable"
import commonFuncs from "~/mixin/commonFuncs";
import Bctacc from "~/model/Bctacc"
import commonProcess from "~/mixin/commonProcess"
import Check from "~/model/Bctacc/Check"
import Default from "~/model/Bctacc/Default"
import Pattern from "~/model/Bctacc/Pattern"
import Bctset from "./Bctset"
import Detp from "./Detp"
import Ptyp from "./Ptyp"
import Engp from "~/views/Public/Engp"
import Setpan from "~/views/Public/Setpan"
import Coninfp from "~/views/Public/Coninfp"
import Docpan from "~/views/Public/Docpan"
import Doctre from "~/views/Public/Doctre"
import Api from "~/service/Api";
import Utils from "~/utils/index";
import CodeTable from "~/config/CodeTable";
import commonFuncs from "~/mixin/commonFuncs";
import Bctacc from "~/model/Bctacc";
import commonProcess from "~/mixin/commonProcess";
import Check from "~/model/Bctacc/Check";
import Default from "~/model/Bctacc/Default";
import Pattern from "~/model/Bctacc/Pattern";
import Bctset from "./Bctset";
import Detp from "./Detp";
import Ptyp from "./Ptyp";
import Engp from "~/views/Public/Engp";
import Setpan from "~/views/Public/Setpan";
import Coninfp from "~/views/Public/Coninfp";
import Docpan from "~/views/Public/Docpan";
import Doctre from "~/views/Public/Doctre";
export default {
name: "Bctacc",
components: {
"m-bctset": Bctset,
"m-detp": Detp,
"m-ptyp": Ptyp,
"m-engp": Engp,
"m-setpan": Setpan,
"m-coninfp": Coninfp,
"m-docpan": Docpan,
"m-doctre": Doctre,
},
provide() {
return {
root: this
}
},
mixins: [commonProcess,commonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "bctset",
trnName: "bctacc",
model: new Bctacc().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
...CodeTable
},
}
},
methods: {
tabClick() {}
},
created: async function () {
console.log("进入bctacc交易");
let rtnmsg = await this.init(this.$route.query)
if (rtnmsg.respCode == SUCCESS) {
//更新数据
Utils.copyValueFromVO(this.model, rtnmsg.data);
if (this.isInDisplay) {
this.restoreDisplay();
}
} else {
this.$notify.error({
title: '错误',
message: '服务请求失败!'
});
}
}
}
export default {
name: "Bctacc",
components: {
"m-bctset": Bctset,
"m-detp": Detp,
"m-ptyp": Ptyp,
"m-engp": Engp,
"m-setpan": Setpan,
"m-coninfp": Coninfp,
"m-docpan": Docpan,
"m-doctre": Doctre,
},
provide() {
return {
root: this,
};
},
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "bctset",
trnName: "bctacc",
model: new Bctacc().data,
checkRules: Check,
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
...CodeTable,
},
};
},
methods: {
tabClick() {},
},
created: async function () {
console.log("进入bctacc交易");
let rtnmsg = await this.init(this.$route.query);
if (rtnmsg.respCode == SUCCESS) {
//更新数据
Utils.copyValueFromVO(this.model, rtnmsg.data);
if (this.isInDisplay) {
this.restoreDisplay();
}
} else {
this.$notify.error({
title: "错误",
message: "服务请求失败!",
});
}
},
};
</script>
<style></style>
\ No newline at end of file
<style></style>
......@@ -24,6 +24,7 @@
<c-col :span="2">
<c-button size="small" type="primary" icon="el-icon-search"
:disabled="this.flag2"
@click="showGridPromptDialog('litamep.spcbename.buttxmsel',null,null,{TXT: 'litamep.spcbenamep.usrblk'}, {TXT: false},'doxpDialog')"
>
</c-button>
</c-col>
......
......@@ -24,7 +24,9 @@
</c-col>
<c-col :span="2">
<c-button size="small" type="primary" icon="el-icon-search"
:disabled="this.flag2">
:disabled="this.flag2"
@click="showGridPromptDialog('litamep.spcrcbame.buttxmsel',null,null,{TXT: 'litamep.spcrcbamep.usrblk'}, {TXT: false},'doxpDialog')"
>
</c-button>
</c-col>
</c-col>
......
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