Preperp.vue 7.87 KB
Newer Older
1 2
<template>
  <div class="eibs-tab">
liyixun committed
3 4 5 6 7 8
    <!-- <c-row> -->
    <c-col :span="24">
      <c-col :span="11">
        <c-col :span="24">
          <c-col :span="16">
            <c-form-item label="Delivery of Undertak." prop="gidgrp.rec.delori">
9 10 11 12 13
              <c-select
                :disabled="
                  model.gidgrp.rec.purpos == 'ICCO' ||
                  model.gidgrp.rec.purpos == 'ISCO'
                "
liyixun committed
14
                v-model="model.gidgrp.rec.delori"
15
                style="width: 100%"
liyixun committed
16
                placeholder="请选择Delivery of Undertak."
17 18
              >
                <el-option
liyixun committed
19
                  v-for="item in codes.delori1"
20 21 22 23 24 25
                  :key="item.value"
                  :label="item.label"
                  :value="item.value"
                >
                </el-option>
              </c-select>
liyixun committed
26
            </c-form-item>
27
          </c-col>
liyixun committed
28 29 30
          <c-col :span="8">
            <el-form-item label-width="5px" prop="gidgrp.rec.deloritxt">
              <c-input
31
                :disabled="
liyixun committed
32 33
                  model.gidgrp.rec.delori != 'COUR' &&
                  model.gidgrp.rec.delori != 'OTHR'
34
                "
liyixun committed
35 36 37 38
                v-model="model.gidgrp.rec.deloritxt"
                maxlength="35"
                placeholder="请输入Delivery of Undertak."
              ></c-input>
39 40
            </el-form-item>
          </c-col>
liyixun committed
41
        </c-col>
42

liyixun committed
43 44 45 46 47 48 49 50 51 52
        <c-col :span="24">
          <el-form-item label="Undertaking Send to" prop="gidgrp.rec.sndto">
            <c-select
              :disabled="
                model.gidgrp.rec.purpos == 'ICCO' ||
                model.gidgrp.rec.purpos == 'ISCO'
              "
              v-model="model.gidgrp.rec.sndto"
              style="width: 100%"
              placeholder="请选择Undertaking Send to"
liyixun committed
53
              :code="getValues('gidgrp.rec.sndto')"
liyixun committed
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
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="Deliv. To/Collection By" prop="gidgrp.rec.delto">
            <c-select
              :disabled="
                model.gidgrp.rec.purpos == 'ICCO' ||
                model.gidgrp.rec.purpos == 'ISCO'
              "
              v-model="model.gidgrp.rec.delto"
              style="width: 100%"
              placeholder="请选择Deliv. To/Collection By"
              :code="codes.delto"
            >
            </c-select>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="Delivery to Address" prop="gidgrp.blk.deltoadr">
            <c-input
              :disabled="
                model.gidgrp.rec.delto == '' && model.gidgrp.rec.purpos != ''
              "
              rows="4"
              type="textarea"
              v-model="model.gidgrp.blk.deltoadr"
              maxlength="210"
              show-word-limit
              placeholder="请输入Delivery to Address"
            ></c-input>
          </el-form-item>
        </c-col>

        <c-col :span="24">
          <el-form-item label="Transfer Conditions" prop="gidgrp.blk.trfcond">
            <c-input
              disabled
              type="textarea"
              rows="4"
              v-model="model.gidgrp.blk.trfcond"
              maxlength="6630"
              show-word-limit
              placeholder="请输入Transfer Conditions"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="11" :offset="1">
        <c-col :span="24">
          <el-form-item label="Own Charges Borne by" prop="gidgrp.rec.chato">
            <c-select
              v-model="model.gidgrp.rec.chato"
              style="width: 100%"
              placeholder="请选择Own Charges Borne by"
              :code="codes.gitopn_chato"
            >
            </c-select>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <el-form-item label="Charges">
            <c-fullbox>
              <template slot="footer">
                <c-checkbox v-model="model.gitp.chargi.chkast"
                  >Allow *</c-checkbox
                >
              </template>
            </c-fullbox>
          </el-form-item>
        </c-col>
        <c-col :span="24">
          <c-col :span="20">
131
            <el-form-item
liyixun committed
132 133
              label="Additional Details to Code for Charges"
              prop="gidgrp.blk.feetxt"
134 135 136
            >
              <c-input
                type="textarea"
liyixun committed
137 138
                rows="4"
                v-model="model.gidgrp.blk.feetxt"
139 140
                maxlength="210"
                show-word-limit
liyixun committed
141
                placeholder="请输入Additional Details to Code for Charges"
142 143 144
              ></c-input>
            </el-form-item>
          </c-col>
liyixun committed
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
          <c-col :span="4">
            <c-button
              style="margin: 5px 0 0 10px"
              size="small"
              type="primary"
              icon="el-icon-search"
              @click="onChargiButtxmsel"
            >
              ...
            </c-button>
          </c-col>
        </c-col>
        <c-col :span="24">
          <c-col :span="20">
            <el-form-item
              v-if="model.gitp.prepermodflg == ''"
              label="Presentation Instr."
              prop="gidgrp.blk.preper"
            >
164 165 166
              <c-input
                disabled
                type="textarea"
liyixun committed
167 168 169
                :rows="5"
                v-model="model.gidgrp.blk.preper"
                maxlength="6500"
170
                show-word-limit
liyixun committed
171
                placeholder="请输入Presentation Instr."
172 173 174
              ></c-input>
            </el-form-item>
            <el-form-item
liyixun committed
175 176 177
              v-if="model.gitp.prepermodflg == 'X'"
              label="Presentation Instr."
              prop="gidgrp.blk.atxpreper"
178
            >
liyixun committed
179 180 181 182 183 184 185 186 187
              <c-input
                type="textarea"
                :rows="5"
                v-model="model.gidgrp.blk.atxpreper"
                maxlength="6500"
                show-word-limit
                placeholder="请输入Presentation Instr."
                @blur="atxpreperBlur"
              ></c-input>
188 189
            </el-form-item>
          </c-col>
liyixun committed
190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219
          <c-col :span="4">
            <c-checkbox
              v-model="model.gitp.prepermodflg"
              style="margin: 0 0 0 10px"
              @change="modflgChange"
              >Modify Text</c-checkbox
            >
            <c-checkbox
              v-model="model.gitp.chkpreper"
              style="margin: 0 0 0 10px"
              >Allow *</c-checkbox
            >
            <c-button
              disabled
              size="small"
              type="primary"
              style="margin: 5px 0 0 10px; width: 100px"
              @click="onGitpButdifpreper"
            >
              vs. S&ystem
            </c-button>
            <c-button
              disabled
              size="small"
              style="margin: 5px 0 0 10px; width: 100px"
              type="primary"
              @click="onGitpButdifhispreper"
            >
              vs. &History
            </c-button>
220
          </c-col>
221
        </c-col>
222
      </c-col>
liyixun committed
223 224
    </c-col>
    <!-- </c-row> -->
225 226 227
  </div>
</template>
<script>
228
import Api from "~/service/Api";
229
import commonProcess from "~/mixin/commonProcess";
230 231 232
import CodeTable from "~/config/CodeTable";
import Event from "~/model/Gitopn/Event";
import Utils from "~/utils";
233 234

export default {
235 236 237 238 239 240
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [commonProcess],
  data() {
    return {};
  },
liyixun committed
241
  methods: {
242 243 244 245 246 247
    ...Event,
    async atxpreperBlur() {
      let rtnmsg = await this.executeRule("gidgrp.blk.atxpreper");
      if (rtnmsg.respCode == SUCCESS) {
        Utils.copyValueFromVO(this.model, rtnmsg.data);
      }
248 249
    },

liyixun committed
250
    async modflgChange() {
251 252 253 254
      let rtnmsg = await this.executeRule("gitp.prepermodflg");
      if (rtnmsg.respCode == SUCCESS) {
        Utils.copyValueFromVO(this.model, rtnmsg.data);
      }
liyixun committed
255 256
    },
  },
257 258
  created: function () {},
};
259 260 261
</script>
<style>
</style>