Shpdet.vue 9.8 KB
Newer Older
zhoutian committed
1 2
<template>
  <div class="eibs-tab">
lianyang committed
3 4 5 6 7

       <!--=== ==========左边=============== -->
    <c-col :span="11"> 
      <c-col :span="24">
        <el-form-item label="Release of Goods" prop="brdgrp.rec.relgodflg">
lianyang committed
8
            <c-select v-model="model.brdgrp.rec.relgodflg" style="width:100%" placeholder="请选择Release of Goods" :code="codes.relgod">
zhoutian committed
9 10
              </c-select>
        </el-form-item>
lianyang committed
11 12 13 14
      </c-col>

      <c-col :span="24">
        <el-form-item label="Release Type" prop="brdgrp.rec.reltyp">
lianyang committed
15 16
            <c-select v-model="model.brdgrp.rec.reltyp" style="width:100%" placeholder="请选择Release Type"
            :code="codes.reltyp1">
zhoutian committed
17 18
              </c-select>
        </el-form-item>
lianyang committed
19 20 21 22 23
      </c-col>

      <c-col :span="12">
        <el-form-item label="issue date" prop="brdgrp.rec.relgoddat">
            <c-date-picker type="date"  v-model="model.brdgrp.rec.relgoddat" style="width:100%"  placeholder="请选择issue date"></c-date-picker>
zhoutian committed
24
        </el-form-item>
lianyang committed
25 26 27 28
      </c-col>
      <c-col :span="12">
        <el-form-item label="Expiry Date " prop="brdgrp.rec.expdat">
            <c-date-picker type="date"  v-model="model.brdgrp.rec.expdat" style="width:100%"  placeholder="请选择Expiry Date of Shipping Guarantee"></c-date-picker>
zhoutian committed
29
        </el-form-item>
lianyang committed
30 31 32 33 34
      </c-col>

      <c-col :span="24">
        <el-form-item label="Transport Doc. Type" prop="brdgrp.rec.trpdoctyp">
            <c-select v-model="model.brdgrp.rec.trpdoctyp" style="width:100%" placeholder="请选择Transport Doc. Type">
zhoutian committed
35 36
              </c-select>
        </el-form-item>
lianyang committed
37 38 39 40 41
      </c-col>

      <c-col :span="24">
        <el-form-item label="Transport Doc. No." prop="brdgrp.rec.trpdocnum">
            <c-input  v-model="model.brdgrp.rec.trpdocnum" maxlength="40"  placeholder="请输入Transport Doc. No."></c-input>
zhoutian committed
42
        </el-form-item>
lianyang committed
43 44 45 46 47 48 49 50 51 52 53
      </c-col>

      <c-col :span="24">
        <el-form-item label="shipment date" prop="brdgrp.rec.tradat">
            <c-date-picker type="date"  v-model="model.brdgrp.rec.tradat" style="width:100%"  placeholder="请选择shipment date"></c-date-picker>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Mode of Transport" prop="brdgrp.rec.tramod">
            <c-select v-model="model.brdgrp.rec.tramod" style="width:100%" placeholder="请选择Mode of Transport">
zhoutian committed
54 55
              </c-select>
        </el-form-item>
lianyang committed
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
      </c-col>

      <c-col :span="24">
        <el-form-item label="Vessel Name" prop="brdgrp.blk.vesnam">
            <c-input  v-model="model.brdgrp.blk.vesnam" maxlength="40"  placeholder="请输入Vessel Name"></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Port of Discharge" prop="brdgrp.blk.pordis">
            <c-input  v-model="model.brdgrp.blk.pordis" maxlength="40"  placeholder="请输入Port of Discharge"></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Place of Delivery" prop="brdgrp.blk.delplc">
            <c-input  v-model="model.brdgrp.blk.delplc" maxlength="40"  placeholder="请输入Place of Delivery"></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Covered Goods" prop="brdgrp.blk.roggod">
            <c-input type="textarea" v-model="model.brdgrp.blk.roggod" maxlength="40" show-word-limit placeholder="请输入Covered Goods" ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Port of loading" prop="brdgrp.blk.porlod">
            <c-input  v-model="model.brdgrp.blk.porlod" maxlength="40"  placeholder="请输入Port of loading"></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Voyage numer" prop="brdgrp.blk.voynum">
            <c-input  v-model="model.brdgrp.blk.voynum" maxlength="30"  placeholder="请输入Voyage numer"></c-input>
        </el-form-item>
      </c-col>
    </c-col>
                <!--=== ==========右边=============== -->
    <c-col :span="11" :offset="1">
      <c-col :span="24">
        <el-form-item label="Contract Number" prop="brtp.connum">
            <c-input  v-model="model.brtp.connum" maxlength="35"  placeholder="请输入Contract Number"></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label=" ">
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Carrier" prop="brdgrp.blk.carnam">
            <c-input  v-model="model.brdgrp.blk.carnam" maxlength="35"  placeholder="请输入Carrier"></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="B/L Number" prop="brdgrp.rec.blnum">
            <c-input  v-model="model.brdgrp.rec.blnum" maxlength="20"  placeholder="请输入B/L Number"></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label=" ">
        </el-form-item>
      </c-col>

124
      <c-col :span="20">
lianyang committed
125 126 127 128 129
        <el-form-item label="Release to Address" prop="brdgrp.blk.relstoadr">
            <c-input type="textarea" v-model="model.brdgrp.blk.relstoadr" maxlength="35" show-word-limit placeholder="请输入Release to Address" 
            rows="4"></c-input>
        </el-form-item>
      </c-col>
130 131 132 133 134 135 136 137
      <c-col :span="4">
        <el-form-item label="" label-width="0" prop="brdgrp.rec.rtoaplflg">
          <c-checkbox v-model="rtoaplflg" @change="rtoaplflgChangeEvent">to Applicant</c-checkbox>
          <!-- <el-input v-model="model.brdgrp.rec.rtoaplflg"></el-input> -->
        </el-form-item>
        
        <!-- <c-checkbox v-model="model.brdgrp.rec.rtoaplflg">to Applicant</c-checkbox> 简化model前,,原始-->
        <!-- Release Goods to Applicant? -->
lianyang committed
138 139 140
      </c-col>

      <c-col :span="24">
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157
        <c-ptap1
          :model="model"
          :argadr="{
            title: 'Shapping Company',
            grp: 'brdgrp',
            rol: 'shp',
          }"
          :disabled="true"
          :isAdrblk="false"
          disabled1
        >
        </c-ptap1>
        <!-- brdgrp.shp.pts.extkey  对应grp: 'brdgrp',  rol: 'prb',-->
      </c-col>
          

      <!-- <c-col :span="24">
lianyang committed
158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173
        <el-form-item label="Drag  Drop Sender" prop="brtp.shpp.ptsget.sdamod.dadsnd">
            <c-input  v-model="model.brtp.shpp.ptsget.sdamod.dadsnd"  placeholder="请输入Drag  Drop Sender"></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="External Key of Address" prop="brdgrp.shp.pts.extkey">
            <c-input  v-model="model.brdgrp.shp.pts.extkey" maxlength="16"  placeholder="请输入External Key of Address"></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="12">
        <el-form-item label="" prop="brtp.shpp.ptsget.sdamod.seainf">
            <c-input  v-model="model.brtp.shpp.ptsget.sdamod.seainf"  placeholder="请输入"></c-input>
        </el-form-item>
      </c-col>
zhoutian committed
174
                  
lianyang committed
175
      <c-col :span="12">
zhoutian committed
176
        <c-button size="small" type="primary"  @click="onShppDet">
lianyang committed
177
            Details
zhoutian committed
178
        </c-button>
179
      </c-col> -->
lianyang committed
180

181
      <!-- <c-col :span="24">
lianyang committed
182 183 184 185 186 187 188 189 190
        <el-form-item label="名称" prop="brdgrp.shp.namelc">
            <c-input type="textarea" v-model="model.brdgrp.shp.namelc" maxlength="35" show-word-limit placeholder="请输入名称" ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="Address Block" prop="brdgrp.shp.pts.adrblk">
            <c-input type="textarea" v-model="model.brdgrp.shp.pts.adrblk" maxlength="35" show-word-limit placeholder="请输入Address Block" ></c-input>
        </el-form-item>
191
      </c-col> -->
zhoutian committed
192
                  
193
      <!-- <c-col :span="24">
lianyang committed
194 195 196 197 198 199 200 201 202
        <el-form-item label="Chinese address" prop="brdgrp.shp.dbfadrblkcn">
            <c-input type="textarea" v-model="model.brdgrp.shp.dbfadrblkcn" maxlength="35" show-word-limit placeholder="请输入Chinese address" ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
        <el-form-item label="地址" prop="brdgrp.shp.adrelc">
            <c-input type="textarea" v-model="model.brdgrp.shp.adrelc" maxlength="35" show-word-limit placeholder="请输入地址" ></c-input>
        </el-form-item>
203
      </c-col> -->
lianyang committed
204 205 206 207 208 209 210 211

      <c-col :span="24">
        <el-form-item label="Notify Party" prop="brdgrp.blk.notpty">
            <c-input type="textarea" v-model="model.brdgrp.blk.notpty" maxlength="35" show-word-limit placeholder="请输入Notify Party" ></c-input>
        </el-form-item>
      </c-col>

      <c-col :span="24">
zhoutian committed
212
        <el-form-item label="Goods code" prop="brdgrp.rec.ngrcod">
213 214
            <c-select v-model="model.brdgrp.rec.ngrcod" style="width:100%" placeholder="请选择Goods code"
            :code="codes.bnrsec">
zhoutian committed
215 216
              </c-select>
        </el-form-item>
lianyang committed
217 218
      </c-col>
    </c-col>
zhoutian committed
219 220 221 222 223 224 225
  </div>
</template>
<script>
import Api from "~/service/Api"
import commonProcess from "~/mixin/commonProcess";
import CodeTable from "~/config/CodeTable"
import Event from "~/model/Brtdck/Event"
226
import Ptap1 from "~/views/Public/Ptap1"
zhoutian committed
227 228

export default {
229 230 231 232 233
  components: {
    "c-ptap1": Ptap1,
    // "c-ptap": Ptap,
    // "c-ptsmsg": Ptsmsg,
  },
zhoutian committed
234 235 236 237 238 239 240 241
    inject: ['root'],
    props:["model","codes"],
    mixins: [commonProcess],
    data(){
        return {

        }
    },
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261
    computed:{
      rtoaplflg:{
        get() {
              return this.model.brdgrp.rec.rtoaplflg != ''
          },
          set(val) {
              this.model.brdgrp.rec.rtoaplflg = val ? "X" : ""
          }
      }
    },
    methods:{
      ...Event,
      rtoaplflgChangeEvent() {
        this.executeDefault("brdgrp.rec.rtoaplflg").then((res) => {
          if ((res.respCode == SUCCESS)) {
            Utils.copyValueFromVO(this.model, res.data);
          }
        });
      },
    },
zhoutian committed
262 263 264 265 266 267 268 269
    created:function(){

    }
}
</script>
<style>

</style>