Commit 615ba4cd by zhengxiaokui

zxk

parent a00b9437
<template>
<c-row>
<c-blkTextarea :model="model" v-bind="blk"> </c-blkTextarea>
<!-- Description of Goods -->
<!-- <c-col :span="19">
<el-form-item label="货物说明" prop="ledgrp.blk.lcrgod">
<c-input
type="textarea"
:rows="20"
v-model="model.ledgrp.blk.lcrgod"
maxlength="2000"
show-word-limit
placeholder="请输入货物说明"
></c-input>
</el-form-item>
</c-col>
<c-col :span="2" class="letopn_dogp_button">
<c-button
size="small"
type="primary"
icon="el-icon-search"
@click="showGridPromptDialog(...dialogArg)"
>
...
</c-button>
</c-col> -->
<!-- @click="onLcrgodButtxmsel" -->
<br />
<c-col :span="12">
<el-form-item label="货物类型" prop="ledgrp.rec.stagod">
<c-select
v-model="model.ledgrp.rec.stagod"
style="width: 100%"
placeholder="请选择货物类型 "
>
</c-select>
</el-form-item>
</c-col>
</c-row>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Letopn/Event";
import BlkTextarea from "~/views/Public/BlkTextarea";
export default {
inject: ["root"],
props: ["model", "codes"],
components: { "c-blkTextarea": BlkTextarea },
mixins: [CommonProcess],
data() {
return {
blk: {
blkMsg: {
title: "货物说明",
dataUrl: "ledgrp.blk.lcrgod", //字段所在model路劲
rows: 20,
},
rulePath: "letp.lcrgod.buttxmsel",
},
};
},
methods: { ...Event },
created: function () {},
};
</script>
<style>
.letopn_dogp_button {
margin: 20px 0 0 0px;
}
</style>
<template>
<div class="eibs-tab">
<c-blkTextarea :model="model" v-bind="blk"> </c-blkTextarea>
<!-- <c-col :span="19">
<el-form-item label="单据要求" prop="ledgrp.blk.lcrdoc">
<c-input
type="textarea"
:rows="20"
v-model="model.ledgrp.blk.lcrdoc"
maxlength="65"
show-word-limit
placeholder="请输入Documents Required"
></c-input>
</el-form-item>
</c-col>
<c-col :span="2" class="letopn_dogp_button">
<c-button
size="small"
type="primary"
icon="el-icon-search"
@click="onLcrdocButtxmsel"
>
...
</c-button>
</c-col> -->
</div>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Letopn/Event";
import BlkTextarea from "~/views/Public/BlkTextarea";
export default {
inject: ["root"],
props: ["model", "codes"],
components: { "c-blkTextarea": BlkTextarea },
mixins: [CommonProcess],
data() {
return {
blk: {
blkMsg: {
title: "单据要求",
dataUrl: "ledgrp.blk.lcrdoc", //字段所在model路劲
rows: 20,
},
rulePath: "letp.lcrdoc.buttxmsel",
},
};
},
methods: { ...Event },
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-blkTextarea :model="model" v-bind="blk"> </c-blkTextarea>
<!-- <c-col :span="19">
<el-form-item label="受益人特殊付款条款" prop="ledgrp.blk.spcben">
<c-input
type="textarea"
:rows="20"
v-model="model.ledgrp.blk.spcben"
maxlength="65"
show-word-limit
placeholder="请输入受益人特殊付款条款"
></c-input>
</el-form-item>
</c-col>
<c-col :span="2" class="letopn_dogp_button">
<c-button
size="small"
type="primary"
icon="el-icon-search"
@click="onSpcbenButtxmsel"
>
...
</c-button>
</c-col> -->
</div>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Letopn/Event";
import BlkTextarea from "~/views/Public/BlkTextarea";
export default {
inject: ["root"],
props: ["model", "codes"],
components: { "c-blkTextarea": BlkTextarea },
mixins: [CommonProcess],
data() {
return {
blk: {
blkMsg: {
title: "受益人特殊付款条款",
dataUrl: "ledgrp.blk.spcben", //字段所在model路劲
rows: 20,
},
rulePath: "letp.spcben.buttxmsel",
},
};
},
methods: { ...Event },
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-blkTextarea :model="model" v-bind="blk"> </c-blkTextarea>
<!-- <c-col :span="19">
<el-form-item label="收款银行特殊付款条款" prop="ledgrp.blk.spcrcb">
<c-input
type="textarea"
:rows="20"
v-model="model.ledgrp.blk.spcrcb"
maxlength="65"
show-word-limit
placeholder="收款银行特殊付款条款"
></c-input>
</el-form-item>
</c-col>
<c-col :span="2" class="letopn_dogp_button">
<c-button
size="small"
type="primary"
icon="el-icon-search"
@click="onSpcrcbButtxmsel"
>
...
</c-button>
</c-col> -->
</div>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Letopn/Event";
import BlkTextarea from "~/views/Public/BlkTextarea";
export default {
inject: ["root"],
props: ["model", "codes"],
components: { "c-blkTextarea": BlkTextarea },
mixins: [CommonProcess],
data() {
return {
blk: {
blkMsg: {
title: "收款银行特殊付款条款",
dataUrl: "ledgrp.blk.spcrcb", //字段所在model路劲
rows: 20,
},
rulePath: "letp.spcrcb.buttxmsel",
},
};
},
methods: { ...Event },
created: function () {},
};
</script>
<style>
</style>
......@@ -57,17 +57,17 @@
<!--PD000055 -->
<el-tab-pane label="货物描述" name="dogp">
<m-dogp :model="model" :codes="codes" />
<m-doxp :model="model" :codes="codes" :dtyp="'dogp'" :rec="'led'" />
</el-tab-pane>
<!--PD000057 -->
<el-tab-pane label="单据要求" name="dorp">
<m-dorp :model="model" :codes="codes" />
<m-doxp :model="model" :codes="codes" :dtyp="'dorp'" :rec="'led'" />
</el-tab-pane>
<!--PD000059 -->
<el-tab-pane label="附加条款" name="adcp">
<m-adcp :model="model" :codes="codes" />
<m-doxp :model="model" :codes="codes" :dtyp="'adcp'" :rec="'led'" />
</el-tab-pane>
<!--PD000000 -->
......@@ -108,7 +108,12 @@
label="受益人特殊付款条款"
name="spcbenp"
>
<m-spcbenp :model="model" :codes="codes" />
<m-doxp
:model="model"
:codes="codes"
:dtyp="'spcbenp'"
:rec="'led'"
/>
</el-tab-pane>
<!--PD000395 -->
......@@ -117,7 +122,12 @@
label="收款银行特殊付款条款"
name="spcrcvp"
>
<m-spcrcvp :model="model" :codes="codes" />
<m-doxp
:model="model"
:codes="codes"
:dtyp="'spcrcvp'"
:rec="'led'"
/>
</el-tab-pane>
<!--PD000001 -->
......@@ -156,9 +166,6 @@ import Pattern from "~/model/Letopn/Pattern";
import Ovwp from "./Ovwp";
import Detp from "./Detp";
import Ptyp from "./Ptyp";
import Dogp from "./Dogp";
import Dorp from "./Dorp";
import Adcp from "./Adcp";
// import Setpan from "./Setpan";
// import Coninfp from "./Coninfp";
// import Docpan from "./Docpan";
......@@ -167,14 +174,13 @@ import Adcp from "./Adcp";
import Doctre from "./Doctre";
import Revp from "./Revp";
import Aamp from "./Aamp";
import Spcbenp from "./Spcbenp";
import Spcrcvp from "./Spcrcvp";
import Coninfp from "~/views/Public/Coninfp";
import Setpan from "~/views/Public/Setpan";
import Docpan from "~/views/Public/Docpan";
import Engp from "~/views/Public/Engp";
import Glepan from "~/views/Public/Glepan";
import Doxp from "~/views/Public/Doxp";
export default {
name: "Letopn",
......@@ -182,9 +188,6 @@ export default {
"m-ovwp": Ovwp,
"m-detp": Detp,
"m-ptyp": Ptyp,
"m-dogp": Dogp,
"m-dorp": Dorp,
"m-adcp": Adcp,
"m-setpan": Setpan,
"m-coninfp": Coninfp,
"m-docpan": Docpan,
......@@ -192,9 +195,8 @@ export default {
"m-engp": Engp,
"m-revp": Revp,
"m-aamp": Aamp,
"m-spcbenp": Spcbenp,
"m-spcrcvp": Spcrcvp,
"m-glepan": Glepan,
"m-doxp": Doxp,
},
provide() {
return {
......
<template>
<div class="eibs-tab">
<c-col :span="12">
<el-form-item label="Special Payment Cond." prop="ledgrp.blk.spcben">
<c-input type="textarea" v-model="model.ledgrp.blk.spcben" maxlength="65" show-word-limit placeholder="请输入Special Payment Cond." ></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" icon="el-icon-search" @click="onSpcbenButtxmsel">
...
</c-button>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Letrsv/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [CommonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<el-form-item label="Special Payment Cond." prop="ledgrp.blk.spcrcb">
<c-input type="textarea" v-model="model.ledgrp.blk.spcrcb" maxlength="65" show-word-limit placeholder="请输入Special Payment Cond." ></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" icon="el-icon-search" @click="onSpcrcbButtxmsel">
...
</c-button>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Letrsv/Event"
export default {
inject: ['root'],
props:["model","codes"],
mixins: [CommonProcess],
data(){
return {
}
},
methods:{...Event},
created:function(){
}
}
</script>
<style>
</style>
<template>
<div class="eContainer">
<c-bus-button :$pntvm="this"></c-bus-button>
<el-form
:model="model"
:rules="rules"
ref="modelForm"
label-width="150px"
label-position="left"
size="small"
:validate-on-rule-change="false"
>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--PD000017 -->
<el-tab-pane label="基本信息" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000063 -->
<el-tab-pane label="信用证信息" name="detp">
<m-detp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000042 -->
<el-tab-pane label="其他当事人" name="ptyp">
<m-ptyp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000055 -->
<el-tab-pane label="货物描述" name="dogp">
<m-doxp :model="model" :codes="codes" :dtyp="'dogp'" />
</el-tab-pane>
<!--PD000057 -->
<el-tab-pane label="单据要求" name="dorp">
<m-doxp :model="model" :codes="codes" :dtyp="'dorp'" />
</el-tab-pane>
<!--PD000060 -->
<el-tab-pane label="附加条款" name="adcp">
<c-content>
<m-doxp :model="model" :codes="codes" :dtyp="'adcp'" />
</c-content>
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="PD000000" name="setpan">
<m-setpan :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="PD000000" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000529 -->
<el-tab-pane label="PD000529" name="docpan">
<m-docpan :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000546 -->
<el-tab-pane label="PD000546" name="doctre">
<m-doctre :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="PD000027" name="engp">
<m-engp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000317 -->
<el-tab-pane label="PD000317" name="revp">
<m-revp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane label="PD000001" name="aamp">
<m-aamp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000394 -->
<el-tab-pane label="PD000394" name="spcbenp">
<m-spcbenp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000422 -->
<el-tab-pane label="PD000422" name="spcrcvp">
<m-spcrcvp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane label="PD000001" name="glepan">
<m-glepan :model="model" :codes="codes" />
</el-tab-pane>
</c-tabs>
</el-form>
</div>
<c-page title="出口信用证预通知">
<div class="eContainer">
<c-function-btn
:handleSubmit="handleSubmit"
:handleCheck="handleCheck"
:handleStash="handleStash"
>
<el-button size="small">备忘录</el-button>
<el-button size="small">影像信息</el-button>
<el-button size="small">保存模板</el-button>
<el-button size="small">使用模板</el-button>
<el-button size="small">制裁信息</el-button>
<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"
>
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
<!--PD000017 -->
<el-tab-pane label="基本信息" name="ovwp">
<c-content>
<m-ovwp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--PD000063 -->
<el-tab-pane label="信用证信息" name="detp">
<m-detp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000042 -->
<el-tab-pane label="其他当事人" name="ptyp">
<m-ptyp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000055 -->
<el-tab-pane label="货物描述" name="dogp">
<m-doxp :model="model" :codes="codes" :dtyp="'dogp'" :rec="'led'" />
</el-tab-pane>
<!--PD000057 -->
<el-tab-pane label="单据要求" name="dorp">
<m-doxp :model="model" :codes="codes" :dtyp="'dorp'" :rec="'led'" />
</el-tab-pane>
<!--PD000060 -->
<el-tab-pane label="附加条款" name="adcp">
<c-content>
<m-doxp
:model="model"
:codes="codes"
:dtyp="'adcp'"
:rec="'led'"
/>
</c-content>
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="账务" name="setpan">
<m-setpan :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000000 -->
<el-tab-pane label="附言" name="coninfp">
<m-coninfp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000529 -->
<el-tab-pane label="报文及面函" name="docpan">
<m-docpan :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000546 -->
<el-tab-pane label="附件" name="doctre">
<m-doctre :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000027 -->
<el-tab-pane label="或有" name="engp">
<m-engp :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000317 -->
<!-- <el-tab-pane label="PD000317" name="revp">
<m-revp :model="model" :codes="codes" />
</el-tab-pane> -->
<!--PD000001 -->
<!-- <el-tab-pane label="PD000001" name="aamp">
<m-aamp :model="model" :codes="codes" />
</el-tab-pane> -->
<el-tab-pane
v-if="model.ledgrp.rec.spcbenflg"
label="受益人特殊付款条款"
name="spcbenp"
>
<m-doxp
:model="model"
:codes="codes"
:dtyp="'spcbenp'"
:rec="'led'"
/>
</el-tab-pane>
<!--PD000395 -->
<el-tab-pane
v-if="model.ledgrp.rec.spcrcbflg"
label="收款银行特殊付款条款"
name="spcrcvp"
>
<m-doxp
:model="model"
:codes="codes"
:dtyp="'spcrcvp'"
:rec="'led'"
/>
</el-tab-pane>
<!--PD000001 -->
<el-tab-pane label="分录信息" name="glepan">
<m-glepan :model="model" :codes="codes" />
</el-tab-pane>
</c-tabs>
</el-form>
</div>
</c-page>
</template>
<script>
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Letrsv from "~/model/Letrsv";
import CommonProcess from "~/mixin/CommonProcess";
import CommonFuncs from "~/mixin/CommonFuncs";
import Check from "~/model/Letrsv/Check";
import Default from "~/model/Letrsv/Default";
import Pattern from "~/model/Letrsv/Pattern";
......@@ -110,16 +147,17 @@ import Ovwp from "./Ovwp";
import Detp from "./Detp";
import Ptyp from "./Ptyp";
import Setpan from "./Setpan";
import Docpan from "./Docpan";
//import Setpan from "./Setpan";
//import Docpan from "./Docpan";
import Doctre from "./Doctre";
import Engp from "./Engp";
import Revp from "./Revp";
import Aamp from "./Aamp";
import Spcbenp from "./Spcbenp";
import Spcrcvp from "./Spcrcvp";
import Glepan from "./Glepan";
// Glepan from "./Glepan";
import Glepan from "~/views/Public/Glepan";
import Docpan from "~/views/Public/Docpan";
import Setpan from "~/views/Public/Setpan";
import Coninfp from "~/views/Public/Coninfp";
import Doxp from "~/views/Public/Doxp";
......@@ -135,8 +173,6 @@ export default {
"m-engp": Engp,
"m-revp": Revp,
"m-aamp": Aamp,
"m-spcbenp": Spcbenp,
"m-spcrcvp": Spcrcvp,
"m-glepan": Glepan,
"m-doxp": Doxp,
},
......@@ -145,7 +181,7 @@ export default {
root: this,
};
},
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
mixins: [CommonProcess, CommonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "ovwp",
......
......@@ -3,9 +3,9 @@
<c-blkTextarea :model="model" v-bind="blk"> </c-blkTextarea>
<br />
<c-col v-if="dtyp === 'dogp'" :span="12">
<el-form-item label="Goods code" prop="ledgrp.rec.stagod">
<el-form-item label="Goods code" :prop="`${rec}grp.rec.stagod`">
<c-select
v-model="model.ledgrp.rec.stagod"
v-model="model[`${rec}grp`].rec.stagod"
style="width: 100%"
placeholder="请选择Goods code"
:code="codes.godcod"
......@@ -15,19 +15,19 @@
</c-col>
<template v-if="dtyp === 'adcp'">
<c-col :span="20" class="letopn_adcp_cheak">
<c-checkbox v-model="model.ledgrp.rec.spcbenflg"
<c-checkbox v-model="model[`${rec}grp`].rec.spcbenflg"
>Special payment conditions for beneficiary</c-checkbox
>
</c-col>
<c-col :span="20" class="letopn_adcp_cheak">
<c-checkbox v-model="model.ledgrp.rec.spcrcbflg">
<c-checkbox v-model="model[`${rec}grp`].rec.spcrcbflg">
Special payment conditions for receiving bank</c-checkbox
>
</c-col>
<c-col :span="20" class="letopn_adcp_cheak">
<c-checkbox v-model="model.ledgrp.rec.redclsflg"
<c-checkbox v-model="model[`${rec}grp`].rec.redclsflg"
>Red/Green Clause</c-checkbox
>
</c-col>
......@@ -43,66 +43,68 @@ import BlkTextarea from "./BlkTextarea";
export default {
inject: ["root"],
// dtyp=>dogp:货物描述;dorp:单据要求;adcp:附加条款;spcbenp:受益人特殊付款条款;spcrcvp:收款银行特殊付款条款
props: ["model", "codes", "dtyp"],
props: ["model", "codes", "dtyp", "rec"],
components: { "c-blkTextarea": BlkTextarea },
mixins: [CommonProcess],
data() {
return {
blk: this.getBlk(this.dtyp),
blk: this.getBlk(this.dtyp, this.rec),
blk1: {
blkMsg: {
title: "Instructions to Pay.,Accept.,Negot.bank",
dataUrl: "ledgrp.blk.insbnk", //字段所在model路劲
dataUrl: `${this.rec}grp.blk.insbnk`, //字段所在model路劲
rows: 6,
maxlength: 2000,
},
rulePath: "letp.insbnk.buttxmsel",
rulePath: `${this.rec.slice(0, 2)}tp.insbnk.buttxmsel`,
},
};
},
methods: {
getBlk(dtyp) {
getBlk(dtyp, rec) {
let blk = { blkMsg: {}, rulePath: "" };
let tp = rec.slice(0, 2);
console.log('tp is :',tp);
switch (dtyp) {
case "dogp":
blk.blkMsg = {
title: "Description of Goods",
dataUrl: "ledgrp.blk.lcrgod", //字段所在model路劲
dataUrl: `${rec}grp.blk.lcrgod`, //字段所在model路劲
rows: 20,
};
blk.rulePath = "letp.lcrgod.buttxmsel";
blk.rulePath = `${tp}tp.lcrgod.buttxmsel`;
break;
case "dorp":
blk.blkMsg = {
title: "Documents Required",
dataUrl: "ledgrp.blk.lcrdoc", //字段所在model路劲
dataUrl: `${rec}grp.blk.lcrdoc`, //字段所在model路劲
rows: 20,
};
blk.rulePath = "letp.lcrdoc.buttxmsel";
blk.rulePath = `${tp}tp.lcrdoc.buttxmsel`;
break;
case "adcp":
blk.blkMsg = {
title: "Additional Conditions",
dataUrl: "ledgrp.blk.adlcnd", //字段所在model路劲
rows: 16,
dataUrl: `${rec}grp.blk.adlcnd`, //字段所在model路劲
rows: 14,
};
blk.rulePath = "letp.adlcnd.buttxmsel";
blk.rulePath = `${tp}tp.adlcnd.buttxmsel`;
break;
case "spcbenp":
blk.blkMsg = {
title: "Special payment conditions for beneficiary",
dataUrl: "ledgrp.blk.spcben", //字段所在model路劲
dataUrl: `${rec}grp.blk.spcben`, //字段所在model路劲
rows: 20,
};
blk.rulePath = "letp.spcben.buttxmsel";
blk.rulePath = `${tp}tp.spcben.buttxmsel`;
break;
case "spcrcvp":
blk.blkMsg = {
title: "Special payment conditions for receiving bank",
dataUrl: "ledgrp.blk.spcrcb", //字段所在model路劲
dataUrl: `${rec}grp.blk.spcrcb`, //字段所在model路劲
rows: 20,
};
blk.rulePath = "letp.spcrcb.buttxmsel";
blk.rulePath = `${tp}tp.spcrcb.buttxmsel`;
break;
}
return blk;
......
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