Commit 37f462e8 by 潘际乾

汇款附件表格

parent 49efbe24
...@@ -15,22 +15,7 @@ ...@@ -15,22 +15,7 @@
> >
<el-table-column label="Type" width="auto"> <el-table-column label="Type" width="auto">
<template slot-scope="scope"> <template slot-scope="scope">
<c-select <span>{{ getType(scope.row.index) }}</span>
v-model="
model.trnmod.trndoc.doceot[scope.row.index].cortyp
"
style="width: 100%"
disabled
placeholder="请选择"
>
<el-option
v-for="item in codes.doceotCortyp"
:key="item.value"
:label="item.label"
:value="item.value"
>
</el-option>
</c-select>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="Document" width="auto"> <el-table-column label="Document" width="auto">
...@@ -44,8 +29,6 @@ ...@@ -44,8 +29,6 @@
<span>{{ getNow() }}</span> <span>{{ getNow() }}</span>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="" width="auto"></el-table-column>
<el-table-column label="" width="auto"></el-table-column>
</c-istream-table-docpan> </c-istream-table-docpan>
</c-col> </c-col>
...@@ -65,8 +48,6 @@ ...@@ -65,8 +48,6 @@
<el-table-column label="Document" width="auto"></el-table-column> <el-table-column label="Document" width="auto"></el-table-column>
<el-table-column label="Cre.TRN" width="auto"></el-table-column> <el-table-column label="Cre.TRN" width="auto"></el-table-column>
<el-table-column label="Date" width="auto"></el-table-column> <el-table-column label="Date" width="auto"></el-table-column>
<el-table-column label="" width="auto"></el-table-column>
<el-table-column label="" width="auto"></el-table-column>
</c-table> </c-table>
</c-col> </c-col>
...@@ -200,6 +181,15 @@ export default { ...@@ -200,6 +181,15 @@ export default {
} }
}, },
methods:{ methods:{
getType(idx) {
for (let i = 0; i < this.codes.doceotCortyp.length; i++) {
const c = this.codes.doceotCortyp[i];
if (this.model.trnmod.trndoc.doceot[idx].cortyp === c.value) {
return c.label;
}
}
return "";
},
getNow() { getNow() {
return moment().format('yyyy-MM-DD') return moment().format('yyyy-MM-DD')
}, },
......
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