Betdcrs.vue 10.5 KB
Newer Older
jinqian committed
1
<template>
2
  <div class="eibs">
3 4
    <!-- ======================= 左边 ========================= -->
    <c-col :span="12" style="padding-right: 20px">
Eivi committed
5 6
      <c-col :span="24">
        <c-col :span="20">
7 8 9
          <el-form-item label="出口信用证编号" prop="ledgrp.rec.ownref" style="width: 100%">
            <c-input v-model="model.ledgrp.rec.ownref" maxlength="16" placeholder="请输入出口信用证编号" style="width: 95%"
              disabled></c-input>
Eivi committed
10 11
          </el-form-item>
        </c-col>
12

Eivi committed
13
        <c-col :span="1">
14 15

          <c-button style="margin: 0 10px 0 0; padding: 0 12px" size="small" type="primary">
nanrui committed
16
            <i class="el-icon-info" style="font-size:15px"></i>
Eivi committed
17 18 19
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
20 21 22 23
        <c-col :span="2" :offset="1">

          <c-button style="margin: 0 0" size="small" type="primary"
            :disabled="!this.flag && model.ledgrp.rec.ownref == '' ? false : true">
24
            获取
Eivi committed
25 26 27 28 29 30 31 32
          </c-button>
          <!-- </el-form-item> -->
        </c-col>
        <!-- </c-col> -->
      </c-col>

      <c-col :span="24">
        <c-col :span="20">
33 34 35
          <el-form-item label="出口单据编号" prop="bedgrp.rec.ownref" style="width: 100%">
            <c-input v-model="model.bedgrp.rec.ownref" maxlength="16" placeholder="请输入出口单据编号" style="width: 95%"
              disabled></c-input>
Eivi committed
36 37
          </el-form-item>
        </c-col>
38

Eivi committed
39
        <c-col :span="1">
40 41

          <c-button style="margin: 0 10px 0 0; padding: 0 12px" size="small" type="primary">
nanrui committed
42
            <i class="el-icon-info" style="font-size:15px"></i>
Eivi committed
43
          </c-button>
44

Eivi committed
45 46
        </c-col>
        <c-col :span="2" :offset="1" style="text-align: right">
47 48 49

          <c-button style="margin: 0 0" size="small" type="primary"
            :disabled="!this.flag && model.bedgrp.rec.ownref == '' ? false : true">
50
            获取
Eivi committed
51
          </c-button>
52

Eivi committed
53
        </c-col>
54

Eivi committed
55 56
      </c-col>
      <c-col :span="24">
57
        <el-form-item label="单据金额" prop="bedgrp.cbs.max.cur">
Eivi committed
58
          <c-fullbox>
59 60 61
            <c-input v-model="model.bedgrp.cbs.max.cur" maxlength="3" style="width: 50%" placeholder="请输入单据金额" disabled>
            </c-input>
            <c-input v-model="model.bedgrp.cbs.max.amt" style="width: 50%" placeholder="请输入金额" disabled></c-input>
Eivi committed
62
            <template slot="footer">
63
              <c-checkbox v-model="model.betp.adaflg" style="margin-left: 10px" disabled>附加金额</c-checkbox>
Eivi committed
64 65 66 67 68 69
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
70
          <el-form-item label="单据余额" prop="bedgrp.cbs.opn1.cur">
71
            <c-input v-model="model.bedgrp.cbs.opn1.cur" maxlength="3" placeholder="请输入" disabled></c-input>
Eivi committed
72 73 74 75
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="bedgrp.cbs.max.amt">
76
            <c-input v-model="model.bedgrp.cbs.max.amt" placeholder="请输入金额" disabled></c-input>
Eivi committed
77 78 79 80
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
81
        <el-form-item label="单据类型" prop="bedgrp.rec.doctypcod">
82 83
          <c-select v-model="model.bedgrp.rec.doctypcod" style="width: 100%" placeholder="请输入单据类型" disabled>
            <el-option v-for="item in codes.doctypcod1" :key="item.value" :label="item.label" :value="item.value">
Eivi committed
84 85 86 87 88
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>
      <c-col :span="24">
89
        <el-form-item label="到期日" prop="bedgrp.rec.matdat">
90 91
          <c-date-picker type="date" v-model="model.bedgrp.rec.matdat" style="width: 100%" placeholder="请选择到期日"
            disabled></c-date-picker>
Eivi committed
92 93 94 95
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <c-col :span="12">
96
          <el-form-item label="收到日期" prop="bedgrp.rec.rcvdat">
97 98
            <c-date-picker type="date" v-model="model.bedgrp.rec.rcvdat" style="width: 100%" placeholder="请选择收到日期"
              disabled></c-date-picker>
Eivi committed
99 100 101
          </el-form-item>
        </c-col>
        <c-col :span="12">
102
          <el-form-item label="交单日期" prop="bedgrp.rec.predat">
103 104
            <c-date-picker type="date" v-model="model.bedgrp.rec.predat" style="width: 100%" placeholder="请选择交单日期"
              disabled></c-date-picker>
Eivi committed
105 106 107 108
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="24">
109
        <el-form-item label="单据状态" prop="bedgrp.rec.docsta">
110 111 112
          <c-select v-model="model.bedgrp.rec.docsta" style="width: 100%" placeholder="请选择单据状态" disabled
            :code="codes.docsta">

Eivi committed
113 114 115
          </c-select>
        </el-form-item>
      </c-col>
116 117 118 119
      <c-col :span="12">
        <el-form-item label="" prop="advrefflg">
          <c-checkbox v-model="advrefflg" class="checkbox-left">收到拒绝通知</c-checkbox>
        </el-form-item>
Eivi committed
120 121
      </c-col>

122 123 124
      <c-col :span="10" :offset="2">
        <el-form-item label="" prop="bedgrp.rec.advdocflg">
          <c-checkbox v-model="model.bedgrp.rec.advdocflg" class="checkbox-left">收到返回单据</c-checkbox>
Eivi committed
125 126 127
        </el-form-item>
      </c-col>

128 129 130 131
      <c-col :span="12">
        <el-form-item label="" prop="mtabut.clsflg">
          <c-checkbox v-model="clsflg" disabled class="checkbox-left">关闭合同</c-checkbox>
        </el-form-item>
Eivi committed
132
      </c-col>
133 134 135 136 137

      <c-col :span="10" :offset="2">
        <el-form-item label="" prop="advdisflg">
          <c-checkbox v-model="advdisflg" class="checkbox-left">发送不符点通知(MT750)</c-checkbox>
        </el-form-item>
Eivi committed
138
      </c-col>
139

Eivi committed
140
      <c-col :span="24">
141 142 143 144
        <el-form-item label=":72:(MT750)" prop="trnmod.trndoc.addstr750">
          <c-input type="textarea" v-model="model.trnmod.trndoc.addstr750" maxlength="35" show-word-limit
            placeholder="请输入Tag 72(MT750)" :disabled="!advdisflg"></c-input>
        </el-form-item>
Eivi committed
145 146 147
      </c-col>
    </c-col>

148 149
    <!-- ======================右边====================== -->
    <c-col :span="12" style="padding-left: 20px">
Eivi committed
150
      <c-col :span="24">
151 152 153 154 155 156 157 158 159 160
        <c-col :span="12">
          <el-form-item label="信用证余额" prop="ledgrp.cbs.opn1.cur">
            <c-input v-model="model.ledgrp.cbs.opn1.cur" maxlength="3" placeholder="请输入" disabled></c-input>
          </el-form-item>
        </c-col>
        <c-col :span="12">
          <el-form-item label="" label-width="5px" prop="ledgrp.cbs.opn1.amt">
            <c-input v-model="model.ledgrp.cbs.opn1.amt" placeholder="请输入金额" disabled></c-input>
          </el-form-item>
        </c-col>
Eivi committed
161 162 163
      </c-col>

      <c-col :span="24">
164 165
        <el-form-item label="单据简略信息" prop="bedgrp.rec.nam">
          <c-input v-model="model.bedgrp.rec.nam" maxlength="40" placeholder="请输入单据简略信息" disabled></c-input>
166
        </el-form-item>
Eivi committed
167 168 169
      </c-col>

      <c-col :span="24">
170 171 172 173 174
        <c-ptsmsg :model="model" :argadr="{
          title: '交单人',
          grp: 'bedgrp',
          rol: 'prb',
        }" :disabled="true" :enname="true" :enRef="false" :enNam="false"></c-ptsmsg>
Eivi committed
175 176
      </c-col>
      <c-col :span="24">
177 178 179 180 181
        <c-ptsmsg :model="model" :argadr="{
          title: '开证行',
          grp: 'bedgrp',
          rol: 'iss',
        }" :disabled="true" :enRef="false" :enNam="false"></c-ptsmsg>
Eivi committed
182 183
      </c-col>
      <c-col :span="24">
184 185 186 187 188
        <c-ptsmsg :model="model" :argadr="{
          title: '申请人',
          grp: 'bedgrp',
          rol: 'apl',
        }" :disabled="true" :enRef="false" :enNam="false"></c-ptsmsg>
Eivi committed
189 190
      </c-col>
      <c-col :span="24">
191
        <el-form-item label="付款人" prop="bedgrp.rec.payrol">
192 193 194
          <c-select v-model="model.bedgrp.rec.payrol" style="width: 100%" placeholder="请选择付款人" disabled
            @change="eventFunction('bedgrp.rec.payrol')">
            <el-option v-for="item in codes.payrol" :key="item.value" :label="item.label" :value="item.value">
Eivi committed
195 196 197 198 199 200
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
201 202 203 204 205
        <c-ptap :model="model" :argadr="{
          title: '',
          grp: 'bedgrp',
          rol: 'oth',
        }" :noRef="true" :disabled="true" :isAdrblk="true" :disabledExtkey="!(model.bedgrp.rec.payrol == 'OTH')">
Eivi committed
206 207 208 209
        </c-ptap>
      </c-col>

      <c-col :span="24">
210
        <el-form-item label="交单行" prop="bedgrp.rec.docprbrol">
211 212 213
          <c-select v-model="model.bedgrp.rec.docprbrol" style="width: 100%" placeholder="请输入交单行" disabled
            @change="eventFunction('bedgrp.rec.docprbrol')">
            <el-option v-for="item in codes.docprbrol" :key="item.value" :label="item.label" :value="item.value">
Eivi committed
214 215 216 217 218 219
            </el-option>
          </c-select>
        </el-form-item>
      </c-col>

      <c-col :span="24">
220 221 222 223 224
        <c-ptap :model="model" :argadr="{
          title: '',
          grp: 'bedgrp',
          rol: 'prb',
        }" :noRef="true" :disabled="true" :isAdrblk="true" :disabledExtkey="true">
Eivi committed
225 226 227
        </c-ptap>
      </c-col>
    </c-col>
228
  </div>
jinqian committed
229 230
</template>
<script>
Eivi committed
231
import Api from "~/service/Api";
232
import commonProcess from "~/mixin/commonProcess";
Eivi committed
233 234 235 236
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Betdcr/Event";
import Ptsmsg from "~/views/Public/Ptsmsg";
import Ptap from "~/views/Public/Ptap";
jinqian committed
237 238

export default {
239
  components: { "c-ptsmsg": Ptsmsg, "c-ptap": Ptap },
Eivi committed
240 241 242 243 244 245 246 247 248
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {};
  },
  computed: {
    flag() {
      return this.model.mtabut.coninf.usr.extkey == "";
249
    },
Eivi committed
250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267
    advrefflg: {
      get() {
        return this.model.advrefflg != "";
      },
      set(val) {
        this.model.advrefflg = val ? "X" : "";
      },
    },
    // advdocflg: {
    //   get() {
    //     this.model.mtabut.clsflg = this.model.bfdgrp.rec.advdocflg != "" ? "C" : ""
    //     return this.model.bfdgrp.rec.advdocflg != "";
    //   },
    //   set(val) {
    //     this.model.bfdgrp.rec.advdocflg = val ? "X" : "";
    //     this.model.mtabut.clsflg = val ? "C" : "O";
    //   },
    // },
268
    clsflg: {
Eivi committed
269
      get() {
270
        return this.model.mtabut.clsflg == "C";
Eivi committed
271 272
      },
      set(val) {
273
        this.model.mtabut.clsflg = val ? "C" : "O";
Eivi committed
274 275 276 277 278 279 280 281 282 283 284
      },
    },
    advdisflg: {
      get() {
        return this.model.advdisflg != "";
      },
      set(val) {
        this.model.advdisflg = val ? "X" : "";
      },
    },
  },
285 286 287
  methods: {
    ...Event,
  },
288
  created: function () { },
Eivi committed
289
};
jinqian committed
290 291
</script>
<style>
292

jinqian committed
293
</style>