Infsea.vue 14.3 KB
Newer Older
潘际乾 committed
1 2
<template>
  <div class="eibs-tab">
潘际乾 committed
3 4
    <c-list-search @form-reset="handleReset" @form-search="handleSearch">
      <template v-slot="searchSlot">
5 6 7 8 9 10 11 12 13 14 15

    <el-form
          class="m-table-search-form"
          ref="paramsForm"
          :inline="true"
          label-position="right"
          label-width="110px"
          size="small"
        >

        <el-row>
潘际乾 committed
16
          <c-col :span="8">
17 18 19 20 21
            <el-form-item 
            label="单据编号" 
            prop="infcon.seaownref"
            style="width: 100%"
            >
潘际乾 committed
22 23 24
              <c-input
                v-model="model.infcon.seaownref"
                maxlength="16"
25
                placeholder="请输入单据编号"
潘际乾 committed
26 27 28 29 30
              ></c-input>
            </el-form-item>
          </c-col>

          <c-col :span="8">
31 32 33 34
            <el-form-item label="创建日期" 
            prop="infcon.opndatfrom"
            style="width: 100%"
            >
潘际乾 committed
35 36 37 38 39
              <c-col :span="11">
                <c-date-picker
                  type="date"
                  v-model="model.infcon.opndatfrom"
                  style="width: 100%"
40
                  placeholder="请选择请选择起始日期"
潘际乾 committed
41 42 43 44 45 46 47 48 49 50
                ></c-date-picker>
              </c-col>
              <c-col :span="2" style="text-align: center">
                <label style="display: inline-block; width: 100%">-</label>
              </c-col>
              <c-col :span="11">
                <c-date-picker
                  type="date"
                  v-model="model.infcon.opndatto"
                  style="width: 100%"
51
                  placeholder="请选择截至日期"
潘际乾 committed
52 53 54 55 56 57
                ></c-date-picker>
              </c-col>
            </el-form-item>
          </c-col>

          <c-col :span="8">
58
            <el-form-item label="业务简略信息" prop="infcon.nam" style="width: 100%">
潘际乾 committed
59 60 61
              <c-input
                v-model="model.infcon.nam"
                maxlength="40"
62
                placeholder="请输入业务简略信息"
潘际乾 committed
63 64 65
              ></c-input>
            </el-form-item>
          </c-col>
66
        </el-row>
潘际乾 committed
67

68

69
       
70

71 72
        <el-row v-show="searchSlot.searchToggle">
          <!--line 1-->
潘际乾 committed
73
            <c-col :span="8">
74 75 76 77 78 79 80 81 82 83 84 85 86 87
              <el-form-item label="提货担保编号" 
              prop="infcon.seashgref"
              style="width: 100%"
              >
                <c-input
                  v-model="model.infcon.seashgref"
                  maxlength="16"
                  placeholder="请输入提货担保编号"
                ></c-input>
              </el-form-item>
            </c-col>

            <c-col :span="8">
              <el-form-item style="width: 100%" label="当事人参考号" prop="infcon.searef">
潘际乾 committed
88 89 90
                <c-input
                  v-model="model.infcon.searef"
                  maxlength="16"
91
                  placeholder="请输入当事人参考号"
潘际乾 committed
92 93 94 95
                ></c-input>
              </el-form-item>
            </c-col>
            <c-col :span="8">
96 97
              <el-form-item style="width: 100%" 
                label="当事人编号"
潘际乾 committed
98 99 100 101 102
                prop="infcon.pty.extkey"
              >
                <c-input
                  v-model="model.infcon.pty.extkey"
                  maxlength="24"
103
                  placeholder="请输入当事人编号"
潘际乾 committed
104 105 106
                ></c-input>
              </el-form-item>
            </c-col>
107 108
          
            <!--line 2-->
潘际乾 committed
109
            <c-col :span="8">
110
              <el-form-item style="width: 100%"  label="当事人名称" prop="infcon.pty.nam">
潘际乾 committed
111 112 113
                <c-input
                  v-model="model.infcon.pty.nam"
                  maxlength="40"
114
                  placeholder="请输入当事人名称"
潘际乾 committed
115 116 117 118 119
                ></c-input>
              </el-form-item>
            </c-col>

            <c-col :span="8">
120
              <el-form-item style="width: 100%"  label="当事人BIC编码" prop="infcon.seapty">
潘际乾 committed
121 122 123
                <c-input
                  v-model="model.infcon.seapty"
                  maxlength="24"
124
                  placeholder="请输入当事人BIC编码"
潘际乾 committed
125 126 127 128
                ></c-input>
              </el-form-item>
            </c-col>
            <c-col :span="8">
129
              <el-form-item style="width: 100%"  label="当事人角色" prop="infcon.searol">
潘际乾 committed
130 131 132
                <c-select
                  v-model="model.infcon.searol"
                  style="width: 100%"
133
                  placeholder="请选择当事人角色"
zhujiazhan committed
134
                  :code="searol"
潘际乾 committed
135 136 137 138
                >
                </c-select>
              </el-form-item>
            </c-col>
139 140 141 142

            <!--line 3-->
              <c-col :span="8">
                <el-form-item style="width: 100%"  label="客户经理" prop="infcon.usr.extkey">
潘际乾 committed
143 144 145
                  <c-input
                    v-model="model.infcon.usr.extkey"
                    maxlength="8"
146
                    placeholder="请输入客户经理"
潘际乾 committed
147 148 149
                  ></c-input>
                </el-form-item>
              </c-col>
150 151
              <c-col :span="8">
                <el-form-item style="width: 100%"  label="单据状态" prop="infcon.seasta">
潘际乾 committed
152 153 154
                  <c-select
                    v-model="model.infcon.seasta"
                    style="width: 100%"
155
                    placeholder="请选择单据状态"
zhujiazhan committed
156
                    :code="codes.seasta"
潘际乾 committed
157 158 159 160 161
                  >
                  </c-select>
                </el-form-item>
              </c-col>

162 163 164 165 166 167 168 169 170 171 172 173 174
              <c-col :span="8">
                <el-form-item style="width: 100%"  label="单据类型" prop="seadocflg">
                  <c-select
                    v-model="model.seadocflg"
                    style="width: 100%"
                    placeholder="请选择单据类型"
                   :code="codes.docflg">
                  </c-select>
                </el-form-item>
              </c-col>
          
            <!--line 4-->
          
潘际乾 committed
175
            <c-col :span="8">
176
              <el-form-item style="width: 100%"  label="币种" prop="infcon.seacur">
潘际乾 committed
177 178 179
                <c-select
                  v-model="model.infcon.seacur"
                  style="width: 100%"
180
                  placeholder="请选择币种"
zhujiazhan committed
181
                  :code="codes.currencycode"
潘际乾 committed
182
                >
zhujiazhan committed
183

潘际乾 committed
184 185 186 187
                </c-select>
              </el-form-item>
            </c-col>
            <c-col :span="8">
188
              <el-form-item style="width: 100%"  label="金额区间" prop="infcon.seaamtfr">
潘际乾 committed
189 190 191
                <c-col :span="11">
                  <c-input
                    v-model="model.infcon.seaamtfr"
192
                    placeholder="请输入金额下限"
潘际乾 committed
193 194 195 196 197 198 199 200 201
                  ></c-input>
                </c-col>

                <c-col :span="2" style="text-align: center">
                  <label style="display: inline-block; width: 100%">-</label>
                </c-col>
                <c-col :span="11">
                  <c-input
                    v-model="model.infcon.seaamtto"
202
                    placeholder="请输入金额上限"
潘际乾 committed
203 204 205 206 207
                  ></c-input>
                </c-col>
              </el-form-item>
            </c-col>

208 209
            <c-col :span="8">
                <el-form-item style="width: 100%"  label="货物类型" prop="seagodcod">
潘际乾 committed
210 211 212
                  <c-select
                    v-model="model.seagodcod"
                    style="width: 100%"
213
                    placeholder="请选择货物类型"
zhujiazhan committed
214
                    :code="codes.godcod"
潘际乾 committed
215 216 217 218
                  >
                  </c-select>
                </el-form-item>
            </c-col>
219 220 221 222
        </el-row>

</el-form>
        
潘际乾 committed
223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255
      </template>
    </c-list-search>
    <!-- <c-col :span="12">
      <el-form-item label="Release Status" prop="infcon.relflg">
        <c-select
          v-model="model.infcon.relflg"
          style="width: 100%"
          placeholder="请选择Release Status"
        >
        </c-select>
      </el-form-item>
    </c-col> -->
    <!-- <c-col :span="12">
      <el-form-item label="Handling Type" prop="infcon.hndtyp">
        <c-select
          v-model="model.infcon.hndtyp"
          style="width: 100%"
          placeholder="请选择Handling Type"
        >
        </c-select>
      </el-form-item>
    </c-col> -->
    <!-- <c-col :span="12">
      <el-form-item label="是否显示查询码" prop="infcon.cxmflg">
        <c-select
          v-model="model.infcon.cxmflg"
          style="width: 100%"
          placeholder="请选择是否显示查询码"
        >
        </c-select>
      </el-form-item>
    </c-col> -->

256
<div style="height:90%">
潘际乾 committed
257
    <c-col :span="24">
258 259 260 261 262 263 264 265 266 267
       <c-istream-table 
       :list="stmData.data"
       :columns="columns"
       :showButtonFlg="true"
       >
        <el-table-column fixed="right" prop="op" label="操作" width="140px">
          <template slot="header">
             <c-col :span="11" style="text-align: left"><span>操作</span></c-col>
           
</template>
潘际乾 committed
268
          <template slot-scope="scope">
269

潘际乾 committed
270 271 272 273 274 275
            <el-popover
              placement="top-start"
              title="历史信息"
              width="800"
              trigger="click"
              :ref="'popover_' + scope.row.IDX"
潘际乾 committed
276
            >
潘际乾 committed
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
              <div
                style="
                  text-align: right;
                  margin-top: -30px;
                  margin-right: 5px;
                  font-size: 16px;
                "
              >
                <span
                  class="el-icon-close"
                  @click="closeTrn('popover_' + scope.row.IDX)"
                />
              </div>
              <c-istream-table :list="trnData.data" :columns="trnData.columns">
                <el-table-column prop="op" label="操作" width="0">
                  <template slot-scope="scope">
                    <c-button
                      style="margin-left: 0"
                      size="small"
                      @click="display(scope.row['INR'])"
                    >
                      详情
                    </c-button>
                  </template>
                </el-table-column>
              </c-istream-table>
              <c-button
                style="margin-left: 0"
                size="small"
                @click="getTrnInfo(scope.$index, scope.row)"
                slot="reference"
              >
                详情
              </c-button>
            </el-popover>
潘际乾 committed
312 313 314 315
            <c-button
              style="margin-left: 0"
              size="small"
              type="primary"
316
              @click="getButtons(scope.row['单据编号'])"
潘际乾 committed
317 318 319 320 321 322 323
            >
              处理
            </c-button>
          </template>
        </el-table-column>
      </c-istream-table>
    </c-col>
324 325 326 327 328 329 330 331 332 333 334 335 336
</div>


    <m-busbtn 
    ref="childs"  
    :ownref="ownref" 
    trnCode="litsel" 
    :model="litselModel" 
    ownrefPath="brdgrp" 
    tabIndex=3 
    @onChoose="onChoose" >
    11
    </m-busbtn>
337

潘际乾 committed
338 339 340
  </div>
</template>
<script>
潘际乾 committed
341
import Api from "~/service/Api";
潘际乾 committed
342
import commonProcess from "~/mixin/commonProcess";
潘际乾 committed
343 344
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Infbrd/Event";
zhujiazhan committed
345

wangyanjiao committed
346
import LitselModel from "~/model/Litsel"
zhujiazhan committed
347
import BusNavbar from "~/views/Public/BusNavbar";
潘际乾 committed
348 349

export default {
潘际乾 committed
350 351 352 353 354 355
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  components: { "m-busbtn": BusNavbar },
  data() {
    return {
zhujiazhan committed
356 357 358 359 360 361 362 363 364 365 366
     searol:[
          { label: "Acc. with Bank (ACB)", value: "ACB" },
          { label: "Applicant", value: "APL" },
          { label: "Beneficiary's Bank", value: "BEB" },
          { label: "Beneficiary", value: "BEN" },
          { label: "Issuing Bank", value: "ISS" },
          { label: "Old Account Party", value: "OAP" },
          { label: "Presenter (PRP)", value: "PRB" },
          { label: "Reimbursement Bank", value: "RMB" },
          { label: "Carrier (ROG)", value: "ROG" },
        ],
wangyanjiao committed
367
      litselModel: new LitselModel().data,
zhujiazhan committed
368
      initdialog:false,
潘际乾 committed
369
      ownref: "",
潘际乾 committed
370 371 372 373 374 375 376 377 378 379 380 381 382
      trnData: {
        columns: [
          '1 1 "编号" 200',
          '2 2 "交易名称" 120',
          // '3 3 "日期" 200',
          { index: 3, position: 3, width: 110, pattern: "date", label: "日期" },
          // '4 4 "状态" 50',
          {
            index: 4,
            position: 4,
            width: 100,
            pattern: "code",
            label: "状态",
zhujiazhan committed
383
            code: this.codes.relstaEN,
潘际乾 committed
384 385 386 387 388 389
          },
          '5 5 "币种" 80',
          '6 6 "金额" 110',
        ],
        data: [],
      },
潘际乾 committed
390
      columns: [
391 392
        '1 1 "单据编号" 140',
        '2 2 "客户经理" 100',
zhujiazhan committed
393
        //'3 3 "Goods Code" 100 1 0 1 GODCOD',
394 395 396 397 398 399 400 401 402 403 404 405 406 407 408
         { index: 3, position: 3, width: 100, pattern: "code", label: "货物类型" ,"code":"godcod"},
        '7 4 "申请人编号" 133',
        '8 5 "申请人名称" 160',
        '9 6 "申请人名称(中文)" 160',
        '10 7 "受益人编号" 133',
        '11 8 "受益人名称" 150',
        '6 9 "申请人PTA.INR" 160',
        '12 10 "交单行编号" 140',
        '13 11 "交单行名称" 220',
        { index: 4, position: 12, width: 100, pattern: "date", label: "创建日期" },
        { index: 5, position: 13, width: 100, pattern: "date", label: "关闭日期" },
        '14 14 "单据币种" 120',
        '15 15 "单据金额" 120 2 8 1 14',
        '16 16 "单据币种" 130',
        '17 17 "单据余额" 120 2 8 1 16',
潘际乾 committed
409
      ],
zhujiazhan committed
410 411 412
      stmData: {
            data: [],
        },
潘际乾 committed
413 414 415
    };
  },
  methods: {
wangyanjiao committed
416 417
    ...Event,
    async getButtons(ownref){
zhujiazhan committed
418 419 420 421 422 423 424 425 426 427 428 429 430 431
            this.ownref = ownref
            this.$refs.childs.initdialog = true
            console.log("ownref:" +ownref);
  },
    async  onChoose(code){
        //跳转交易
      this.$router.history.push("/business/" + code)
      this.$refs.childs.initdialog = false
    } ,
    async  getDitSelInfo(code){
        //跳转交易
      this.$router.history.push("/business/" + code)
      this.$refs.childs.initdialog = false
    },
潘际乾 committed
432 433
    async getTrnInfo(idx, row) {
      this.model.infcon.objinr = row["INR"];
潘际乾 committed
434
      this.model.brdgrp.rec.inr = row["INR"];
潘际乾 committed
435
      this.model.infcon.chksubcon = "X";
潘际乾 committed
436

潘际乾 committed
437 438
      this.dialogTableVisible = true;
      let rtnmsg = await this.executeDefault("infcon.chksubcon");
潘际乾 committed
439

潘际乾 committed
440 441 442 443
      if (rtnmsg.respCode == SUCCESS) {
        this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
      }
    },
zhujiazhan committed
444 445 446
    async closeTrn(refId) {
            this.$refs[refId].doClose();
    },
潘际乾 committed
447 448 449 450
  },
  created: function () {},
};
</script>
451 452 453 454 455 456 457 458 459 460 461
<style>
.m-table-search {
    padding: 20px 0px 10px 0px;
}
.el-form-item__label{
    text-align: left!important;
}
.el-row > .el-col {
    padding-right: 10px!important;
}
</style>