Doxpame.vue 5.3 KB
Newer Older
zhengxiaokui committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
<template>
  <c-row>
    <c-col :span="24">
      <c-col :span="11">
        <c-col :span="24" class="doxpame_top_Description">
          <span>{{ getTitle }}</span>
        </c-col>
        <c-col>
          <el-form-item
            label=""
            label-width="0px"
            :prop="`${recgrp}.blk.${ametyp}`"
          >
            <c-input
              type="textarea"
              v-model="model[recgrp].blk[ametyp]"
              maxlength="52000"
              show-word-limit
              :rows="20"
jianglong committed
20
              placeholder="请输入货物描述"
zhengxiaokui committed
21 22 23 24 25 26
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
      <c-col :span="11" :offset="1">
        <c-col :span="24" class="doxpame_top_Description">
jianglong committed
27
          <span>历史修改记录</span>
zhengxiaokui committed
28 29 30 31 32 33 34 35 36 37 38 39
        </c-col>
        <c-col :span="24">
          <el-form-item
            label=""
            label-width="0px"
            :prop="`${recgrp}.blk.${ametyp}ame`"
          >
            <c-input
              type="textarea"
              v-model="model[recgrp].blk[`${ametyp}ame`]"
              maxlength="52000"
              show-word-limit
zhengxiaokui committed
40
              :rows="ametyp === 'adlcnd' ? 14 : 17"
jianglong committed
41
              placeholder="请输入货物描述历史信息"
zhengxiaokui committed
42 43 44
            ></c-input>
          </el-form-item>
        </c-col>
zhengxiaokui committed
45 46
        <c-col :span="24" v-if="ametyp === 'adlcnd'">
          <c-col :span="8">
zhengxiaokui committed
47
            <c-checkbox v-model="model[recgrp].rec.redclsflg"
jianglong committed
48
              >红/绿条款</c-checkbox
zhengxiaokui committed
49 50 51 52
            >
          </c-col>

          <c-col :span="16">
zhengxiaokui committed
53
            <c-checkbox v-model="model[recgrp].rec.spcbenflg"
jianglong committed
54
              >受益人特殊付款条款</c-checkbox
zhengxiaokui committed
55 56 57 58
            >
          </c-col>

          <c-col :span="16" :offset="8">
zhengxiaokui committed
59
            <c-checkbox v-model="model[recgrp].rec.spcrcbflg"
jianglong committed
60
              >仅适用于银行的特殊付款条款</c-checkbox
zhengxiaokui committed
61 62 63
            >
          </c-col>
        </c-col>
zhengxiaokui committed
64 65 66

        <c-col :span="24">
          <c-checkbox v-model="model[amep][`${ametyp}amep`].modflg"
jianglong committed
67
            >修改和替换文本</c-checkbox
zhengxiaokui committed
68 69 70 71 72
          >
        </c-col>

        <c-col :span="24">
          <c-checkbox v-model="model[amep][`${ametyp}amep`].modmanflg"
jianglong committed
73
            >修改和人手更新文本</c-checkbox
zhengxiaokui committed
74 75 76 77 78 79 80 81
          >
        </c-col>
      </c-col>
    </c-col>

    <c-col :span="24">
      <c-col :span="11">
        <c-col :span="24" class="doxpame_top_Description">
jianglong committed
82
          <span>在当前修订中添加/删除文本</span>
zhengxiaokui committed
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
        </c-col>
        <c-col :span="24">
          <el-form-item
            label=""
            label-width="0px"
            :prop="`${amep}.${ametyp}amep.usrblk`"
          >
            <c-input
              type="textarea"
              v-model="model[amep][`${ametyp}amep`].usrblk"
              maxlength="2000"
              show-word-limit
              :rows="8"
              placeholder="请输入Block to enter additional info for Add/Delete"
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>

      <c-col :span="11" :offset="1" class="ame_button">
        <c-col :span="24" class="ame_BlkTextarea_button">
          <c-button
            size="small"
            type="primary"
            icon="el-icon-search"
            @click="showGridPromptDialog('letamep.lcrgodame.buttxmsel')"
          >
            ...
          </c-button>
        </c-col>

        <c-col :span="24">
          <c-button size="small" type="primary" @click="onLcrgodamepButdif">
jianglong committed
116
            显示差异
zhengxiaokui committed
117 118 119 120 121
          </c-button>
        </c-col>

        <c-col :span="24">
          <c-button size="small" type="primary" @click="onLcrgodamepButadd">
jianglong committed
122
            添加文本
zhengxiaokui committed
123 124 125 126 127 128 129 130 131
          </c-button>
        </c-col>

        <c-col :span="24">
          <c-button
            size="small"
            icon="el-icon-delete"
            @click="onLcrgodamepButdel"
          >
jianglong committed
132
            删除文本
zhengxiaokui committed
133 134 135 136 137 138 139 140
          </c-button>
        </c-col>
      </c-col>
    </c-col>
  </c-row>
</template>
<script>
import Api from "~/service/Api";
wangren committed
141
import commonProcess from "~/mixin/commonProcess";
zhengxiaokui committed
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163

export default {
  inject: ["root"],
  props: {
    model: {
      type: Object,
      default: undefined,
    },
    codes: {
      type: Object,
      default: undefined,
    },
    recgrp: {
      type: String,
      default: "",
    },
    //修改字段:如货物lcrgod
    ametyp: {
      type: String,
      default: "",
    },
  },
wangren committed
164
  mixins: [commonProcess],
zhengxiaokui committed
165 166 167 168 169 170 171 172 173 174 175 176 177 178
  data() {
    return {
      amep: `${this.recgrp.substring(0, 2)}tamep`,
    };
  },
  methods: {
    onLcrgodamepButadd() {},
    onLcrgodamepButdif() {},
    onLcrgodamepButdel() {},
  },
  computed: {
    getTitle() {
      switch (this.ametyp) {
        case "lcrgod":
jianglong committed
179
          return "货物描述";
zhengxiaokui committed
180
        case "lcrdoc":
jianglong committed
181
          return "附加条款";
zhengxiaokui committed
182
        case "adlcnd":
jianglong committed
183
          return "单据要求";
zhengxiaokui committed
184
        case "spcben":
jianglong committed
185
          return "受益人特殊付款条款";
zhengxiaokui committed
186
        case "spcrcb":
jianglong committed
187
          return "仅适用于银行的特殊付款条款";
zhengxiaokui committed
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 213
        default:
          return "title 错误";
      }
    },
  },
  created: function () {},
};
</script>
<style>
.doxpame_top_Description {
  height: 16px;
  color: #606266;
  line-height: 16px;
  font-size: 12px;
}

.ame_BlkTextarea_button {
  margin-top: 20px;
}
.ame_button button {
  margin-bottom: 10px;
}
.ame_button button:nth-last-child(1) {
  margin-left: 10px;
}
</style>