Accp.vue 10.9 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 10 11 12 13 14 15 16 17
            v-model="model.didgrp.rec.ownref"
            maxlength="16"
            placeholder="请输入Reference"
          ></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 21 22 23 24 25 26 27 28 29 30 31
            v-model="model.didgrp.rec.nam"
            maxlength="40"
            placeholder="请输入Externally Displayed Name to Identify the Contract"
          ></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"
            placeholder="请选择Currency"
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 72 73
            v-model="model.didgrp.cbs.opn1.cur"
            placeholder="请选择信用证余额"
          >
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 101 102 103 104 105 106 107 108 109
            v-model="model.didgrp.apl.pts.nam"
            maxlength="40"
            placeholder="请输入Name of Party"
          ></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 136 137
            v-model="model.didgrp.rec.avbby"
            style="width: 100%"
            placeholder="请选择Available by"
          >
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 167 168 169 170 171 172 173 174
            type="date"
            v-model="model.didgrp.rec.opndat"
            style="width: 100%"
            placeholder="请选择Date L/C Opened/Issued"
          ></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 179 180 181 182 183 184 185
            type="date"
            v-model="model.didgrp.rec.shpdat"
            style="width: 100%"
            placeholder="请选择Shipment Date"
          ></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 199 200 201 202 203 204 205 206 207
            v-model="model.didgrp.rec.tzref"
            maxlength="35"
            placeholder="请输入通知行编号"
          ></c-input>
        </el-form-item>
      </c-col>
    </el-row>

    <!-- <c-col :span="12">
      <el-form-item label="通知行" prop="didgrp.adv.pts.ref">
        <c-input
          v-model="model.didgrp.adv.pts.ref"
          maxlength="16"
          placeholder="请输入通知行"
        ></c-input>
      </el-form-item>
    </c-col> -->
    <el-row>
      <c-col :span="6">
        <el-form-item label="到期日/到期地点" prop="didgrp.rec.expdat">
          <c-date-picker
208
            disabled
209 210 211 212 213 214 215 216 217
            type="date"
            v-model="model.didgrp.rec.expdat"
            style="width: 100%"
            placeholder="请选择Date of Expiry"
          ></c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="6">
218
        <el-form-item label="" prop="didgrp.rec.expplc" label-width="5px">
219
          <c-input
220
            disabled
221 222 223 224 225 226 227 228
            v-model="model.didgrp.rec.expplc"
            maxlength="35"
            placeholder="请输入Place of Expiry"
          ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="12">
229
        <el-form-item label="" prop="didgrp.adv.pts.nam">
230
          <c-input
231
            disabled
232 233 234 235 236 237 238 239 240 241 242
            v-model="model.didgrp.adv.pts.nam"
            maxlength="40"
            placeholder="请输入到期日/到期地点"
          ></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
243
            disabled
244 245 246 247
            v-model="model.didgrp.rec.lcrtyp"
            style="width: 100%"
            placeholder="请选择Form of Documentary Credit"
          >
248 249 250 251 252 253 254
          <el-option
       v-for="item in codes.lcrtyp"
       :key="item.value"
      :label="item.label"
        :value="item.value"
       >
       </el-option>
255 256 257 258
          </c-select>
        </el-form-item>
      </c-col>
    </el-row>
259 260 261


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

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

    <el-row>
      <c-col :span="24">
327 328
        <el-form-item label="是否接受此笔减额修改" prop="ameflg">
          <c-select
329
            disabled
330 331 332 333
            v-model="model.ameflg"
            style="width: 100%"
            placeholder="请选择是否接受此笔减额修改"
          >
334 335 336 337 338 339 340
          <el-option
       v-for="item in codes.ameflg"
       :key="item.value"
      :label="item.label"
        :value="item.value"
       >
       </el-option>
341 342 343 344
          </c-select>
        </el-form-item>
      </c-col>
    </el-row>
345 346 347
      </c-col>


348
    <c-col :span="24">
huangxin committed
349
        <el-form-item label="修改历史列表" prop="decstm">
350 351 352 353 354 355 356 357 358 359 360 361 362 363
          <c-istream-table 
                    :list="model.decstm.rows || []"
                    :columns="trnData.columns"
                    v-on:chooseRowEvent="chooseRowEvent"
        >
        </c-istream-table>
        </el-form-item>
      </c-col>
      


      
      
   
364 365 366 367
  </div>
</template>
<script>
import Api from "~/service/Api";
wangren committed
368
import commonProcess from "~/mixin/commonProcess";
369 370 371 372 373 374
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Ditdla/Event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
375
  mixins: [commonProcess],
376
  data() {
377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393
    return {
        trnData: {
        columns: [
            "0 1 \"\" 200",
            "1 2 \"Own Reference\" 200",
            "2 3 \"Cur\" 200",
            "3 4 \"减额金额\" 200 2 8:1 2 5",
            "4 5 \"修改日期\" 200 4 7",
            "7 6 \"备注\" 200 ",
        ],
        codes:{
          ...CodeTable
        },
        data: [],
      },

        }
394
  },
395 396 397 398 399 400 401 402 403 404 405
  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)
      }
    }
    },
406 407 408 409
  created: function () {},
};
</script>
<style>
410 411 412
.stream{
   cursor: pointer; 
}
413
</style>