Commit 893f599b by Eivi

bftsnd交易bug修改临时提交

parent e6d255a4
......@@ -37,7 +37,7 @@ export default class Betdcr {
},
docgrdm: {
docdsclab: "", // Label of document description .betp.docgrdm.docdsclab
docgrd: "", //betp.docgrdm.docgrd
docgrd: [], //betp.docgrdm.docgrd
},
},
ledgrp: {
......
......@@ -140,7 +140,7 @@
<c-col :span="24" style="height: 0px">
<el-divider></el-divider>
</c-col>
<c-col :span="24" style="margin-bottom: 30px;">
<c-col :span="24" style="margin-bottom: 30px">
<c-table
height="200px"
style="text-align: center"
......@@ -148,26 +148,15 @@
:paginationShow="false"
:border="true"
>
<el-table-column
label="1st"
width="auto"
>
<template slot-scope="scope">
<c-input
v-model="scope.row.cmail1"
></c-input>
</template>
<el-table-column label="1st" width="auto">
<template slot-scope="scope">
<c-input v-model="scope.row.cmail1"></c-input>
</template>
</el-table-column>
<el-table-column
label="2nd"
width="auto"
>
<template slot-scope="scope">
<c-input
v-model="scope.row.cmail2"
></c-input>
</template>
<el-table-column label="2nd" width="auto">
<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">
<template slot-scope="scope">
......@@ -189,7 +178,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 @click="deleteTable(scope.$index)" type="primary"
>删除</c-button
>
</template>
......@@ -269,12 +258,18 @@ export default {
mixins: [commonProcess],
data() {
return {
TableValue: [
TableValue: [
{
id: 0,
cmail1: "1",
cmail2: "2",
docnam: "1",
cmail1: "",
cmail2: "",
docnam: "",
docnam: "",
description: "",
docnam: "",
serialNum: "",
tableName: "",
tcddoc: "",
},
],
newValue: {
......@@ -282,6 +277,12 @@ export default {
cmail1: "",
cmail2: "",
docnam: "",
docnam: "",
description: "",
docnam: "",
serialNum: "",
tableName: "",
tcddoc: "",
},
codeTable: [
{ label: "Airway Bills", value: "1" },
......@@ -324,22 +325,19 @@ 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;
}
methods: {
...Event,
addTableValue(index) {
var newTableValue = Object.assign({}, this.newValue);
const serial = Utils.generateUUID();
newTableValue.serialNum = serial;
// this.model.bftp.docgrdm.docgrd.push(newTableValue);
this.model.betp.docgrdm.docgrd.splice(index - 1, 0, newTableValue);
this.TableValue.push(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.betp.docgrdm.docgrd.splice(index, 1);
},
},
created: function () {},
......
......@@ -327,6 +327,7 @@
:list="this.model.bftp.docgrdm.docgrd || []"
:paginationShow="false"
:border="true"
@change="executeDefault('bfdgrp.blk.prsdoc')"
>
<el-table-column label="1st" width="auto">
<template slot-scope="scope">
......
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