Botdcrp1.vue 10.2 KB
Newer Older
jxl committed
1
<template>
2 3 4
  <div class="eibs">
        <!-- ==================左边================ -->
        <c-col :span="12" style="padding-right: 20px;">
hewei committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
          <c-col :span="24">
            <el-form-item label="托收业务编号" prop="bodgrp.rec.ownref" style="width: 100%">
              <c-fullbox>
                <c-input v-model="model.bodgrp.rec.ownref" maxlength="16" placeholder="请输入托收业务编号" style="width: 100%"
                         disabled></c-input>
                <template slot="footer">
                  <c-button style="margin:0 0 0 10px;padding: 0 12px;" size="small" type="primary" icon="el-icon-search">
                  </c-button>
                </template>
              </c-fullbox>
            </el-form-item>
          </c-col>

<!--      <c-col :span="22">-->
<!--          <el-form-item label="托收业务编号" prop="bodgrp.rec.ownref" style="width: 100%">-->
<!--            <c-input v-model="model.bodgrp.rec.ownref" maxlength="16" placeholder="请输入托收业务编号" style="width: 95%"-->
<!--              disabled></c-input>-->
<!--          </el-form-item>-->
<!--        </c-col>-->
<!--        <c-col :span="2">-->
<!--          <c-button style="margin:0 10px 0 0;padding: 0 10px;" size="small" type="primary" icon="el-icon-search">-->
<!--          </c-button>-->
<!--        </c-col>-->
28
      <c-col :span="12">
nanrui committed
29
        <el-form-item label="托收金额" prop="bodgrp.cbs.max.cur">
nanrui committed
30
          <c-select disabled v-model="model.bodgrp.cbs.max.cur" style="width: 100%" placeholder="请选择币种">
31
            <el-option v-for="item in codes.cur" :key="item.value" :label="item.label" :value="item.value">
jxl committed
32 33 34
            </el-option>
          </c-select>
        </el-form-item>
35 36
      </c-col>
      <c-col :span="12">
huangxin committed
37
        <el-form-item style="text-align: left" label-width="5px" prop="bodgrp.cbs.max.amt">
38
          <c-input-currency v-model="model.bodgrp.cbs.max.amt" style="text-align: left; width: 100%"
nanrui committed
39
            placeholder="请输入托收金额" disabled
40
            @keyup.enter.native="defaultFunction('bodgrp.cbs.max.amt', model.bodgrp.cbs.max.amt)"></c-input-currency>
jxl committed
41
        </el-form-item>
42 43
      </c-col>
      <c-col :span="12">
nanrui committed
44 45
        <el-form-item label="仓储/保险" prop="bodgrp.cbs.opn1.cur">
          <c-select disabled v-model="model.bodgrp.cbs.opn1.cur" style="width: 100%" placeholder="请选择币种">
46
            <el-option v-for="item in codes.cur" :key="item.value" :label="item.label" :value="item.value">
jxl committed
47 48 49
            </el-option>
          </c-select>
        </el-form-item>
50 51
      </c-col>
      <c-col :span="12">
huangxin committed
52
        <el-form-item style="text-align: left" label-width="5px" prop="bodgrp.cbs.opn1.amt">
53
          <c-input-currency v-model="model.bodgrp.cbs.opn1.amt" style="text-align: left; width: 100%"
nanrui committed
54
            placeholder="请输入仓储/保险" disabled
55
            @keyup.enter.native="defaultFunction('bodgrp.cbs.opn1.amt', model.bodgrp.cbs.opn1.amt)"></c-input-currency>
jxl committed
56
        </el-form-item>
57
      </c-col>
jxl committed
58

59
      <c-col :span="24">
nanrui committed
60 61
        <el-form-item label="交单条件" prop="bodgrp.rec.doctypcod">
          <c-select v-model="model.bodgrp.rec.doctypcod" style="width:100%" placeholder="请选择交单条件"
wangyanjiao committed
62
            :code="codes.doctypcod" disabled>
63
          </c-select>
jxl committed
64
        </el-form-item>
65 66
      </c-col>
      <c-col :span="24">
nanrui committed
67 68
        <el-form-item label="单据状态" prop="bodgrp.rec.docsta">
          <c-select v-model="model.bodgrp.rec.docsta" style="width: 100%" placeholder="请输入单据状态" disabled
wangyanjiao committed
69
            :code="codes.docstabot">
70
          </c-select>
jxl committed
71
        </el-form-item>
72
      </c-col>
73
      <c-col :span="16">
nanrui committed
74
          <el-form-item label="单据期限" prop="bodgrp.rec.matdat">
huangxin committed
75 76 77 78 79
            <c-date-picker
              type="date"
              disabled
              v-model="model.bodgrp.rec.matdat"
              style="width: 100%"
nanrui committed
80
              placeholder="请选择单据到期日"
huangxin committed
81 82 83
            ></c-date-picker>
          </el-form-item>
        </c-col>
84 85
        <c-col :span="4">
          <el-form-item label="" label-width="40px">
huangxin committed
86 87 88
            <c-input
              disabled
              v-model="model.bodgrp.rec.matpercnt"
nanrui committed
89
              placeholder="请输入单据期限"
huangxin committed
90 91 92
            ></c-input>
          </el-form-item>
        </c-col>
93 94 95 96 97 98 99 100 101 102 103 104 105 106
        <c-col :span="4">
        <el-form-item label="" prop="bodgrp.rec.matpertyp" label-width="5px">
            <c-select disabled v-model="model.bodgrp.rec.matpertyp" style="width: 100%"  placeholder="">
            <el-option
              v-for="item in matpertyp"
              :key="item.value"
              :label="item.label"
              :value="item.value"
            >
            </el-option>
            </c-select>
        </el-form-item>
       </c-col>

107
      <c-col :span="24">
jxl committed
108
        <el-form-item label="  " prop="bodgrp.rec.matperbeg">
109
          <c-select v-model="model.bodgrp.rec.matperbeg" style="width:100%"
wangna committed
110
            placeholder="请选择" disabled :code="codes.matperbeg">
111
          </c-select>
jxl committed
112
        </el-form-item>
113 114
      </c-col>
      <c-col :span="12">
nanrui committed
115 116
        <el-form-item label="收单日期" prop="bodgrp.rec.rcvdat">
          <c-date-picker type="date" v-model="model.bodgrp.rec.rcvdat" style="width:100%" placeholder="请选择收单日期"
117
            disabled></c-date-picker>
jxl committed
118
        </el-form-item>
119 120
      </c-col>
      <c-col :span="12">
nanrui committed
121
        <el-form-item label="寄单日期" prop="bodgrp.rec.predat">
122
          <c-date-picker type="date" v-model="model.bodgrp.rec.predat" style="width:100%"
nanrui committed
123
            placeholder="请选择寄单日期" disabled></c-date-picker>
jxl committed
124
        </el-form-item>
125 126 127
      </c-col>

      <c-col :span="24">
nanrui committed
128 129
        <el-form-item label="拒单类型" prop="rejtypsel">
          <c-select v-model="model.rejtypsel" style="width:100%" placeholder="拒单类型"
130 131
            :code="codes.rejtypsel">
          </c-select>
jxl committed
132
        </el-form-item>
133 134 135 136
      </c-col>

      <c-col :span="24">
        <el-form-item label="" prop="clsflg">
nanrui committed
137
          <c-checkbox v-model="clsflg" :disabled="model.rejtypsel != 'R'">闭卷</c-checkbox>
138 139
        </el-form-item>
      </c-col>
wangyanjiao committed
140
      <c-col :span="24">
nanrui committed
141
        <el-form-item label="拒绝付款或承兑的原因" prop="bodgrp.blk.resrej">
wangyanjiao committed
142 143
          <c-fullbox>
            <c-input type="textarea"  :autosize="{ minRows: 5, maxRows: 20 }" v-model="model.bodgrp.blk.resrej" maxlength="700" show-word-limit
nanrui committed
144
              placeholder="请输入拒绝付款或承兑的原因">
wangyanjiao committed
145 146
            </c-input>
            <template slot="footer">
huangxin committed
147
            <c-button size="small" type="primary" icon="el-icon-more"
wangyanjiao committed
148
              @click="showGridPromptDialog('botp.resrej.buttxmsel',null,null,{TXT:'bodgrp.blk.resrej'},{TXT:false},'doxpDialog')">
wangyanjiao committed
149 150 151
            </c-button>
          </template>
          </c-fullbox>
152 153
        </el-form-item>
      </c-col>
jxl committed
154
    </c-col>
155 156 157 158 159 160 161 162
            <!-- ============右边================= -->
            <c-col :span="12" style="padding-left: 20px;">
      <c-col :span="24">
        <el-form-item label="摘要" prop="bodgrp.rec.nam">
          <c-input text-align="middle" v-model="model.bodgrp.rec.nam" maxlength="40" disabled
            placeholder="请输入"></c-input>
        </el-form-item>
      </c-col>
163 164

      <c-col :span="24">
nanrui committed
165 166
        <el-form-item label="收款人" prop="bodgrp.drr.pts.ref">
          <c-input v-model="model.bodgrp.drr.pts.ref" maxlength="16" placeholder="请输入收款人" disabled></c-input>
jxl committed
167
        </el-form-item>
168 169
      </c-col>
      <c-col :span="24">
nanrui committed
170 171
        <el-form-item label="收款人参考号" prop="bodgrp.drr.pts.nam">
          <c-input v-model="model.bodgrp.drr.pts.nam" maxlength="40" placeholder="请输入收款人参考号" disabled></c-input>
jxl committed
172
        </el-form-item>
173 174
      </c-col>
      <c-col :span="24">
nanrui committed
175 176
        <el-form-item label="代收行" prop="bodgrp.col.pts.ref">
          <c-input v-model="model.bodgrp.col.pts.ref" maxlength="16" placeholder="请输入代收行" disabled>
wangyanjiao committed
177
          </c-input>
jxl committed
178
        </el-form-item>
179 180 181
      </c-col>

      <c-col :span="24">
nanrui committed
182 183
        <el-form-item label="代收行参考号" prop="bodgrp.col.pts.nam">
          <c-input v-model="model.bodgrp.col.pts.nam" maxlength="40" placeholder="请输入代收行参考号" disabled></c-input>
jxl committed
184
        </el-form-item>
185 186
      </c-col>
      <c-col :span="24">
nanrui committed
187 188
        <el-form-item label="付款人" prop="bodgrp.dre.pts.ref">
          <c-input v-model="model.bodgrp.dre.pts.ref" maxlength="16" placeholder="请输入付款人" disabled></c-input>
jxl committed
189
        </el-form-item>
190 191
      </c-col>
      <c-col :span="24">
nanrui committed
192 193
        <el-form-item label="付款人参考号" prop="bodgrp.dre.pts.nam">
          <c-input v-model="model.bodgrp.dre.pts.nam" maxlength="40" placeholder="请输入付款人参考号" disabled></c-input>
jxl committed
194
        </el-form-item>
195
      </c-col>
huangxin committed
196 197
    </c-col>
    <c-col :span="24">
wangyanjiao committed
198
        <c-docpre :model="model" :argadr="{
wangyanjiao committed
199 200
          path: 'bodgrp.blk.docpre',
          grp: 'botp',
201
          code: 'docpre',
wangyanjiao committed
202 203 204
        }" :disabledDocnam="model.rejtypsel != 'R'" :disabledCmail2="model.rejtypsel != 'R'"
          :disabledCmail1="model.rejtypsel != 'R'" :ifShowAdd="model.rejtypsel == 'R'"
          :ifShowDelete="model.rejtypsel == 'R'">
205
        </c-docpre>
206
      </c-col>
207
      </div>
jxl committed
208 209
</template>
<script>
wangyanjiao committed
210 211 212 213 214 215 216
  import Api from "~/service/Api"
  import commonProcess from "~/mixin/commonProcess";
  import CodeTable from "~/config/CodeTable"
  import Event from "~/model/Botdcr/Event"
  import Utils from "~/utils";
  import Ptap from "~/views/Public/Ptap";
  import Docpre from "~/views/Public/Docpre";
jxl committed
217

wangyanjiao committed
218 219 220 221 222 223 224 225 226 227
  export default {
    components: {
      "c-ptap": Ptap,
      "c-docpre": Docpre,
    },
    inject: ['root'],
    props: ["model", "codes"],
    mixins: [commonProcess],
    data() {
      return {
228
        matpertyp: [
nanrui committed
229
        { label: "天", value: "D" },
wangna committed
230
        { label: "月", value: "M" },
231
    ],
wangyanjiao committed
232 233 234 235 236 237 238 239 240 241 242 243 244 245 246
      }
    },
    computed: {
      clsflg: {
        get() {
          return this.model.rejtypsel == "R";
        },
        set(val) {
          this.model.mtabut.clsflg = val ? "C" : "O";
        },
      }
    },
    methods: {
      ...Event,
    },
247

wangyanjiao committed
248 249 250
    created: function () {
      console.log(this.root);
    }
251
  }
jxl committed
252 253
</script>
<style>
wangyanjiao committed
254 255 256 257 258 259
  .messageLabel>>>.el-form-item__label {
    text-align: left;
    font-weight: bold;
    font-size: 12px;
  }
</style>