Dscins.vue 6.96 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 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212
<template>
	<div class="eibs-tab">
		<c-col :span="24">
			<!-- ==================左边================ -->
			<c-col :span="12" style="padding-right: 20px">
        <c-col :span="24">
					<el-form-item label="不符点" prop="bfdgrp.blk.docdis">
						<c-mul-row-input :disabled="model.bfdgrp.blk.docdisflg!='X'" type="textarea" v-model="model.bfdgrp.blk.docdis" :cols="50" :rows="70" :autosize="{ minRows: 8, maxRows: 8}"  placeholder="请输入"></c-mul-row-input>
					</el-form-item>
				</c-col>
      <c-col :span="24" v-show="false">
        <el-form-item label="不符点">
          <c-input type="textarea" :rows="8" v-model="docdistxt" maxlength="3500" show-word-limit></c-input>
        </el-form-item>
      </c-col>

				<c-col :span="24">
					<el-form-item label="内部不符点" prop="bfdgrp.blk.intdis">
						<c-mul-row-input type="textarea" v-model="model.bfdgrp.blk.intdis" :cols="65" :rows="20" :autosize="{ minRows: 8, maxRows: 8}" placeholder="请输入"></c-mul-row-input>
					</el-form-item>
				</c-col>

				<c-col :span="24">
					<el-form-item label="注释和结论" prop="bfdgrp.blk.comcon">
						<c-mul-row-input  type="textarea" v-model="model.bfdgrp.blk.comcon" :cols="65" :rows="20" :autosize="{ minRows: 8, maxRows: 8}" placeholder="请输入"></c-mul-row-input>
					</el-form-item>
				</c-col>

				<c-col :span="24">
					<el-form-item label="结算指示" prop="bfdgrp.blk.setinsbe">
						<c-mul-row-input type="textarea" v-model="model.bfdgrp.blk.setinsbe" :cols="65" :rows="6" :autosize="{ minRows: 6, maxRows: 6}" placeholder="请输入"></c-mul-row-input>
					</el-form-item>
				</c-col>
			</c-col>

			<!-- ============右边================= -->
			<c-col :span="12" style="padding-left: 20px">
      <c-col :span="24">
				<el-form-item class="checkbox-left">
					<c-checkbox true-label="X" false-label="" v-model="model.bfdgrp.blk.igndisflg" >忽略不符点</c-checkbox>
				</el-form-item>
			</c-col>

				<c-col :span="24">
					<el-form-item class="checkbox-left">
						<c-checkbox true-label="X" false-label="" v-model="model.bfdgrp.blk.docdisflg">录入不符点</c-checkbox>
					</el-form-item>
				</c-col>

				<c-col :span="24">
					<el-form-item label="寄单状态" prop="bftp.folwupopt">
						<c-select v-model="model.bftp.folwupopt" dbCode="WUPOPT" :filterKey="['C','A','W','B']" style="width:100%" placeholder="请输入">
						</c-select>
					</el-form-item>
				</c-col>

				<c-col :span="24">
					<el-form-item class="checkbox-left">
						<c-checkbox true-label="X" false-label="" v-model="model.bfdgrp.rec.approvcod">直接不符点寄单</c-checkbox>
					</el-form-item>
				</c-col>

				<c-col :span="24">
					<el-form-item label="扣减金额" prop="bfdgrp.rec.lescom">
              <c-input-currency  v-model="model.bfdgrp.rec.lescom" placeholder="请输入扣减金额"></c-input-currency>
          </el-form-item>
				</c-col>

				<c-col :span="24">
					<el-form-item label="是否议付" prop="yf">
						<c-select v-model="model.yf"  dbCode="yfcode" style="width:100%" placeholder="请输入"></c-select>
					</el-form-item>
				</c-col>

        <c-col :span="24">
          <el-form-item label="信用证编号" prop="dedgrp.rec.kzref">
            <c-input  v-model="model.dedgrp.rec.kzref" maxlength="35" placeholder="请输入"></c-input>
          </el-form-item>
        </c-col>
			</c-col>
		</c-col>
	</div>
</template>
<script>
import event from "../event";
import moment from "moment";
import BigNumber from "bignumber.js";
export default {
  inject: ["root"],
  props: ["model", "codes"],
  mixins: [event],
  data() {
    return {};
  },
  created() {},
  computed: {
    docdistxt: {
      get() {
        let descr = "";
        let cr = "\n";
        if (this.isInDisplay) {
          return this.model.bfdgrp.blk.docdis;
        }
        if (
          this.model.bfdgrp.blk.modifySet &&
          this.model.bfdgrp.blk.modifySet.includes("docdis")
        ) {
          return this.model.bfdgrp.blk.docdis;
        }
        if (
          this.model.bfdgrp.rec.shpdat != null &&
          this.model.bfdgrp.rec.shpdat != "" &&
          this.model.dedgrp.rec.shpdat != null &&
          this.model.dedgrp.rec.shpdat != ""
        ) {
          if (
            moment(this.model.bfdgrp.rec.shpdat).diff(
              moment(this.model.dedgrp.rec.shpdat),
              "days"
            ) > 0
          ) {
            descr = descr + "Late shipment." + cr;
          }
        }
        if (
          this.model.bfdgrp.rec.rcvdat != null &&
          this.model.bfdgrp.rec.rcvdat != "" &&
          this.model.dedgrp.rec.expdat != null &&
          this.model.dedgrp.rec.expdat != ""
        ) {
          if (
            moment(this.model.bfdgrp.rec.rcvdat).diff(
              moment(this.model.dedgrp.rec.expdat),
              "days"
            ) > 0
          ) {
            descr = descr + "Documents received after expiry of the LC." + cr;
          }
        }
        if (new BigNumber(this.model.dedgrp.cbs.opn1.amt)< 0) {
          descr =
            descr +
            "The LC is overdrawn by " +
            this.model.bfdgrp.cbs.max.cur +
            " " +
            new BigNumber(this.model.dedgrp.cbs.opn1.amt) +
            cr;
        }
        if (
          this.model.dedgrp.rec.shppar == "NALW" &&
          this.model.dedgrp.rec.utlnbr >= 1
        ) {
          descr = descr + "Partial shipment effected." + cr;
        }
        if (this.model.bfdgrp.rec.doctypcod == "P") {
          if (
            this.model.dedgrp.rec.avbby == "A" ||
            this.model.dedgrp.rec.avbby == "D"
          ) {
            descr = descr + "Sight draft presented in stead of Usance." + cr;
          }
          if (this.model.dedgrp.rec.avbby == "M") {
            descr =
              descr +
              "Only Sight draft presented instead of mixed payment." +
              cr;
          }
        }
        if (
          this.model.bfdgrp.rec.doctypcod == "A" ||
          this.model.bfdgrp.rec.doctypcod == "D"
        ) {
          if (this.model.dedgrp.rec.avbby == "P") {
            descr = descr + "Usance draft presented instead of Sight." + cr;
          }
          if (this.model.dedgrp.rec.avbby == "M") {
            descr =
              descr +
              "Only Usance drafts presented instead of mixed payment." +
              cr;
          }
        }
        if (this.model.bfdgrp.rec.doctypcod == "M") {
          if (this.model.dedgrp.rec.avbby == "P") {
            descr =
              descr +
              "Mixed payment drafts presented instead of sight." +
              cr;
          }
          if (
            this.model.dedgrp.rec.avbby == "A" ||
            this.model.dedgrp.rec.avbby == "D"
          ) {
            descr =
              descr +
              "Mixed payment drafts presented instead of usance." +
              cr;
          }
        }
        this.model.bfdgrp.blk.docdis = descr;
        return descr;
      },
      set(newVal) {
        return newVal;
      }
    }

  }
};
</script>
<style>
</style>