Infsea.vue 11.6 KB
Newer Older
zhangzhenmin committed
1
<template>
LiRui committed
2
  <div class="eibs">
3 4
    <c-list-search @form-reset="handleReset" @form-search="handleSearch">
      <!-- 持续展示区 -->
zhangzhenmin committed
5
      <template v-slot="searchSlot">
6
        <el-form class="m-table-search-form" ref="paramsForm" label-position="right" label-width="110px"
7
          size="small">
LiRui committed
8
          <el-row>
9
              <c-col :span="8">
nanrui committed
10 11
                <el-form-item label="代收编号" prop="infcon.seaownref" style="width: 100%">
                  <c-input v-model="model.infcon.seaownref" maxlength="16" placeholder="请输入代收编号"></c-input>
12 13 14
                </el-form-item>
              </c-col>
              <c-col :span="8">
nanrui committed
15
                <el-form-item label="开立日期" prop="infcon.opndatfrom" style="width: 100%">
16
                  <c-col :span="11">
17
                    <c-date-picker type="date" v-model="model.infcon.opndatfrom" value-format="yyyy-MM-dd"
nanrui committed
18
                      style="width:100%" placeholder="请选择开立日期"></c-date-picker>
19 20 21 22 23
                  </c-col>
                  <c-col :span="2" style="text-align: center">
                    <label style="display: inline-block; width: 100%">-</label>
                  </c-col>
                  <c-col :span="11">
24
                    <c-date-picker type="date" v-model="model.infcon.opndatto" value-format="yyyy-MM-dd"
nanrui committed
25
                      style="width:100%" placeholder="请选择开立日期"></c-date-picker>
26 27
                  </c-col>
                </el-form-item>
28 29
              </c-col>
              <c-col :span="8">
nanrui committed
30 31
                <el-form-item label="当事人参考号" prop="infcon.searef" style="width: 100%">
                  <c-input v-model="model.infcon.searef" maxlength="16" placeholder="请输入当事人参考号"></c-input>
32 33
                </el-form-item>
              </c-col>
LiRui committed
34
          </el-row>
35

LiRui committed
36
          <el-row v-show="searchSlot.searchToggle">
37
              <c-col :span="8">
nanrui committed
38 39
                <el-form-item label="当事人编号" prop="infcon.pty.extkey" style="width: 100%">
                  <c-input v-model="model.infcon.pty.extkey" maxlength="24" placeholder="请输入当事人编号">
40 41 42
                  </c-input>
                </el-form-item>
              </c-col>
43
              <c-col :span="8">
nanrui committed
44 45
                <el-form-item label="客户经理" prop="infcon.usr.extkey" style="width: 100%">
                  <c-input v-model="model.infcon.usr.extkey" maxlength="8" placeholder="请输入客户经理"></c-input>
46 47 48
                </el-form-item>
              </c-col>
              <c-col :span="8">
nanrui committed
49 50
                <el-form-item label="角色" prop="infcon.searol" style="width: 100%">
                  <c-select v-model="model.infcon.searol" style="width: 100%" placeholder="请选择角色">
nanrui committed
51
                    <el-option v-for="item in codes.searol" :key="item.value" :label="item.label" :value="item.value">
52 53 54 55
                    </el-option>
                  </c-select>
                </el-form-item>
              </c-col>
56

57
              <c-col :span="8">
nanrui committed
58 59
                <el-form-item label="当事人名称" prop="infcon.pty.nam" style="width: 100%">
                  <c-input v-model="model.infcon.pty.nam" maxlength="40" placeholder="请输入当事人名称">
60 61
                  </c-input>
                </el-form-item>
62 63
              </c-col>
              <c-col :span="8">
nanrui committed
64 65
                <el-form-item label="当事人BIC编码" prop="infcon.seapty" style="width: 100%">
                  <c-input v-model="model.infcon.seapty" maxlength="24" placeholder="请输入当事人BIC编码"></c-input>
66 67
                </el-form-item>
              </c-col>
68

69
              <c-col :span="8">
nanrui committed
70 71
                <el-form-item label="币种" prop="infcon.curtxt1" style="width: 100%">
                  <c-select v-model="model.infcon.curtxt1" style="width: 100%" placeholder="请选择币种">
72
                    <el-option v-for="item in codes.curtxt1" :key="item.value" :label="item.label" :value="item.value">
73 74 75 76 77 78
                    </el-option>
                  </c-select>
                </el-form-item>
              </c-col>

              <c-col :span="8">
nanrui committed
79 80
                <el-form-item label="简略信息" prop="infcon.nam" style="width: 100%">
                  <c-input v-model="model.infcon.nam" maxlength="40" placeholder="请输入简略信息"></c-input>
81 82 83
                </el-form-item>
              </c-col>
              <c-col :span="8">
nanrui committed
84
                <el-form-item label="金额区间" prop="infcon.seaamtfr" style="width: 100%">
85
                  <c-col :span="11">
nanrui committed
86
                    <c-input v-model="model.infcon.seaamtfr" placeholder="请输入金额区间"></c-input>
87 88 89 90 91
                  </c-col>
                  <c-col :span="2" style="text-align: center">
                    <label style="display: inline-block; width: 100%">-</label>
                  </c-col>
                  <c-col :span="11">
nanrui committed
92
                    <c-input v-model="model.infcon.seaamtto" placeholder="请输入金额区间"></c-input>
93 94 95
                  </c-col>
                </el-form-item>
              </c-col>
96
              <c-col :span="8">
nanrui committed
97 98
                <el-form-item label="状态" prop="infcon.seasta" style="width: 100%">
                  <c-select v-model="model.infcon.seasta" style="width: 100%" placeholder="请选择状态">
99 100 101 102 103
                    <el-option v-for="item in codes.seasta" :key="item.value" :label="item.label" :value="item.value">
                    </el-option>
                  </c-select>
                </el-form-item>
              </c-col>
LiRui committed
104

105
              <c-col :span="8">
nanrui committed
106 107
                <el-form-item label="付款条件" prop="doctypcod" style="width: 100%">
                  <c-select v-model="model.infcon.doctypcod" style="width: 100%" placeholder="请选择付款条件">
108 109
                    <el-option v-for="item in codes.doctypcod" :key="item.value" :label="item.label"
                      :value="item.value">
110 111 112 113 114
                    </el-option>
                  </c-select>
                </el-form-item>
              </c-col>
              <c-col :span="8">
jianglong committed
115 116
                <el-form-item label="货物类型" prop="godcod" style="width: 100%">
                  <c-select v-model="model.infcon.godcod" style="width:100%" placeholder="请选择货物类型">
117 118 119 120
                    <el-option v-for="item in codes.godcod" :key="item.value" :label="item.label" :value="item.value">
                    </el-option>
                  </c-select>
                </el-form-item>
121
              </c-col>
LiRui committed
122
          </el-row>
zhangzhenmin committed
123 124 125
        </el-form>
      </template>
    </c-list-search>
126 127


LiRui committed
128
    <el-col :span="24" style="margin-top: 10px">
Wuyuqiu committed
129
      <c-button class="medium_bcs" size="medium" style="margin-left: 0px" type="primary" @click="toBctdav">进口代收到单通知</c-button>
LiRui committed
130
    </el-col>
131

LiRui committed
132
    <div style="height:90%">
133
    <c-col :span="24">
nanrui committed
134
      <c-istream-table :list="stmData.data" :columns="stmData.columns" :showButtonFlg="true">
135 136 137 138
        <el-table-column fixed="right" prop="op" width="140px">
          <template slot="header">
            <c-col :span="11" style="text-align: center"><span>操作</span></c-col>
          </template>
zhangzhenmin committed
139
          <template slot-scope="scope">
140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
            <el-popover placement="top-start" title="历史信息" width="800" trigger="click"
              :ref="'popover_' + scope.row.IDX">
              <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>
wangna committed
155
            <c-button style="margin-left: 5px" size="small" type="primary" @click="getButtons(scope.row['代收编号'], scope.row['关闭日期'])">处理
156 157
            </c-button>
          </template>
zhangzhenmin committed
158 159
        </el-table-column>
      </c-istream-table>
160
    </c-col>
LiRui committed
161
  </div>
162

163 164 165
    <m-busbtn ref="childs" :ownref="ownref" :model="BctselModel" ownrefPath="bcdgrp" trnCode="bctsel"
      @onChoose="onChoose">11</m-busbtn>

zhangzhenmin committed
166 167 168 169
  </div>
</template>
<script>
import Api from "~/service/Api"
wangren committed
170
import commonProcess from "~/mixin/commonProcess"
zhangzhenmin committed
171 172 173
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Infbcd/Event"

174 175 176
import BctselModel from "~/model/Bctsel"
import BusNavbar from "~/views/Public/BusNavbar";

177 178 179
export
  default {
    inject: ['root'],
zhangzhenmin committed
180
    props: ["model", "codes"],
wangren committed
181
    mixins: [commonProcess],
182
    components: { "m-busbtn": BusNavbar },
zhangzhenmin committed
183 184
    data() {
      return {
185 186 187
        BctselModel: new BctselModel().data,
        ownref: "",
        dialogTableVisible: false,
188 189 190 191 192 193 194 195 196 197 198 199 200
        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: '状态', code: this.codes.relstaEN },
            '5 5 "币种" 80',
            '6 6 "金额" 110',
          ],
          data: [],
        },
zhangzhenmin committed
201 202
        stmData: {
          columns: [
nanrui committed
203 204
            "1 1 \"代收编号\" 150",
            "2 2 \"客户经理\" 120",
205
            "6 3 \"分行名称\" 170",
nanrui committed
206 207
            "8 4 \"付款人编号\" 170",
            "9 5 \"付款人\" 300",
wangna committed
208
            "10 6 \"付款人 CN\" 130",
nanrui committed
209 210
            "11 7 \"收款人编号\" 170",
            "12 8 \"收款人\" 150",
211
            "7 9 \"Pta.No\" 130",
nanrui committed
212 213
            "13 10 \"托收行编号\" 220",
            "14 11 \"托收行\" 200",
jianglong committed
214
            "5 12 \"货物类型\" 130 1 0 1 GODCOD",
nanrui committed
215
            "3 13 \"开立日期\" 150 4 7",
wangna committed
216
            "4 14 \"关闭日期\" 150 4 7",
217
            "15 15 \"金额币种\" 150",
nanrui committed
218
            "16 16 \"代收金额\" 120 2 8 1 15",
219
            "17 17 \"余额币种\" 150",
nanrui committed
220
            "18 18 \"代收余额\" 130 2 8 1 17",
zhangzhenmin committed
221 222 223 224 225 226
          ],
          data: []

        }
      }
    },
227 228
    methods: {
      ...Event,
wangna committed
229 230
      async getButtons(ownref, closedDate) {
        this.BctselModel.clsflg = (closedDate ?? "").trim() === "" ? "" : "C";
231
        this.$refs.childs.initdialog = true
232 233 234 235 236
        this.ownref = ownref
        console.log("ownref:" + ownref);
      },
      async onChoose(code) {
        //跳转交易
237 238
        this.$router.history.push("/business/" + code)
        this.$refs.childs.initdialog = false
239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259
      },
      closeTrn(refId) {
        this.$refs[refId].doClose();
      },
      async getTrnInfo(idx, row) {

        this.model.infcon.objinr = row["INR"];
        this.model.bcdgrp.rec.inr = row["INR"];
        this.model.infcon.chksubcon = "X";

        this.dialogTableVisible = true;

        let rtnmsg = await this.executeDefault("infcon.chksubcon");
        console.log(rtnmsg);
        console.log(this.model.infcon.chksubcon);

        if ((rtnmsg.respCode = SUCCESS)) {
          this.trnData.data = rtnmsg.data.infcon_trnstm.rows;
          console.log(this.trnData.data);
        }
      },
260 261
      async getDitSelInfo(code) {
        //跳转交易
262 263
        this.$router.history.push("/business/" + code)
        this.$refs.childs.initdialog = false
264 265

      },
266 267 268
      toBctdav() {
        this.$router.history.push("/business/bctdav")
      }
zhangzhenmin committed
269
    },
270
    created: function () {
zhangzhenmin committed
271

272
    }
zhangzhenmin committed
273
  }</script>
274
<style>
LiRui committed
275 276 277
.m-table-search {
  padding: 20px 0px 10px 0px;
}
278
</style>