index.vue 8.61 KB
Newer Older
niewei committed
1
<template>
2 3 4 5
  <!-- c-page标签加上影响大小 -->
  <!-- <c-page title="卖方信用证交易查询"> -->
  <!-- 顶部按钮区 -->
  <!--
niewei committed
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
        <div class="topBtnGroup">
            <c-button size="small" type="primary" v-show="showflg == true" icon="el-icon-arrow-right"
                @click="showflg=false">收起</c-button>
            <c-button size="small" type="primary" v-show="showflg == false" icon="el-icon-arrow-left"
                @click="showflg=true">展开</c-button>

            <div class="btnGroup" v-show="showflg == true && tabVal == 'infsea'">
                <c-button size="small" type="primary" icon="el-icon-search">Search</c-button>
                <c-button size="small" type="primary">Display</c-button>
                <c-button size="small" type="primary">Use</c-button>
                <c-button size="small" type="primary">Clear</c-button>
                <c-button size="small" type="primary">导Excel</c-button>
                <c-button size="small" type="primary">Exit</c-button>
            </div>

            <div class="btnGroup" v-show="showflg == true &&  (tabVal == 'ovwp' ||  tabVal == 'detp' || tabVal == 'coninfp' 
            || tabVal == 'trnpan' || tabVal == 'cbsinfp' || tabVal == 'cbeinfp' || tabVal == 'fepinfp' || tabVal == 'sepinfp' || tabVal == 'gleinfp' 
            || tabVal == 'smhinfp' || tabVal == 'peninfp' || tabVal == 'liainfp' || tabVal == 'prtpan' || tabVal == 'stament' || tabVal == 'stament' 
            || tabVal == 'stament' || tabVal == 'stament' 
            )">
                <c-button size="small" type="primary" icon="el-icon-search">Search</c-button>
                <el-button-group>
                    <c-button size="small" type="primary" icon="el-icon-arrow-left"></c-button>
                    <c-button size="small" type="primary" icon="el-icon-arrow-right"></c-button>
                </el-button-group>
                <c-button size="small" type="primary">Print</c-button>
                <c-button size="small" type="primary">Use</c-button>
                <c-button size="small" type="primary">Loginfo</c-button>
                <c-button size="small" type="primary">Exit</c-button>
            </div>

        </div>
      -->

  <div class="eContainer">
41 42 43 44 45 46 47 48 49 50 51
    <el-form
      :model="model"
      :rules="rules"
      ref="modelForm"
      label-width="110px"
      label-position="right"
      size="small"
      :validate-on-rule-change="false"
    >
      <!--PD000006 -->
      <!--
niewei committed
52 53 54
           <el-tab-pane label="查詢界面" name="infsea">
                <m-infsea :model="model" :codes="codes"/>
           </el-tab-pane>
niewei committed
55
           -->
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
      <c-content>
        <m-infsea
          v-show="!showPanel"
          @updateShowPanel="updateShowPanel($event)"
          :model="model"
          :codes="codes"
          ref="infsea"
        />
      </c-content>
      <c-tabs
        v-model="tabVal"
        v-show="showPanel"
        ref="elment"
        type="card"
        @tab-click="tabClick"
      >
        <!--PD000017 -->
        <el-tab-pane label="内容" name="ovwp">
          <m-ovwp :model="model" :codes="codes" />
        </el-tab-pane>

        <!--
niewei committed
78 79 80 81
           <el-tab-pane label="条款" name="detp">
                <m-detp :model="model" :codes="codes"/>
           </el-tab-pane>
 
niewei committed
82

niewei committed
83 84 85 86
           <el-tab-pane label="附言" name="coninfp">
                <m-coninfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
niewei committed
87

niewei committed
88 89 90 91
           <el-tab-pane label="Transactions" name="trnpan">
                <m-trnpan :model="model" :codes="codes"/>
           </el-tab-pane>
 
niewei committed
92

niewei committed
93 94 95 96
           <el-tab-pane label="余额信息" name="cbsinfp">
                <m-cbsinfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
niewei committed
97

niewei committed
98 99 100 101
           <el-tab-pane label="发生额信息" name="cbeinfp">
                <m-cbeinfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
niewei committed
102
 
niewei committed
103 104 105 106
           <el-tab-pane label="费用明细" name="fepinfp">
                <m-fepinfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
niewei committed
107

niewei committed
108 109 110 111
           <el-tab-pane label="临时账务" name="sepinfp">
                <m-sepinfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
niewei committed
112

niewei committed
113 114 115 116
           <el-tab-pane label="账务信息" name="gleinfp">
                <m-gleinfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
niewei committed
117

niewei committed
118 119 120 121
           <el-tab-pane label="面函、报文" name="smhinfp">
                <m-smhinfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
niewei committed
122

niewei committed
123 124 125 126
           <el-tab-pane label="经办信息" name="peninfp">
                <m-peninfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
niewei committed
127

niewei committed
128 129 130 131
           <el-tab-pane label="表外信息" name="liainfp">
                <m-liainfp :model="model" :codes="codes"/>
           </el-tab-pane>
 
niewei committed
132

niewei committed
133 134 135 136
           <el-tab-pane label="Print" name="prtpan">
                <m-prtpan :model="model" :codes="codes"/>
           </el-tab-pane>
 
niewei committed
137

niewei committed
138 139 140
           <el-tab-pane label="Order" name="ordpan">
                <m-ordpan :model="model" :codes="codes"/>
           </el-tab-pane>
niewei committed
141

niewei committed
142 143 144
           <el-tab-pane label="银行明细" name="detp1">
                <m-detp1 :model="model" :codes="codes"/>
           </el-tab-pane>
niewei committed
145

niewei committed
146 147 148 149 150
           <el-tab-pane label="明细" name="detp2">
                <m-detp2 :model="model" :codes="codes"/>
           </el-tab-pane>


niewei committed
151

niewei committed
152 153 154
           <el-tab-pane label="声明" name="stament">
                <m-stament :model="model" :codes="codes"/>
           </el-tab-pane>
niewei committed
155
           -->
156
      </c-tabs>
niewei committed
157 158
    </el-form>

159 160 161 162 163 164 165 166 167 168 169
    <c-button
      v-show="showPanel"
      style="margin-left: 75%; bottom: 10%; position: sticky"
      size="small"
      @click="goBack()"
    >
      <!-- @click="getDitSelInfo(scope.$index, scope.row)" -->
      返回
    </c-button>
  </div>
  <!-- </c-page> -->
niewei committed
170 171
</template>
<script>
niewei committed
172
import Utils from "~/utils/index";
173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197
import Api from "~/service/Api";
import CodeTable from "~/config/CodeTable";
import Infdet from "~/model/Infdet";
import commonProcess from "~/mixin/commonProcess";
import Check from "~/model/Infdet/Check";
import Default from "~/model/Infdet/Default";
import Pattern from "~/model/Infdet/Pattern";
import Infsea from "./Infsea";
import Ovwp from "./Ovwp";
import Detp from "./Detp";
import Coninfp from "./Coninfp";
import Trnpan from "./Trnpan";
import Cbsinfp from "./Cbsinfp";
import Cbeinfp from "./Cbeinfp";
import Fepinfp from "./Fepinfp";
import Sepinfp from "./Sepinfp";
import Gleinfp from "./Gleinfp";
import Smhinfp from "./Smhinfp";
import Peninfp from "./Peninfp";
import Liainfp from "./Liainfp";
import Prtpan from "./Prtpan";
import Ordpan from "./Ordpan";
import Detp1 from "./Detp1";
import Detp2 from "./Detp2";
import Stament from "./Stament";
niewei committed
198 199

export default {
200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244
  name: "Infdet",
  components: {
    "m-infsea": Infsea,
    "m-ovwp": Ovwp,
    "m-detp": Detp,
    "m-coninfp": Coninfp,
    "m-trnpan": Trnpan,
    "m-cbsinfp": Cbsinfp,
    "m-cbeinfp": Cbeinfp,
    "m-fepinfp": Fepinfp,
    "m-sepinfp": Sepinfp,
    "m-gleinfp": Gleinfp,
    "m-smhinfp": Smhinfp,
    "m-peninfp": Peninfp,
    "m-liainfp": Liainfp,
    "m-prtpan": Prtpan,
    "m-ordpan": Ordpan,
    "m-detp1": Detp1,
    "m-detp2": Detp2,
    "m-stament": Stament,
  },
  provide() {
    return {
      root: this,
    };
  },
  mixins: [commonProcess], // 里面包含了Default、Check等的公共处理
  data() {
    return {
      tabVal: "",
      trnName: "infdet",
      model: new Infdet().data,
      checkRules: Check,
      defaultRules: Default,
      pattern: Pattern,
      showPanel: false,
      rules: null,
      codes: { ...CodeTable },
      showflg: true,
    };
  },
  methods: {
    tabClick(tab) {
      const name = tab.name;
      let rulePath;
niewei committed
245

246 247 248 249 250 251
      if (name === "fepinfp") {
        rulePath = "infcon.fepinfp";
      }
      if (name === "coninfp") {
        rulePath = "coninf.coninfp";
      }
niewei committed
252

253 254 255 256
      if (!!rulePath) {
        this.executeRule(rulePath).then((res) => {
          if (res.respCode == SUCCESS) {
            this.updateModel(res.data);
niewei committed
257
          }
258 259 260
        });
      }
    },
niewei committed
261

262 263 264 265 266 267 268 269 270 271 272
    initPanel(val) {
      if (val) {
        this.tabVal = "ovwp";
        //
      } else {
        this.tabVal = "";
      }
    },
    async updateShowPanel(value) {
      this.showPanel = value;
      this.initPanel(value);
niewei committed
273
    },
274 275
    goBack() {
      this.showPanel = false;
niewei committed
276
    },
277 278 279 280 281 282 283 284 285 286
  },
  created: async function () {
    console.log("进入infdet交易");
    let rtnmsg = await this.init({});
    if (rtnmsg.respCode == SUCCESS) {
      //TODO 处理数据逻辑
      Utils.copyValueFromVO(this.model, rtnmsg.data);
      this.$refs.infsea.handleSearch();
    } else {
      this.$notify.error({ title: "错误", message: "服务请求失败!" });
niewei committed
287
    }
288 289 290
  },
  watch: {},
};
niewei committed
291
</script>
niewei committed
292
<style scoped>
niewei committed
293
</style>