Commit 0c63606f by wangren

bctacc交易修改

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