index.vue 9.03 KB
Newer Older
jxl committed
1
<template>
jxl committed
2
<c-page title="出口托收收汇">
jxl committed
3
  <div class="eContainer">
4
    <el-form :model="model" :rules="rules" ref="modelForm" label-width="120px" label-position="right" size="small" :validate-on-rule-change="false">
jxl committed
5
       <c-tabs v-model="tabVal" ref="elment" type="card" @tab-click="tabClick">
huangxin 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 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
        <el-tab-pane label="业务信息" name="ovwp">
            <c-content>
              <m-ovwp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <el-tab-pane label="统一授信" name="limitbody">
            <c-content>
              <m-limitbody :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <el-tab-pane label="费用/账务" name="engp,setpan,glepan">
            <c-content>
              <div class="eibs-tab">
                <el-collapse v-model="activeNames">
                  <el-collapse-item title="表外记账" name="engp">
                    <!-- 表外记账 -->
                    <m-engp :model="model" :codes="codes" />
                  </el-collapse-item>
                  <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>
            </c-content>
          </el-tab-pane>

          <el-tab-pane label="备查/附言" name="addbcb">
            <c-content>
              <m-addbcb :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <el-tab-pane label="申报信息" name="cnyp">
            <c-content>
              <m-cnyp :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <el-tab-pane label="报文/面函" name="docpan">
            <c-content>
              <m-docpan :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

          <el-tab-pane label="附件信息" name="doctre">
            <c-content>
              <m-doctre :model="model" :codes="codes" />
            </c-content>
          </el-tab-pane>

nanrui committed
63
            <!--资金结算-->
huangxin committed
64
           <!-- <el-tab-pane label="资金结算" name="setp">
jxl committed
65
               <c-content>
huangxin committed
66
                <m-setp ref="setp" :model="model" :codes="codes"/>
jxl committed
67
               </c-content>
huangxin committed
68
           </el-tab-pane> -->
jxl committed
69
 
jxl committed
70
            <!--Instruction -->
huangxin committed
71
           <!-- <el-tab-pane label="指示条款" name="inst">
jxl committed
72
              <c-content>
jxl committed
73
                <m-inst :model="model" :codes="codes"/>
jxl committed
74
              </c-content>
huangxin committed
75
           </el-tab-pane> -->
jxl committed
76
 
nanrui committed
77
            <!--参与方 -->
huangxin committed
78
           <!-- <el-tab-pane label="参与方" name="ptyp">
jxl committed
79 80 81
               <c-content>
                <m-ptyp :model="model" :codes="codes"/>
               </c-content>
huangxin committed
82
           </el-tab-pane> -->
jxl committed
83
 
nanrui committed
84
            <!--表外记账 -->
huangxin committed
85
           <!-- <el-tab-pane label="表外记账" name="engp">
jxl committed
86
                <m-engp :model="model" :codes="codes"/>
huangxin committed
87
           </el-tab-pane> -->
jxl committed
88
 
nanrui committed
89
            <!--结算 -->
huangxin committed
90
           <!-- <el-tab-pane label="结算" name="setpan">
huangxin committed
91
             <c-content>
jxl committed
92
                <m-setpan :model="model" :codes="codes"/>
huangxin committed
93
                </c-content>
huangxin committed
94
           </el-tab-pane> -->
jxl committed
95
 
nanrui committed
96
            <!--账务 -->
huangxin committed
97
           <!-- <el-tab-pane label="账务" name="glepan">
jxl committed
98 99
                <m-glepan :model="model" :codes="codes"/>
           </el-tab-pane>
huangxin committed
100
  -->
nanrui committed
101
            <!--提示信息 -->
huangxin committed
102
           <!-- <el-tab-pane label="提示信息" name="coninfp">
jxl committed
103
                <m-coninfp :model="model" :codes="codes"/>
huangxin committed
104
           </el-tab-pane> -->
jxl committed
105
 
nanrui committed
106
            <!--报文和面函(TRNMOD\TRNDOC\DOCPAN) -->
huangxin committed
107
           <!-- <el-tab-pane label="报文和面函" name="docpan">
jxl committed
108
                <m-docpan :model="model" :codes="codes"/>
huangxin committed
109
           </el-tab-pane> -->
jxl committed
110
 
nanrui committed
111
            <!--附件 -->
huangxin committed
112
           <!-- <el-tab-pane label="附件" name="doctre">
jxl committed
113
                <m-doctre :model="model" :codes="codes"/>
huangxin committed
114
           </el-tab-pane> -->
jxl committed
115 116
 
            <!--收账通知(LENDOC\DOCPAN) -->
huangxin committed
117
           <!-- <el-tab-pane label="收账通知" name="docpan1">
118
                <m-docpan1 :model="model" :codes="codes"/>
huangxin committed
119
           </el-tab-pane> -->
jxl committed
120 121
 
            <!--外管信息 -->
huangxin committed
122
           <!-- <el-tab-pane label="外管信息" name="wg">
jxl committed
123
                <m-wg :model="model" :codes="codes"/>
huangxin committed
124
           </el-tab-pane> -->
huangxin committed
125

huangxin committed
126
           <!-- <el-tab-pane v-if="model.bopmod.szflg=='1' && model.lendoc.actflg=='X'" label="涉外收入申请单-基础信息" name="basp3">
huangxin committed
127
               <c-content>
huangxin committed
128
                    <m-basp3 :model="model" :codes="codes"/>
huangxin committed
129 130 131
               </c-content>
                </el-tab-pane>

huangxin committed
132
                <el-tab-pane v-if="model.bopmod.szflg=='2' && model.lendoc.actflg=='X'" label="境内收入申请单-基础信息" name="basp2">
huangxin committed
133
                <c-content>
huangxin committed
134
                    <m-basp2 :model="model" :codes="codes"/>
huangxin committed
135
                    </c-content>
huangxin committed
136
                </el-tab-pane> -->
jxl committed
137 138
 
            <!--跨境人民币申报 -->
huangxin committed
139
           <!-- <el-tab-pane label="跨境人民币申报" name="cnyp">
jxl committed
140
                <m-cnyp :model="model" :codes="codes"/>
huangxin committed
141
           </el-tab-pane> -->
huangxin committed
142

huangxin committed
143
           <!-- <el-tab-pane v-if="model.cnybop.cnyflg=='1'" label="2101跨境收入信息" name="incp">
huangxin committed
144 145 146
               <c-content>
                    <m-incp :model="model" :codes="codes"/>
               </c-content>
huangxin committed
147
                </el-tab-pane> -->
jxl committed
148 149
 
            <!--统一授信 -->
huangxin committed
150
           <!-- <el-tab-pane label="统一授信" name="limitbody">
jxl committed
151
                <m-limitbody :model="model" :codes="codes"/>
huangxin committed
152
           </el-tab-pane> -->
jxl committed
153 154
       </c-tabs>
    </el-form>
155 156 157 158 159 160
    <c-grid-ety-prompt-dialog
      ref="etyDialog"
      :promptData="promptData"
      v-on:select-ety="selectEty"
    >
    </c-grid-ety-prompt-dialog>
huangxin committed
161
    <c-grid-ety-prompt-dialog ref="doxpDialog" :isPty="false" :promptData="promptData"
huangxin committed
162 163 164 165 166 167 168 169
      @select-ety="selectMsg">
     </c-grid-ety-prompt-dialog>
     <c-function-btn
        :handleSubmit="handleSubmit"
        :handleCheck="handleCheck"
        :handleStash="handleStash"
      >
      </c-function-btn>
jxl committed
170
  </div>
jxl committed
171
</c-page>
jxl committed
172 173 174 175 176
</template>
<script>
import Api from "~/service/Api"
import CodeTable from "~/config/CodeTable"
import Botset from "~/model/Botset"
wangren committed
177
import commonProcess from "~/mixin/commonProcess"
178
import commonFuncs from "~/mixin/commonFuncs"
jxl committed
179 180 181
import Check from "~/model/Botset/Check"
import Default from "~/model/Botset/Default"
import Pattern from "~/model/Botset/Pattern"
nanrui committed
182

huangxin committed
183 184
import Addbcb from "./Addbcb";
import Ovwp from "./Ovwp"
jxl committed
185 186
import Setp from "./Setp"
import Inst from "./Inst"
jxl committed
187
import Ptyp from "./Ptyp"
188
import Docpan1 from "./Docpan1"
jxl committed
189 190
import Wg from "./Wg"
import Cnyp from "./Cnyp"
huangxin committed
191 192 193
import Basp2 from "./Basp2"
import Basp3 from "./Basp3"
import Incp from "./Incp"
jxl committed
194

nanrui committed
195 196 197 198 199 200 201
import Engp from "~/views/Public/Engp"
import Setpan from "~/views/Public/Setpan"
import Glepan from "~/views/Public/Glepan"
import Coninfp from "~/views/Public/Coninfp"
import Docpan from "~/views/Public/Docpan"
import Doctre from "~/views/Public/Doctre"
import Limitbody from "~/views/Public/Limitbody";
jxl committed
202 203 204 205

export default {
    name: "Botset",
    components:{
huangxin committed
206 207
      "m-addbcb": Addbcb,
        "m-ovwp": Ovwp,
jxl committed
208 209
        "m-setp" : Setp,
        "m-inst" : Inst,
jxl committed
210
        "m-ptyp" : Ptyp,
jxl committed
211 212 213 214
        "m-engp" : Engp,
        "m-setpan" : Setpan,
        "m-glepan" : Glepan,
        "m-coninfp" : Coninfp,
jxl committed
215
        "m-docpan" : Docpan,
jxl committed
216
        "m-doctre" : Doctre,
jxl committed
217 218 219 220
        "m-docpan" : Docpan,
        "m-wg" : Wg,
        "m-cnyp" : Cnyp,
        "m-limitbody" : Limitbody,
221
        "m-docpan1" : Docpan1,
huangxin committed
222 223 224
        "m-basp2" : Basp2,
        "m-basp3" : Basp3,
        "m-incp"  : Incp,
jxl committed
225 226 227 228 229 230
    },
    provide() {
        return {
            root: this
        }
    },
231
    mixins: [commonProcess,commonFuncs],    // 里面包含了Default、Check等的公共处理
jxl committed
232 233
    data(){
        return {
huangxin committed
234
            tabVal: "ovwp",
jxl committed
235 236 237 238 239 240 241
            trnName: "botset",
            model: new Botset().data,
            checkRules: Check,
            defaultRules: Default,
            pattern: Pattern,
            rules: null,
            codes: {
242
                ...CodeTable,
jxl committed
243
            },
huangxin committed
244
            activeNames: ["engp"],
jxl committed
245 246
        }
    },
huangxin committed
247 248 249 250 251 252 253 254 255 256
    computed: {
         actflg: {
      get() {
        return this.model.lendoc.actflg === "X";
      },
      set(val) {
        this.model.lendoc.actflg = val ? "X" : "";
      },
    },
    },
jxl committed
257
    methods:{
258
        //tabClick(){}
jxl committed
259 260 261 262 263 264 265
    },
    created:async function(){
        console.log("进入botset交易");
        let rtnmsg = await this.init({})
        if(rtnmsg.respCode == SUCCESS)
        {
           //TODO 处理数据逻辑
huangxin committed
266 267 268 269 270 271
      this.updateModel(rtnmsg.data);
      if (this.isInDisplay) {
        this.restoreDisplay();
      }
      this.$refs.setp.$refs.table.$refs.table.toggleAllSelection();
        }else{
jxl committed
272 273 274 275 276 277 278 279
            this.$notify.error({title: '错误',message: '服务请求失败!'});
        }
    }
}
</script>
<style>

</style>