Doxp.vue 3.65 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
        <c-checkbox v-model="model[`${rec}grp`].rec.spcbenflg" :disabled="model[`${rec}grp`].blk.spcben!=''"
jianglong committed
19
          >受益人的特殊付款条款</c-checkbox
zhengxiaokui committed
20 21 22 23
        >
      </c-col>

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

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

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