Commit c4e19670 by wangyanjiao

DITOPN默认值BUG&声明目录

parent 504e15db
export default class Blk {
constructor() {
this.data = {
stamet:"", // 声明 .didgrp.blk.stsament
revcls: "", // Revolving Clause .didgrp.blk.revcls
revnotes: "", // Notes to Applicant .didgrp.blk.revnotes
lcrgod: "", // Description of Goods .didgrp.blk.lcrgod
......
......@@ -49,7 +49,7 @@
</c-col>
<c-col :span="11">
<c-form-item previewLabel="信用证金额" style="text-align: left;" label-width="5px" prop="didgrp.cbs.nom1.amt">
<c-input-currency v-model="model.didgrp.cbs.nom1.amt" placeholder="请输入信用证金额"
<c-input-currency v-model="model.didgrp.cbs.nom1.amt" placeholder="请输入信用证金额" @change="ditpAmt"
@keyup.enter.native="defaultFunction('didgrp.cbs.nom1.amt', model.didgrp.cbs.nom1.amt)">
</c-input-currency>
</c-form-item>
......@@ -191,7 +191,7 @@
<c-col :span="24">
<el-form-item label="假远期信用证" prop="didgrp.rec.jyqflg">
<c-select v-model="model.didgrp.rec.jyqflg" style="width: 100%" placeholder="请选择假远期信用证">
<el-option v-for="item in codes.jyqflg" :key="item.value" :label="item.label" :value="item.value">
<el-option v-for="item in jyqflg" :key="item.value" :label="item.label" :value="item.value">
</el-option>
</c-select>
</el-form-item>
......@@ -502,12 +502,23 @@ export default {
mixins: [commonProcess],
data() {
return {
jyqflg: [
{ label: "否", value: "" },
{ label: "是", value: "X" },
],
jigomcFlag: false,
trade: "",
};
},
methods: {
...Event,
ditpAmt(){
this.executeDefault("ditp.amt").then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
}
});
},
mytypeChange() {
if (this.model.didgrp.rec.mytype == "F") {
this.model.didgrp.rec.tratyp = "";
......@@ -519,11 +530,11 @@ export default {
}
},
nom1CurEvent() {
this.executeDefault("didgrp.cbs.nom1.cur").then((res) => {
if ((res.respCode == SUCCESS)) {
Utils.copyValueFromVO(this.model, res.data);
}
});
// this.executeDefault("didgrp.cbs.nom1.cur").then((res) => {
// if ((res.respCode == SUCCESS)) {
// Utils.copyValueFromVO(this.model, res.data);
// }
// });
},
},
created: function () {
......
<template>
<div class="eibs-tab">
<!-- <c-col :span="22">
<el-form-item label="声明" prop="didgrp.blk.stamet">
<c-input
type="textarea"
v-model="model.didgrp.blk.stamet"
maxlength="65"
:row="15"
show-word-limit
placeholder="请输入声明"
></c-input>
</el-form-item>
</c-col> -->
<c-col :span="22">
<el-form-item label="声明" prop="didgrp.blk.stamet">
<c-input
type="textarea"
v-model="model.didgrp.blk.stamet"
maxlength="65"
show-word-limit
placeholder="请输入声明"
:rows="15"
></c-input>
</el-form-item>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditopn/Event";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {};
},
methods: { ...Event },
created: function () {
// this.executeDefault("DIDGRP.BLK.STAMET").then((res) => {
// if ((res.respCode == SUCCESS)) {
// Utils.copyValueFromVO(this.model, res.data);
// }
// });
},
};
</script>
<style>
</style>
......@@ -2,11 +2,7 @@
<c-page title="买方信用证开立">
<div class="eContainer">
<!-- <c-bus-button :$pntvm="this"></c-bus-button> -->
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
<c-function-btn :handleSubmit="handleSubmit" :handleCheck="handleCheck" :handleStash="handleStash">
<el-button size="small">备忘录</el-button>
<el-button size="small" @click="setDraggableContent('cms', '影像信息')">影像信息</el-button>
<!-- <el-button size="small">保存模板</el-button> -->
......@@ -15,21 +11,14 @@
<!-- <el-button size="small">拆分报文</el-button> -->
<el-button size="small">智能提示</el-button>
</c-function-btn>
<el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="150px"
label-position="right"
size="small"
:validate-on-rule-change="false"
>
<el-form :model="model" :rules="rules" ref="modelForm" label-width="150px" label-position="right" size="small"
:validate-on-rule-change="false">
<c-tabs :value="tabVal" ref="elment" type="card" @tab-click="tabClick">
<el-tab-pane label="基本信息" name="ovwp">
<!--PD000001 -->
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--
......@@ -47,7 +36,7 @@
<el-tab-pane label="其他当事人" name="detp1">
<!--PD000452 -->
<c-content>
<m-detp1 :model="model" :codes="codes" />
<m-detp1 :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="详细信息" name="detp">
......@@ -57,7 +46,7 @@
<el-tab-pane label="单据要求" name="tk">
<!--PD000342 -->
<c-content>
<m-tk :model="model" :codes="codes" />
<m-tk :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
......@@ -81,8 +70,8 @@
<m-setpan :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<el-tab-pane label="分录" name="glepan">
<m-glepan :model="model" :codes="codes" ref="glepan" />
<el-tab-pane label="声明" name="stamet">
<m-stamet :model="model" :codes="codes" />
</el-tab-pane>
<el-tab-pane label="表外" name="engp">
......@@ -108,7 +97,7 @@
<m-docpan :model="model" :codes="codes" ref="docpan" />
</el-tab-pane>
<el-tab-pane label="MT799" name="mt799">
<el-tab-pane label="MT799" name="mt799" >
<!--PD000361 -->
<m-mt799 :model="model" :codes="codes" />
</el-tab-pane>
......@@ -119,7 +108,7 @@
</c-tabs>
</el-form>
<c-grid-ety-prompt-dialog ref="etyDialog" :promptData="promptData" v-on:select-ety="selectEty">
</c-grid-ety-prompt-dialog>
</c-grid-ety-prompt-dialog>
</div>
</c-page>
</template>
......@@ -147,7 +136,7 @@ import Litrmbl1 from "./Litrmbl1";
import Addbcb from "./Addbcb";
import Setpan from "~/views/Public/Setpan";
import Glepan from "~/views/Public/Glepan";
import Stamet from "./Stamet";
import Engp from "~/views/Public/Engp";
import Ccvpan from "~/views/Public/Ccvpan";
import Coninfp from "~/views/Public/Coninfp";
......@@ -168,7 +157,7 @@ export default {
"m-litapll1": Litapll1,
"m-litrmbl1": Litrmbl1,
"m-setpan": Setpan,
"m-glepan": Glepan,
"m-stamet": Stamet,
"m-engp": Engp,
"m-addbcb": Addbcb,
"m-docpan": Docpan,
......@@ -181,7 +170,7 @@ export default {
root: this,
};
},
mixins: [commonProcess,commonFuncs], // 里面包含了Default、Check等的公共处理
mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
computed: {},
data() {
return {
......@@ -193,17 +182,18 @@ export default {
defaultRules: Default,
pattern: Pattern,
rules: null,
codes: {
codes: {
...CodeTable,
avbby0: [
{ label: "即期付款", value: "P" },
{ label: "远期付款", value: "D" },
],
],
},
};
},
methods: {},
created: async function() {
methods: {
},
created: async function () {
console.log("进入ditopn交易");
let rtnmsg = await this.init(this.$route.query);
if (rtnmsg.respCode == SUCCESS) {
......@@ -239,4 +229,5 @@ export default {
},
};
</script>
<style></style>
<style>
</style>
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