Doxpame.vue 5.4 KB
Newer Older
zhengxiaokui committed
1 2 3
<template>
  <c-row>
    <c-col :span="24">
LiRui committed
4
      <c-col :span="12" style="padding-right: 20px;">
zhengxiaokui committed
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
        <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
            ></c-input>
          </el-form-item>
        </c-col>
      </c-col>
LiRui committed
25
      <c-col :span="12" style="padding-left: 20px;">
zhengxiaokui committed
26
        <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

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

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

    <c-col :span="24">
LiRui committed
80
      <c-col :span="12" style="padding-right: 20px;">
zhengxiaokui committed
81
        <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
        </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>

LiRui committed
102
      <c-col :span="12" style="padding-left: 20px;" class="ame_button"> 
zhengxiaokui committed
103 104 105 106
        <c-col :span="24" class="ame_BlkTextarea_button">
          <c-button
            size="small"
            type="primary"
LiRui committed
107
            icon="el-icon-more"
zhengxiaokui committed
108 109 110 111 112 113 114
            @click="showGridPromptDialog('letamep.lcrgodame.buttxmsel')"
          >
          </c-button>
        </c-col>

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

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

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

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
163
  mixins: [commonProcess],
zhengxiaokui committed
164 165 166 167 168 169 170 171 172 173 174 175 176 177
  data() {
    return {
      amep: `${this.recgrp.substring(0, 2)}tamep`,
    };
  },
  methods: {
    onLcrgodamepButadd() {},
    onLcrgodamepButdif() {},
    onLcrgodamepButdel() {},
  },
  computed: {
    getTitle() {
      switch (this.ametyp) {
        case "lcrgod":
jianglong committed
178
          return "货物描述";
zhengxiaokui committed
179
        case "lcrdoc":
jianglong committed
180
          return "附加条款";
zhengxiaokui committed
181
        case "adlcnd":
jianglong committed
182
          return "单据要求";
zhengxiaokui committed
183
        case "spcben":
jianglong committed
184
          return "受益人特殊付款条款";
zhengxiaokui committed
185
        case "spcrcb":
jianglong committed
186
          return "仅适用于银行的特殊付款条款";
zhengxiaokui committed
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
        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>