Doxp.vue 3.75 KB
Newer Older
zhengxiaokui committed
1 2 3 4 5
<template>
  <c-row>
    <c-blkTextarea :model="model" v-bind="blk"> </c-blkTextarea>
    <br />
    <c-col v-if="dtyp === 'dogp'" :span="12">
6
      <el-form-item label="货物类型" :prop="`${rec}grp.rec.stagod`">
zhengxiaokui committed
7
        <c-select
zhengxiaokui committed
8
          v-model="model[`${rec}grp`].rec.stagod"
zhengxiaokui committed
9
          style="width: 100%"
10
          placeholder="请选择货物类型"
zhengxiaokui committed
11 12 13 14 15
          :code="codes.godcod"
        >
        </c-select>
      </el-form-item>
    </c-col>
zhengxiaokui committed
16
    <template v-else-if="dtyp === 'adcp'">
zhengxiaokui committed
17
      <c-col :span="20" class="letopn_adcp_cheak">
18 19 20
        <c-checkbox
          v-model="model[`${rec}grp`].rec.spcbenflg"
          :disabled="model[`${rec}grp`].blk.spcben != ''"
jianglong committed
21
          >受益人的特殊付款条款</c-checkbox
zhengxiaokui committed
22 23 24 25
        >
      </c-col>

      <c-col :span="20" class="letopn_adcp_cheak">
26 27 28 29
        <c-checkbox
          v-model="model[`${rec}grp`].rec.spcrcbflg"
          :disabled="model[`${rec}grp`].blk.spcrcb != ''"
        >
jianglong committed
30
          仅适用于银行的特殊付款条款</c-checkbox
zhengxiaokui committed
31 32 33 34
        >
      </c-col>

      <c-col :span="20" class="letopn_adcp_cheak">
zhengxiaokui committed
35
        <c-checkbox v-model="model[`${rec}grp`].rec.redclsflg"
36
          >红/绿条款选项</c-checkbox
zhengxiaokui committed
37 38 39 40 41 42 43 44
        >
      </c-col>
      <c-blkTextarea :model="model" v-bind="blk1"> </c-blkTextarea>
    </template>
  </c-row>
</template>
<script>
import Api from "~/service/Api";
wangren committed
45
import commonProcess from "~/mixin/commonProcess";
zhengxiaokui committed
46 47 48 49 50
import BlkTextarea from "./BlkTextarea";

export default {
  inject: ["root"],
  // dtyp=>dogp:货物描述;dorp:单据要求;adcp:附加条款;spcbenp:受益人特殊付款条款;spcrcvp:收款银行特殊付款条款
zhengxiaokui committed
51
  props: ["model", "codes", "dtyp", "rec"],
zhengxiaokui committed
52
  components: { "c-blkTextarea": BlkTextarea },
wangren committed
53
  mixins: [commonProcess],
zhengxiaokui committed
54 55
  data() {
    return {
zhengxiaokui committed
56
      blk: this.getBlk(this.dtyp, this.rec),
zhengxiaokui committed
57 58
      blk1: {
        blkMsg: {
59
          title: "给付款、承兑、议付行的指示",
zhengxiaokui committed
60
          dataUrl: `${this.rec}grp.blk.insbnk`, //字段所在model路劲
zhengxiaokui committed
61 62 63
          rows: 6,
          maxlength: 2000,
        },
zhengxiaokui committed
64
        rulePath: `${this.rec.slice(0, 2)}tp.insbnk.buttxmsel`,
zhengxiaokui committed
65 66 67 68
      },
    };
  },
  methods: {
zhengxiaokui committed
69
    getBlk(dtyp, rec) {
zhengxiaokui committed
70
      let blk = { blkMsg: {}, rulePath: "" };
zhengxiaokui committed
71
      let tp = rec.slice(0, 2);
zhengxiaokui committed
72 73 74
      switch (dtyp) {
        case "dogp":
          blk.blkMsg = {
75
            title: "货物/服务描述",
zhengxiaokui committed
76
            dataUrl: `${rec}grp.blk.lcrgod`, //字段所在model路劲
zhengxiaokui committed
77 78
            rows: 20,
          };
zhengxiaokui committed
79
          blk.rulePath = `${tp}tp.lcrgod.buttxmsel`;
zhengxiaokui committed
80 81 82
          break;
        case "dorp":
          blk.blkMsg = {
83
            title: "单据要求",
zhengxiaokui committed
84
            dataUrl: `${rec}grp.blk.lcrdoc`, //字段所在model路劲
zhengxiaokui committed
85 86
            rows: 20,
          };
zhengxiaokui committed
87
          blk.rulePath = `${tp}tp.lcrdoc.buttxmsel`;
zhengxiaokui committed
88 89 90
          break;
        case "adcp":
          blk.blkMsg = {
91
            title: "附加条款",
zhengxiaokui committed
92 93
            dataUrl: `${rec}grp.blk.adlcnd`, //字段所在model路劲
            rows: 14,
zhengxiaokui committed
94
          };
zhengxiaokui committed
95
          blk.rulePath = `${tp}tp.adlcnd.buttxmsel`;
zhengxiaokui committed
96 97 98
          break;
        case "spcbenp":
          blk.blkMsg = {
jianglong committed
99
            title: "受益人特殊付款条款",
zhengxiaokui committed
100
            dataUrl: `${rec}grp.blk.spcben`, //字段所在model路劲
zhengxiaokui committed
101 102
            rows: 20,
          };
zhengxiaokui committed
103
          blk.rulePath = `${tp}tp.spcben.buttxmsel`;
zhengxiaokui committed
104 105 106
          break;
        case "spcrcvp":
          blk.blkMsg = {
jianglong committed
107
            title: "仅适用于银行的特殊付款条款",
zhengxiaokui committed
108
            dataUrl: `${rec}grp.blk.spcrcb`, //字段所在model路劲
zhengxiaokui committed
109 110
            rows: 20,
          };
zhengxiaokui committed
111
          blk.rulePath = `${tp}tp.spcrcb.buttxmsel`;
zhengxiaokui committed
112 113 114 115 116 117 118 119 120 121 122
          break;
      }
      return blk;
    },
  },
  computed: {},
  created: function () {},
};
</script>
<style>
.letopn_adcp_cheak {
Wuyuqiu committed
123
  margin: 0px 0 10px 120px;
124 125
  display: flex;
  justify-content: flex-start;
zhengxiaokui committed
126 127
}
</style>