1
2
3
4
5
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<template>
<div class="eContainer">
<c-page title="涉外收入申报单新增">
<el-form
:model="model"
ref="modelForm"
label-width="120px"
label-position="right"
size="small"
:rules="allRules"
:validate-on-rule-change="false"
>
<c-tabs
v-model="tabVal"
ref="elment"
type="card"
@tab-click="myTabClick"
>
<!--dbap PD000050 主面板 -->
<el-tab-pane label="涉外收入申报单新增" name="ovwp">
<c-content>
<div class="eibs-tab">
<c-collapse
ref="ovwp"
style="margin-bottom: 5px"
v-model="activeNames"
>
<el-collapse-item title="接口数据" name="selection">
<c-content>
<m-selection :model="model" :codes="codes" />
</c-content>
</el-collapse-item>
<el-collapse-item title="基础信息" name="ovwp" >
<m-ovwp :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="申报信息" name="ovwp1">
<m-ovwp1 :model="model" :codes="codes" />
</el-collapse-item>
<!-- <el-collapse-item title="Financing Details" name="trtcrep">
<m-trtcrep :model="model" :codes="codes" />
</el-collapse-item>
<el-collapse-item title="同业代付" name="dftcrep">
<m-dftcrep :model="model" :codes="codes" />
</el-collapse-item> -->
</c-collapse>
</div>
</c-content>
</el-tab-pane>
</c-tabs>
</el-form>
<!-- 底部按钮 -->
<m-btn
:handleCheck="handleCheck"
:handleSubmit="handleSubmit"
:model="model"
/>
</c-page>
</div>
</template>
<script>
import CodeTable from "~/config/CodeTable";
import Dbaadd from "../model";
import Check from "../model/check";
import commonProcess from "~/mixin/commonProcess";
import Ovwp from "./Ovwp";
import Ovwp1 from "./Ovwp1";
import Selection from "./Selection";
import operationFunc from "~/mixin/operationFunc";
import Btn from "~/page/Business/Bopnew/components/FunctionBtn/AddBtn";
import {checkRuleOfdbaaddame} from 'BopRules'
import * as BopTools from "../../common/utils/BopTools"
import Api from '~/service/Api';
export default {
name: "Dbaadd",
components: {
"m-ovwp": Ovwp,
"m-ovwp1": Ovwp1,
"m-selection": Selection,
"m-btn": Btn
},
provide() {
return {
root: this
};
},
mixins: [commonProcess, operationFunc], // 里面包含了Default、Check等的公共处理
data() {
return {
tabVal: "ovwp",
trnName: "dbaadd",
trnType: "",
model: new Dbaadd().data,
codes: { ...CodeTable },
activeNames: ["selection","ovwp","ovwp1"],
rules:{}
};
},
methods: {
myTabClick(tab) {
this.tabClick(tab);
/**
* do it yourself
**/
}
},
created: async function() {
console.log("进入dbaadd交易");
let params = {
transName: this.trnName
};
this.init(params);
this.$Api=Api;
},
computed: {
allRules() {
let clientRules = {};
let bgRules = checkRuleOfdbaaddame().call(this);
let allRules = BopTools.mergeRules(clientRules,bgRules)
allRules = BopTools.mergeRules(allRules,this.rules)
allRules = BopTools.filterRule.call(this,allRules)
BopTools.wrapCallback.call(this,allRules)
return allRules
}
}
};
</script>
<style>
</style>