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

LiRui committed
42
          <el-tab-pane label="备查/附言" name="addbcb">
hpj committed
43
            <c-content>
LiRui committed
44
              <m-addbcb :model="model" :codes="codes" />
45
            </c-content>
hpj committed
46 47 48
          </el-tab-pane>

          <!--PD000529 -->
LiRui committed
49
          <el-tab-pane label="报文/面函" name="docpan">
50 51 52
            <c-content>
              <m-docpan :model="model" :codes="codes" />
            </c-content>
hpj committed
53 54 55
          </el-tab-pane>

          <!--PD000546 -->
LiRui committed
56
          <el-tab-pane label="附件信息" name="doctre">
57 58 59
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
60 61
          </el-tab-pane>

hpj committed
62 63 64 65 66 67 68
        </c-tabs>
      </el-form>
      <c-grid-ety-prompt-dialog
        ref="etyDialog"
        :promptData="promptData"
        v-on:select-ety="selectEty"
      ></c-grid-ety-prompt-dialog>
69 70 71 72 73 74 75
      <c-grid-ety-prompt-dialog
        ref="doxpDialog"
        :isPty="false"
        :promptData="promptData"
        @select-ety="selectMsg"
      >
      </c-grid-ety-prompt-dialog>
LiRui committed
76 77 78 79 80 81 82 83 84 85
      
      <!-- <c-bus-button :$pntvm="this"></c-bus-button> j加操作按钮-->
      <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
      </c-function-btn>
    </c-page>
  </div>
hpj committed
86 87
</template>
<script>
88 89 90 91 92 93 94 95 96 97
import Api from '~/service/Api'
import Utils from '~/utils/index'
import CodeTable from '~/config/CodeTable'
import Letnot from '~/model/Letnot'
import commonProcess from '~/mixin/commonProcess'
import commonFuncs from '~/mixin/commonFuncs'
import Check from '~/model/Letnot/Check'
import Default from '~/model/Letnot/Default'
import Pattern from '~/model/Letnot/Pattern'
import Ovwp from './Ovwp'
LiRui committed
98
import Addbcb from './Addbcb'
99
import Spcrcvp from './Spcrcvp'
hpj committed
100

wangna committed
101

102
import Setpan from '~/components/business/setmod/views'
103
import Glepan from '~/views/Public/Glepan'
104 105
import Docpan from '~/views/Public/Docpan'
import Doctre from '~/views/Public/Doctre'
hpj committed
106 107

export default {
108
  name: 'Letnot',
hpj committed
109
  components: {
110 111
    'm-ovwp': Ovwp,
    'm-setpan': Setpan,
112
    'm-glepan': Glepan,
113 114
    'm-docpan': Docpan,
    'm-doctre': Doctre,
LiRui committed
115
    'm-addbcb': Addbcb,
hpj committed
116 117 118 119
  },
  provide() {
    return {
      root: this,
120
    }
hpj committed
121
  },
122
  mixins: [commonProcess, commonFuncs], // 里面包含了Default、Check等的公共处理
hpj committed
123 124
  data() {
    return {
125 126
      tabVal: 'ovwp',
      trnName: 'letnot',
hpj committed
127 128 129 130 131 132
      model: new Letnot().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      rules: null,
      codes: { ...CodeTable },
LiRui committed
133
      activeNames: ["setpan"]
134
    }
hpj committed
135 136
  },
  methods: {
137 138 139 140 141 142
    myTabClick(tab) {
      this.tabClick(tab)
      /**
       *  do it yourself
       **/
    },
hpj committed
143 144
  },
  created: async function () {
145 146
    console.log('进入letnot交易')
    let rtnmsg = await this.init({})
hpj committed
147 148
    if (rtnmsg.respCode == SUCCESS) {
      //更新数据
149 150
      // Utils.copyValueFromVO(this.model, rtnmsg.data);
      this.updateModel(rtnmsg.data)
151
      //TODO 处理数据逻辑
hpj committed
152
      if (this.isInDisplay) {
153
        this.restoreDisplay()
hpj committed
154 155
      }
    } else {
156
      this.$notify.error({ title: '错误', message: '服务请求失败!' })
hpj committed
157 158
    }
  },
159
}
hpj committed
160
</script>
161
<style></style>