Sel.vue 13.8 KB
Newer Older
zhengxiaokui committed
1
<template>
zhengxiaokui committed
2 3
  <c-row>
    <c-col :span="24">
zhengxiaokui committed
4
      <c-col :span="7">
zhengxiaokui committed
5
        <el-form-item label="L/C Reference" prop="ledgrp.rec.ownref">
zhengxiaokui committed
6 7 8
          <c-input
            v-model="model.ledgrp.rec.ownref"
            maxlength="16"
zhengxiaokui committed
9
            style="width: 96%"
zhengxiaokui committed
10
            placeholder="请输入L/C Reference"
zhengxiaokui committed
11
            @keyup.enter.native="showGridPromptDialog('ledgrp.rec.ownref')"
zhengxiaokui committed
12 13 14
          ></c-input>
        </el-form-item>
      </c-col>
zhengxiaokui committed
15 16 17 18 19 20 21 22 23 24 25
      <c-col :span="2">
        <c-button
          size="small"
          type="primary"
          @click="onSeainf"
          icon="el-icon-search"
        ></c-button>
      </c-col>
      <c-col :span="2" class="centerLable">
        <c-checkbox v-model="model.clsflg">Show closed</c-checkbox>
      </c-col>
zhengxiaokui committed
26 27 28 29 30 31
      <c-col :span="11" :offset="1">
        <el-form-item label="Name" prop="ledgrp.rec.nam">
          <c-input
            v-model="model.ledgrp.rec.nam"
            maxlength="40"
            placeholder="请输入Externally Displayed Name to Identify the Contract"
zhengxiaokui committed
32
            disabled
zhengxiaokui committed
33 34 35 36 37 38 39 40 41 42 43 44 45
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <c-col :span="24">
      <c-col :span="11">
        <c-col :span="24">
          <el-form-item label="L/C Amount" prop="ledgrp.cbs.nom1.cur">
            <c-input
              v-model="model.ledgrp.cbs.nom1.cur"
              maxlength="3"
              placeholder="请输入L/C Amount"
zhengxiaokui committed
46
              disabled
zhengxiaokui committed
47 48 49 50 51 52 53 54 55
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="Open Amount" prop="ledgrp.cbs.opn1.cur">
            <c-input
              v-model="model.ledgrp.cbs.opn1.cur"
              maxlength="3"
              placeholder="请输入Open Amount"
zhengxiaokui committed
56
              disabled
zhengxiaokui committed
57 58 59 60 61 62 63 64 65
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="Available with" prop="ledgrp.avbnam">
            <c-input
              v-model="model.ledgrp.avbnam"
              maxlength="40"
              placeholder="请输入Available with"
zhengxiaokui committed
66
              disabled
zhengxiaokui committed
67 68 69 70
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
zhengxiaokui committed
71
          <el-form-item label="   by " prop="ledgrp.rec.avbby">
zhengxiaokui committed
72 73 74
            <c-select
              v-model="model.ledgrp.rec.avbby"
              style="width: 100%"
zhengxiaokui committed
75 76
              placeholder="请选择Available by "
              disabled
zhengxiaokui committed
77 78 79 80
            >
            </c-select>
          </el-form-item>
        </c-col>
zhengxiaokui committed
81
        <c-col :span="13">
zhengxiaokui committed
82 83 84 85
          <el-form-item label="Date Issued" prop="ledgrp.rec.opndat">
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.opndat"
zhengxiaokui committed
86
              style="width: 95%"
zhengxiaokui committed
87
              placeholder="请选择Date Issued"
zhengxiaokui committed
88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>

        <c-col :span="11">
          <el-form-item
            label="Shipment Date"
            label-width="110px"
            prop="ledgrp.rec.shpdat"
          >
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.shpdat"
              style="width: 100%"
              placeholder="请选择Shipment Date"
              disabled
zhengxiaokui committed
105 106 107 108
            ></c-date-picker>
          </el-form-item>
        </c-col>

zhengxiaokui committed
109
        <c-col :span="13">
zhengxiaokui committed
110 111 112 113
          <el-form-item label="Date/Place of Expiry" prop="ledgrp.rec.expdat">
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.expdat"
zhengxiaokui committed
114
              style="width: 95%"
zhengxiaokui committed
115
              placeholder="请选择Date/Place of Expiry"
zhengxiaokui committed
116
              disabled
zhengxiaokui committed
117 118 119
            ></c-date-picker>
          </el-form-item>
        </c-col>
zhengxiaokui committed
120 121
        <c-col :span="11">
          <el-form-item label="" label-width="0px" prop="ledgrp.rec.expplc">
zhengxiaokui committed
122 123 124 125
            <c-input
              v-model="model.ledgrp.rec.expplc"
              maxlength="29"
              placeholder="请输入Date/Place of Expiry"
zhengxiaokui committed
126
              disabled
zhengxiaokui committed
127 128 129 130 131 132 133 134
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="Form of L/C" prop="ledgrp.rec.lcrtyp">
            <c-select
              v-model="model.ledgrp.rec.lcrtyp"
              style="width: 100%"
zhengxiaokui committed
135 136 137
              placeholder="请选择转让标志"
              disabled
              :code="codes.lcrtyp"
zhengxiaokui committed
138 139 140 141 142 143 144 145 146 147 148 149 150
            >
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="11" :offset="1">
        <c-col :span="24">
          <el-form-item label="Beneficiary" prop="ledgrp.ben.pts.ref">
            <c-input
              v-model="model.ledgrp.ben.pts.ref"
              maxlength="16"
              placeholder="请输入Beneficiary"
zhengxiaokui committed
151
              disabled
zhengxiaokui committed
152 153 154 155 156 157 158 159 160 161
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="Name of Party" prop="ledgrp.ben.pts.nam">
            <c-input
              v-model="model.ledgrp.ben.pts.nam"
              maxlength="40"
              placeholder="请输入Name of Party"
zhengxiaokui committed
162
              disabled
zhengxiaokui committed
163 164 165 166 167 168 169 170 171 172
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="Issuing Bank" prop="ledgrp.iss.pts.ref">
            <c-input
              v-model="model.ledgrp.iss.pts.ref"
              maxlength="16"
              placeholder="请输入Issuing Bank"
zhengxiaokui committed
173
              disabled
zhengxiaokui committed
174 175 176 177 178 179 180 181 182
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="Name of Party" prop="ledgrp.iss.pts.nam">
            <c-input
              v-model="model.ledgrp.iss.pts.nam"
              maxlength="40"
              placeholder="请输入Name of Party"
zhengxiaokui committed
183
              disabled
zhengxiaokui committed
184 185 186 187 188 189 190 191 192 193
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="Applicant" prop="ledgrp.apl.pts.ref">
            <c-input
              v-model="model.ledgrp.apl.pts.ref"
              maxlength="16"
              placeholder="请输入Applicant"
zhengxiaokui committed
194
              disabled
zhengxiaokui committed
195 196 197 198 199 200 201 202 203
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="Name of Party" prop="ledgrp.apl.pts.nam">
            <c-input
              v-model="model.ledgrp.apl.pts.nam"
              maxlength="40"
              placeholder="请输入Name of Party"
zhengxiaokui committed
204 205 206 207 208 209 210 211 212 213 214
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="Confirmation text" prop="cnftxt">
            <c-input
              v-model="model.cnftxt"
              maxlength="40"
              placeholder="请输入Confirmation text"
              disabled
zhengxiaokui committed
215 216 217 218 219
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
    </c-col>
zhengxiaokui committed
220 221

    <!-- ========================操作菜单================== -->
潘际乾 committed
222
    <c-col :span="24">
zhengxiaokui committed
223 224 225 226 227
      <el-form-item>
        <el-divider />
      </el-form-item>
    </c-col>
    <c-col :offset="12" :span="10">
zhengxiaokui committed
228
      <el-tabs tab-position="right" @tab-click="onTabClick">
zhengxiaokui committed
229
        <el-tab-pane v-for="it in meum" :key="it.label" :label="it.label">
zhengxiaokui committed
230
          <sel-mune :data="it.item" :model="model" />
zhengxiaokui committed
231 232 233
        </el-tab-pane>
      </el-tabs>
    </c-col>
zhengxiaokui committed
234
  </c-row>
zhengxiaokui committed
235 236
</template>
<script>
zhengxiaokui committed
237
import Api from "~/service/Api";
wangren committed
238
import commonProcess from "~/mixin/commonProcess";
zhengxiaokui committed
239 240
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Letsel/Event";
zhengxiaokui committed
241
import SelMune from "./SelMune.vue";
zhengxiaokui committed
242 243

export default {
zhengxiaokui committed
244
  components: { SelMune },
zhengxiaokui committed
245 246
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
247
  mixins: [commonProcess],
zhengxiaokui committed
248
  data() {
zhengxiaokui committed
249
    return {
zhengxiaokui committed
250
      hotreg: "1",
zhengxiaokui committed
251 252 253 254 255 256
      meum: [
        {
          label: "L/C",
          item: [
            {
              title: "Pre-Advising/Notifying",
zhengxiaokui committed
257
              url: "/business/letrsv",
zhengxiaokui committed
258
              disabled: this.model.ledgrp.rec.ownref ? true : false,
zhengxiaokui committed
259 260 261
            },
            {
              title: "Advising/Confirming",
zhengxiaokui committed
262 263
              url: "/business/letopn",
              hotsubx: "6",
zhengxiaokui committed
264
              disabled: this.model.ledgrp.rec.ownref ? true : false,
zhengxiaokui committed
265 266 267 268 269 270
            },
            { title: "Reservation", url: "#", disabled: false },
            { title: "Resevation & Receving Docs", url: "#", disabled: false },
            { title: "Confirmation an Export L/C", url: "#", disabled: true },
            {
              title: "Amending Issuing Bank",
zhengxiaokui committed
271 272
              url: "/business/letame",
              hotsubx: "6",
zhengxiaokui committed
273
              disabled: this.model.ledgrp.rec.ownref ? false : true,
zhengxiaokui committed
274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340
            },
            {
              title: "Changing Issuing Bank",
              url: "#",
              disabled: true,
            },
            { title: "Receiving Docs", url: "#", disabled: true },
          ],
        },
        {
          label: "Others",
          item: [
            { title: "Charge Settlement", url: "#", disabled: true },
            { title: "Attachment", url: "#", disabled: true },
            { title: "Editing References", url: "#", disabled: true },
            { title: "Common Message", url: "#", disabled: true },
            { title: "Cancelling", url: "#", disabled: true },
            { title: "Re_Opening", url: "#", disabled: true },
          ],
        },
        {
          label: "Docs",
          item: [
            { title: "Correct Drawing", url: "#", disabled: true },
            { title: "Processing Discrepant Docs", url: "#", disabled: true },
            { title: "Sending Documents", url: "#", disabled: true },
            { title: "Changing Maturity", url: "#", disabled: true },
            { title: "Funds Settlement", url: "#", disabled: true },
            { title: "Reimbursement", url: "#", disabled: true },
          ],
        },
        {
          label: "Oth.Docs",
          item: [
            { title: "Charge Settlement", url: "#", disabled: true },
            { title: "Attachment", url: "#", disabled: true },
            { title: "Confirmation Limit Canclling", url: "#", disabled: true },
            { title: "Editing Reference", url: "#", disabled: true },
            { title: "Common Message", url: "#", disabled: true },
            { title: "Cancelling", url: "#", disabled: true },
            { title: "Re_Opening", url: "#", disabled: true },
          ],
        },
        {
          label: "Advance",
          item: [
            { title: "Creating an Advance", url: "#", disabled: true },
            { title: "Amending an Advance", url: "#", disabled: true },
            { title: "Setting an Advance", url: "#", disabled: true },
            { title: "递延收益冲销", url: "#", disabled: true },
            { title: "资产转卖收入或损失确认", url: "#", disabled: true },
            { title: "Cancelling", url: "#", disabled: true },
          ],
        },
        {
          label: "Oth.Advance",
          item: [
            { title: "Charge Settlement", url: "#", disabled: true },
            { title: "Attachment", url: "#", disabled: true },
            { title: "Editing References", url: "#", disabled: true },
            { title: "Engagement Adjustment", url: "#", disabled: true },
            { title: "Common Messages", url: "#", disabled: true },
          ],
        },
        {
          label: "Transfer",
          item: [
zhengxiaokui committed
341 342 343 344 345 346
            {
              title: "Opening a Transfer L/C",
              url: "/business/lttopn",
              hotsubx: "1",
              disabled: false,
            },
zhengxiaokui committed
347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394
            { title: "Amenting a Transfer L/C", url: "#", disabled: true },
            {
              title: "Receiving Docs from 2nd Benfic",
              url: "#",
              disabled: true,
            },
          ],
        },
        {
          label: "Oth.Transfer",
          item: [
            { title: "Charge Settlement", url: "#", disabled: true },
            { title: "Attachment", url: "#", disabled: true },
            { title: "Editing References", url: "#", disabled: true },
            { title: "Common Messages", url: "#", disabled: true },
            { title: "Cancelling", url: "#", disabled: true },
            { title: "Re_Opening", url: "#", disabled: true },
          ],
        },
        {
          label: "L/T Docs",
          item: [
            {
              title: "Receiving Docs from 1st Benfic",
              url: "#",
              disabled: true,
            },
            { title: "Correct Drawing", url: "#", disabled: true },
            { title: "Processing discrepant Docs", url: "#", disabled: true },
            { title: "Sending Documents", url: "#", disabled: true },
            { title: "Changing Maturity", url: "#", disabled: true },
            { title: "funds Settlement", url: "#", disabled: true },
            { title: "Reimbursement Clain", url: "#", disabled: true },
          ],
        },
        {
          label: "Oth.L/T Docs",
          item: [
            { title: "Charge Settlement", url: "#", disabled: true },
            { title: "Attachment", url: "#", disabled: true },
            { title: "Editing References", url: "#", disabled: true },
            { title: "Common Messages", url: "#", disabled: true },
            { title: "Cancelling", url: "#", disabled: true },
            { title: "Re_Opening", url: "#", disabled: true },
          ],
        },
      ],
    };
zhengxiaokui committed
395
  },
zhengxiaokui committed
396 397 398
  methods: {
    ...Event,
    //各入口按钮请求
zhengxiaokui committed
399 400 401
    async onTabClick(tab, event) {
      switch (tab.label) {
        case "Transfer":
zhengxiaokui committed
402
          this.hotreg = "9";
zhengxiaokui committed
403 404
          break;
        default:
zhengxiaokui committed
405
          this.hotreg = "1";
zhengxiaokui committed
406
      }
zhengxiaokui committed
407
      let rtnmsg = await this.executeRule(`cfgfil.hotreg${this.hotreg}`);
吴佳 committed
408
      if ((rtnmsg.respCode == SUCCESS)) {
zhengxiaokui committed
409 410 411 412 413 414
        this.updateModel(rtnmsg.data);
      } else {
        this.$notify.error({ title: "错误", message: "服务请求失败!" });
      }
    },
  },
zhengxiaokui committed
415 416
  created: function () {},
};
zhengxiaokui committed
417 418
</script>
<style>
zhengxiaokui committed
419 420 421 422
.centerLable {
  height: 28px;
  line-height: 28px;
}
zhengxiaokui committed
423
</style>