Botdcrp1.vue 9.56 KB
Newer Older
jxl committed
1
<template>
2 3 4 5
  <c-row>
    <!-- =================顶部====================== -->
    <c-col :span="24">
      <c-col :span="11">
6
        <c-col :span="22">
nanrui committed
7 8
          <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%"
9
              disabled></c-input>
jxl committed
10 11
          </el-form-item>
        </c-col>
12
        <c-col :span="2">
wangyanjiao committed
13 14
          <c-button style="margin:0 10px 0 0;padding: 0 10px;" size="small" type="primary" icon="el-icon-search">
          </c-button>
15 16 17
        </c-col>
      </c-col>
      <c-col :span="11" :offset="1">
jxl committed
18
        <el-form-item label="摘要" prop="bodgrp.rec.nam">
19
          <c-input text-align="middle" v-model="model.bodgrp.rec.nam" maxlength="40" disabled
wangna committed
20
            placeholder="请输入"></c-input>
jxl committed
21
        </el-form-item>
22
      </c-col>
jxl committed
23
    </c-col>
24 25 26
    <!-- ====================左边======================= -->
    <c-col :span="11">
      <c-col :span="12">
nanrui committed
27
        <el-form-item label="托收金额" prop="bodgrp.cbs.max.cur">
nanrui committed
28
          <c-select disabled v-model="model.bodgrp.cbs.max.cur" style="width: 100%" placeholder="请选择币种">
29
            <el-option v-for="item in codes.cur" :key="item.value" :label="item.label" :value="item.value">
jxl committed
30 31 32
            </el-option>
          </c-select>
        </el-form-item>
33 34 35 36
      </c-col>
      <c-col :span="12">
        <el-form-item style="text-align: left" label-width="20px" prop="bodgrp.cbs.max.amt">
          <c-input-currency v-model="model.bodgrp.cbs.max.amt" style="text-align: left; width: 100%"
nanrui committed
37
            placeholder="请输入托收金额" disabled
38
            @keyup.enter.native="defaultFunction('bodgrp.cbs.max.amt', model.bodgrp.cbs.max.amt)"></c-input-currency>
jxl committed
39
        </el-form-item>
40 41
      </c-col>
      <c-col :span="12">
nanrui committed
42 43
        <el-form-item label="仓储/保险" prop="bodgrp.cbs.opn1.cur">
          <c-select disabled v-model="model.bodgrp.cbs.opn1.cur" style="width: 100%" placeholder="请选择币种">
44
            <el-option v-for="item in codes.cur" :key="item.value" :label="item.label" :value="item.value">
jxl committed
45 46 47
            </el-option>
          </c-select>
        </el-form-item>
48 49 50 51
      </c-col>
      <c-col :span="12">
        <el-form-item style="text-align: left" label-width="20px" prop="bodgrp.cbs.opn1.amt">
          <c-input-currency v-model="model.bodgrp.cbs.opn1.amt" style="text-align: left; width: 100%"
nanrui committed
52
            placeholder="请输入仓储/保险" disabled
53
            @keyup.enter.native="defaultFunction('bodgrp.cbs.opn1.amt', model.bodgrp.cbs.opn1.amt)"></c-input-currency>
jxl committed
54
        </el-form-item>
55
      </c-col>
jxl committed
56

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

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

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

      <c-col :span="24">
        <el-form-item label="" prop="clsflg">
nanrui committed
135
          <c-checkbox v-model="clsflg" :disabled="model.rejtypsel != 'R'">闭卷</c-checkbox>
136 137
        </el-form-item>
      </c-col>
wangyanjiao committed
138
      <c-col :span="24">
nanrui committed
139
        <el-form-item label="拒绝付款或承兑的原因" prop="bodgrp.blk.resrej">
wangyanjiao committed
140 141
          <c-fullbox>
            <c-input type="textarea"  :autosize="{ minRows: 5, maxRows: 20 }" v-model="model.bodgrp.blk.resrej" maxlength="700" show-word-limit
nanrui committed
142
              placeholder="请输入拒绝付款或承兑的原因">
wangyanjiao committed
143 144 145
            </c-input>
            <template slot="footer">
            <c-button size="small" type="primary"
wangyanjiao committed
146
              @click="showGridPromptDialog('botp.resrej.buttxmsel',null,null,{TXT:'bodgrp.blk.resrej'},{TXT:false},'doxpDialog')">
wangyanjiao committed
147 148 149 150
              ...
            </c-button>
          </template>
          </c-fullbox>
151 152
        </el-form-item>
      </c-col>
jxl committed
153
    </c-col>
154 155 156 157
    <!-- ====================右边======================= -->
    <c-col :span="11" :offset="1">

      <c-col :span="24">
nanrui committed
158 159
        <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
160
        </el-form-item>
161 162
      </c-col>
      <c-col :span="24">
nanrui committed
163 164
        <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
165
        </el-form-item>
166 167
      </c-col>
      <c-col :span="24">
nanrui committed
168 169
        <el-form-item label="代收行" prop="bodgrp.col.pts.ref">
          <c-input v-model="model.bodgrp.col.pts.ref" maxlength="16" placeholder="请输入代收行" disabled>
wangyanjiao committed
170
          </c-input>
jxl committed
171
        </el-form-item>
172 173 174
      </c-col>

      <c-col :span="24">
nanrui committed
175 176
        <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
177
        </el-form-item>
178 179
      </c-col>
      <c-col :span="24">
nanrui committed
180 181
        <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
182
        </el-form-item>
183 184
      </c-col>
      <c-col :span="24">
nanrui committed
185 186
        <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
187
        </el-form-item>
188
      </c-col>
jxl committed
189

wangyanjiao committed
190
      <c-col>
wangyanjiao committed
191
        <c-docpre :model="model" :argadr="{
wangyanjiao committed
192 193
          path: 'bodgrp.blk.docpre',
          grp: 'botp',
194
          code: 'docpre',
wangyanjiao committed
195 196 197
        }" :disabledDocnam="model.rejtypsel != 'R'" :disabledCmail2="model.rejtypsel != 'R'"
          :disabledCmail1="model.rejtypsel != 'R'" :ifShowAdd="model.rejtypsel == 'R'"
          :ifShowDelete="model.rejtypsel == 'R'">
198
        </c-docpre>
199 200 201
      </c-col>
    </c-col>
  </c-row>
jxl committed
202 203
</template>
<script>
wangyanjiao committed
204 205 206 207 208 209 210
  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
211

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

wangyanjiao committed
242 243 244
    created: function () {
      console.log(this.root);
    }
245
  }
jxl committed
246 247
</script>
<style>
wangyanjiao committed
248 249 250 251 252 253
  .messageLabel>>>.el-form-item__label {
    text-align: left;
    font-weight: bold;
    font-size: 12px;
  }
</style>