Cctdav1.vue 12.9 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">
nanrui committed
7
          <el-form-item label="光票托收编号" prop="ccdgrp.rec.ownref">
wangna committed
8 9 10 11
            <c-fullbox>
              <c-input
                v-model="model.ccdgrp.rec.ownref"
                maxlength="16"
wangna committed
12
                placeholder="请输入光票托收编号"
wangna committed
13 14 15 16 17 18 19 20 21
                disabled
              ></c-input>
              <template slot="footer">
                <c-button
                  style="margin: 0 10px 0 10px; padding: 0 12px"
                  size="small"
                  type="primary"
                  @click="onSeainf"
                >
nanrui committed
22
                  <i class="el-icon-info"></i>
wangna committed
23 24 25 26 27 28
                </c-button>
                <c-button
                  style="margin: 0 0"
                  size="small"
                  type="primary"
                  @click="onCctmodButgetref"
xionglin committed
29
                  :disabled="model.ccdgrp.pre.pts.extkey !== ''"
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">
nanrui committed
39
          <el-form-item label="托收币种金额" prop="ccdgrp.cbs.max.cur">
唐贵贤 committed
40 41 42
            <c-select
              v-model="model.ccdgrp.cbs.max.cur"
              style="width: 100%"
nanrui committed
43
              placeholder="请选择托收币种"
唐贵贤 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
              style="text-align: left; width: 100%"
nanrui committed
64
              placeholder="请输入托收金额"
wangna committed
65 66 67 68
              @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">
nanrui committed
73
          <el-form-item label="托收币种余额" prop="ccdgrp.cbs.opn1.cur">
唐贵贤 committed
74
            <c-select
wangna committed
75
              disabled
唐贵贤 committed
76 77
              v-model="model.ccdgrp.cbs.opn1.cur"
              style="width: 100%"
nanrui committed
78
              placeholder="请选择托收币种"
唐贵贤 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
              style="text-align: left; width: 100%"
nanrui committed
99
              placeholder="请输入托收余额"
wangna committed
100 101 102 103 104 105 106 107
              :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
        <c-col :span="24">
nanrui committed
112
          <el-form-item label="光票托收形式" prop="ccdgrp.rec.ccform">
唐贵贤 committed
113 114 115
            <c-select
              v-model="model.ccdgrp.rec.ccform"
              style="width: 100%"
nanrui committed
116
              placeholder="请选择光票托收形式"
wangna committed
117
              :code="codes.ccform"
唐贵贤 committed
118 119 120 121
            >
            </c-select>
          </el-form-item>
        </c-col>
wangna committed
122

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

唐贵贤 committed
135
        <c-col :span="24">
nanrui committed
136
          <el-form-item label="托收方式" prop="ccdgrp.rec.purflg">
唐贵贤 committed
137 138 139
            <c-select
              v-model="model.ccdgrp.rec.purflg"
              style="width: 100%"
nanrui committed
140
              placeholder="请选择托收方式"
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
        <c-col :span="24">
nanrui committed
149
          <el-form-item label="票据类型" prop="ccdgrp.rec.tocsel">
唐贵贤 committed
150 151 152
            <c-select
              v-model="model.ccdgrp.rec.tocsel"
              style="width: 100%"
nanrui committed
153
              placeholder="请选择票据类型"
wangna committed
154
              :code="codes.tocsel"
唐贵贤 committed
155 156 157 158
            >
            </c-select>
          </el-form-item>
        </c-col>
wangna committed
159

唐贵贤 committed
160
        <c-col :span="24">
nanrui committed
161
          <el-form-item label="交单形式" prop="ccdgrp.rec.pretyp">
唐贵贤 committed
162 163 164
            <c-select
              v-model="model.ccdgrp.rec.pretyp"
              style="width: 100%"
nanrui committed
165
              placeholder="请选择交单形式"
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">
nanrui committed
173
          <el-form-item label="票据号码" prop="ccdgrp.rec.chcknum">
唐贵贤 committed
174 175 176
            <c-input
              v-model="model.ccdgrp.rec.chcknum"
              maxlength="16"
nanrui committed
177
              placeholder="请输入票据号码"
唐贵贤 committed
178 179 180
            ></c-input>
          </el-form-item>
        </c-col>
wangna committed
181 182

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

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

wangna committed
204
        <c-col :span="24">
nanrui committed
205
          <el-form-item label="当前柜员" prop="cctp.usr.extkey">
wangna committed
206 207 208 209
            <c-fullbox>
              <c-input
                v-model="model.cctp.usr.extkey"
                maxlength="8"
nanrui committed
210
                placeholder="请输入当前柜员"
wangna committed
211 212 213 214 215 216 217 218
                disabled
              ></c-input>
              <template slot="footer">
                <c-button
                  size="small"
                  type="primary"
                  @click="onSeainf"
                >
nanrui committed
219
                  <i class="el-icon-info"></i>
wangna committed
220 221 222
                </c-button>
              </template>
            </c-fullbox>
唐贵贤 committed
223 224
          </el-form-item>
        </c-col>
wangna committed
225

唐贵贤 committed
226
        <c-col :span="24">
nanrui committed
227
          <el-form-item label="出票人" prop="ccdgrp.cor.pts.extkey">
wangna committed
228 229 230 231 232 233 234 235 236 237 238 239 240 241 242
            <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"
                >
nanrui committed
243
                  <i class="el-icon-info"></i>
wangna committed
244 245 246 247 248 249
                </c-button>
                <c-button style="margin: 0 0" size="small" type="primary">
                  详情
                </c-button>
              </template>
            </c-fullbox>
唐贵贤 committed
250 251
          </el-form-item>
        </c-col>
wangna committed
252

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

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

wangna committed
281
        <c-col :span="24">
nanrui committed
282
          <el-form-item label="收单行登记编号" prop="ccdgrp.rec.regref">
wangna committed
283 284 285
            <c-input
              v-model="model.ccdgrp.rec.regref"
              maxlength="16"
nanrui committed
286
              placeholder="请输入收单行登记编号"
wangna committed
287
              disabled
wangna committed
288 289 290 291
            ></c-input>
          </el-form-item>
        </c-col>

wangna committed
292 293 294
        <c-ptap
          :model="model"
          :argadr="{
nanrui committed
295
            title: '委托人',
wangna committed
296 297 298 299 300 301 302 303 304 305
            grp: 'ccdgrp',
            rol: 'pre',
          }"
          disabled
        >
        </c-ptap>

        <c-ptap
          :model="model"
          :argadr="{
nanrui committed
306
            title: '付款人账户行',
wangna committed
307 308 309 310 311 312 313
            grp: 'ccdgrp',
            rol: 'dro',
          }"
          :disabled="this.flag2"
        >
        </c-ptap>

唐贵贤 committed
314
        <c-col :span="24">
nanrui committed
315
          <el-form-item label="托收委托人参考号" prop="ccdgrp.col.pts.ref">
唐贵贤 committed
316 317 318
            <c-input
              v-model="model.ccdgrp.col.pts.ref"
              maxlength="16"
nanrui committed
319
              placeholder="请输入托收委托人参考号"
wangna committed
320
              :disabled="model.ccdgrp.rec.modset == '2'"
唐贵贤 committed
321 322 323
            ></c-input>
          </el-form-item>
        </c-col>
wangna committed
324

唐贵贤 committed
325
        <c-col :span="24">
nanrui committed
326
          <el-form-item label="托收委托人编号" prop="ccdgrp.col.pts.extkey">
wangna committed
327 328 329 330
            <c-fullbox>
              <c-input
                v-model="model.ccdgrp.col.pts.extkey"
                maxlength="16"
nanrui committed
331
                placeholder="请输入托收委托人编号"
wangna committed
332 333 334 335
                @keyup.enter.native="
                  showGridPromptDialog('ccdgrp.col.pts.extkey')
                "
                :disabled="model.ccdgrp.rec.modset == '2'"
wangna committed
336 337 338 339 340 341 342 343
              ></c-input>
              <template slot="footer">
                <c-button
                  style="margin: 0 10px 0 10px; padding: 0 12px"
                  size="small"
                  type="primary"
                  @click="onSeainf"
                >
nanrui committed
344
                  <i class="el-icon-info"></i>
wangna committed
345 346 347 348 349 350
                </c-button>
                <c-button style="margin: 0 0" size="small" type="primary">
                  详情
                </c-button>
              </template>
            </c-fullbox>
唐贵贤 committed
351 352
          </el-form-item>
        </c-col>
wangna committed
353

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

export default {
wangna committed
379 380 381
  components: {
    "c-ptap": Ptap,
  },
唐贵贤 committed
382 383
  inject: ["root"],
  props: ["model", "codes"],
wangren committed
384
  mixins: [commonProcess],
唐贵贤 committed
385
  data() {
wangna committed
386
    return {
wangna committed
387 388 389
      flag1: false,
      flag2: false,
      flag3: false,
wangna committed
390 391
    };
  },
wangna committed
392 393 394 395 396 397 398 399
  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;
wangna committed
400 401
        }
      },
wangna committed
402 403 404 405 406 407 408 409
    },
    "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
410 411
        }
      },
wangna committed
412 413 414 415 416 417 418 419
    },
    "model.ccdgrp.col.pts.extkey": {
      immediate: true,
      handler(val, oldVal) {
        if (this.model.ccdgrp.col.pts.extkey != "") {
          this.flag3 = true;
        } else {
          this.flag3 = false;
wangna committed
420 421
        }
      },
wangna committed
422 423
    },
    "model.ccdgrp.rec.modset": function () {
wangna committed
424 425 426 427 428
      if (this.model.ccdgrp.rec.modset == "2") {
        this.model.ccdgrp.col.pts.extkey = "";
        this.model.ccdgrp.col.pts.adrblk = "";
      }
    },
唐贵贤 committed
429 430 431 432 433 434 435
  },
  methods: { ...Event },
  created: function () {},
};
</script>
<style>
</style>