Commit 06b7172f by Wuyuqiu

公共表格模板docpre完善

parent 4acbf5bf
......@@ -119,6 +119,9 @@ export default class Lttdck {
setinsbt: "", // Settlement Instructions transaction field .btdgrp.blk.setinsbt
docdis: "", // Discrepancies .btdgrp.blk.docdis
docdisflg: "", // discrepancies modified .btdgrp.blk.docdisflg
prsdocbe1:"", //加表格字段////path字段
prsdocbe2:"", //加表格字段////path字段
},
},
pageId: "", // ctx的key
......
......@@ -203,6 +203,7 @@
<!-- next part -->
<c-docpre
:model="model"
rol="docgrdmbe1"
:argadr="{
path: 'btdgrp.blk.prsdocbe1',
grp: 'bttp',
......@@ -212,6 +213,7 @@
</c-docpre>
<c-docpre
:model="model"
rol="docgrdmbe2"
:argadr="{
path: 'btdgrp.blk.prsdocbe2',
grp: 'bttp',
......
......@@ -191,15 +191,17 @@
<!-- next part -->
<c-docpre
:model="model"
rol="docgrdmbe1"
:argadr="{
path: 'btdgrp.blk.prsdocbe1',
grp: 'bttp',
code: 'docpre',
}"
}"
>
</c-docpre>
<c-docpre
:model="model"
rol="docgrdmbe2"
:argadr="{
path: 'btdgrp.blk.prsdocbe2',
grp: 'bttp',
......
......@@ -28,13 +28,15 @@
<c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="myTabClick">
<!--lttdck PD000049 Documents Received -->
<el-tab-pane label="Documents Received" name="utlp1">
<c-content>
<m-utlp1 :model="model" :codes="codes" />
</c-content>
<c-content>
<m-utlp1 :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--bttp PD000296 Discr./Instr. -->
<el-tab-pane label="Discr./Instr." name="dscinsp">
<m-dscinsp :model="model" :codes="codes" />
<c-content>
<m-dscinsp :model="model" :codes="codes" />
</c-content>
</el-tab-pane>
<!--liaall PD000027 Liability -->
<el-tab-pane label="Liability" name="engp">
......
......@@ -12,10 +12,10 @@
</el-form-item>
</c-col> -->
<c-col :span="24" style="margin-bottom: 30px;">
<el-form-item :prop="`${argadr.grp}.docgrdm.docgrd`" label="" style="margin-left:-150px;">
<el-form-item :prop="`${argadr.grp}.${rol}.docgrd`" label="" style="margin-left:-150px;">
<c-table max-height="300px" style="text-align: center;" stripe
:list="this.model[argadr.grp].docgrdm.docgrd || []" :paginationShow="false" :border="true">
<el-table-column :label="model[argadr.grp].docgrdm.docdsclab || '提交单据'" class="messageLabel">
:list="this.model[argadr.grp][rol].docgrd || []" :paginationShow="false" :border="true">
<el-table-column :label="model[argadr.grp][rol].docdsclab || '提交单据'" class="messageLabel">
<el-table-column label="1st" width="auto" prop="cmail1" background-color="red">
<template slot-scope="scope">
<c-input v-model="scope.row.cmail1" @change="docpre" :disabled="disabledCmail1"
......@@ -110,6 +110,10 @@ export default {
};
},
},
rol: {
type: String,
default: "docgrdm",
},
disabledCmail1: {
type: Boolean,
default: false,
......@@ -161,12 +165,12 @@ export default {
var grp = this.argadr.grp;
newTableValue.serialNum = serial;
// this.model[argadr.grp].docgrdm.docgrd.splice(index - 1, 0, newTableValue);
this.model[grp].docgrdm.docgrd.splice(index - 1, 0, newTableValue);
this.model[grp][rol].docgrd.splice(index - 1, 0, newTableValue);
},
deleteTable(index) {
// 'this.model.${argadr.grp}.docgrdm.docgrd.splice(index, 1)';
var grp = this.argadr.grp;
this.model[grp].docgrdm.docgrd.splice(index, 1);
this.model[grp][rol].docgrd.splice(index, 1);
},
async docpre() {
let rtnmsg = await this.executeDefault(this.argadr.path)
......
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