Accp.vue 10.5 KB
Newer Older
1 2 3 4 5 6
<template>
  <div class="eibs-tab">
    <el-row>
      <c-col :span="12">
        <el-form-item label="参考号" prop="didgrp.rec.ownref">
          <c-input
7
            disabled
8 9
            v-model="model.didgrp.rec.ownref"
            maxlength="16"
wangna committed
10
            placeholder="请输入参考号"
11 12 13 14 15 16 17
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="12">
        <el-form-item label="摘要" prop="didgrp.rec.nam">
          <c-input
18
            disabled
19 20
            v-model="model.didgrp.rec.nam"
            maxlength="40"
wangna committed
21
            placeholder="请输入摘要"
22 23 24 25 26 27 28 29 30
          ></c-input>
        </el-form-item>
      </c-col>
    </el-row>
    <el-row>
      <c-col :span="6">
        <el-form-item label="信用证金额" prop="didgrp.cbs.nom1.cur">
          <c-select
            v-model="model.didgrp.cbs.nom1.cur"
wangna committed
31
            placeholder="请选择币种"
32
            disabled
33
          >
34 35 36 37 38 39 40
          <el-option
              v-for="item in codes.cur"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
41 42 43
          </c-select>
        </el-form-item>
      </c-col>
44
      
45
      <c-col :span="6">
46
        <el-form-item label="" prop="didgrp.cbs.nom1.amt" label-width="5px">
47
          <c-input
48
            disabled
49 50 51 52 53 54 55 56
            v-model="model.didgrp.cbs.nom1.amt"
            placeholder="请输入信用证金额"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="申请人" prop="didgrp.apl.pts.ref">
          <c-input
57
            disabled
58 59 60 61 62 63 64 65 66 67 68 69
            v-model="model.didgrp.apl.pts.ref"
            maxlength="16"
            placeholder="请输入申请人"
          ></c-input>
        </el-form-item>
      </c-col>
    </el-row>

    <el-row>
      <c-col :span="6">
        <el-form-item label="信用证余额" prop="didgrp.cbs.opn1.cur">
          <c-select
70
            disabled
71
            v-model="model.didgrp.cbs.opn1.cur"
wangna committed
72
            placeholder="请选择币种"
73
          >
74 75 76 77 78 79 80
          <el-option
              v-for="item in codes.cur"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
81 82 83 84 85
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="6">
86
        <el-form-item label="" prop="didgrp.cbs.opn1.amt" label-width="5px">
87
          <c-input
88
            disabled
89 90 91 92 93 94 95
            v-model="model.didgrp.cbs.opn1.amt"
            placeholder="请输入信用证余额"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="12">
96
        <el-form-item label="" prop="didgrp.apl.pts.nam">
97
          <c-input
98
            disabled
99 100
            v-model="model.didgrp.apl.pts.nam"
            maxlength="40"
wangna committed
101
            placeholder="请输入"
102 103 104 105 106 107 108 109
          ></c-input>
        </el-form-item>
      </c-col>
    </el-row>
    <el-row>
      <c-col :span="12">
        <el-form-item label="指定银行" prop="didgrp.avbnam">
          <c-input
110
            disabled
111 112 113 114 115 116 117 118 119
            v-model="model.didgrp.avbnam"
            maxlength="40"
            placeholder="请输入指定银行"
          ></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="受益人" prop="didgrp.ben.pts.ref">
          <c-input
120
            disabled
121 122 123 124 125 126 127 128 129 130 131 132
            v-model="model.didgrp.ben.pts.ref"
            maxlength="16"
            placeholder="请输入受益人"
          ></c-input>
        </el-form-item>
      </c-col>
    </el-row>

    <el-row>
      <c-col :span="12">
        <el-form-item label="兑付方式" prop="didgrp.rec.avbby">
          <c-select
133
            disabled
134 135
            v-model="model.didgrp.rec.avbby"
            style="width: 100%"
wangna committed
136
            placeholder="请选择兑付方式"
137
          >
138 139 140 141 142 143 144
          <el-option
       v-for="item in codes.avbby0"
       :key="item.value"
      :label="item.label"
        :value="item.value"
       >
       </el-option>
145 146 147 148
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="12">
149
        <el-form-item label="" prop="didgrp.ben.pts.nam">
150
          <c-input
151
            disabled
152 153 154 155 156 157 158 159 160 161 162
            v-model="model.didgrp.ben.pts.nam"
            maxlength="40"
            placeholder=""
          ></c-input>
        </el-form-item>
      </c-col>
    </el-row>
    <el-row>
      <c-col :span="6">
        <el-form-item label="开证日期" prop="didgrp.rec.opndat">
          <c-date-picker
163
            disabled
164 165 166
            type="date"
            v-model="model.didgrp.rec.opndat"
            style="width: 100%"
wangna committed
167
            placeholder="请选择开证日期"
168 169 170 171 172 173 174
          ></c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="6">
        <el-form-item label="最迟装运日期" prop="didgrp.rec.shpdat">
          <c-date-picker
175
            disabled
176 177 178
            type="date"
            v-model="model.didgrp.rec.shpdat"
            style="width: 100%"
wangna committed
179
            placeholder="请选择最迟装运日期"
180 181 182 183 184 185
          ></c-date-picker>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="通知行" prop="didgrp.rec.tzref">
          <c-input
186
            disabled
187 188 189 190 191 192 193 194 195 196 197 198
            v-model="model.didgrp.rec.tzref"
            maxlength="35"
            placeholder="请输入通知行编号"
          ></c-input>
        </el-form-item>
      </c-col>
    </el-row>

    <el-row>
      <c-col :span="6">
        <el-form-item label="到期日/到期地点" prop="didgrp.rec.expdat">
          <c-date-picker
199
            disabled
200 201 202
            type="date"
            v-model="model.didgrp.rec.expdat"
            style="width: 100%"
wangna committed
203
            placeholder="请选择到期日"
204 205 206 207 208
          ></c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="6">
209
        <el-form-item label="" prop="didgrp.rec.expplc" label-width="5px">
210
          <c-input
211
            disabled
212 213
            v-model="model.didgrp.rec.expplc"
            maxlength="35"
wangna committed
214
            placeholder="请输入"
215 216 217 218 219
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="12">
220
        <el-form-item label="" prop="didgrp.adv.pts.nam">
221
          <c-input
222
            disabled
223 224
            v-model="model.didgrp.adv.pts.nam"
            maxlength="40"
wangna committed
225
            placeholder="请输入"
226 227 228 229 230 231 232 233
          ></c-input>
        </el-form-item>
      </c-col>
    </el-row>
    <el-row>
      <c-col :span="12">
        <el-form-item label="信用证类型" prop="didgrp.rec.lcrtyp">
          <c-select
234
            disabled
235 236
            v-model="model.didgrp.rec.lcrtyp"
            style="width: 100%"
wangna committed
237
            placeholder="请选择信用证类型"
238
          >
239 240 241 242 243 244 245
          <el-option
       v-for="item in codes.lcrtyp"
       :key="item.value"
      :label="item.label"
        :value="item.value"
       >
       </el-option>
246 247 248 249
          </c-select>
        </el-form-item>
      </c-col>
    </el-row>
250 251 252


    <!--右边-->
253 254
    <c-col :span="12"><el-form-item label=""></el-form-item></c-col>

255
      <c-col :span="12">
256 257 258
      <el-row>
        <c-col :span="20">
        <el-form-item label="第" prop="amenbr" >
259
          <c-input
260
            disabled
261
            v-model="model.amenbr"
262
            
wangna committed
263
            placeholder="请输入"
264 265
          ></c-input>
        </el-form-item>
266 267
      </c-col>
      <c-col :span="4">
268
        <el-form-item label="次修改(减额)" > </el-form-item>
269
      </c-col>
270 271 272
      </el-row>
      
    
273
    <el-row>
274 275
      <c-col :span="12">
        <el-form-item label="修改金额" prop="amecur" >
276
          <c-select
277
            disabled
278 279
            v-model="model.amecur"
            style="width: 100%"
wangna committed
280
            placeholder="请选择币种"
281
          >
282 283 284 285 286 287 288
          <el-option
            v-for="item in codes.cur"
            :key="item.value"
            :label="item.label"
            :value="item.value"
            >
            </el-option>
289 290
          </c-select>
        </el-form-item>
291
      </c-col>
292 293
      <c-col :span="12">
        <el-form-item label="" prop="ameamt" label-width="5px">
294
          <c-input
295
            disabled
296 297 298 299
            v-model="model.ameamt"
            placeholder="请输入修改金额"
          ></c-input>
        </el-form-item>
300
      </c-col>
301 302 303 304
    </el-row>
    
    <el-row>
      <c-col :span="24">
305 306
        <el-form-item label="修改日期" prop="amedat">
          <c-input
307
            disabled
308
            v-model="model.amedat"
309
            style="width: 100%"
wangna committed
310
            placeholder="请输入修改日期"
311 312
          ></c-input>
        </el-form-item>
313
      </c-col>
314 315 316 317
    </el-row>

    <el-row>
      <c-col :span="24">
318 319
        <el-form-item label="是否接受此笔减额修改" prop="ameflg">
          <c-select
320
            disabled
321 322 323 324
            v-model="model.ameflg"
            style="width: 100%"
            placeholder="请选择是否接受此笔减额修改"
          >
325 326 327 328 329 330 331
          <el-option
       v-for="item in codes.ameflg"
       :key="item.value"
      :label="item.label"
        :value="item.value"
       >
       </el-option>
332 333 334 335
          </c-select>
        </el-form-item>
      </c-col>
    </el-row>
336 337 338
      </c-col>


339
    <c-col :span="24">
huangxin committed
340
        <el-form-item label="修改历史列表" prop="decstm">
341 342 343 344 345 346 347 348 349
          <c-istream-table 
                    :list="model.decstm.rows || []"
                    :columns="trnData.columns"
                    v-on:chooseRowEvent="chooseRowEvent"
        >
        </c-istream-table>
        </el-form-item>
      </c-col>
      
350 351 352 353
  </div>
</template>
<script>
import Api from "~/service/Api";
wangren committed
354
import commonProcess from "~/mixin/commonProcess";
355 356 357 358 359 360
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditdla/Event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
361
  mixins: [commonProcess],
362
  data() {
363 364 365 366
    return {
        trnData: {
        columns: [
            "0 1 \"\" 200",
wangna committed
367 368
            "1 2 \"业务编号\" 200",
            "2 3 \"币种\" 200",
369 370 371 372 373 374 375 376 377 378 379
            "3 4 \"减额金额\" 200 2 8:1 2 5",
            "4 5 \"修改日期\" 200 4 7",
            "7 6 \"备注\" 200 ",
        ],
        codes:{
          ...CodeTable
        },
        data: [],
      },

        }
380
  },
381 382 383 384 385 386 387 388 389 390 391
  methods: { ...Event,
  async chooseRowEvent(row) {
      const selIds = [row.IDX + 1]; //rowno选中行
      const selDst = "decstm" //列表对应后台模型中的stream
      let params = { selDst: selDst, selIds: selIds };
      let rtnmsg = await this.executeRule("decstm", params)
      if(rtnmsg.respCode == SUCCESS) {
        this.updateModel(rtnmsg.data)
      }
    }
    },
392 393 394 395
  created: function () {},
};
</script>
<style>
396 397 398
.stream{
   cursor: pointer; 
}
399
</style>