Commit 36608e9c by wangna

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 78a72043 77eb2061
......@@ -126,6 +126,7 @@ export default class Bdtdck{
setnowflg:"", // Register to Send and Settle Document .bdtp.setnowflg
zcday:"", // 装船日\\服务提供日 .bdtp.zcday
docgrdm:{
docgrd:"",
docdsclab:"", // Label of document description .bdtp.docgrdm.docdsclab
},
cre752flg:"", // Create 752 .bdtp.cre752flg
......
......@@ -6,5 +6,41 @@ import Api from "~/service/Api";
import Utils from "~/utils/index"
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处理
......@@ -2,5 +2,7 @@ import Api from "~/service/Api"
import Utils from "~/utils"
export default {
onSeainf() {
console.log("点击了i");
},
}
\ No newline at end of file
......@@ -4,6 +4,195 @@ import Pts from "../Common/Pts"
export default class Botsel{
constructor () {
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
}
}
......
......@@ -157,6 +157,7 @@ export default class Brtdck {
setnowflg: "", // Register to Send and Settle Document .brtp.setnowflg
docgrdm: {
docdsclab: "", // Label of document description .brtp.docgrdm.docdsclab
docgrd: "", //brtp.docgrdm.docgrd
},
cre752flg: "", // Create 752 .brtp.cre752flg
furide: "", // Further Identification .brtp.furide
......
......@@ -124,7 +124,7 @@ export default {
],
"setmod.docamt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -138,7 +138,7 @@ export default {
],
"aamset.utlamt":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......@@ -147,7 +147,7 @@ export default {
{max: 35,message:"长度不能超过35"}
],
"aamset.utlamt2":[
{type: "number", required: false, message: "必输项"},
{type: "string", required: false, message: "必输项"},
{max: 18,message:"整数位不能超过14位"},
{pattern: /(^\d+$)|(^\.\d{1,3}$)|(^\d+\.\d{1,3}$)/, message: "小数位不能超过3位" }
],
......
......@@ -155,6 +155,7 @@ export default class Brtudp {
},
docgrdm: {
docdsclab: "", // Label of document description .brtp.docgrdm.docdsclab
docgrd: "", //brtp.docgrdm.docgrd
},
cre752flg: "", // Create 752 .brtp.cre752flg
furide: "", // Further Identification .brtp.furide
......
......@@ -65,7 +65,7 @@
</el-table-column>
<el-table-column label="操作" width="170px" fixed="right">
<template slot-scope="scope">
<c-button @click="deleteTable(scope.row)" type="primary">删除</c-button>
<c-button @click="deleteTable(scope.$index)" type="primary">删除</c-button>
</template>
</el-table-column>
</c-table>
......@@ -90,7 +90,8 @@
<c-row>
<c-col :span="24">
<el-form-item label="收到的通知类" prop="bddgrp.rec.advtyp">
<c-select v-model="model.bddgrp.rec.advtyp" style="width:100%" placeholder="请选择Type of Advice Received" :disabled="true">
<c-select v-model="model.bddgrp.rec.advtyp" style="width:100%" placeholder="请选择Type of Advice Received"
:disabled="true">
</c-select>
</el-form-item>
</c-col>
......@@ -104,7 +105,8 @@
<c-col :span="24">
<el-form-item label="不符点通知日期" prop="bddgrp.rec.disdat">
<c-date-picker type="date" v-model="model.bddgrp.rec.disdat" style="width:100%" placeholder="请选择不符点通知日期" :disabled="true">
<c-date-picker type="date" v-model="model.bddgrp.rec.disdat" style="width:100%" placeholder="请选择不符点通知日期"
:disabled="true">
</c-date-picker>
</el-form-item>
</c-col>
......@@ -125,7 +127,8 @@
</c-col>
<c-col :span="24" :offset="8">
<c-checkbox v-model="model.bdtp.cre732flg" :disabled="!model.bddgrp.rec.acpnowflg != ''">Create MT 732</c-checkbox>
<c-checkbox v-model="model.bdtp.cre732flg" :disabled="!model.bddgrp.rec.acpnowflg != ''">Create MT 732
</c-checkbox>
</c-col>
</c-row>
</c-col>
......@@ -210,7 +213,7 @@ import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Bdtdck/Event"
import Utils from "~/utils";
export default {
inject: ['root'],
props: ["model", "codes"],
......@@ -230,6 +233,10 @@ export default {
cmail1: "",
cmail2: "",
docnam: "",
description: "",
serialNum: "",
tableName: "",
tcddoc: "",
},
codeTable: [
{ label: "增值税发票", value: "1" },
......@@ -246,21 +253,14 @@ export default {
},
methods: {
...Event,
addTableValue() {
var index = this.TableValue.length;
var newTableValue = this.newValue;
if (index > 0) {
newTableValue.id = this.TableValue[index - 1].id + 1;
}
this.TableValue.push(newTableValue);
addTableValue(index) {
var newTableValue = Object.assign({}, this.newValue);
const serial = Utils.generateUUID();
newTableValue.serialNum = serial;
this.model.bdtp.docgrdm.docgrd.splice(index - 1, 0, newTableValue);
},
deleteTable(row) {
for (let i = 0; i < this.TableValue.length; i++) {
if (this.TableValue[i].id == row.id) {
this.TableValue.splice(i, 1);
break;
}
}
deleteTable(index) {
this.model.bdtp.docgrdm.docgrd.splice(index, 1);
},
},
......
......@@ -35,7 +35,80 @@
...
</c-button>
</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 :span="11" :offset="1">
<c-col :span="24">
......@@ -93,18 +166,8 @@
<c-col :span="24">
<c-checkbox v-model="model.brtp.cre732flg" disabled>Create MT 732</c-checkbox>
</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>
</template>
......@@ -113,15 +176,59 @@ import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Brtdck/Event";
import Utils from "~/utils";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
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 () {},
computed: {
docdisflg: {
......@@ -136,4 +243,9 @@ export default {
};
</script>
<style>
.messageLabel >>> .el-form-item__label {
text-align: left;
font-weight: bold;
font-size: 12px;
}
</style>
......@@ -31,7 +31,9 @@
</el-tab-pane>
<!--brtp PD000062 Discr./Instr. -->
<el-tab-pane label="Discr./Instr." name="docpre" v-if="model.brdgrp.rec.dscinsflg">
<c-content>
<m-docpre :model="model" :codes="codes"/>
</c-content>
</el-tab-pane>
<!--brtp PD000079 Shipping Details -->
<el-tab-pane label="Shipping Details" name="shpdet" v-if="model.brdgrp.rec.dscinsflg">
......
......@@ -42,12 +42,40 @@
</c-col>
<c-col :span="24">
<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>
<template slot-scope="scope">
<c-input v-model="scope.row.cmail1"></c-input>
</template>
</el-table-column>
<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 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 label="" prop="det" width="80px" fixed="right">
<template slot-scope="scope" slot="header">
......@@ -56,10 +84,6 @@
<el-button style="padding:4px" circle class="el-icon-minus" size="mini" @click="removeRow(scope)">
</el-button>
</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>
</c-table>
</el-form-item>
......@@ -135,17 +159,57 @@ import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Brtudp/Event";
import Utils from "~/utils";
export default {
inject: ["root"],
props: ["model", "codes"],
mixins: [commonProcess],
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
,addRow(){},
removeRow(){},
,addRow(scope){
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 () { },
computed: {
......
......@@ -27,7 +27,9 @@
<!--PD000062 -->
<el-tab-pane label="Discr./Instr." name="docpre">
<c-content>
<m-docpre :model="model" :codes="codes" />
</c-content>
</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