Commit e7ab58b4 by huangxin

brtudp修改

parent 17e92cc6
...@@ -3006,6 +3006,9 @@ const CodeTable = { ...@@ -3006,6 +3006,9 @@ const CodeTable = {
{ label: "Documents sent on approval basis", value: "L" }, { label: "Documents sent on approval basis", value: "L" },
{ label: "Documents taken up", value: "M" }, { label: "Documents taken up", value: "M" },
{ label: "Documents settled free of payment", value: "N" }, { label: "Documents settled free of payment", value: "N" },
{ label: "Discrepant document received in trust", value: "T" },
{ label: "Other Type of Advice, wait for documents", value: "O" },
{ label: "Documents have been refused and returned", value: "R" },
], ],
doctyp: [ doctyp: [
{ label: "买方单据", value: "BDD" }, { label: "买方单据", value: "BDD" },
......
...@@ -28,7 +28,25 @@ export default class Brtudp { ...@@ -28,7 +28,25 @@ export default class Brtudp {
}, },
brdgrp: { brdgrp: {
shp: {
pts: new Pts().data,
namelc: "", // 名称 .brdgrp.shp.namelc
adrelc: "", // 地址 .brdgrp.shp.adrelc
dbfadrblkcn: "", // Chinese address .brdgrp.shp.dbfadrblkcn
},
rec: { rec: {
ngrcod:"",
rtoaplflg:"",
blnum:"",
tramod:"",
tradat:"",
trpdocnum:"",
trpdoctyp:"",
expdat:"",
relgoddat:"",
reltyp:"",
relgodflg:"",
dscinsflg:"",
ownref: "", // 单据参考号 .brdgrp.rec.ownref ownref: "", // 单据参考号 .brdgrp.rec.ownref
nam: "", // Name of Bill Contract .brdgrp.rec.nam nam: "", // Name of Bill Contract .brdgrp.rec.nam
rcvdat: "", // Received on .brdgrp.rec.rcvdat rcvdat: "", // Received on .brdgrp.rec.rcvdat
...@@ -81,6 +99,15 @@ export default class Brtudp { ...@@ -81,6 +99,15 @@ export default class Brtudp {
}, },
tag72add: "", // TAG72 .brdgrp.tag72add tag72add: "", // TAG72 .brdgrp.tag72add
blk: { blk: {
notpty:"",
relstoadr:"",
carnam:"",
voynum:"",
porlod:"",
roggod:"",
delplc:"",
pordis:"",
vesnam:"",
prsdoc: "", //brdgrp.blk.prsdoc prsdoc: "", //brdgrp.blk.prsdoc
comcon: "", // Comments and Conclusions .brdgrp.blk.comcon comcon: "", // Comments and Conclusions .brdgrp.blk.comcon
setinsbr: "", // Settlement Instructions BR .brdgrp.blk.setinsbr setinsbr: "", // Settlement Instructions BR .brdgrp.blk.setinsbr
...@@ -122,6 +149,7 @@ export default class Brtudp { ...@@ -122,6 +149,7 @@ export default class Brtudp {
}, },
}, },
brtp: { brtp: {
connum:"",
lidget: { lidget: {
sdamod: { sdamod: {
seainf: "", // .brtp.lidget.sdamod.seainf seainf: "", // .brtp.lidget.sdamod.seainf
......
...@@ -210,7 +210,7 @@ ...@@ -210,7 +210,7 @@
v-model="model.brdgrp.rec.docsta" v-model="model.brdgrp.rec.docsta"
style="width: 100%" style="width: 100%"
placeholder="请选择单据状态" placeholder="请选择单据状态"
:code="codes.docsta" :code="codes.docsta2"
disabled disabled
> >
</c-select> </c-select>
...@@ -323,7 +323,7 @@ ...@@ -323,7 +323,7 @@
v-model="model.sftmt" v-model="model.sftmt"
style="width: 100%" style="width: 100%"
placeholder="请选择类型" placeholder="请选择类型"
:code="codes.paysmt" :code="paysmt"
> >
</c-select> </c-select>
</el-form-item> </el-form-item>
...@@ -519,7 +519,12 @@ export default { ...@@ -519,7 +519,12 @@ export default {
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data() { data() {
return {}; return {
paysmt: [
{ label: "MT 732 Advise of Discharge", value: "732" },
{ label: "MT x99 Information B by Free Massage", value: "x99" },
],
};
}, },
methods: { methods: {
...Event, ...Event,
......
<template>
<div class="eibs-tab">
<!--=== ==========左边=============== -->
<c-col :span="11">
<c-col :span="24">
<el-form-item label="提货担保申请人" prop="brdgrp.rec.relgodflg">
<c-select v-model="model.brdgrp.rec.relgodflg" style="width:100%" placeholder="请选择提货担保申请人" :code="codes.relgod">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="放货类型" prop="brdgrp.rec.reltyp">
<c-select v-model="model.brdgrp.rec.reltyp" style="width:100%" placeholder="请选择放货类型"
:code="codes.reltyp1">
</c-select>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="放货日期" prop="brdgrp.rec.relgoddat">
<c-date-picker type="date" v-model="model.brdgrp.rec.relgoddat" style="width:100%" placeholder="请选择日期"
value-format="yyyy-MM-dd"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="12">
<el-form-item label="生效日期" prop="brdgrp.rec.expdat">
<c-date-picker disabled type="date" v-model="model.brdgrp.rec.expdat" style="width:100%" placeholder="请选择日期"
value-format="yyyy-MM-dd"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="货物单据类型" prop="brdgrp.rec.trpdoctyp">
<c-select v-model="model.brdgrp.rec.trpdoctyp" style="width:100%" placeholder="请选择货物单据类型">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="运输单据编号" prop="brdgrp.rec.trpdocnum">
<c-input v-model="model.brdgrp.rec.trpdocnum" maxlength="40" placeholder="请输入运输单据编号"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="提单装船期" prop="brdgrp.rec.tradat">
<c-date-picker type="date" v-model="model.brdgrp.rec.tradat" style="width:100%" placeholder="请选择日期"
value-format="yyyy-MM-dd"></c-date-picker>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="运输模式" prop="brdgrp.rec.tramod">
<c-select v-model="model.brdgrp.rec.tramod" style="width:100%" placeholder="请选择运输模式">
</c-select>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="运输工具" prop="brdgrp.blk.vesnam">
<c-input v-model="model.brdgrp.blk.vesnam" maxlength="40" placeholder="请输入运输工具"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="卸货口岸" prop="brdgrp.blk.pordis">
<c-input v-model="model.brdgrp.blk.pordis" maxlength="40" placeholder="请输入卸货口岸"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="移交地点" prop="brdgrp.blk.delplc">
<c-input v-model="model.brdgrp.blk.delplc" maxlength="40" placeholder="请输入移交地点"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="货物描述" prop="brdgrp.blk.roggod">
<c-input type="textarea" v-model="model.brdgrp.blk.roggod" maxlength="1600" show-word-limit placeholder="请输入货物描述" ></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="起运口岸" prop="brdgrp.blk.porlod">
<c-input v-model="model.brdgrp.blk.porlod" maxlength="40" placeholder="请输入起运口岸"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="航号" prop="brdgrp.blk.voynum">
<c-input v-model="model.brdgrp.blk.voynum" maxlength="30" placeholder="请输入航号"></c-input>
</el-form-item>
</c-col>
</c-col>
<!--=== ==========右边=============== -->
<c-col :span="11" :offset="1">
<c-col :span="24">
<el-form-item label="合同编号" prop="brtp.connum">
<c-input v-model="model.brtp.connum" maxlength="35" placeholder="请输入合同编号"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label=" ">
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="承运人" prop="brdgrp.blk.carnam">
<c-input v-model="model.brdgrp.blk.carnam" maxlength="35" placeholder="请输入承运人"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="海运/远洋提单编号" prop="brdgrp.rec.blnum">
<c-input v-model="model.brdgrp.rec.blnum" maxlength="20" placeholder="请输入海运/远洋提单编号"></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label=" ">
</el-form-item>
</c-col>
<c-col :span="20">
<el-form-item label="收货人名称及地址" prop="brdgrp.blk.relstoadr">
<c-input type="textarea" v-model="model.brdgrp.blk.relstoadr" maxlength="140" show-word-limit placeholder="请输入收货人名称及地址"
rows="4"></c-input>
</el-form-item>
</c-col>
<c-col :span="4">
<el-form-item label="" label-width="5px" prop="brdgrp.rec.rtoaplflg">
<c-checkbox v-model="model.brdgrp.rec.rtoaplflg">给申请人</c-checkbox>
<!-- <el-input v-model="model.brdgrp.rec.rtoaplflg"></el-input> -->
</el-form-item>
<!-- <c-checkbox v-model="model.brdgrp.rec.rtoaplflg">to Applicant</c-checkbox> 简化model前,,原始-->
<!-- Release Goods to Applicant? -->
</c-col>
<c-col :span="24">
<c-ptap1
:model="model"
:argadr="{
title: '运输公司',
grp: 'brdgrp',
rol: 'shp',
}"
:disabled="true"
:isAdrblk="false"
disabled1
@onSeainf="onSeainf" @onAplpDet="onShppDet"
>
</c-ptap1>
<!-- brdgrp.shp.pts.extkey 对应grp: 'brdgrp', rol: 'prb',-->
</c-col>
<c-col :span="24">
<el-form-item label="被通知人" prop="brdgrp.blk.notpty">
<c-input type="textarea" v-model="model.brdgrp.blk.notpty" maxlength="350" show-word-limit placeholder="请输入被通知人" ></c-input>
</el-form-item>
</c-col>
<c-col :span="24">
<el-form-item label="货物类型" prop="brdgrp.rec.ngrcod">
<c-select v-model="model.brdgrp.rec.ngrcod" style="width:100%" placeholder="请选择货物类型"
:code="codes.bnrsec">
</c-select>
</el-form-item>
</c-col>
</c-col>
</div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Brtdck/Event"
import Ptap1 from "~/views/Public/Ptap1"
export default {
components: {
"c-ptap1": Ptap1,
// "c-ptap": Ptap,
// "c-ptsmsg": Ptsmsg,
},
inject: ['root'],
props:["model","codes"],
mixins: [commonProcess],
data(){
return {
}
},
computed:{
// rtoaplflg:{
// get() {
// return this.model.brdgrp.rec.rtoaplflg != ''
// brdgrp.rec.rtoaplflg
// },
// set(val) {
// this.model.brdgrp.rec.rtoaplflg = val ? "X" : ""
// }
// }
},
methods:{
...Event,
},
created:function(){
}
}
</script>
<style>
</style>
...@@ -26,12 +26,18 @@ ...@@ -26,12 +26,18 @@
</el-tab-pane> </el-tab-pane>
<!--PD000062 --> <!--PD000062 -->
<el-tab-pane label="不符点" name="docpre"> <el-tab-pane v-if="model.brdgrp.rec.dscinsflg" label="不符点" name="docpre">
<c-content> <c-content>
<m-docpre :model="model" :codes="codes" /> <m-docpre :model="model" :codes="codes" />
</c-content> </c-content>
</el-tab-pane> </el-tab-pane>
<el-tab-pane v-if="model.brdgrp.rec.dscinsflg" label="装运详情" name="shpdet">
<c-content>
<m-shpdet :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!-- ======新增隐藏面板====== --> <!-- ======新增隐藏面板====== -->
<!--PD000139 --> <!--PD000139 -->
<el-tab-pane label="不符点通知" name="mt750p" v-if="model.brdgrp.rec.advtyp=='750'"> <el-tab-pane label="不符点通知" name="mt750p" v-if="model.brdgrp.rec.advtyp=='750'">
...@@ -167,6 +173,7 @@ import Docpre from "./Docpre"; ...@@ -167,6 +173,7 @@ import Docpre from "./Docpre";
import Mt750p from "./Mt750p"; import Mt750p from "./Mt750p";
import Mt754p from "./Mt754p"; import Mt754p from "./Mt754p";
import Othadvtypp from "./Othadvtypp"; import Othadvtypp from "./Othadvtypp";
import Shpdet from "./Shpdet";
// import Engp from "./Engp"; // import Engp from "./Engp";
// import Ccvpan from "./Ccvpan"; // import Ccvpan from "./Ccvpan";
...@@ -194,6 +201,7 @@ import Limitbody from "~/views/Public/Limitbody"; ...@@ -194,6 +201,7 @@ import Limitbody from "~/views/Public/Limitbody";
export default { export default {
name: "Brtudp", name: "Brtudp",
components: { components: {
"m-shpdet": Shpdet,
"m-payp": Payp, "m-payp": Payp,
"m-docpre": Docpre, "m-docpre": Docpre,
"m-mt750p" : Mt750p, "m-mt750p" : Mt750p,
...@@ -232,12 +240,25 @@ export default { ...@@ -232,12 +240,25 @@ export default {
}, },
}; };
}, },
methods: { methods:{
myTabClick(tab) { myTabClick(tab) {
this.tabClick(tab); this.tabClick(tab);
/** let name = tab.name;
* do it yourself let rulePath;
**/ if (name === "conp") {
rulePath = "cfabrt.recp.conp";
}
if (name === "dclpp") {
rulePath = "cfabrt.recp.dclp(1).dclpp";
}
if (!!rulePath) {
this.executeRule(rulePath).then((res) => {
if (res.respCode == SUCCESS) {
this.updateModel(res.data);
}
});
}
}, },
}, },
created: async function () { created: async function () {
......
...@@ -12,8 +12,7 @@ ...@@ -12,8 +12,7 @@
<c-button <c-button
size="small" size="small"
style="margin-left: 10px; padding: 0 10px" style="margin-left: 10px; padding: 0 10px"
type="primary" type="primary">
@click="">
<span style="font-family: '宋体'; font-weight: bold">i</span> <span style="font-family: '宋体'; font-weight: bold">i</span>
</c-button> </c-button>
</template> </template>
...@@ -140,7 +139,6 @@ ...@@ -140,7 +139,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px" style="margin: 0 10px 0 10px; padding: 0 12px"
size="small" size="small"
type="primary" type="primary"
@click=""
icon="el-icon-search" icon="el-icon-search"
> >
<span style="font-family: '宋体'; font-weight: bold"></span> <span style="font-family: '宋体'; font-weight: bold"></span>
...@@ -236,7 +234,7 @@ ...@@ -236,7 +234,7 @@
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
<el-form-item label="付款期限" prop="brdgrp.rec.matdat"> <el-form-item label="付款期限" prop="brdgrp.rec.matdat">
<c-date-picker type="date" v-model="model.brdgrp.rec.matdat" style="width:100%" placeholder="请选择日期"></c-date-picker> <c-date-picker :disabled="this.flag3" type="date" v-model="model.brdgrp.rec.matdat" style="width:100%" placeholder="请选择日期"></c-date-picker>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
...@@ -260,7 +258,7 @@ ...@@ -260,7 +258,7 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="到期期限" prop="brdgrp.blk.matper"> <el-form-item label="到期期限" prop="brdgrp.blk.matper">
<c-input type="textarea" v-model="model.brdgrp.blk.matper" maxlength="65" show-word-limit placeholder="请输入内容" ></c-input> <c-input :disabled="this.flag2" type="textarea" v-model="model.brdgrp.blk.matper" maxlength="65" show-word-limit placeholder="请输入内容" ></c-input>
</el-form-item> </el-form-item>
</c-col> </c-col>
<c-col :span="12"> <c-col :span="12">
...@@ -507,7 +505,9 @@ export default { ...@@ -507,7 +505,9 @@ export default {
mixins: [commonProcess], mixins: [commonProcess],
data(){ data(){
return { return {
flag1:true flag1:true,
flag2:false,
flag3:false
} }
}, },
watch:{ watch:{
...@@ -520,7 +520,28 @@ export default { ...@@ -520,7 +520,28 @@ export default {
this.flag1=true; this.flag1=true;
} }
} }
} ,
"model.brdgrp.rec.matdat":{
immediate:true,
handler(val,oldval){
if(this.model.brdgrp.rec.matdat!=''){
this.flag2=true;
}else{
this.flag2=false;
} }
}
},
"model.brdgrp.blk.matper":{
immediate:true,
handler(val,oldval){
if(this.model.brdgrp.blk.matper!=''){
this.flag3=true;
}else{
this.flag3=false;
}
}
}
}, },
methods:{...Event}, methods:{...Event},
created:function(){ created:function(){
......
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