Commit 77eb2061 by wangyanjiao

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs…

Merge branch 'development-202206' of http://114.115.138.98:8900/fukai/vue-gjjs into development-202206
parents 44e64ada 342d5144
...@@ -6,5 +6,41 @@ import Api from "~/service/Api"; ...@@ -6,5 +6,41 @@ import Api from "~/service/Api";
import Utils from "~/utils/index" import Utils from "~/utils/index"
export default { export default {
"fpdgrp.inv.pts.nam" :Utils.defaultFunction,
"cfgfil.subtrn1" :Utils.defaultFunction,
"selbut.sptpenlab_descr" :Utils.defaultFunction,
"selbut.sptpenlab" :Utils.defaultFunction,
"bodgrp.rec.ownref" :Utils.defaultFunction,
"bpdgrp.rec.fintyp" :Utils.defaultFunction,
"bodgrp.dre.pts.nam" :Utils.defaultFunction,
"bodgrp.col.pts.nam" :Utils.defaultFunction,
"fpdgrp.rec.ownref" :Utils.defaultFunction,
"fpdgrp.sel.pts.nam" :Utils.defaultFunction,
"bpdgrp.rec.ownref" :Utils.defaultFunction,
"selbut.trnpenlab" :Utils.defaultFunction,
"selbut.trnpenlab_descr" :Utils.defaultFunction,
"clsflg" :Utils.defaultFunction,
"cfgfil.subtxt10" :Utils.defaultFunction,
"cfgfil.subtrn10" :Utils.defaultFunction,
"cfgfil.subtrn11" :Utils.defaultFunction,
"cfgfil.subtxt11" :Utils.defaultFunction,
"bodgrp.drr.pts.nam" :Utils.defaultFunction,
"cfgfil.subtxt1" :Utils.defaultFunction,
"cfgfil.subtrn9" :Utils.defaultFunction,
"cfgfil.subtxt9" :Utils.defaultFunction,
"cfgfil.subtrn8" :Utils.defaultFunction,
"cfgfil.subtxt8" :Utils.defaultFunction,
"cfgfil.subtrn7" :Utils.defaultFunction,
"cfgfil.subtxt7" :Utils.defaultFunction,
"cfgfil.subtrn6" :Utils.defaultFunction,
"cfgfil.subtxt6" :Utils.defaultFunction,
"cfgfil.subtrn5" :Utils.defaultFunction,
"cfgfil.subtxt5" :Utils.defaultFunction,
"cfgfil.subtrn4" :Utils.defaultFunction,
"cfgfil.subtxt4" :Utils.defaultFunction,
"cfgfil.subtrn3" :Utils.defaultFunction,
"cfgfil.subtxt3" :Utils.defaultFunction,
"cfgfil.subtrn2" :Utils.defaultFunction,
"cfgfil.subtxt2" :Utils.defaultFunction,
} }
//你可以添加自动default处理 //你可以添加自动default处理
...@@ -2,5 +2,7 @@ import Api from "~/service/Api" ...@@ -2,5 +2,7 @@ import Api from "~/service/Api"
import Utils from "~/utils" import Utils from "~/utils"
export default { export default {
onSeainf() {
console.log("点击了i");
},
} }
\ No newline at end of file
...@@ -4,6 +4,195 @@ import Pts from "../Common/Pts" ...@@ -4,6 +4,195 @@ import Pts from "../Common/Pts"
export default class Botsel{ export default class Botsel{
constructor () { constructor () {
this.data = { this.data = {
selbut:{
dspclsdat:"", // Label Closed .selbut.dspclsdat
dsppndram:"", // Display Number of Req. of Amendment .selbut.dsppndram
sptpenlab:"", // Label showing pending items stored for contract .selbut.sptpenlab
trnpenlab:"", // Label showing stored uncommited transactions for contract .selbut.trnpenlab
sptpenlab_descr:"", // Description for SPTPENLAB .selbut.sptpenlab_descr
trnpenlab_descr:"", // Description for TRNPENLAB .selbut.trnpenlab_descr
},
dspbpd:"", // Display BPE Contract .dspbpd
dspbpdclsdat:"", // Display Closing Date of Advance .dspbpdclsdat
bodgrp:{
rec:{
ownref:"", // Reference .bodgrp.rec.ownref
nam:"", // Externally Displayed Name to Identify the Contract .bodgrp.rec.nam
matpertyp:"", // Days/Months or Years for Maturity Period .bodgrp.rec.matpertyp
doctypcod:"", // Collection Condition .bodgrp.rec.doctypcod
matdat:"", // Maturity Date .bodgrp.rec.matdat
matpercnt:"", // Tenor Specification .bodgrp.rec.matpercnt
matperbeg:"", // Start of Maturity Period MATBEG .bodgrp.rec.matperbeg
rcvdat:"", // Order Date .bodgrp.rec.rcvdat
predat:"", // Presentation Date .bodgrp.rec.predat
docsta:"", // Document Set Status .bodgrp.rec.docsta
},
cbs:{
max:{
cur:"", // Document Amount .bodgrp.cbs.max.cur
amt:"", // Document Amount .bodgrp.cbs.max.amt
},
opn1:{
cur:"", // Open Amount .bodgrp.cbs.opn1.cur
amt:"", // Open Amount .bodgrp.cbs.opn1.amt
},
},
drr:{
pts:new Pts().data,
},
col:{
pts:new Pts().data,
},
dre:{
pts:new Pts().data,
},
},
recget:{
sdamod:{
seainf:"", // .recget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .recget.sdamod.dadsnd
},
},
clsflg:"", // Show closed Contract .clsflg
matp:{
mattxtlab:"", // Label for MATTXT .matp.mattxtlab
},
bpdgrp:{
rec:{
nam:"", // Externally Displayed Name to Identify the Contract .bpdgrp.rec.nam
ownref:"", // Reference .bpdgrp.rec.ownref
fintyp:"", // Type of Financing .bpdgrp.rec.fintyp
finact:"", // Advance Account .bpdgrp.rec.finact
},
cbs:{
max:{
cur:"", // Advance Amount .bpdgrp.cbs.max.cur
amt:"", // Balance .bpdgrp.cbs.max.amt
},
},
},
bpdget:{
sdamod:{
seainf:"", // .bpdget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .bpdget.sdamod.dadsnd
},
clsflg:"", // which contracts to show .bpdget.clsflg
},
fpdgrp:{
rec:{
perint:"", // Percentage .fpdgrp.rec.perint
rdsflg:"", // Re-Discounting? .fpdgrp.rec.rdsflg
silflg:"", // Un-Disclosed? .fpdgrp.rec.silflg
funflg:"", // Funded? .fpdgrp.rec.funflg
opndatlc:"", // Date L/C Opened/Issued .fpdgrp.rec.opndatlc
expdatlc:"", // LC Date of Expire .fpdgrp.rec.expdatlc
opndat:"", // Opened on .fpdgrp.rec.opndat
expdat:"", // Forfaiting Agreement Date of Expiry .fpdgrp.rec.expdat
valdat:"", // This Purchase Offer is Valid until .fpdgrp.rec.valdat
ownref:"", // Reference .fpdgrp.rec.ownref
nam:"", // Externally Displayed Name to Identify the Contract .fpdgrp.rec.nam
},
sel:{
pts:new Pts().data,
},
cbs:{
max:{
cur:"", // Agree to Purchase .fpdgrp.cbs.max.cur
amt:"", // Balance .fpdgrp.cbs.max.amt
},
opn1:{
cur:"", // Open Amount .fpdgrp.cbs.opn1.cur
amt:"", // Balance .fpdgrp.cbs.opn1.amt
},
sld:{
cur:"", // Sold or Reserved .fpdgrp.cbs.sld.cur
amt:"", // Balance .fpdgrp.cbs.sld.amt
},
},
inv:{
pts:new Pts().data,
},
},
fpdget:{
clsflg:"", // which contracts to show .fpdget.clsflg
sdamod:{
seainf:"", // .fpdget.sdamod.seainf
dadsnd:"", // Drag Drop Sender .fpdget.sdamod.dadsnd
},
},
cfgfil:{
bitmap:"", // Bitmap for folder .cfgfil.bitmap
regside1:"", // Regside .cfgfil.regside1
regside2:"", // Regside .cfgfil.regside2
regside3:"", // Regside .cfgfil.regside3
regside4:"", // Regside .cfgfil.regside4
regside5:"", // Regside .cfgfil.regside5
regside6:"", // Regside .cfgfil.regside6
regside7:"", // Regside .cfgfil.regside7
regside8:"", // Regside .cfgfil.regside8
regside9:"", // Regside .cfgfil.regside9
regside10:"", // Regside .cfgfil.regside10
regside11:"", // Regside .cfgfil.regside11
regside12:"", // Regside .cfgfil.regside12
subtxt1:"", // submenu text 1 .cfgfil.subtxt1
subtxt2:"", // submenu text 2 .cfgfil.subtxt2
subtxt3:"", // submenu text 3 .cfgfil.subtxt3
subtxt4:"", // submenu text 4 .cfgfil.subtxt4
subtxt5:"", // submenu text 5 .cfgfil.subtxt5
subtxt6:"", // submenu text 6 .cfgfil.subtxt6
subtxt7:"", // submenu text 7 .cfgfil.subtxt7
subtxt8:"", // submenu text 8 .cfgfil.subtxt8
subtxt9:"", // submenu text 9 .cfgfil.subtxt9
subtxt10:"", // submenu text 10 .cfgfil.subtxt10
subtxt11:"", // submenu text 11 .cfgfil.subtxt11
regtxt1:"", // Register text 1 .cfgfil.regtxt1
regtxt2:"", // Register text 2 .cfgfil.regtxt2
regtxt3:"", // Register text 3 .cfgfil.regtxt3
regtxt4:"", // Register text 4 .cfgfil.regtxt4
regtxt5:"", // Register text 5 .cfgfil.regtxt5
regtxt6:"", // Register text 6 .cfgfil.regtxt6
regtxt7:"", // Register text 7 .cfgfil.regtxt7
regtxt8:"", // Register text 8 .cfgfil.regtxt8
regtxt9:"", // Register text 9 .cfgfil.regtxt9
regtxt10:"", // Register text 10 .cfgfil.regtxt10
regtxt11:"", // Register text 11 .cfgfil.regtxt11
regtxt12:"", // Register text 12 .cfgfil.regtxt12
hotsub1:"", // hotspot submenu 1 .cfgfil.hotsub1
hotsub2:"", // hotspot submenu 1 .cfgfil.hotsub2
hotsub3:"", // hotspot submenu 1 .cfgfil.hotsub3
hotsub4:"", // hotspot submenu 1 .cfgfil.hotsub4
hotsub5:"", // hotspot submenu 1 .cfgfil.hotsub5
hotsub6:"", // hotspot submenu 1 .cfgfil.hotsub6
hotsub7:"", // hotspot submenu 1 .cfgfil.hotsub7
hotsub8:"", // hotspot submenu 1 .cfgfil.hotsub8
hotsub9:"", // hotspot submenu 1 .cfgfil.hotsub9
hotsub10:"", // hotspot submenu 1 .cfgfil.hotsub10
hotsub11:"", // hotspot submenu 1 .cfgfil.hotsub11
hotreg1:"", // hotspot reg1 .cfgfil.hotreg1
hotreg2:"", // hotspot reg2 .cfgfil.hotreg2
hotreg3:"", // hotspot reg3 .cfgfil.hotreg3
hotreg4:"", // hotspot reg4 .cfgfil.hotreg4
hotreg5:"", // hotspot reg5 .cfgfil.hotreg5
hotreg6:"", // hotspot reg6 .cfgfil.hotreg6
hotreg7:"", // hotspot reg7 .cfgfil.hotreg7
hotreg8:"", // hotspot reg8 .cfgfil.hotreg8
hotreg9:"", // hotspot reg9 .cfgfil.hotreg9
hotreg10:"", // hotspot reg10 .cfgfil.hotreg10
hotreg11:"", // hotspot reg11 .cfgfil.hotreg11
hotreg12:"", // hotspot reg12 .cfgfil.hotreg12
subtrn1:"", // Submenu trn 1 .cfgfil.subtrn1
subtrn2:"", // Submenu trn 2 .cfgfil.subtrn2
subtrn3:"", // Submenu trn 3 .cfgfil.subtrn3
subtrn4:"", // Submenu trn 4 .cfgfil.subtrn4
subtrn5:"", // Submenu trn 5 .cfgfil.subtrn5
subtrn6:"", // Submenu trn 6 .cfgfil.subtrn6
subtrn7:"", // Submenu trn 7 .cfgfil.subtrn7
subtrn8:"", // Submenu trn 8 .cfgfil.subtrn8
subtrn9:"", // Submenu trn 9 .cfgfil.subtrn9
subtrn10:"", // Submenu trn 10 .cfgfil.subtrn10
subtrn11:"", // Submenu trn 11 .cfgfil.subtrn11
btnstm:[]
},
pageId: "" // ctx的key pageId: "" // ctx的key
} }
} }
......
...@@ -157,6 +157,7 @@ export default class Brtdck { ...@@ -157,6 +157,7 @@ export default class Brtdck {
setnowflg: "", // Register to Send and Settle Document .brtp.setnowflg setnowflg: "", // Register to Send and Settle Document .brtp.setnowflg
docgrdm: { docgrdm: {
docdsclab: "", // Label of document description .brtp.docgrdm.docdsclab docdsclab: "", // Label of document description .brtp.docgrdm.docdsclab
docgrd: "", //brtp.docgrdm.docgrd
}, },
cre752flg: "", // Create 752 .brtp.cre752flg cre752flg: "", // Create 752 .brtp.cre752flg
furide: "", // Further Identification .brtp.furide furide: "", // Further Identification .brtp.furide
......
...@@ -124,7 +124,7 @@ export default { ...@@ -124,7 +124,7 @@ export default {
], ],
"setmod.docamt":[ "setmod.docamt":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
...@@ -138,7 +138,7 @@ export default { ...@@ -138,7 +138,7 @@ export default {
], ],
"aamset.utlamt":[ "aamset.utlamt":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
...@@ -147,7 +147,7 @@ export default { ...@@ -147,7 +147,7 @@ export default {
{max: 35,message:"长度不能超过35"} {max: 35,message:"长度不能超过35"}
], ],
"aamset.utlamt2":[ "aamset.utlamt2":[
{type: "number", required: false, message: "必输项"}, {type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"}, {max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" } {pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
], ],
......
...@@ -155,6 +155,7 @@ export default class Brtudp { ...@@ -155,6 +155,7 @@ export default class Brtudp {
}, },
docgrdm: { docgrdm: {
docdsclab: "", // Label of document description .brtp.docgrdm.docdsclab docdsclab: "", // Label of document description .brtp.docgrdm.docdsclab
docgrd: "", //brtp.docgrdm.docgrd
}, },
cre752flg: "", // Create 752 .brtp.cre752flg cre752flg: "", // Create 752 .brtp.cre752flg
furide: "", // Further Identification .brtp.furide furide: "", // Further Identification .brtp.furide
......
...@@ -35,7 +35,80 @@ ...@@ -35,7 +35,80 @@
... ...
</c-button> </c-button>
</c-col> </c-col>
<!-- <c-col :span="12">
<c-button size="small" type="primary"
icon="el-icon-search" @click="onSetinstxmButtxmsel">
...
</c-button>
</c-col>
<c-col :span="12">
<span v-text="model.brtp.docgrdm.docdsclab" data-path=".brtp.docgrdm.docdsclab" > </span>
</c-col> -->
<!-- Documents Presdented 已交单据 -->
<c-col :span="24" style="height: 24px; margin-top: 5px">
<!-- <el-form-item
:label="model.brtp.docgrdm.docdsclab"
class="messageLabel"
> -->
<el-form-item
label="Documents Presdented"
class="messageLabel">
<c-button style="float: right" @click="addTableValue" type="primary"
>新增单据</c-button
>
</el-form-item>
</c-col>
<c-col :span="24" style="margin-bottom: 30px;margin-top: -10px;">
<c-table
height="200px"
style="text-align: center"
:list="this.model.brtp.docgrdm.docgrd || []"
:paginationShow="false"
:border="true"
>
<el-table-column label="1st" width="auto" sortable>
<template slot-scope="scope">
<c-input v-model="scope.row.cmail1"></c-input>
</template>
</el-table-column>
<el-table-column label="2st" width="auto" sortable>
<template slot-scope="scope">
<c-input v-model="scope.row.cmail2"></c-input>
</template>
</el-table-column>
<el-table-column label="Document" prop="docnam" width="auto" sortable>
<template slot-scope="scope">
<!-- {{scope.row.docnam}} -->
<c-select
style="width: 100%"
placeholder="请选择"
v-model="scope.row.docnam"
>
<el-option
v-for="item in codeTable"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</template>
</el-table-column>
<el-table-column label="操作" width="170px" fixed="right">
<template slot-scope="scope">
<c-button @click="deleteTable(scope.$index)" type="primary"
>删除</c-button
>
</template>
</el-table-column>
</c-table>
</c-col>
</c-col> </c-col>
<!--===========================右边============================== --> <!--===========================右边============================== -->
<c-col :span="11" :offset="1"> <c-col :span="11" :offset="1">
<c-col :span="24"> <c-col :span="24">
...@@ -93,18 +166,8 @@ ...@@ -93,18 +166,8 @@
<c-col :span="24"> <c-col :span="24">
<c-checkbox v-model="model.brtp.cre732flg" disabled>Create MT 732</c-checkbox> <c-checkbox v-model="model.brtp.cre732flg" disabled>Create MT 732</c-checkbox>
</c-col> </c-col>
</c-col> </c-col>
<!-- <c-col :span="12">
<c-button size="small" type="primary" icon="el-icon-search" @click="onSetinstxmButtxmsel">
...
</c-button>
</c-col>
<c-col :span="12">
<span v-text="model.brtp.docgrdm.docdsclab" data-path=".brtp.docgrdm.docdsclab" > </span>
</c-col> -->
</div> </div>
</template> </template>
...@@ -113,15 +176,59 @@ import Api from "~/service/Api"; ...@@ -113,15 +176,59 @@ import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Brtdck/Event"; import Event from "~/model/Brtdck/Event";
import Utils from "~/utils";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data() { data() {
return {}; return {
newValue: {
id: 0,
cmail1: "",
cmail2: "",
docnam: "",
serialNum: "",
tableName: "",
tcddoc: "",
},
codeTable: [
{ label: 'Airway Bills', value: '1' },
{ label: `Beneficiary's Declaration`, value: '2' },
{ label: 'Bill of Lading Copies', value: '3' },
{ label: 'Bill of Lading Originals', value: '4' },
{ label: 'Certificate', value: '5' },
{ label: 'Certificate of Analysis', value: '6' },
{ label: 'Certificate of Origin', value: '7' },
{ label: 'Certificate of Quality', value: '8' },
{ label: 'Certificate of Quantity', value: '9' },
{ label: 'Commercial Invoice', value: '10' },
{ label: 'Courier Receipt', value: '11' },
{ label: 'Draft', value: '12' },
{ label: 'Export Licence ', value: '13' },
{ label: 'Fax Report', value: '14' },
{ label: 'Inspection Cert', value: '15' },
{ label: 'Insurance Policy', value: '16' },
{ label: 'Packing List', value: '17' },
{ label: 'Shipment Advice', value: '18' },
{ label: 'Weight List', value: '19' },
],
};
},
methods: {
...Event,
addTableValue(index) {
var newTableValue = Object.assign({}, this.newValue);
const serial=Utils.generateUUID();
newTableValue.serialNum=serial;
// this.model.brtp.docgrdm.docgrd.push(newTableValue);
this.model.brtp.docgrdm.docgrd.splice(index-1,0,newTableValue);
},
deleteTable(index) {
this.model.brtp.docgrdm.docgrd.splice(index, 1);
},
}, },
methods: { ...Event },
created: function () {}, created: function () {},
computed: { computed: {
docdisflg: { docdisflg: {
...@@ -136,4 +243,9 @@ export default { ...@@ -136,4 +243,9 @@ export default {
}; };
</script> </script>
<style> <style>
.messageLabel >>> .el-form-item__label {
text-align: left;
font-weight: bold;
font-size: 12px;
}
</style> </style>
...@@ -31,7 +31,9 @@ ...@@ -31,7 +31,9 @@
</el-tab-pane> </el-tab-pane>
<!--brtp PD000062 Discr./Instr. --> <!--brtp PD000062 Discr./Instr. -->
<el-tab-pane label="Discr./Instr." name="docpre" v-if="model.brdgrp.rec.dscinsflg"> <el-tab-pane label="Discr./Instr." name="docpre" v-if="model.brdgrp.rec.dscinsflg">
<c-content>
<m-docpre :model="model" :codes="codes"/> <m-docpre :model="model" :codes="codes"/>
</c-content>
</el-tab-pane> </el-tab-pane>
<!--brtp PD000079 Shipping Details --> <!--brtp PD000079 Shipping Details -->
<el-tab-pane label="Shipping Details" name="shpdet" v-if="model.brdgrp.rec.dscinsflg"> <el-tab-pane label="Shipping Details" name="shpdet" v-if="model.brdgrp.rec.dscinsflg">
......
...@@ -42,12 +42,40 @@ ...@@ -42,12 +42,40 @@
</c-col> </c-col>
<c-col :span="24"> <c-col :span="24">
<el-form-item label="Documents Presented"> <el-form-item label="Documents Presented">
<c-table> <c-table
height="200px"
style="text-align: center"
:list="this.model.brtp.docgrdm.docgrd || []"
:paginationShow="false"
:border="true"
>
<el-table-column prop="CMAIL1" label="1st" sortable> <el-table-column prop="CMAIL1" label="1st" sortable>
<template slot-scope="scope">
<c-input v-model="scope.row.cmail1"></c-input>
</template>
</el-table-column> </el-table-column>
<el-table-column prop="CMAIL2" label="2nd" sortable> <el-table-column prop="CMAIL2" label="2nd" sortable>
<template slot-scope="scope">
<c-input v-model="scope.row.cmail2"></c-input>
</template>
</el-table-column> </el-table-column>
<el-table-column prop="DOCNAM" label="Document" sortable> <el-table-column prop="DOCNAM" label="Document" sortable>
<template slot-scope="scope">
<!-- {{scope.row.docnam}} -->
<c-select
style="width: 100%"
placeholder="请选择"
v-model="scope.row.docnam"
>
<el-option
v-for="item in codeTable"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</template>
</el-table-column> </el-table-column>
<el-table-column label="" prop="det" width="80px" fixed="right"> <el-table-column label="" prop="det" width="80px" fixed="right">
<template slot-scope="scope" slot="header"> <template slot-scope="scope" slot="header">
...@@ -56,10 +84,6 @@ ...@@ -56,10 +84,6 @@
<el-button style="padding:4px" circle class="el-icon-minus" size="mini" @click="removeRow(scope)"> <el-button style="padding:4px" circle class="el-icon-minus" size="mini" @click="removeRow(scope)">
</el-button> </el-button>
</template> </template>
<template slot-scope="scoped">
<el-button style="margin-left:0" size="small" type="primary"
@click="detail1(scoped.$index, scoped.row)">详情</el-button>
</template>
</el-table-column> </el-table-column>
</c-table> </c-table>
</el-form-item> </el-form-item>
...@@ -135,17 +159,57 @@ import Api from "~/service/Api"; ...@@ -135,17 +159,57 @@ import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess"; import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"; import CodeTable from "~/config/CodeTable";
import Event from "~/model/Brtudp/Event"; import Event from "~/model/Brtudp/Event";
import Utils from "~/utils";
export default { export default {
inject: ["root"], inject: ["root"],
props: ["model", "codes"], props: ["model", "codes"],
mixins: [commonProcess], mixins: [commonProcess],
data() { data() {
return {}; return {
newValue: {
id: 0,
cmail1: "",
cmail2: "",
docnam: "",
serialNum: "",
tableName: "",
tcddoc: "",
},
codeTable: [
{ label: 'Airway Bills', value: '1' },
{ label: `Beneficiary's Declaration`, value: '2' },
{ label: 'Bill of Lading Copies', value: '3' },
{ label: 'Bill of Lading Originals', value: '4' },
{ label: 'Certificate', value: '5' },
{ label: 'Certificate of Analysis', value: '6' },
{ label: 'Certificate of Origin', value: '7' },
{ label: 'Certificate of Quality', value: '8' },
{ label: 'Certificate of Quantity', value: '9' },
{ label: 'Commercial Invoice', value: '10' },
{ label: 'Courier Receipt', value: '11' },
{ label: 'Draft', value: '12' },
{ label: 'Export Licence ', value: '13' },
{ label: 'Fax Report', value: '14' },
{ label: 'Inspection Cert', value: '15' },
{ label: 'Insurance Policy', value: '16' },
{ label: 'Packing List', value: '17' },
{ label: 'Shipment Advice', value: '18' },
{ label: 'Weight List', value: '19' },
],
};
}, },
methods: { ...Event methods: { ...Event
,addRow(){}, ,addRow(scope){
removeRow(){}, var newTableValue = Object.assign({}, this.newValue);
const serial=Utils.generateUUID();
newTableValue.serialNum=serial;
// this.model.brtp.docgrdm.docgrd.push(newTableValue);
this.model.brtp.docgrdm.docgrd.splice(scope.index-1,0,newTableValue);
},
removeRow(scope){
this.model.brtp.docgrdm.docgrd.splice(scope.index, 1);
},
}, },
created: function () { }, created: function () { },
computed: { computed: {
......
...@@ -27,7 +27,9 @@ ...@@ -27,7 +27,9 @@
<!--PD000062 --> <!--PD000062 -->
<el-tab-pane label="Discr./Instr." name="docpre"> <el-tab-pane label="Discr./Instr." name="docpre">
<m-docpre :model="model" :codes="codes" /> <c-content>
<m-docpre :model="model" :codes="codes" />
</c-content>
</el-tab-pane> </el-tab-pane>
<!-- ======新增隐藏面板====== --> <!-- ======新增隐藏面板====== -->
......
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