Commit 12af9a58 by zhengxiaokui

zxk

parent 6bcb1f4c
......@@ -6,12 +6,12 @@ import Utils from "~/utils"
let checkObj = {
"ledgrp.apb.pts.extkey" :null,
"liaall.misamt" :null,
"letp.rmbp.ptsget.sdamod.dadsnd" :null,
"letamep.lcrgodamep.usrblk" :null,
"ledgrp.rec.opndat" :null,
"ledgrp.adv.namelc" :null,
"oldledgrp.rec.expdat" :null,
"ledgrp.rmb.pts.extkey" :null,
"letp.avbp.ptsget.sdamod.dadsnd" :null,
"letamep.adlcndamep.usrblk" :null,
"ledgrp.iss.pts.adrblk" :null,
"ledgrp.avb.adrelc" :null,
"ledgrp.rec.tenmaxday" :null,
......@@ -30,50 +30,51 @@ let checkObj = {
"ledgrp.rec.prepers18" :null,
"trnmod.swiadd.amedat" :null,
"ledgrp.iss.adrelc" :null,
"letamep.lcrdocamep.usrblk" :null,
"ledgrp.apb.namelc" :null,
"trnmod.swiadd.insbnk" :null,
"ledgrp.apl.namelc" :null,
"ledgrp.cbs.max2.amt" :null,
"trnmod.swiadd.newshpdat" :null,
"ledgrp.rec.stacty" :null,
"letp.apbp.ptsget.sdamod.dadsnd" :null,
"ledgrp.blk.lcrdoc" :null,
"ledgrp.blk.dftat" :null,
"trnmod.swiadd.newexpdat" :null,
"ledgrp.blk.insbnk" :null,
"ledgrp.iss.pts.extkey" :null,
"ledgrp.blk.adlcnd" :null,
"ledgrp.rec.expplc" :null,
"ledgrp.a2b.pts.extkey" :null,
"ledgrp.iss.pts.ref" :null,
"liaall.limmod.wrkp.ptsget.sdamod.dadsnd" :null,
"ledgrp.apl.pts.adrblk" :null,
"letamep.spcbenamep.usrblk" :null,
"letp.chkmsg" :null,
"ledgrp.rmb.adrelc" :null,
"ledgrp.drw.pts.adrblk" :null,
"ledgrp.blk.spcben" :null,
"liaall.limmod.limpts.oth.pts.extkey" :null,
"liaall.limmod.ownref" :null,
"ledgrp.a2b.pts.adrblk" :null,
"trnmod.swiadd.newamt" :null,
"liaall.limmod.ecifno" :null,
"letp.conp.ptsget.sdamod.dadsnd" :null,
"letp.issp.ptsget.sdamod.dadsnd" :null,
"ledgrp.rec.revdat" :null,
"ledgrp.blk.spcrcb" :null,
"ledgrp.blk.preper" :null,
"ledgrp.adv.adrelc" :null,
"ledgrp.ben.adrelc" :null,
"letamep.recget.sdamod.dadsnd" :null,
"ledgrp.adv.pts.extkey" :null,
"liaall.limmod.othp.ptsget.sdamod.dadsnd" :null,
"ledgrp.rmb.pts.adrblk" :null,
"ledgrp.blk.lcrgod" :null,
"ledgrp.a2b.adrelc" :null,
"ledgrp.avb.namelc" :null,
"ledgrp.avb.pts.adrblk" :null,
"ledgrp.apb.pts.adrblk" :null,
"trnmod.swiadd.addamt" :null,
"letp.a2bp.ptsget.sdamod.dadsnd" :null,
"letamep.spcrcbamep.usrblk" :null,
"ledgrp.con.pts.nam" :null,
"trnmod.swiadd.newnomtop" :null,
"trnmod.swiadd.newnomton" :null,
"ledgrp.rec.avbwth" :null,
"letp.drwp.ptsget.sdamod.dadsnd" :null,
"ledgrp.rmb.namelc" :null,
"ledgrp.blk.feetxt" :null,
"ledgrp.blk.revcls" :null,
......@@ -81,24 +82,20 @@ let checkObj = {
"ledgrp.adv.pts.adrblk" :null,
"ledgrp.blk.defdet" :null,
"trnmod.swiadd.ameamt" :null,
"letp.benp.ptsget.sdamod.dadsnd" :null,
"ledgrp.rec.lcrtyp" :null,
"mtabut.coninf.conexedat" :null,
"ledgrp.rec.apprul" :null,
"ledgrp.apl.adrelc" :null,
"liaall.limmod.limpts.nonrevflg1" :null,
"ledgrp.iss.namelc" :null,
"letp.advp.ptsget.sdamod.dadsnd" :null,
"ledgrp.drw.pts.extkey" :null,
"ledgrp.ben.namelc" :null,
"letp.recget.sdamod.dadsnd" :null,
"ledgrp.ben.pts.adrblk" :null,
"ledgrp.blk.addamtcov" :null,
"setmod.docamt" :null,
"ledgrp.apb.adrelc" :null,
"ledgrp.drw.namelc" :null,
"ledgrp.apl.pts.extkey" :null,
"letp.aplp.ptsget.sdamod.dadsnd" :null,
"ledgrp.con.pts.extkey" :null,
"ledgrp.rec.cnfdet" :null,
"ledgrp.rec.apprultxt" :null,
......
......@@ -17,6 +17,9 @@ export default {
"ledgrp.rec.avbby" :Utils.defaultFunction,
"ledgrp.avb.pts.extkey" :Utils.defaultFunction,
"ledgrp.rec.revflg" :Utils.defaultFunction,
"letamep.spcbenamep.modflg" :Utils.defaultFunction,
"letamep.spcbenamep.modmanflg" :Utils.defaultFunction,
"ledgrp.blk.spcben" :Utils.defaultFunction,
"trnmod.swiadd.nomspc" :Utils.defaultFunction,
"oldledgrp.cbs.max.amt" :Utils.defaultFunction,
"trnmod.swiadd.newamt" :Utils.defaultFunction,
......@@ -26,6 +29,11 @@ export default {
"ledgrp.blk.shpper" :Utils.defaultFunction,
"trnmod.swiadd.shpper" :Utils.defaultFunction,
"trnmod.swiadd.newshpdat" :Utils.defaultFunction,
"ledgrp.blk.spcrcb" :Utils.defaultFunction,
"letamep.spcbenamep.usrblk" :Utils.defaultFunction,
"letamep.lcrdocamep.modflg" :Utils.defaultFunction,
"letamep.lcrdocamep.modmanflg" :Utils.defaultFunction,
"ledgrp.blk.lcrdoc" :Utils.defaultFunction,
"setmod.doccur" :Utils.defaultFunction,
"setmod.dspflg" :Utils.defaultFunction,
"setmod.docamt" :Utils.defaultFunction,
......@@ -44,6 +52,9 @@ export default {
"ledgrp.avb.adrelc" :Utils.defaultFunction,
"ledgrp.avb.namelc" :Utils.defaultFunction,
"ledgrp.avb.dbfadrblkcn" :Utils.defaultFunction,
"letamep.adlcndamep.modflg" :Utils.defaultFunction,
"letamep.adlcndamep.modmanflg" :Utils.defaultFunction,
"ledgrp.blk.adlcnd" :Utils.defaultFunction,
"ledgrp.apl.pts.extkey" :Utils.defaultFunction,
"ledgrp.apl.adrelc" :Utils.defaultFunction,
"ledgrp.apl.namelc" :Utils.defaultFunction,
......@@ -59,6 +70,8 @@ export default {
"ledgrp.cbs.max.amt" :Utils.defaultFunction,
"ledgrp.rec.shppars18" :Utils.defaultFunction,
"ledgrp.rec.shppar" :Utils.defaultFunction,
"letamep.spcrcbamep.modflg" :Utils.defaultFunction,
"letamep.spcrcbamep.modmanflg" :Utils.defaultFunction,
"ledgrp.cbs.max2.cur" :Utils.defaultFunction,
"liaall.limmod.limpts.nonrevflg2" :Utils.defaultFunction,
"liaall.limmod.limpts.nonrevflg1" :Utils.defaultFunction,
......@@ -67,12 +80,17 @@ export default {
"ledgrp.rmb.adrelc" :Utils.defaultFunction,
"ledgrp.rmb.namelc" :Utils.defaultFunction,
"ledgrp.rmb.dbfadrblkcn" :Utils.defaultFunction,
"letp.leltb2b.litb2bstm" :Utils.defaultFunction,
"letamep.lcrdocamep.usrblk" :Utils.defaultFunction,
"ledgrp.ben.pts.extkey" :Utils.defaultFunction,
"ledgrp.ben.adrelc" :Utils.defaultFunction,
"ledgrp.ben.namelc" :Utils.defaultFunction,
"ledgrp.ben.dbfadrblkcn" :Utils.defaultFunction,
"ledgrp.adv.pts.adrblk" :Utils.defaultFunction,
"ledgrp.rec.apprul" :Utils.defaultFunction,
"letamep.lcrgodamep.modflg" :Utils.defaultFunction,
"letamep.lcrgodamep.modmanflg" :Utils.defaultFunction,
"ledgrp.blk.lcrgod" :Utils.defaultFunction,
"ledgrp.rec.ownref" :Utils.defaultFunction,
"ledgrp.rec.spcrcbflg" :Utils.defaultFunction,
"ledgrp.iss.pts.adrblk" :Utils.defaultFunction,
......@@ -89,9 +107,16 @@ export default {
"ledgrp.rec.shptrss18" :Utils.defaultFunction,
"ledgrp.rec.shptrs" :Utils.defaultFunction,
"trnmod.swiadd.amedat" :Utils.defaultFunction,
"letamep.adlcndamep.usrblk" :Utils.defaultFunction,
"trnmod.swiadd.addamt" :Utils.defaultFunction,
"trnmod.swiadd.newexpdat" :Utils.defaultFunction,
"oldledgrp.rec.expdat" :Utils.defaultFunction,
"letp.chkmsg" :Utils.defaultFunction,
"ledgrp.cbs.opn1.cur" :Utils.defaultFunction,
"letp.trnexpdat" :Utils.defaultFunction,
"letp.trnopnamt" :Utils.defaultFunction,
"letp.totamt" :Utils.defaultFunction,
"letp.trnshpdat" :Utils.defaultFunction,
"oldledgrp.rec.prepertxts18" :Utils.defaultFunction,
"ledgrp.rec.spcbenflg" :Utils.defaultFunction,
"ledgrp.blk.addamtcov" :Utils.defaultFunction,
......@@ -104,6 +129,7 @@ export default {
"ledgrp.apb.namelc" :Utils.defaultFunction,
"ledgrp.apb.dbfadrblkcn" :Utils.defaultFunction,
"trnmod.swiadd.shpto" :Utils.defaultFunction,
"letamep.lcrgodamep.usrblk" :Utils.defaultFunction,
"letp.aamp.aammod.addamtflg" :Utils.defaultFunction,
"letamep.maxcur" :Utils.defaultFunction,
"ledgrp.rec.opndat" :Utils.defaultFunction,
......@@ -117,6 +143,7 @@ export default {
"liaall.limmod.limpts.wrk.pts.nam" :Utils.defaultFunction,
"ledgrp.rec.nonban" :Utils.defaultFunction,
"ledgrp.blk.avbwthtxt" :Utils.defaultFunction,
"letamep.spcrcbamep.usrblk" :Utils.defaultFunction,
"setmod.glemod.gleshwstm" :Utils.defaultFunction,
"liaall.misamt" :Utils.defaultFunction,
"letamep.ramrol" :Utils.defaultFunction,
......
......@@ -634,22 +634,58 @@ export default {
{type: "string", required: true, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"ledgrp.blk.lcrgod":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"letamep.lcrgodamep.usrblk":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"letamep.lcrgodame.buttxmsel":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ledgrp.blk.lcrdocame":[
{type: "string", required: true, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"ledgrp.blk.lcrdoc":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"letamep.lcrdocamep.usrblk":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"letamep.lcrdocame.buttxmsel":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ledgrp.blk.adlcndame":[
{type: "string", required: true, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"ledgrp.blk.adlcnd":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"letamep.adlcndamep.usrblk":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
......@@ -657,6 +693,9 @@ export default {
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"ledgrp.blk.insbnk":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
......@@ -878,8 +917,62 @@ export default {
{type: "string", required: true, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"ledgrp.blk.spcrcb":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"letamep.spcrcbamep.usrblk":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"ledgrp.blk.spcbename":[
{type: "string", required: true, message: "必输项"},
{max: 50,message:"长度不能超过50"}
],
"ledgrp.blk.spcben":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"letamep.spcbenamep.usrblk":[
{type: "string", required: true, message: "必输项"},
{max: 65,message:"长度不能超过65"}
],
"letp.leltb2b.litb2bstm":[
{type: "string", required: false, message: "必输项"},
{max: 1,message:"长度不能超过1"}
],
"ledgrp.cbs.opn1.cur":[
{type: "string", required: false, message: "必输项"},
{max: 3,message:"长度不能超过3"}
],
"letp.totamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"letp.trnopnamt":[
{type: "number", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
"letp.trnshpdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"letp.trnexpdat":[
{type: "date", required: false, message: "输入正确的日期"}
],
"letp.chkmsg":[
{type: "string", required: true, message: "必输项"},
{max: 114,message:"长度不能超过114"}
],
}
\ No newline at end of file
export default class Trnmod {
constructor() {
this.data = {
swiadd: {
amedat: "", // Amendment Date .trnmod.swiadd.amedat
amenbr: "", // Amend. No Received .trnmod.swiadd.amenbr
amecur: "", // Amended .trnmod.swiadd.amecur
ameamt: "", // Amended .trnmod.swiadd.ameamt
newcur: "", // New Data .trnmod.swiadd.newcur
newamt: "", // New Data .trnmod.swiadd.newamt
newnomtop: "", // New positive tolerance .trnmod.swiadd.newnomtop
newnomton: "", // New negative tolerance .trnmod.swiadd.newnomton
nomspc: "", // Amount Specification .trnmod.swiadd.nomspc
newexpdat: "", // New Expiry Date .trnmod.swiadd.newexpdat
newshpdat: "", // New Shipment Date .trnmod.swiadd.newshpdat
shpper: "", // Shipment Period .trnmod.swiadd.shpper
shpfro: "", // Dispatch from .trnmod.swiadd.shpfro
porloa: "", // Air-/Port of Loading .trnmod.swiadd.porloa
pordis: "", // Air-/Port of Discharge .trnmod.swiadd.pordis
shpto: "", // Final Destination .trnmod.swiadd.shpto
addamtcov: "", // Amounts Covered .trnmod.swiadd.addamtcov
addamt: "", // Amounts Covered .trnmod.swiadd.addamt
insbnk: "", // Instruction to P/A/N Bank amendment .trnmod.swiadd.insbnk
},
trndoc: {
advlabel: "", // ADVLABEL .trnmod.trndoc.advlabel
amdnam: "", // AMDNAM .trnmod.trndoc.amdnam
......
......@@ -8,6 +8,12 @@
</c-col>
<c-col :span="12">
<el-form-item label="Additional Conditions" prop="ledgrp.blk.adlcnd">
<c-input type="textarea" v-model="model.ledgrp.blk.adlcnd" maxlength="65" show-word-limit placeholder="请输入Additional Conditions" ></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.ledgrp.rec.redclsflg">Red/Green Clause</c-checkbox>
</c-col>
......@@ -16,14 +22,46 @@
</c-col>
<c-col :span="12">
<el-form-item label="Block to enter additional info for Add/Delete" prop="letamep.adlcndamep.usrblk">
<c-input type="textarea" v-model="model.letamep.adlcndamep.usrblk" maxlength="65" show-word-limit placeholder="请输入Block to enter additional info for Add/Delete" ></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.ledgrp.rec.spcrcbflg">Special Payment Conditions for specified Bank only</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.letamep.adlcndamep.modflg">Modify Text to Replace</c-checkbox>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.letamep.adlcndamep.modmanflg">Modify field for manual update</c-checkbox>
</c-col>
<c-col :span="12">
<el-form-item label="..." prop="letamep.adlcndame.buttxmsel">
<c-input v-model="model.letamep.adlcndame.buttxmsel" placeholder="请输入..."></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onAdlcndamepButdif">
Show Diff
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onAdlcndamepButadd">
Add Text
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" icon="el-icon-delete" @click="onAdlcndamepButdel">
Delete text
</c-button>
</c-col>
</div>
</template>
<script>
......
<template>
<div class="eibs-tab">
<c-col :span="12">
<el-form-item
label="Description of Goods History"
prop="ledgrp.blk.lcrgodame"
>
<c-input
type="textarea"
v-model="model.ledgrp.blk.lcrgodame"
maxlength="50"
show-word-limit
placeholder="请输入Description of Goods History"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Description of Goods" prop="ledgrp.blk.lcrgod">
<c-input
type="textarea"
v-model="model.ledgrp.blk.lcrgod"
maxlength="65"
show-word-limit
placeholder="请输入Description of Goods"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Description of Goods History" prop="ledgrp.blk.lcrgodame">
<c-input type="textarea" v-model="model.ledgrp.blk.lcrgodame" maxlength="50" show-word-limit placeholder="请输入Description of Goods History" ></c-input>
<el-form-item
label="Block to enter additional info for Add/Delete"
prop="letamep.lcrgodamep.usrblk"
>
<c-input
type="textarea"
v-model="model.letamep.lcrgodamep.usrblk"
maxlength="65"
show-word-limit
placeholder="请输入Block to enter additional info for Add/Delete"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="..." prop="letamep.lcrgodame.buttxmsel">
<c-input v-model="model.letamep.lcrgodame.buttxmsel" placeholder="请输入..."></c-input>
<c-input
v-model="model.letamep.lcrgodame.buttxmsel"
placeholder="请输入..."
></c-input>
</el-form-item>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Letame/Event"
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Letame/Event";
export default {
inject: ['root'],
props:["model","codes"],
inject: ["root"],
props: ["model", "codes"],
mixins: [CommonProcess],
data(){
return {
}
data() {
return {};
},
methods:{...Event},
created:function(){
}
}
methods: { ...Event },
created: function () {},
};
</script>
<style>
</style>
<template>
<div class="eibs-tab">
<c-col :span="12">
<el-form-item
label="Documents Required History"
prop="ledgrp.blk.lcrdocame"
>
<c-input
type="textarea"
v-model="model.ledgrp.blk.lcrdocame"
maxlength="50"
show-word-limit
placeholder="请输入Documents Required History"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Documents Required" prop="ledgrp.blk.lcrdoc">
<c-input
type="textarea"
v-model="model.ledgrp.blk.lcrdoc"
maxlength="65"
show-word-limit
placeholder="请输入Documents Required"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="Documents Required History" prop="ledgrp.blk.lcrdocame">
<c-input type="textarea" v-model="model.ledgrp.blk.lcrdocame" maxlength="50" show-word-limit placeholder="请输入Documents Required History" ></c-input>
<el-form-item
label="Block to enter additional info for Add/Delete"
prop="letamep.lcrdocamep.usrblk"
>
<c-input
type="textarea"
v-model="model.letamep.lcrdocamep.usrblk"
maxlength="65"
show-word-limit
placeholder="请输入Block to enter additional info for Add/Delete"
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.letamep.lcrdocamep.modflg"
>Modify Text to Replace</c-checkbox
>
</c-col>
<c-col :span="12">
<c-checkbox v-model="model.letamep.lcrdocamep.modmanflg"
>Modify field for manual update</c-checkbox
>
</c-col>
<c-col :span="12">
<el-form-item label="..." prop="letamep.lcrdocame.buttxmsel">
<c-input v-model="model.letamep.lcrdocame.buttxmsel" placeholder="请输入..."></c-input>
<c-input
v-model="model.letamep.lcrdocame.buttxmsel"
placeholder="请输入..."
></c-input>
</el-form-item>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onLcrdocamepButdif">
Show Diff
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" type="primary" @click="onLcrdocamepButadd">
Add Text
</c-button>
</c-col>
<c-col :span="12">
<c-button size="small" icon="el-icon-delete" @click="onLcrdocamepButdel">
Delete text
</c-button>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Letame/Event"
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Letame/Event";
export default {
inject: ['root'],
props:["model","codes"],
inject: ["root"],
props: ["model", "codes"],
mixins: [CommonProcess],
data(){
return {
}
data() {
return {};
},
methods:{...Event},
created:function(){
}
}
methods: { ...Event },
created: function () {},
};
</script>
<style>
</style>
......@@ -92,17 +92,24 @@
<!--PD000094 -->
<el-tab-pane label="货物描述修改" name="dogpame">
<m-dogpame :model="model" :codes="codes" />
</el-tab-pane>
<!--PD000098 -->
<el-tab-pane label="单据要求修改" name="dorpame">
<m-dorpame :model="model" :codes="codes" />
<!-- <m-dogpame :model="model" :codes="codes" /> -->
<c-content>
<m-doxpame :model="model" :codes="codes" :recgrp="'ledgrp'" :ametyp="'lcrgod'"/>
</c-content>
</el-tab-pane>
<!--PD000102 -->
<el-tab-pane label="附加条款修改" name="adcpame">
<m-adcpame :model="model" :codes="codes" />
<c-content>
<m-doxpame :model="model" :codes="codes" :recgrp="'ledgrp'" :ametyp="'adlcnd'"/>
</c-content>
</el-tab-pane>
<!--PD000098 -->
<el-tab-pane label="单据要求修改" name="dorpame">
<c-content>
<m-doxpame :model="model" :codes="codes" :recgrp="'ledgrp'" :ametyp="'lcrdoc'"/>
</c-content>
</el-tab-pane>
<!--PD000001 -->
......@@ -138,6 +145,7 @@ import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Letame from "~/model/Letame";
import CommonProcess from "~/mixin/CommonProcess";
import CommonFuncs from "~/mixin/CommonFuncs";
import Check from "~/model/Letame/Check";
import Default from "~/model/Letame/Default";
import Pattern from "~/model/Letame/Pattern";
......@@ -165,6 +173,7 @@ import Docpan from "~/views/Public/Docpan";
import Engp from "~/views/Public/Engp";
import Glepan from "~/views/Public/Glepan";
import Coninfp from "~/views/Public/Coninfp";
import Doxpame from "~/views/Public/Doxpame";
export default {
components: {
......@@ -187,13 +196,14 @@ export default {
"m-limitbody": Limitbody,
"m-sprpame": Sprpame,
"m-spbpame": Spbpame,
"m-doxpame": Doxpame,
},
provide() {
return {
root: this,
};
},
mixins: [CommonProcess], // 里面包含了Default、Check等的公共处理
mixins: [CommonProcess, CommonFuncs], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "amep",
......
......@@ -224,6 +224,7 @@ export default {
let rtnmsg = await this.init({});
if (rtnmsg.respCode == SUCCESS) {
//更新数据
this.updateModel(rtnmsg.data)
Utils.copyValueFromVO(this.model, rtnmsg.data);
if (this.isInDisplay) {
this.restoreDisplay();
......
......@@ -13,7 +13,7 @@
</c-select>
</el-form-item>
</c-col>
<template v-if="dtyp === 'adcp'">
<template v-else-if="dtyp === 'adcp'">
<c-col :span="20" class="letopn_adcp_cheak">
<c-checkbox v-model="model[`${rec}grp`].rec.spcbenflg"
>Special payment conditions for beneficiary</c-checkbox
......
<template>
<c-row>
<c-col :span="24">
<c-col :span="11">
<c-col :span="24" class="doxpame_top_Description">
<span>{{ getTitle }}</span>
</c-col>
<c-col>
<el-form-item
label=""
label-width="0px"
:prop="`${recgrp}.blk.${ametyp}`"
>
<c-input
type="textarea"
v-model="model[recgrp].blk[ametyp]"
maxlength="52000"
show-word-limit
:rows="20"
placeholder="请输入Description of Goods"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="11" :offset="1">
<c-col :span="24" class="doxpame_top_Description">
<span>History Overview</span>
</c-col>
<c-col :span="24">
<el-form-item
label=""
label-width="0px"
:prop="`${recgrp}.blk.${ametyp}ame`"
>
<c-input
type="textarea"
v-model="model[recgrp].blk[`${ametyp}ame`]"
maxlength="52000"
show-word-limit
:rows="17"
placeholder="请输入Description of Goods History"
></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<c-checkbox v-model="model[amep][`${ametyp}amep`].modflg"
>Modify Text to Replace</c-checkbox
>
</c-col>
<c-col :span="24">
<c-checkbox v-model="model[amep][`${ametyp}amep`].modmanflg"
>Modify field for manual update</c-checkbox
>
</c-col>
</c-col>
</c-col>
<c-col :span="24">
<c-col :span="11">
<c-col :span="24" class="doxpame_top_Description">
<span>Add/Delete Text in current Amendment</span>
</c-col>
<c-col :span="24">
<el-form-item
label=""
label-width="0px"
:prop="`${amep}.${ametyp}amep.usrblk`"
>
<c-input
type="textarea"
v-model="model[amep][`${ametyp}amep`].usrblk"
maxlength="2000"
show-word-limit
:rows="8"
placeholder="请输入Block to enter additional info for Add/Delete"
></c-input>
</el-form-item>
</c-col>
</c-col>
<c-col :span="11" :offset="1" class="ame_button">
<c-col :span="24" class="ame_BlkTextarea_button">
<c-button
size="small"
type="primary"
icon="el-icon-search"
@click="showGridPromptDialog('letamep.lcrgodame.buttxmsel')"
>
...
</c-button>
</c-col>
<c-col :span="24">
<c-button size="small" type="primary" @click="onLcrgodamepButdif">
Show Diff
</c-button>
</c-col>
<c-col :span="24">
<c-button size="small" type="primary" @click="onLcrgodamepButadd">
Add Text
</c-button>
</c-col>
<c-col :span="24">
<c-button
size="small"
icon="el-icon-delete"
@click="onLcrgodamepButdel"
>
Delete text
</c-button>
</c-col>
</c-col>
</c-col>
</c-row>
</template>
<script>
import Api from "~/service/Api";
import CommonProcess from "~/mixin/CommonProcess";
export default {
inject: ["root"],
props: {
model: {
type: Object,
default: undefined,
},
codes: {
type: Object,
default: undefined,
},
recgrp: {
type: String,
default: "",
},
//修改字段:如货物lcrgod
ametyp: {
type: String,
default: "",
},
},
mixins: [CommonProcess],
data() {
return {
amep: `${this.recgrp.substring(0, 2)}tamep`,
};
},
methods: {
onLcrgodamepButadd() {},
onLcrgodamepButdif() {},
onLcrgodamepButdel() {},
},
computed: {
getTitle() {
switch (this.ametyp) {
case "lcrgod":
return "DESCRIPTION OF GOODS";
case "lcrdoc":
return "ADDITIONAL CONDITIONS";
case "adlcnd":
return "DOCUMENTS REQUIRED";
default:
return "title 错误";
}
},
},
created: function () {},
};
</script>
<style>
.doxpame_top_Description {
height: 16px;
color: #606266;
line-height: 16px;
font-size: 12px;
}
.ame_BlkTextarea_button {
margin-top: 20px;
}
.ame_button button {
margin-bottom: 10px;
}
.ame_button button:nth-last-child(1) {
margin-left: 10px;
}
</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