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

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


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

      <c-col :span="24">
nanrui committed
126 127
        <el-form-item label="第二次寄单指示" prop="bodgrp.blk.colinssnm" >
            <c-input type="textarea" v-model="model.bodgrp.blk.colinssnm" maxlength="60" show-word-limit placeholder="请输入第二次寄单指示" ></c-input>
wangyanjiao committed
128 129 130 131
        </el-form-item>
        </c-col>

        <c-col :span="12">
nanrui committed
132
	    <c-checkbox v-model="model.oridre" padding="15">是否将原单据寄给收款人</c-checkbox>
wangyanjiao committed
133 134 135 136 137 138 139 140 141
       </c-col>


      
    </c-col>
    <!-- ====================右边======================= -->
    <c-col :span="11" :offset="1">

      <c-col :span="24">
nanrui committed
142 143
        <el-form-item label="收款人" prop="bodgrp.drr.pts.ref">
          <c-input v-model="model.bodgrp.drr.pts.ref" maxlength="16" placeholder="请输入收款人" ></c-input>
wangyanjiao committed
144 145 146
        </el-form-item>
      </c-col>
      <c-col :span="24">
nanrui committed
147 148
        <el-form-item label="收款人名称" prop="bodgrp.drr.pts.nam">
          <c-input v-model="model.bodgrp.drr.pts.nam" maxlength="40" placeholder="请输入收款人名称" disabled></c-input>
wangyanjiao committed
149 150 151
        </el-form-item>
      </c-col>
      <c-col :span="24">
nanrui committed
152 153
        <el-form-item label="代收行" prop="bodgrp.col.pts.ref">
          <c-input v-model="model.bodgrp.col.pts.ref" maxlength="16" placeholder="请输入代收行" disabled></c-input>
wangyanjiao committed
154 155 156 157
        </el-form-item>
      </c-col>

      <c-col :span="24">
nanrui committed
158 159
        <el-form-item label="代收行名称" prop="bodgrp.col.pts.nam">
          <c-input v-model="model.bodgrp.col.pts.nam" maxlength="40" placeholder="请输入代收行名称" disabled></c-input>
wangyanjiao committed
160 161 162
        </el-form-item>
      </c-col>
      <c-col :span="24">
nanrui committed
163 164
        <el-form-item label="付款人" prop="bodgrp.dre.pts.ref">
          <c-input v-model="model.bodgrp.dre.pts.ref" maxlength="16" placeholder="请输入付款人" disabled></c-input>
wangyanjiao committed
165 166 167
        </el-form-item>
      </c-col>
      <c-col :span="24">
nanrui committed
168 169
        <el-form-item label="付款人名称" prop="bodgrp.dre.pts.nam">
          <c-input v-model="model.bodgrp.dre.pts.nam" maxlength="40" placeholder="请输入付款人名称" disabled></c-input>
wangyanjiao committed
170 171 172
        </el-form-item>
      </c-col>

173 174 175 176 177 178 179
      <c-docpre 
      :model="model" 
      :argadr="{
        path:'bodgrp.blk.docpre',
        grp: 'botp',
        code:'docpre'
      }"></c-docpre>
wangyanjiao committed
180 181 182 183 184 185 186 187 188 189 190 191 192 193 194

    </c-col>




  </c-row>
</template>
<script>
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";
195
import Docpre from "~/views/Public/Docpre";
wangyanjiao committed
196 197

export default {
198 199
  components: { "c-ptap": Ptap ,
    "c-docpre": Docpre,},
wangyanjiao committed
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238
  inject: ['root'],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {
      columns: ['0 0 "lst1" 100 ', '1 1 "lst2" 100', '2 2 "document" 200'],
      codeTable: [
        { label: "Airway Bills", value: "Airway Bills" },
        { label: "Beneficiary's Declaration", value: "Beneficiary's Declaration" },
        { label: "Bill of Lading Copies", value: "Bill of Lading Copies" },
        { label: "Bill of Lading Originals", value: "Bill of Lading Originals" },
        { label: "Certificate", value: "Certificate" },
        { label: "Certificate of Analysis", value: "Certificate of Analysis" },
        { label: "Certificate of Origin", value: "Certificate of Origin" },
        { label: "Certificate of Quality", value: "Certificate of Quality" },
        { label: "Certificate of Quantity", value: "Certificate of Quantity" },
        { label: "Commercial Invoice", value: "Commercial Invoice" },
        { label: "Courier Receipt", value: "Courier Receipt" },
        { label: "Draft", value: "Draft" },
        { label: "Export Licence", value: "Export Licence" },
        { label: "Fax Report", value: "Fax Report" },
        { label: "Inspection Cert", value: "Inspection Cert" },
        { label: "Insurance Policy", value: "Insurance Policy" },
        { label: "Packing List", value: "Packing List" },
        { label: "Shipment Advice", value: "Shipment Advice" },
        { label: "Weight List", value: "Weight List" },
      ],
      TableValue: [
        {
          id: 0,
          cmail1: "",
          cmail2: "",
          docnam: "",
          description: "",
          serialNum: "",
          tableName: "",
          tcddoc: "",
        },
      ],
huangxin committed
239
      matpertyp: [
nanrui committed
240
        { label: "天", value: "D" },
huangxin committed
241 242
        { label: "Months", value: "M" },
    ],
wangyanjiao committed
243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280
      newValue: {
        id: 0,
        cmail1: "",
        cmail2: "",
        docnam: "",
        description: "",
        serialNum: "",
        tableName: "",
        tcddoc: "",
      },

    }
  },
  methods: {
    ...Event,
    addTableValue(index) {
      var newTableValue = Object.assign({}, this.newValue);
      const serial = Utils.generateUUID();
      newTableValue.serialNum = serial;
      this.model.botp.docgrdm.docgrd.splice(index - 1, 0, newTableValue);
    },
    deleteTable(index) {
      this.model.botp.docgrdm.docgrd.splice(index, 1);
    },
  },

  created: function () {
    console.log(this.root);
  }
}
</script>
<style>
.messageLabel>>>.el-form-item__label {
  text-align: left;
  font-weight: bold;
  font-size: 12px;
}
</style>