index.vue 4.13 KB
Newer Older
xionglin committed
1 2 3 4
<template>
  <div class="eContainer">
    <c-page title="出口信用证预开立">
      <el-form
WH committed
5 6 7 8 9 10 11
          :model="model"
          :rules="rules"
          ref="modelForm"
          label-width="120px"
          label-position="left"
          size="small"
          :validate-on-rule-change="false"
xionglin committed
12 13
      >
        <c-tabs
WH committed
14 15 16 17
            v-model="tabVal"
            ref="elment"
            type="card"
            @tab-click="tabClick"
xionglin committed
18 19 20
        >
          <el-tab-pane label="业务信息" name="ovwp">
            <c-content>
WH committed
21
              <m-ovwp :model="model" :codes="codes"/>
xionglin committed
22 23 24 25
            </c-content>
          </el-tab-pane>
          <el-tab-pane label="费用/账务" name="setmod">
            <c-content>
WH committed
26 27 28 29 30 31 32
              <m-setmod :model="model" :codes="codes"/>
            </c-content>
          </el-tab-pane>
          <el-tab-pane label="会计分录" name="glentry">
            <c-content>
              <!-- 会计分录 -->
              <m-glentry :model="model" :codes="codes"/>
xionglin committed
33 34 35 36 37
            </c-content>
          </el-tab-pane>

          <el-tab-pane label="备查/附言" name="addbcb">
            <c-content>
WH committed
38
              <m-addbcb :model="model" :codes="codes"/>
xionglin committed
39 40 41 42 43 44
            </c-content>
          </el-tab-pane>

          <!--PD000529 -->
          <el-tab-pane label="报文/面函" name="docpan">
            <c-content>
WH committed
45
              <m-docpan :model="model" :codes="codes"/>
xionglin committed
46 47 48 49 50 51
            </c-content>
          </el-tab-pane>

          <!--PD000546 -->
          <el-tab-pane label="附件信息" name="doctre">
            <c-content>
WH committed
52
              <m-doctre :model="model" :codes="codes"/>
xionglin committed
53 54 55 56 57 58
            </c-content>
          </el-tab-pane>

        </c-tabs>
      </el-form>
      <c-grid-ety-prompt-dialog
WH committed
59 60 61
          ref="etyDialog"
          :promptData="promptData"
          @select-ety="selectGridEtyPromptData"
xionglin committed
62 63
      ></c-grid-ety-prompt-dialog>
      <c-grid-ety-prompt-dialog
WH committed
64 65 66
          ref="doxpDialog"
          :isPty="false"
          :promptData="promptData"
xionglin committed
67 68
      >
      </c-grid-ety-prompt-dialog>
WH committed
69

xionglin committed
70 71
      <!-- <c-bus-button :$pntvm="this"></c-bus-button> j加操作按钮-->
      <c-function-btn
WH committed
72 73 74
          :handleSubmit="handleSubmit"
          :handleCheck="handleCheck"
          :handleStash="handleStash"
xionglin committed
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
      >
      </c-function-btn>
    </c-page>
  </div>
</template>
<script>

import CodeTable from '~/config/CodeTable'
import Letnot from '../model'
import event from "../event";
import Ovwp from './Ovwp'
import Addbcb from './Addbcb'
import formRules from '../model/check'
import operationFunc from "~/mixin/operationFunc";
import Setmod from "~/components/business/setmod/views";
WH committed
90
import Glentry from "~/components/business/glentry/views";
xionglin committed
91 92 93 94 95 96 97 98
import Docpan from "~/components/business/docpan/views";
import Doctre from "~/components/business/doctre/views";

export default {
  name: 'Letnot',
  components: {
    'm-ovwp': Ovwp,
    'm-setmod': Setmod,
WH committed
99
    'm-glentry': Glentry,
xionglin committed
100 101 102 103 104 105 106 107 108
    'm-docpan': Docpan,
    'm-doctre': Doctre,
    'm-addbcb': Addbcb,
  },
  provide() {
    return {
      root: this,
    }
  },
WH committed
109
  mixins: [event, operationFunc],
xionglin committed
110 111 112 113 114
  data() {
    return {
      tabVal: 'ovwp',
      trnName: 'letnot',
      model: new Letnot().data,
WH committed
115 116
      rules: formRules,
      codes: {...CodeTable},
WH committed
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
      activeNames: ["setmod"],
      promptData: {
        title: 'Select a Party',
        columns: [
          {
            prop: 'ptyInr',
            label: 'Party Number'
          },
          {
            prop: 'inr',
            label: 'Address Number'
          },
          {
            prop: 'branch',
            label: 'Branch Code'
          },
          {
            prop: 'bchName',
            label: 'Branch Name'
          },
          {
            prop: 'adrName',
            label: 'Address Name'
          },
          {
            prop: 'adr1',
            label: 'Address1'
          },
          {
            prop: 'locCty',
            label: 'City'
          },
          {
            prop: 'locZip',
            label: 'Zip'
          },
          {
            prop: 'bicCode',
            label: 'BIC'
          }
        ],
        data: []
      }
xionglin committed
160 161
    }
  },
WH committed
162 163 164
  mounted() {
    this.init()
  }
xionglin committed
165 166 167
}
</script>
<style></style>