Commit 37f462e8 by 潘际乾

汇款附件表格

parent 49efbe24
......@@ -15,22 +15,7 @@
>
<el-table-column label="Type" width="auto">
<template slot-scope="scope">
<c-select
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>
<span>{{ getType(scope.row.index) }}</span>
</template>
</el-table-column>
<el-table-column label="Document" width="auto">
......@@ -44,8 +29,6 @@
<span>{{ getNow() }}</span>
</template>
</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-col>
......@@ -65,8 +48,6 @@
<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="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-col>
......@@ -200,6 +181,15 @@ export default {
}
},
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() {
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