Commit 893f599b by Eivi

bftsnd交易bug修改临时提交

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