Shpgua.vue 4.37 KB
Newer Older
fukai committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145
<template>
  <div class="eibs">
    <!-- ================= 左 ================== -->
    <c-col :span="12" style="padding-right: 20px">
      <c-col :span="24">
        <el-form-item label="Shipping Gua. Ref." prop="brdgrp.rec.shgref">
          <c-fullbox>
            <c-input
              disabled
              v-model="model.brdgrp.rec.shgref"
              maxlength="16"
              placeholder="请输入提货担保编号"></c-input>
            <template slot="footer">
              <c-button size="small" type="primary" @click="queryShgref"> 获取 </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <c-col :span="24" class="custom-box-wrap">
          <el-form-item label="Amount of Shipment" prop="brdgrp.cbs.max.cur">
            <c-select-cur
              dbCode="curtxt"
              disabled
              placeholder="请选择币种"
              style="width: 115px"
              v-model="model.brdgrp.cbs.max.cur">
            </c-select-cur>
          </el-form-item>
        <div class="box-3">
          <el-form-item label-width="5px" prop="brdgrp.cbs.max.amt">
            <c-input-currency
              :currency="model.brdgrp.cbs.max.cur"
              placeholder="请输入金额"
              v-model="model.brdgrp.cbs.max.amt"></c-input-currency>
          </el-form-item>
        </div>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Shipping Mark" prop="shpmar">
          <c-input
            :rows="3"
            type="textarea"
            v-model="model.shpmar"
            maxlength="320"
            show-word-limit
            placeholder="请输入装运备注"></c-input>
        </el-form-item>
      </c-col>
    </c-col>

    <!-- ================右  ==================== -->
    <c-col :span="12" style="padding-left: 20px">
      <c-col :span="24">
        <el-form-item label="Document Number" prop="brdgrp.rec.ownref">
          <c-fullbox>
            <c-input disabled v-model="model.brdgrp.rec.ownref" maxlength="16" placeholder="请输入单据编号"></c-input>
            <template slot="footer">
              <c-button size="small" type="primary" @click="Butgetref"> 获取 </c-button>
            </template>
          </c-fullbox>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="Pieces in Total" prop="pietat">
          <c-input v-model="model.pietat" maxlength="80" placeholder="请输入货物总件数(大写)"></c-input>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="担保银行" prop="guabnkval">
          <c-input v-model="model.guabnkval" maxlength="40" style="width: 100%" placeholder="请输入担保银行"></c-input>
          <span style="font-size: 12px; color: #606266">(提货担保面函落款)</span>
        </el-form-item>
      </c-col>
      <c-col :span="24">
        <el-form-item label="发票类型" prop="brdgrp.rec.invtyp">
          <c-select v-model="model.brdgrp.rec.invtyp" style="width: 100%" placeholder="请选择发票类型" dbCode="invtyp">
          </c-select>
        </el-form-item>
      </c-col>
    </c-col>
  </div>
</template>
<script>
import Api from "~/service/Api";
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable";
import Event from "../event";

export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess, Event],
  data() {
    return {
      ptsaddg: {
        columns: [
          {
            title: "角色",
            width: "120px",
            dataIndex: "rol",
            show: "select",
          },
          {
            title: "当事人",
            width: "180px",
            dataIndex: "ptyextkey",
            show: "input",
          },
          {
            title: "名称",
            width: "250px",
            dataIndex: "nam",
          },
          {
            title: "参考号",
            width: "250px",
            dataIndex: "ref",
          },
        ],
        urls: "litp.ptsaddp.ptsaddg",
      },
    };
  },
  methods: {
    handleEdit() {
      console.log("1111测试");
    },

    addRow() {},
    removeRow() {},
  },
  created: function () {
    this.ptypValue = "prb";
  },
  watch: {
    "model.brdgrp.rec.docprbrol": {
      handler(val, oldval) {
        this.ptypValue = val.toLowerCase();
      },
    },
  },
};
</script>
<style></style>