Commit e7ab58b4 by huangxin

brtudp修改

parent 17e92cc6
......@@ -3006,6 +3006,9 @@ const CodeTable = {
{ label: "Documents sent on approval basis", value: "L" },
{ label: "Documents taken up", value: "M" },
{ 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: [
{ label: "买方单据", value: "BDD" },
......
......@@ -28,7 +28,25 @@ export default class Brtudp {
},
brdgrp: {
shp: {
pts: new Pts().data,
namelc: "", // 名称 .brdgrp.shp.namelc
adrelc: "", // 地址 .brdgrp.shp.adrelc
dbfadrblkcn: "", // Chinese address .brdgrp.shp.dbfadrblkcn
},
rec: {
ngrcod:"",
rtoaplflg:"",
blnum:"",
tramod:"",
tradat:"",
trpdocnum:"",
trpdoctyp:"",
expdat:"",
relgoddat:"",
reltyp:"",
relgodflg:"",
dscinsflg:"",
ownref: "", // 单据参考号 .brdgrp.rec.ownref
nam: "", // Name of Bill Contract .brdgrp.rec.nam
rcvdat: "", // Received on .brdgrp.rec.rcvdat
......@@ -81,6 +99,15 @@ export default class Brtudp {
},
tag72add: "", // TAG72 .brdgrp.tag72add
blk: {
notpty:"",
relstoadr:"",
carnam:"",
voynum:"",
porlod:"",
roggod:"",
delplc:"",
pordis:"",
vesnam:"",
prsdoc: "", //brdgrp.blk.prsdoc
comcon: "", // Comments and Conclusions .brdgrp.blk.comcon
setinsbr: "", // Settlement Instructions BR .brdgrp.blk.setinsbr
......@@ -122,6 +149,7 @@ export default class Brtudp {
},
},
brtp: {
connum:"",
lidget: {
sdamod: {
seainf: "", // .brtp.lidget.sdamod.seainf
......
......@@ -210,7 +210,7 @@
v-model="model.brdgrp.rec.docsta"
style="width: 100%"
placeholder="请选择单据状态"
:code="codes.docsta"
:code="codes.docsta2"
disabled
>
</c-select>
......@@ -323,7 +323,7 @@
v-model="model.sftmt"
style="width: 100%"
placeholder="请选择类型"
:code="codes.paysmt"
:code="paysmt"
>
</c-select>
</el-form-item>
......@@ -519,7 +519,12 @@ export default {
props: ["model", "codes"],
mixins: [commonProcess],
data() {
return {};
return {
paysmt: [
{ label: "MT 732 Advise of Discharge", value: "732" },
{ label: "MT x99 Information B by Free Massage", value: "x99" },
],
};
},
methods: {
...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 @@
</el-tab-pane>
<!--PD000062 -->
<el-tab-pane label="不符点" name="docpre">
<el-tab-pane v-if="model.brdgrp.rec.dscinsflg" label="不符点" name="docpre">
<c-content>
<m-docpre :model="model" :codes="codes" />
</c-content>
</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 -->
<el-tab-pane label="不符点通知" name="mt750p" v-if="model.brdgrp.rec.advtyp=='750'">
......@@ -167,6 +173,7 @@ import Docpre from "./Docpre";
import Mt750p from "./Mt750p";
import Mt754p from "./Mt754p";
import Othadvtypp from "./Othadvtypp";
import Shpdet from "./Shpdet";
// import Engp from "./Engp";
// import Ccvpan from "./Ccvpan";
......@@ -194,6 +201,7 @@ import Limitbody from "~/views/Public/Limitbody";
export default {
name: "Brtudp",
components: {
"m-shpdet": Shpdet,
"m-payp": Payp,
"m-docpre": Docpre,
"m-mt750p" : Mt750p,
......@@ -232,14 +240,27 @@ export default {
},
};
},
methods: {
myTabClick(tab) {
methods:{
myTabClick(tab) {
this.tabClick(tab);
/**
* do it yourself
**/
let name = tab.name;
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 () {
console.log("进入brtudp交易");
let rtnmsg = await this.init({});
......
......@@ -12,8 +12,7 @@
<c-button
size="small"
style="margin-left: 10px; padding: 0 10px"
type="primary"
@click="">
type="primary">
<span style="font-family: '宋体'; font-weight: bold">i</span>
</c-button>
</template>
......@@ -140,7 +139,6 @@
style="margin: 0 10px 0 10px; padding: 0 12px"
size="small"
type="primary"
@click=""
icon="el-icon-search"
>
<span style="font-family: '宋体'; font-weight: bold"></span>
......@@ -236,7 +234,7 @@
</c-col>
<c-col :span="12">
<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>
</c-col>
<c-col :span="12">
......@@ -260,7 +258,7 @@
</c-col>
<c-col :span="24">
<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>
</c-col>
<c-col :span="12">
......@@ -507,7 +505,9 @@ export default {
mixins: [commonProcess],
data(){
return {
flag1:true
flag1:true,
flag2:false,
flag3:false
}
},
watch:{
......@@ -520,7 +520,28 @@ export default {
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},
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