Doctre.vue 7.63 KB
Newer Older
1
<template>
2 3
  <div class="eibs-tab">
    <!-- <c-col :span="19">
潘际乾 committed
4
            <c-col>
SunJie committed
5 6 7 8 9 10 11 12
                <el-form-item label="File Receiver">
                    <c-input
                        type="textarea"
                        v-model="model.trnmod.trndoc.filrecv"
                        placeholder="请输入File Receiver"
                        :rows="10"
                    ></c-input>
                </el-form-item>
潘际乾 committed
13
            </c-col>
SunJie committed
14

潘际乾 committed
15
            <c-col>
SunJie committed
16 17 18 19 20 21 22
                <el-form-item label="Document tree">
                    <c-input
                        type="textarea"
                        :rows="10"
                        v-model="model.trnmod.trndoc.doctrestm"
                        placeholder="请输入Document tree"
                    ></c-input>
潘际乾 committed
23
                </el-form-item> </c-col
24 25 26 27
        ></c-col> -->

    <c-col :span="24">
      <el-form-item
liushikai committed
28
        class="formItemLabel"
29
        label="Outgoing Correspondence,Attachments and other Documents"
liushikai committed
30
        label-width="100%"
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
      >
      </el-form-item>
    </c-col>

    <c-col :span="24">
      <!-- ========================左====================== -->
      <c-col :span="14">
        <c-col :span="24">
          <div style="height: 300px; width: 100%; border: 1px #ebeef5 solid">
            <el-tree
              :data="data"
              :props="defaultProps"
              @node-click="handleNodeClick"
            ></el-tree>
          </div>
        </c-col>

        <c-col :span="24" style="margin-top: 10px">
          <c-col :span="4">
            <el-form-item
              label="Connected Ducuments"
              v-show="isShow1 || isShow2"
            ></el-form-item>
            <el-form-item
              label=""
              v-show="!(isShow1 || isShow2)"
            ></el-form-item>
          </c-col>
          <c-col :span="8">
            <el-form-item label="">
              <c-checkbox v-model="isShow1">Show Incoming Messages</c-checkbox>
            </el-form-item>
            <!-- <c-checkbox v-model="isShow1">Show Incoming Messages</c-checkbox> -->
          </c-col>
          <c-col :span="8" :offset="2">
            <el-form-item label="">
wangyanjiao committed
67
              <c-checkbox v-model="isShow2" @change="CONDOCSTM">Show Outgoing Messages</c-checkbox>
68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115
            </el-form-item>
            <!-- <c-checkbox v-model="isShow2">Show Outgoing Messages</c-checkbox> -->
          </c-col>
        </c-col>
        <c-col :span="22" :offset="1">
          <c-table
            :border="true"
            :list="data1"
            style="width:80%,text-align:center"
            v-show="isShow1 || isShow2"
          >
            <el-table-column label="Type" 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="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>
      </c-col>

      <!-- ==============右============= -->
      <c-col :span="6" :offset="1">
        <c-col :span="24">
          <c-button size="small" type="primary" @click="onTrndocButshw">
            Show
          </c-button>
        </c-col>

        <c-col :span="24" style="margin-top: 15px">
          <c-button size="small" type="primary" @click="onTrndocButadd">
            详情
          </c-button>
        </c-col>

        <c-col :span="24" style="margin-top: 40px">
          <c-button size="small" type="primary" @click="onTrndocButnew">
            Add New
          </c-button>
        </c-col>

        <c-col :span="24" style="margin-top: 15px">
          <c-button size="small" type="primary" @click="onTrndocButattto">
            Attach to
          </c-button>
        </c-col>

        <c-col :span="24" style="margin-top: 15px">
liushikai committed
116
          <c-button size="small" type="primary" @click="onTrndocButdel">
117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
            Delete
          </c-button>
        </c-col>
        <c-col :span="24" style="margin-top: 80px">
          <c-button size="small" type="primary" @click="onTrndocButatt">
            Attach
          </c-button>
        </c-col>
        <c-col :span="24" style="margin-top: 150px">
          <c-button size="small" type="primary" @click="onTrndocButatt">
            i
          </c-button>
        </c-col>
      </c-col>
    </c-col>

    <!-- <c-col :offset="1" :span="4">
潘际乾 committed
134
            <c-col>
SunJie committed
135 136 137
                <c-button size="small" type="primary" @click="onTrndocButshw">
                    Show
                </c-button>
潘际乾 committed
138
            </c-col>
SunJie committed
139

潘际乾 committed
140
            <c-col>
SunJie committed
141 142 143
                <c-button size="small" type="primary" @click="onTrndocButadd">
                    Details
                </c-button>
潘际乾 committed
144
            </c-col>
SunJie committed
145

潘际乾 committed
146
            <c-col>
SunJie committed
147 148 149
                <c-button size="small" type="primary" @click="onTrndocButnew" >
                    Add New
                </c-button>
潘际乾 committed
150
            </c-col>
SunJie committed
151

潘际乾 committed
152
            <c-col>
SunJie committed
153 154 155
                <c-button size="small" type="primary" @click="onTrndocButattto" disabled>
                    Attach to
                </c-button>
潘际乾 committed
156
            </c-col>
SunJie committed
157

潘际乾 committed
158
            <c-col>
SunJie committed
159 160 161
                <c-button type="primary" size="small" @click="onTrndocButdel" disabled>
                    Delete
                </c-button>
潘际乾 committed
162 163
            </c-col>
            <c-col>
SunJie committed
164 165 166
                <c-button size="small" type="primary" @click="onTrndocButatt" disabled>
                    Attach
                </c-button>
潘际乾 committed
167
            </c-col>
168
        </c-col> -->
SunJie committed
169

170
    <!-- <c-col :span="12">
SunJie committed
171 172 173 174 175
            <span
                v-text="model.trnmod.trndoc.doclbl"
                data-path=".trnmod.trndoc.doclbl"
            >
            </span>
潘际乾 committed
176
        </c-col> -->
SunJie committed
177

178
    <!-- <c-col :offset="8" :span="4">
SunJie committed
179 180 181
            <c-checkbox v-model="model.trnmod.trndoc.shwinc"
                >Show Incoming Messages</c-checkbox
            >
潘际乾 committed
182
        </c-col>
SunJie committed
183

潘际乾 committed
184
        <c-col :span="4">
SunJie committed
185 186 187
            <c-checkbox v-model="model.trnmod.trndoc.shwout"
                >Show Outgoing Messages</c-checkbox
            >
188
        </c-col> -->
SunJie committed
189

190
    <!-- <c-col :span="12">
SunJie committed
191 192 193 194 195 196
            <el-form-item label="Connected Documents">
                <c-input
                    v-model="model.trnmod.trndoc.condocstm"
                    placeholder="请输入Connected Documents"
                ></c-input>
            </el-form-item>
潘际乾 committed
197
        </c-col>
SunJie committed
198

潘际乾 committed
199
        <c-col :span="12">
SunJie committed
200 201 202 203 204 205
            <el-form-item label="">
                <c-input
                    v-model="model.trnmod.trndoc.rcvatt.seainf"
                    placeholder="请输入"
                ></c-input>
            </el-form-item>
潘际乾 committed
206
        </c-col> -->
207
  </div>
208 209
</template>
<script>
SunJie committed
210
import Api from "~/service/Api";
wangren committed
211
import commonProcess from "~/mixin/commonProcess";
SunJie committed
212 213
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditame/Event";
214 215

export default {
216 217
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
218
  mixins: [commonProcess],
219 220 221 222 223 224 225
  data() {
    return {
      data1: [],
      isShow1: false,
      isShow2: false,
      data: [
        {
liushikai committed
226 227
          label: "Advising Bank,中国光大银行股份有限公司北京分行",
          children: [{ label: "'信用证修改书 via" }],
228 229 230 231 232
        },
      ],
    };
  },
  methods: { ...Event,
wangyanjiao committed
233 234 235 236 237 238 239
  CONDOCSTM(){
    this.executeDefault("trnmod.trndoc.condocstm").then(res => {
      if ((res.respCode == SUCCESS)) {
          Utils.copyValueFromVO(this.model, res.data);
        }
    })
  },
240 241 242 243
  handleNodeClick(){} ,
  defaultProps(){}
  },
  created: function () {},
SunJie committed
244
};
245
</script>
liushikai committed
246 247
<style scoped>
/* .c-col button {
248
  margin: 20px;
liushikai committed
249 250 251
} */
.formItemLabel >>> .el-form-item__label{
    text-align: left;
SunJie committed
252
}
253
</style>