Ovwp.vue 12.4 KB
Newer Older
jxl committed
1 2
<template>
  <c-row>
huangxin committed
3 4 5
    <!-- =================顶部====================== -->
    <c-col :span="24">
      <c-col :span="11">
jxl committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
        <c-col :span="20">
          <el-form-item
            label="Reference"
            prop="bodgrp.rec.ownref"
            style="width: 100%"
          >
            <c-input
              v-model="model.bodgrp.rec.ownref"
              maxlength="16"
              placeholder="请输入Reference"
              style="width: 95%"
              disabled
            ></c-input>
          </el-form-item>
        </c-col>
huangxin committed
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
        <c-col :span="1">
          <c-button
            style="margin: 0 10px 0 0; padding: 0 10px"
            size="small"
            type="primary"
            icon="el-icon-search"
          ></c-button>
        </c-col>
        <c-col :span="3" style="text-align: right">
          <c-button
            style="margin: 0 0"
            size="small"
            type="primary"
            :disabled="this.flag"
          >
            获取
          </c-button>
        </c-col>
      </c-col>
      <c-col :span="11" :offset="1">
41
        <el-form-item label="Name" prop="bodgrp.rec.nam">
jxl committed
42 43 44 45 46 47 48
          <c-input
            v-model="model.bodgrp.rec.nam"
            maxlength="40"
            disabled
            placeholder="请输入Externally Displayed Name to Identify the Contract"
          ></c-input>
        </el-form-item>
huangxin committed
49
      </c-col>
jxl committed
50
    </c-col>
huangxin committed
51 52 53
    <!-- ====================左边======================= -->
    <c-col :span="11">
      <c-col :span="24">
54
        <c-col :span="14">
huangxin committed
55
          <el-form-item
jxl committed
56
            label="Responsible User"
57
            prop="botp.usr.extkey"
jxl committed
58
            style="width: 100%"
huangxin committed
59
          >
jxl committed
60
            <c-input
huangxin committed
61 62 63 64 65
              style="width: 95%"
              v-model="model.botp.usr.extkey"
              maxlength="8"
              placeholder="请输入User ID"
              disabled
jxl committed
66
            ></c-input>
huangxin committed
67
          </el-form-item>
jxl committed
68
        </c-col>
huangxin committed
69 70 71 72 73 74 75
        <c-col :span="2">
          <c-button
            style="margin: 0 10px 0 0; padding: 0 10px"
            size="small"
            icon="el-icon-search"
            type="primary"
          ></c-button>
jxl committed
76
        </c-col>
huangxin committed
77 78 79 80
        <c-col :span="8">
          <c-checkbox v-model="model.bodgrp.rec.dircolflg"
            >Direct Collection</c-checkbox
          >
jxl committed
81
        </c-col>
huangxin committed
82
      </c-col>
83

jxl committed
84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101
      <c-col :span="12">
        <el-form-item label="Document Amount" prop="bodgrp.cbs.max.cur">
          <c-select
            disabled
            v-model="model.bodgrp.cbs.max.cur"
            style="width: 100%"
            placeholder="请选择Currency"
          >
            <el-option
              v-for="item in codes.cur"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
huangxin committed
102
      <c-col :span="12">
jxl committed
103 104
        <el-form-item
          style="text-align: left"
105
          label-width="5px"
jxl committed
106 107 108
          prop="bodgrp.cbs.max.amt"
        >
          <c-input-currency
huangxin committed
109
            disabled
jxl committed
110 111 112
            v-model="model.bodgrp.cbs.max.amt"
            style="text-align: left; width: 100%"
            placeholder="请输入Document Amount"
huangxin committed
113 114 115
            @keyup.enter.native="
              defaultFunction('bodgrp.cbs.max.amt', model.bodgrp.cbs.max.amt)
            "
jxl committed
116 117 118
          ></c-input-currency>
        </el-form-item>
      </c-col>
huangxin committed
119
      <c-col :span="12">
120
        <el-form-item label="Open Amount" prop="bodgrp.cbs.opn1.cur">
jxl committed
121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136
          <c-select
            disabled
            v-model="model.bodgrp.cbs.opn1.cur"
            style="width: 100%"
            placeholder="请选择Currency"
          >
            <el-option
              v-for="item in codes.cur"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
huangxin committed
137
      <c-col :span="12">
jxl committed
138 139
        <el-form-item
          style="text-align: left"
140
          label-width="5px"
jxl committed
141 142 143
          prop="bodgrp.cbs.opn1.amt"
        >
          <c-input-currency
huangxin committed
144
            disabled
jxl committed
145 146
            v-model="model.bodgrp.cbs.opn1.amt"
            style="text-align: left; width: 100%"
147
            placeholder="请输入Open Amount"
huangxin committed
148 149 150
            @keyup.enter.native="
              defaultFunction('bodgrp.cbs.opn1.amt', model.bodgrp.cbs.opn1.amt)
            "
jxl committed
151 152 153 154 155
          ></c-input-currency>
        </el-form-item>
      </c-col>
      <c-col :span="12">
        <el-form-item label="Order Date" prop="bodgrp.rec.rcvdat">
huangxin committed
156 157 158 159 160 161 162
          <c-date-picker
            type="date"
            disabled
            v-model="model.bodgrp.rec.rcvdat"
            style="width: 100%"
            placeholder="请选择Order Date"
          ></c-date-picker>
jxl committed
163
        </el-form-item>
huangxin committed
164 165
      </c-col>
      <c-col :span="12">
huangxin committed
166
        <el-form-item label="Date of Shipment" prop="bodgrp.rec.shpdat">
huangxin committed
167 168 169 170 171 172
          <c-date-picker
            type="date"
            v-model="model.bodgrp.rec.shpdat"
            style="width: 100%"
            placeholder="请选择Shipment date"
          ></c-date-picker>
jxl committed
173
        </el-form-item>
huangxin committed
174 175 176
      </c-col>

      <c-col :span="12">
jxl committed
177
        <el-form-item label="Presentation Date" prop="bodgrp.rec.predat">
huangxin committed
178 179 180 181 182 183 184
          <c-date-picker
            type="date"
            disabled
            v-model="model.bodgrp.rec.predat"
            style="width: 100%"
            placeholder="请选择Presentation Date"
          ></c-date-picker>
jxl committed
185
        </el-form-item>
huangxin committed
186 187 188
      </c-col>

      <c-col :span="12">
jxl committed
189
        <el-form-item label="Dispatched on" prop="bodgrp.rec.advdat">
huangxin committed
190 191 192 193 194 195 196
          <c-date-picker
            type="date"
            disabled
            v-model="model.bodgrp.rec.advdat"
            style="width: 100%"
            placeholder="请选择Dispatched on"
          ></c-date-picker>
jxl committed
197
        </el-form-item>
huangxin committed
198
      </c-col>
jxl committed
199

huangxin committed
200
      <c-col :span="24">
jxl committed
201
        <el-form-item label="Collection Condition" prop="bodgrp.rec.doctypcod">
huangxin committed
202 203 204 205 206
          <c-select
            v-model="model.bodgrp.rec.doctypcod"
            style="width: 100%"
            placeholder="请选择Collection Condition"
          >
207 208 209 210 211 212 213
            <el-option
              v-for="item in codes.doctypcod"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
huangxin committed
214
          </c-select>
jxl committed
215
        </el-form-item>
huangxin committed
216
      </c-col>
jxl committed
217

huangxin committed
218
      <c-col :span="12">
jxl committed
219
        <el-form-item label="Maturity Date" prop="bodgrp.rec.matdat">
huangxin committed
220 221 222 223 224 225 226
          <c-date-picker
            type="date"
            disabled
            v-model="model.bodgrp.rec.matdat"
            style="width: 100%"
            placeholder="请选择Maturity Date"
          ></c-date-picker>
jxl committed
227
        </el-form-item>
huangxin committed
228 229 230
      </c-col>

      <c-col :span="12">
jxl committed
231
        <el-form-item label="发票类型" prop="bodgrp.rec.invtyp">
huangxin committed
232
          <c-select v-model="model.bodgrp.rec.invtyp" style="width: 100%">
233
            <el-option
234
              v-for="item in invtyp"
235 236 237 238 239
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
huangxin committed
240
          </c-select>
jxl committed
241
        </el-form-item>
huangxin committed
242 243 244
      </c-col>

      <c-col :span="12">
jxl committed
245
        <el-form-item label="Tenor Specification" prop="bodgrp.rec.matpercnt">
huangxin committed
246 247 248 249 250
          <c-input
            disabled
            v-model="model.bodgrp.rec.matpercnt"
            placeholder="请输入Tenor Specification"
          ></c-input>
jxl committed
251
        </el-form-item>
huangxin committed
252
      </c-col>
huangxin committed
253
      <c-col v-if=" (model.trnmod.swiadd.newmatpertyp=='D')||(model.oldbodgrp.rec.matpertyp==''&&model.trnmod.swiadd.newmatpertyp=='')||(model.oldbodgrp.rec.matpertyp=='D' &&model.trnmod.swiadd.newmatpertyp=='')"   :span="1" style="margin-left:-10px">
huangxin committed
254 255
        <el-form-item label="Days"> </el-form-item>
      </c-col>
jxl committed
256

huangxin committed
257
      <c-col :span="24">
jxl committed
258
        <el-form-item label="Starting from" prop="bodgrp.rec.matperbeg">
huangxin committed
259 260 261 262 263 264
          <c-select
            disabled
            v-model="model.bodgrp.rec.matperbeg"
            style="width: 100%"
            placeholder="请选择Starting from"
          >
265 266 267 268 269 270 271
            <el-option
              v-for="item in codes.matperbeg"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
huangxin committed
272
          </c-select>
jxl committed
273
        </el-form-item>
huangxin committed
274
      </c-col>
jxl committed
275

huangxin committed
276
      <c-col :span="24">
jxl committed
277
        <el-form-item label="Tenor Details Text" prop="bodgrp.blk.bogdet">
huangxin committed
278 279 280 281 282 283 284 285
          <c-input
            type="textarea"
            :disabled="model.bodgrp.rec.doctypcod === 'P'"
            v-model="model.bodgrp.blk.bogdet"
            maxlength="43"
            show-word-limit
            placeholder="请输入Tenor Details Text"
          ></c-input>
jxl committed
286
        </el-form-item>
huangxin committed
287
      </c-col>
288

huangxin committed
289 290 291 292 293 294 295 296 297 298
      <c-docpre
        :model="model"
        :argadr="{
          path: 'bodgrp.blk.docpre',
          grp: 'botp',
          code: 'docpre',
        }"
      ></c-docpre>

      <!-- <c-col :span="24">
huangxin committed
299
        <c-edit-table :model="model" v-bind="docgrd"> </c-edit-table>
huangxin committed
300
      </c-col> -->
huangxin committed
301 302 303 304 305 306 307 308 309 310 311
    </c-col>
    <!-- ====================右边======================= -->
    <c-col :span="11" :offset="1">
      <c-ptap
        :model="model"
        :argadr="{
          title: 'Drawer',
          grp: 'bodgrp',
          rol: 'drr',
        }"
        :disabled="true"
huangxin committed
312 313
        :disabledRef="true"
        :disabledExtkey="true"
huangxin committed
314 315 316 317 318 319 320 321 322
      >
      </c-ptap>
      <c-ptap
        :model="model"
        :argadr="{
          title: 'Collecting Bank',
          grp: 'bodgrp',
          rol: 'col',
        }"
huangxin committed
323
        :disabled="this.flag2"
huangxin committed
324 325
      >
      </c-ptap>
326

huangxin committed
327 328 329 330 331 332 333
      <c-ptap
        :model="model"
        :argadr="{
          title: 'Drawee',
          grp: 'bodgrp',
          rol: 'dre',
        }"
huangxin committed
334
        :disabled="this.flag3"
huangxin committed
335 336
      >
      </c-ptap>
337

huangxin committed
338
      
339
  
huangxin committed
340 341
      <c-col :span="24">
        <el-form-item
342
          label="Country or region Code"
huangxin committed
343 344 345 346 347 348 349 350
          prop="bodgrp.rec.stacty"
        >
          <c-select
            v-model="model.bodgrp.rec.stacty"
            style="width: 100%"
            placeholder="请选择Country Code Risk Country!"
          >
            <el-option
351 352 353 354 355 356
              v-for="item in codes.stacty"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
huangxin committed
357 358 359 360
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
361
        <el-form-item label="Goods Code" prop="bodgrp.rec.stagod">
huangxin committed
362 363 364 365 366 367
          <c-select
            v-model="model.bodgrp.rec.stagod"
            style="width: 100%"
            placeholder="请选择Goods Code"
          >
            <el-option
368 369 370 371 372 373
              v-for="item in codes.godcod"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
huangxin committed
374 375 376
          </c-select>
        </el-form-item>
      </c-col>
jxl committed
377
    </c-col>
huangxin committed
378
  </c-row>
jxl committed
379 380
</template>
<script>
huangxin committed
381
import Api from "~/service/Api";
wangren committed
382
import commonProcess from "~/mixin/commonProcess";
huangxin committed
383 384 385 386
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Botame/Event";
import Utils from "~/utils";
import Ptap from "~/views/Public/Ptap";
huangxin committed
387
import Docpre from "~/views/Public/Docpre";
huangxin committed
388
export default {
huangxin committed
389 390 391 392
  components: {
    "c-ptap": Ptap,
    "c-docpre": Docpre,
  },
huangxin committed
393 394 395 396 397
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
huangxin committed
398 399
      flag2:false,
      flag3:false,
huangxin committed
400 401 402

      invtyp: [{ label: "type1", value: "1" }],

huangxin committed
403
     
404
    }
huangxin committed
405
  },
huangxin committed
406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427
  watch:{
      "model.bodgrp.col.pts.extkey" :{
        immediate:true,
        handler(val ,oldVal){
          if(this.model.bodgrp.col.pts.extkey!=''){
            this.flag2=true;
          }else{
            this.flag2=false;
          }
        }
      },
      "model.bodgrp.dre.pts.extkey" :{
        immediate:true,
        handler(val ,oldVal){
          if(this.model.bodgrp.dre.pts.extkey!=''){
            this.flag3=true;
          }else{
            this.flag3=false;
          }
        }
      },
  },
huangxin committed
428 429
  methods: {
    ...Event,
huangxin committed
430
    
huangxin committed
431 432 433 434 435 436 437 438 439 440 441
    // async docpre() {
    //   let rtnmsg = await this.executeDefault('bodgrp.blk.docpre')
    //   if (rtnmsg.respCode == SUCCESS) {
    //     //TODO 处理数据逻辑
    //     this.updateModel(rtnmsg.data)
    //   }
    //   else {
    //     this.$notify.error({ title: '错误', message: '服务请求失败!' });
    //   }
    // },
  },
huangxin committed
442

443 444 445 446 447
  computed: {
    flag() {
      return this.model.bodgrp.drr.pts.adrelc == "";
    },
  },
huangxin committed
448 449
  created: function () {
  },
450
}
jxl committed
451 452 453
</script>
<style>
</style>