Cctdav1.vue 13.2 KB
Newer Older
唐贵贤 committed
1 2 3
<template>
  <div class="eibs-tab">
    <c-row>
wangna committed
4
      <!-- ====================左边======================= -->
唐贵贤 committed
5 6
      <c-col :span="11">
        <c-col :span="24">
wangna committed
7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
          <el-form-item label="Our Reference" prop="ccdgrp.rec.ownref">
            <c-fullbox>
              <c-input
                v-model="model.ccdgrp.rec.ownref"
                maxlength="16"
                placeholder="请输入Reference"
                disabled
              ></c-input>
              <template slot="footer">
                <c-button
                  style="margin: 0 10px 0 10px; padding: 0 12px"
                  size="small"
                  type="primary"
                  @click="onSeainf"
                >
                  <span style="font-family: '宋体'; font-weight: bold">i</span>
                </c-button>
                <c-button
                  style="margin: 0 0"
                  size="small"
                  type="primary"
                  @click="onCctmodButgetref"
wangna committed
29
                  :disabled="model.ccdgrp.rec.ownref!=''"
wangna committed
30 31 32 33 34
                >
                  获取
                </c-button>
              </template>
            </c-fullbox>
唐贵贤 committed
35 36 37
          </el-form-item>
        </c-col>

wangna committed
38
        <c-col :span="12">
唐贵贤 committed
39 40 41 42
          <el-form-item label="Draft Amount" prop="ccdgrp.cbs.max.cur">
            <c-select
              v-model="model.ccdgrp.cbs.max.cur"
              style="width: 100%"
wangna committed
43
              placeholder="请选择Currency"
唐贵贤 committed
44
            >
wangna committed
45 46 47 48 49 50 51
              <el-option
                v-for="item in codes.curtxt1"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
唐贵贤 committed
52 53 54
            </c-select>
          </el-form-item>
        </c-col>
wangna committed
55 56 57 58 59 60 61
        <c-col :span="12">
          <el-form-item
            style="text-align: left"
            label-width="20px"
            prop="ccdgrp.cbs.max.amt"
          >
            <c-input-currency
唐贵贤 committed
62
              v-model="model.ccdgrp.cbs.max.amt"
wangna committed
63 64 65 66 67 68
              style="text-align: left; width: 100%"
              placeholder="请输入Document Amount"
              @keyup.enter.native="
                defaultFunction('ccdgrp.cbs.max.amt', model.ccdgrp.cbs.max.amt)
              "
            ></c-input-currency>
唐贵贤 committed
69 70
          </el-form-item>
        </c-col>
wangna committed
71 72

        <c-col :span="12">
唐贵贤 committed
73 74
          <el-form-item label="Open Amount" prop="ccdgrp.cbs.opn1.cur">
            <c-select
wangna committed
75
              disabled
唐贵贤 committed
76 77
              v-model="model.ccdgrp.cbs.opn1.cur"
              style="width: 100%"
wangna committed
78
              placeholder="请选择Open Amount"
唐贵贤 committed
79
            >
wangna committed
80 81 82 83 84 85 86
              <el-option
                v-for="item in codes.curtxt1"
                :key="item.value"
                :label="item.label"
                :value="item.value"
              >
              </el-option>
唐贵贤 committed
87 88 89
            </c-select>
          </el-form-item>
        </c-col>
wangna committed
90 91 92 93 94 95 96
        <c-col :span="12">
          <el-form-item
            style="text-align: left"
            label-width="20px"
            prop="ccdgrp.cbs.opn1.amt"
          >
            <c-input-currency
唐贵贤 committed
97
              v-model="model.ccdgrp.cbs.opn1.amt"
wangna committed
98 99 100 101 102 103 104 105 106 107
              style="text-align: left; width: 100%"
              placeholder="请输入"
              :disabled="true"
              @keyup.enter.native="
                defaultFunction(
                  'ccdgrp.cbs.opn1.amt',
                  model.ccdgrp.cbs.opn1.amt
                )
              "
            ></c-input-currency>
唐贵贤 committed
108 109
          </el-form-item>
        </c-col>
wangna committed
110

唐贵贤 committed
111 112 113 114 115 116
        <c-col :span="24">
          <el-form-item label="Form of Clean Coll." prop="ccdgrp.rec.ccform">
            <c-select
              v-model="model.ccdgrp.rec.ccform"
              style="width: 100%"
              placeholder="请选择Form of Clean Coll."
wangna committed
117
              :code="codes.ccform"
唐贵贤 committed
118 119 120 121
            >
            </c-select>
          </el-form-item>
        </c-col>
wangna committed
122

唐贵贤 committed
123 124 125 126 127 128
        <c-col :span="24">
          <el-form-item label="Mode of Collection" prop="ccdgrp.rec.modset">
            <c-select
              v-model="model.ccdgrp.rec.modset"
              style="width: 100%"
              placeholder="请选择Mode of Collection"
wangna committed
129
              :code="codes.modset"
唐贵贤 committed
130 131 132 133
            >
            </c-select>
          </el-form-item>
        </c-col>
wangna committed
134

唐贵贤 committed
135 136 137 138 139 140
        <c-col :span="24">
          <el-form-item label="Payment Disposition " prop="ccdgrp.rec.purflg">
            <c-select
              v-model="model.ccdgrp.rec.purflg"
              style="width: 100%"
              placeholder="请选择Payment Disposition "
wangna committed
141
              :disabled="model.ccdgrp.rec.modset == '1'"
wangna committed
142
              :code="codes.purflg"
唐贵贤 committed
143 144 145 146
            >
            </c-select>
          </el-form-item>
        </c-col>
wangna committed
147

唐贵贤 committed
148 149 150 151 152 153
        <c-col :span="24">
          <el-form-item label="Type of Check" prop="ccdgrp.rec.tocsel">
            <c-select
              v-model="model.ccdgrp.rec.tocsel"
              style="width: 100%"
              placeholder="请选择Type of Check"
wangna committed
154
              :code="codes.tocsel"
唐贵贤 committed
155 156 157 158
            >
            </c-select>
          </el-form-item>
        </c-col>
wangna committed
159

唐贵贤 committed
160 161 162 163 164 165
        <c-col :span="24">
          <el-form-item label="TYPE OF PRESENTER" prop="ccdgrp.rec.pretyp">
            <c-select
              v-model="model.ccdgrp.rec.pretyp"
              style="width: 100%"
              placeholder="请选择TYPE OF PRESENTER"
wangna committed
166
              :code="codes.pretyp"
唐贵贤 committed
167 168 169 170
            >
            </c-select>
          </el-form-item>
        </c-col>
wangna committed
171 172

        <c-col :span="24">
唐贵贤 committed
173 174 175 176 177 178 179 180
          <el-form-item label="Check Number" prop="ccdgrp.rec.chcknum">
            <c-input
              v-model="model.ccdgrp.rec.chcknum"
              maxlength="16"
              placeholder="请输入Check Number"
            ></c-input>
          </el-form-item>
        </c-col>
wangna committed
181 182

        <c-col :span="24">
唐贵贤 committed
183 184 185 186 187 188 189 190 191
          <el-form-item label="Date of Order" prop="ccdgrp.orddat">
            <c-date-picker
              type="date"
              v-model="model.ccdgrp.orddat"
              style="width: 100%"
              placeholder="请选择Date of Order"
            ></c-date-picker>
          </el-form-item>
        </c-col>
wangna committed
192 193

        <c-col :span="24">
唐贵贤 committed
194 195 196 197 198 199 200 201 202 203
          <el-form-item label="Date of Draft" prop="ccdgrp.rec.chkdat">
            <c-date-picker
              type="date"
              v-model="model.ccdgrp.rec.chkdat"
              style="width: 100%"
              placeholder="请选择Date of Draft"
            ></c-date-picker>
          </el-form-item>
        </c-col>

wangna committed
204
        <c-col :span="22">
唐贵贤 committed
205 206 207 208
          <el-form-item label="resp.usr" prop="cctp.usr.extkey">
            <c-input
              v-model="model.cctp.usr.extkey"
              maxlength="8"
wangna committed
209
              placeholder="请输入resp.usr"
wangna committed
210
              disabled
唐贵贤 committed
211 212 213
            ></c-input>
          </el-form-item>
        </c-col>
wangna committed
214
        <c-col :span="2">
wangna committed
215 216 217 218 219
          <c-button
            style="margin: 0 12px 0 14px; padding: 0 12px"
            size="small"
            type="primary"
            @click="onSeainf"
唐贵贤 committed
220
          >
wangna committed
221
            <span style="font-family: '宋体'; font-weight: bold">i</span>
唐贵贤 committed
222 223
          </c-button>
        </c-col>
wangna committed
224

唐贵贤 committed
225
        <c-col :span="24">
wangna committed
226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248
          <el-form-item label="Drawer" prop="ccdgrp.cor.pts.extkey">
            <c-fullbox>
              <c-input
                v-model="model.ccdgrp.cor.pts.extkey"
                maxlength="16"
                @keyup.enter.native="
                  showGridPromptDialog('ccdgrp.cor.pts.extkey')
                "
              ></c-input>
              <template slot="footer">
                <c-button
                  style="margin: 0 10px 0 10px; padding: 0 12px"
                  size="small"
                  type="primary"
                  @click="onSeainf"
                >
                  <span style="font-family: '宋体'; font-weight: bold">i</span>
                </c-button>
                <c-button style="margin: 0 0" size="small" type="primary">
                  详情
                </c-button>
              </template>
            </c-fullbox>
唐贵贤 committed
249 250
          </el-form-item>
        </c-col>
wangna committed
251

唐贵贤 committed
252
        <c-col :span="24">
wangna committed
253
          <el-form-item label="名称地址" prop="ccdgrp.cor.pts.adrblk">
唐贵贤 committed
254 255
            <c-input
              type="textarea"
wangna committed
256 257 258
              :rows="4"
              v-model="model.ccdgrp.cor.pts.adrblk"
              maxlength="150"
唐贵贤 committed
259
              show-word-limit
wangna committed
260 261
              placeholder="请输入名称地址"
              :disabled="this.flag1"
唐贵贤 committed
262 263 264 265 266
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

wangna committed
267
      <!-- ====================右边======================= -->
wangna committed
268 269
      <c-col :span="11" :offset="1">
        <c-col :span="24">
wangna committed
270
          <el-form-item label="Name" prop="ccdgrp.rec.nam">
wangna committed
271 272 273
            <c-input
              v-model="model.ccdgrp.rec.nam"
              maxlength="40"
wangna committed
274 275
              placeholder="请输入Name"
              disabled
wangna committed
276 277 278
            ></c-input>
          </el-form-item>
        </c-col>
wangna committed
279

wangna committed
280 281 282 283 284 285
        <c-col :span="24">
          <el-form-item label="Register Ref." prop="ccdgrp.rec.regref">
            <c-input
              v-model="model.ccdgrp.rec.regref"
              maxlength="16"
              placeholder="请输入Register Ref."
wangna committed
286
              disabled
wangna committed
287 288 289 290
            ></c-input>
          </el-form-item>
        </c-col>

wangna committed
291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319
        <c-ptap
          :model="model"
          :argadr="{
            title: 'Presenter',
            grp: 'ccdgrp',
            rol: 'pre',
          }"
          disabled
        >
        </c-ptap>

        <c-ptap
          :model="model"
          :argadr="{
            title: 'Drawn on Bank',
            grp: 'ccdgrp',
            rol: 'dro',
          }"
          :disabled="this.flag2"
        >
        </c-ptap>

        <!-- <c-ptap
          :model="model"
          :argadr="{
            title: 'Coll. Bank',
            grp: 'ccdgrp',
            rol: 'col',
          }"
wangna committed
320
          :disabled="model.ccdgrp.rec.modset == '2' || this.flag3"
wangna committed
321 322 323
        >
        </c-ptap> -->

唐贵贤 committed
324
        <c-col :span="24">
wangna committed
325
          <el-form-item label="Coll. Bank参考号" prop="ccdgrp.col.pts.ref">
唐贵贤 committed
326 327 328
            <c-input
              v-model="model.ccdgrp.col.pts.ref"
              maxlength="16"
wangna committed
329
              placeholder="请输入Coll. Bank参考号"
wangna committed
330
              :disabled="model.ccdgrp.rec.modset == '2'"
唐贵贤 committed
331 332 333
            ></c-input>
          </el-form-item>
        </c-col>
wangna committed
334

唐贵贤 committed
335
        <c-col :span="24">
wangna committed
336 337 338 339 340 341
          <el-form-item label="Coll. Bank" prop="ccdgrp.col.pts.extkey">
            <c-fullbox>
              <c-input
                v-model="model.ccdgrp.col.pts.extkey"
                maxlength="16"
                placeholder="请输入Coll. Bank"
wangna committed
342 343 344 345
                @keyup.enter.native="
                  showGridPromptDialog('ccdgrp.col.pts.extkey')
                "
                :disabled="model.ccdgrp.rec.modset == '2'"
wangna committed
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360
              ></c-input>
              <template slot="footer">
                <c-button
                  style="margin: 0 10px 0 10px; padding: 0 12px"
                  size="small"
                  type="primary"
                  @click="onSeainf"
                >
                  <span style="font-family: '宋体'; font-weight: bold">i</span>
                </c-button>
                <c-button style="margin: 0 0" size="small" type="primary">
                  详情
                </c-button>
              </template>
            </c-fullbox>
唐贵贤 committed
361 362
          </el-form-item>
        </c-col>
wangna committed
363

唐贵贤 committed
364
        <c-col :span="24">
wangna committed
365
          <el-form-item label="名称地址" prop="ccdgrp.col.pts.adrblk">
唐贵贤 committed
366 367
            <c-input
              type="textarea"
wangna committed
368 369 370
              :rows="4"
              v-model="model.ccdgrp.col.pts.adrblk"
              maxlength="150"
唐贵贤 committed
371
              show-word-limit
wangna committed
372
              placeholder="请输入名称地址"
wangna committed
373
              :disabled="model.ccdgrp.rec.modset == '2' || this.flag3"
唐贵贤 committed
374 375 376 377 378 379 380 381 382
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
    </c-row>
  </div>
</template>
<script>
import Api from "~/service/Api";
wangren committed
383
import commonProcess from "~/mixin/commonProcess";
唐贵贤 committed
384 385
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Cctdav/Event";
wangna committed
386
import Ptap from "~/views/Public/Ptap";
唐贵贤 committed
387 388

export default {
wangna committed
389 390 391
  components: {
    "c-ptap": Ptap,
  },
唐贵贤 committed
392 393
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
394
  mixins: [commonProcess],
唐贵贤 committed
395
  data() {
wangna committed
396 397 398
    return {
      flag1:false,
      flag2:false,
wangna committed
399
      flag3:false,
wangna committed
400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422
    };
  },
  watch:{
    "model.ccdgrp.cor.pts.extkey" :{
      immediate:true,
        handler(val ,oldVal){
          if(this.model.ccdgrp.cor.pts.extkey!=''){
            this.flag1=true;
          }else{
            this.flag1=false;
          }
        }
      },
      "model.ccdgrp.dro.pts.extkey" :{
        immediate:true,
        handler(val ,oldVal){
          if(this.model.ccdgrp.dro.pts.extkey!=''){
            this.flag2=true;
          }else{
            this.flag2=false;
          }
        }
      },
wangna committed
423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438
      "model.ccdgrp.col.pts.extkey" :{
        immediate:true,
        handler(val ,oldVal){
          if(this.model.ccdgrp.col.pts.extkey!=''){
            this.flag3=true;
          }else{
            this.flag3=false;
          }
        }
      },
      "model.ccdgrp.rec.modset": function () {
      if (this.model.ccdgrp.rec.modset == "2") {
        this.model.ccdgrp.col.pts.extkey = "";
        this.model.ccdgrp.col.pts.adrblk = "";
      }
    },
唐贵贤 committed
439 440 441 442 443 444 445
  },
  methods: { ...Event },
  created: function () {},
};
</script>
<style>
</style>