Sel.vue 13.7 KB
Newer Older
zhengxiaokui committed
1
<template>
zhengxiaokui committed
2 3
  <c-row>
    <c-col :span="24">
zhengxiaokui committed
4
      <c-col :span="7">
jianglong committed
5
        <el-form-item label="信用证编号" 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%"
jianglong committed
10
            placeholder="请输入出口信用证编号"
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
      <c-col :span="11" :offset="1">
jianglong committed
27
        <el-form-item label="简略信息" prop="ledgrp.rec.nam">
zhengxiaokui committed
28 29 30
          <c-input
            v-model="model.ledgrp.rec.nam"
            maxlength="40"
jianglong committed
31
            placeholder="请输入简略信息"
zhengxiaokui committed
32
            disabled
zhengxiaokui committed
33 34 35 36 37 38 39 40
          ></c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <c-col :span="24">
      <c-col :span="11">
        <c-col :span="24">
jianglong committed
41
          <el-form-item label="信用证金额" prop="ledgrp.cbs.nom1.cur">
zhengxiaokui committed
42 43 44
            <c-input
              v-model="model.ledgrp.cbs.nom1.cur"
              maxlength="3"
jianglong committed
45
              placeholder="请输入信用证金额"
zhengxiaokui committed
46
              disabled
zhengxiaokui committed
47 48 49 50
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
jianglong committed
51
          <el-form-item label="信用证余额" prop="ledgrp.cbs.opn1.cur">
zhengxiaokui committed
52 53 54
            <c-input
              v-model="model.ledgrp.cbs.opn1.cur"
              maxlength="3"
jianglong committed
55
              placeholder="请输入信用证余额"
zhengxiaokui committed
56
              disabled
zhengxiaokui committed
57 58 59 60
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
jianglong committed
61
          <el-form-item label="可用银行" prop="ledgrp.avbnam">
zhengxiaokui committed
62 63 64
            <c-input
              v-model="model.ledgrp.avbnam"
              maxlength="40"
jianglong committed
65
              placeholder="请输入可用银行"
zhengxiaokui committed
66
              disabled
zhengxiaokui committed
67 68 69 70
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
jianglong committed
71
          <el-form-item label="兑付方式" prop="ledgrp.rec.avbby">
zhengxiaokui committed
72 73 74
            <c-select
              v-model="model.ledgrp.rec.avbby"
              style="width: 100%"
jianglong committed
75
              placeholder="请选择兑付方式"
zhengxiaokui committed
76
              disabled
zhengxiaokui committed
77 78 79 80
            >
            </c-select>
          </el-form-item>
        </c-col>
zhengxiaokui committed
81
        <c-col :span="13">
jianglong committed
82
          <el-form-item label="开立日期" prop="ledgrp.rec.opndat">
zhengxiaokui committed
83 84 85
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.opndat"
zhengxiaokui committed
86
              style="width: 95%"
jianglong committed
87
              placeholder="请选择日期"
zhengxiaokui committed
88 89 90 91 92 93 94
              disabled
            ></c-date-picker>
          </el-form-item>
        </c-col>

        <c-col :span="11">
          <el-form-item
jianglong committed
95
            label="装运日期(原)"
zhengxiaokui committed
96 97 98 99 100 101 102
            label-width="110px"
            prop="ledgrp.rec.shpdat"
          >
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.shpdat"
              style="width: 100%"
jianglong committed
103
              placeholder="请选择日期"
zhengxiaokui committed
104
              disabled
zhengxiaokui committed
105 106 107 108
            ></c-date-picker>
          </el-form-item>
        </c-col>

zhengxiaokui committed
109
        <c-col :span="13">
jianglong committed
110
          <el-form-item label="生效日期" prop="ledgrp.rec.expdat">
zhengxiaokui committed
111 112 113
            <c-date-picker
              type="date"
              v-model="model.ledgrp.rec.expdat"
zhengxiaokui committed
114
              style="width: 95%"
jianglong committed
115
              placeholder="请选择生效地点/日期"
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
            <c-input
              v-model="model.ledgrp.rec.expplc"
              maxlength="29"
jianglong committed
125
              placeholder="请输入生效地点"
zhengxiaokui committed
126
              disabled
zhengxiaokui committed
127 128 129 130
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
jianglong committed
131
          <el-form-item label="信用证类型" prop="ledgrp.rec.lcrtyp">
zhengxiaokui committed
132 133 134
            <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
            >
            </c-select>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="11" :offset="1">
        <c-col :span="24">
jianglong committed
146
          <el-form-item label="受益人" prop="ledgrp.ben.pts.ref">
zhengxiaokui committed
147 148 149
            <c-input
              v-model="model.ledgrp.ben.pts.ref"
              maxlength="16"
jianglong committed
150
              placeholder="请输受益人"
zhengxiaokui committed
151
              disabled
zhengxiaokui committed
152 153 154 155 156
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
jianglong committed
157
          <el-form-item label="受益人名称" prop="ledgrp.ben.pts.nam">
zhengxiaokui committed
158 159 160
            <c-input
              v-model="model.ledgrp.ben.pts.nam"
              maxlength="40"
jianglong committed
161
              placeholder="请输名称"
zhengxiaokui committed
162
              disabled
zhengxiaokui committed
163 164 165 166 167
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
jianglong committed
168
          <el-form-item label="开证行参考号" prop="ledgrp.iss.pts.ref">
zhengxiaokui committed
169 170 171
            <c-input
              v-model="model.ledgrp.iss.pts.ref"
              maxlength="16"
jianglong committed
172
              placeholder="请输入开证行参考号"
zhengxiaokui committed
173
              disabled
zhengxiaokui committed
174 175 176 177
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
jianglong committed
178
          <el-form-item label="" prop="ledgrp.iss.pts.nam">
zhengxiaokui committed
179 180 181
            <c-input
              v-model="model.ledgrp.iss.pts.nam"
              maxlength="40"
jianglong committed
182
              placeholder="请输入名称"
zhengxiaokui committed
183
              disabled
zhengxiaokui committed
184 185 186 187 188
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
jianglong committed
189
          <el-form-item label="申请人参考号" prop="ledgrp.apl.pts.ref">
zhengxiaokui committed
190 191 192
            <c-input
              v-model="model.ledgrp.apl.pts.ref"
              maxlength="16"
jianglong committed
193
              placeholder="请输入"
zhengxiaokui committed
194
              disabled
zhengxiaokui committed
195 196 197 198
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
jianglong committed
199
          <el-form-item label="申请人名称" prop="ledgrp.apl.pts.nam">
zhengxiaokui committed
200 201 202
            <c-input
              v-model="model.ledgrp.apl.pts.nam"
              maxlength="40"
jianglong committed
203
              placeholder="请输入名称"
zhengxiaokui committed
204 205 206 207 208
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="24">
jianglong committed
209
          <el-form-item label="确认文本" prop="cnftxt">
zhengxiaokui committed
210 211 212
            <c-input
              v-model="model.cnftxt"
              maxlength="40"
jianglong committed
213
              placeholder="请输入确认文本"
zhengxiaokui committed
214
              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 419
</script>
<style>
</style>