gcs-ui-lib 1.1.433
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.env.development +5 -0
- package/.env.production +7 -0
- package/.eslintrc.js +5 -0
- package/README.md +97 -0
- package/_webpack.config.js +135 -0
- package/babel.config.js +17 -0
- package/lib/demo.html +10 -0
- package/lib/fonts/SIMSUN.5e0c362c.5e0c362c.ttf +0 -0
- package/lib/fonts/element-icons.535877f5.535877f5.woff +0 -0
- package/lib/fonts/element-icons.732389de.732389de.ttf +0 -0
- package/lib/fonts/iconfont.09d221ee.09d221ee.woff +0 -0
- package/lib/fonts/iconfont.1c4bfacc.1c4bfacc.ttf +0 -0
- package/lib/fonts/iconfont.a6f34dc7.a6f34dc7.woff2 +0 -0
- package/lib/fonts/iconfont.f4c32765.f4c32765.ttf +0 -0
- package/lib/gcs-ui-lib.common.js +40576 -0
- package/lib/gcs-ui-lib.css +3 -0
- package/lib/gcs-ui-lib.umd.js +40586 -0
- package/lib/gcs-ui-lib.umd.min.js +40 -0
- package/lib/img/bankbackground(1).e1f6e40f.jpg +0 -0
- package/lib/img/busibackground(2).7e09bf1f.jpg +0 -0
- package/lib/img/document.193a282d.svg +8 -0
- package/lib/img/folder.8e019792.svg +9 -0
- package/lib/img/icon.fc86764f.gif +0 -0
- package/npm +1 -0
- package/package.json +100 -0
- package/packages/DynamicForm/index.js +7 -0
- package/packages/DynamicForm/src/components/Amount.vue +51 -0
- package/packages/DynamicForm/src/components/AmountRange.vue +76 -0
- package/packages/DynamicForm/src/components/CheckboxGroup.vue +63 -0
- package/packages/DynamicForm/src/components/DMY.vue +126 -0
- package/packages/DynamicForm/src/components/Date.vue +51 -0
- package/packages/DynamicForm/src/components/DateRange.vue +51 -0
- package/packages/DynamicForm/src/components/Dialog.vue +247 -0
- package/packages/DynamicForm/src/components/Input.vue +48 -0
- package/packages/DynamicForm/src/components/InputNumber.vue +69 -0
- package/packages/DynamicForm/src/components/InputNumberRange.vue +47 -0
- package/packages/DynamicForm/src/components/LazySelect.vue +311 -0
- package/packages/DynamicForm/src/components/RadioGroup.vue +43 -0
- package/packages/DynamicForm/src/components/Rate.vue +57 -0
- package/packages/DynamicForm/src/components/Select.vue +307 -0
- package/packages/DynamicForm/src/components/Switch.vue +32 -0
- package/packages/DynamicForm/src/components/Textarea.vue +58 -0
- package/packages/DynamicForm/src/components/TimeSelect.vue +61 -0
- package/packages/DynamicForm/src/components/unitTreeSelect.vue +141 -0
- package/packages/DynamicForm/src/components/urlLinkInput.vue +100 -0
- package/packages/DynamicForm/src/demo/index.vue +486 -0
- package/packages/DynamicForm/src/fileUpload.js +232 -0
- package/packages/DynamicForm/src/formConfig.js +2910 -0
- package/packages/DynamicForm/src/helpers.js +18 -0
- package/packages/DynamicForm/src/main.vue +1095 -0
- package/packages/FileImport/index.js +7 -0
- package/packages/FileImport/src/demo/index.vue +29 -0
- package/packages/FileImport/src/main.vue +306 -0
- package/packages/SelectTicket/index.js +7 -0
- package/packages/SelectTicket/src/Tree/index.vue +13 -0
- package/packages/SelectTicket/src/demo/index.vue +139 -0
- package/packages/SelectTicket/src/header.js +276 -0
- package/packages/SelectTicket/src/main.vue +581 -0
- package/packages/SelectTicket/src/printDialog/dialogO.vue +116 -0
- package/packages/SelectTicket/src/printDialog/index.vue +69 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation/README.MD +6 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation/mixins/index.js +35 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation/obverse.vue +768 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation/overview.vue +115 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation/printList.vue +127 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation/reverse.vue +205 -0
- package/packages/SelectTicket/src/ticketDetail/billInformation//351/231/204/345/212/240/344/277/235/350/257/201/344/277/241/346/201/257/345/255/227/346/256/265/345/257/271/347/205/247.md +246 -0
- package/packages/SelectTicket/src/ticketDetail/dialog.vue +73 -0
- package/packages/SelectTicket/src/ticketDetail/img/bankbackground(1).jpg +0 -0
- package/packages/SelectTicket/src/ticketDetail/img/busibackground(2).jpg +0 -0
- package/packages/SelectTicket/src/ticketDetail/img/icon.gif +0 -0
- package/packages/SelectTicket/src/ticketDetail/img/icon2.png +0 -0
- package/packages/SelectTicket/src/ticketDetail/img/noData.png +0 -0
- package/packages/SelectTicket/src/ticketDetail/index.vue +188 -0
- package/packages/SelectTreeUnit/index.js +7 -0
- package/packages/SelectTreeUnit/src/Tree/document.svg +8 -0
- package/packages/SelectTreeUnit/src/Tree/folder.svg +9 -0
- package/packages/SelectTreeUnit/src/Tree/index.vue +239 -0
- package/packages/SelectTreeUnit/src/demo/index.vue +219 -0
- package/packages/SelectTreeUnit/src/forEachs.js +16 -0
- package/packages/SelectTreeUnit/src/main.vue +1136 -0
- package/packages/SelectTreeUnitForm/index.js +7 -0
- package/packages/SelectTreeUnitForm/src/Tree/document.svg +8 -0
- package/packages/SelectTreeUnitForm/src/Tree/folder.svg +9 -0
- package/packages/SelectTreeUnitForm/src/Tree/index.vue +254 -0
- package/packages/SelectTreeUnitForm/src/demo/index.vue +230 -0
- package/packages/SelectTreeUnitForm/src/forEachs.js +16 -0
- package/packages/SelectTreeUnitForm/src/main.vue +1065 -0
- package/packages/Trade/index.js +7 -0
- package/packages/Trade/src/components/all/index.vue +891 -0
- package/packages/Trade/src/components/dynamicColumnMixin.js +69 -0
- package/packages/Trade/src/components/getDCloumn.js +15 -0
- package/packages/Trade/src/components/i18n.json +3337 -0
- package/packages/Trade/src/components/pendingEvent/index.vue +909 -0
- package/packages/Trade/src/components/server-config.js +60 -0
- package/packages/Trade/src/components/setUnitName.js +10 -0
- package/packages/Trade/src/components/specialHandle.js +171 -0
- package/packages/Trade/src/components/topendingTabs.js +21 -0
- package/packages/Trade/src/demo/index.vue +42 -0
- package/packages/Trade/src/main.vue +86 -0
- package/packages/ZipImport/index.js +7 -0
- package/packages/ZipImport/src/demo/index.vue +139 -0
- package/packages/ZipImport/src/main.vue +303 -0
- package/packages/approvel/index.js +8 -0
- package/packages/approvel/src/demo/index.vue +28 -0
- package/packages/approvel/src/main.vue +26 -0
- package/packages/approvel/src/progress.vue +167 -0
- package/packages/approvel/src/url.json +29 -0
- package/packages/extends/ElSelect.vue +180 -0
- package/packages/imgs/list-select.png +0 -0
- package/packages/imgs/list-unselect.png +0 -0
- package/packages/imgs/list.png +0 -0
- package/packages/imgs/tree-select.png +0 -0
- package/packages/imgs/tree-unselect.png +0 -0
- package/packages/imgs/tree.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/index.html +19 -0
- package/src/App.vue +61 -0
- package/src/api/aims.js +8 -0
- package/src/api/common.js +103 -0
- package/src/api/fileApi.js +22 -0
- package/src/config/appSettings.js +12 -0
- package/src/config/favicon.ico +0 -0
- package/src/css/selectTreeUnit.scss +247 -0
- package/src/filter/filter.js +1 -0
- package/src/filter/index.js +274 -0
- package/src/fonts/demo.css +539 -0
- package/src/fonts/iconfont.css +21 -0
- package/src/fonts/iconfont.js +1 -0
- package/src/fonts/iconfont.json +23 -0
- package/src/fonts/iconfont.ttf +0 -0
- package/src/index.js +109 -0
- package/src/locale/format.js +47 -0
- package/src/locale/index.js +48 -0
- package/src/locale/lang/cn2hk.json +1270 -0
- package/src/locale/lang/en.js +73 -0
- package/src/locale/lang/es.js +7 -0
- package/src/locale/lang/index.js +66 -0
- package/src/locale/lang/ja.js +7 -0
- package/src/locale/lang/zh.js +74 -0
- package/src/locale/lang/zht.js +28 -0
- package/src/main.js +44 -0
- package/src/preview/page/Aside/index.vue +60 -0
- package/src/preview/router.js +46 -0
- package/src/utils/auth.js +12 -0
- package/src/utils/directive/asciiWidth.js +107 -0
- package/src/utils/directive/clickOutside.js +21 -0
- package/src/utils/directive/vtitle.js +140 -0
- package/src/utils/index.js +545 -0
- package/src/utils/request.js +191 -0
- package/src/utils/requestCache.js +68 -0
- package/src/utils/thems.js +62 -0
- package/types/favicon.ico +0 -0
- package/vue.config.js +45 -0
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<h2> DynamicForm demo</h2>
|
|
4
|
+
<NstcDynamicForm
|
|
5
|
+
ref="NstcDynamicForm"
|
|
6
|
+
v-if="dynamicData.pageId"
|
|
7
|
+
:key="dynamicData.pageId"
|
|
8
|
+
:get-dynamic-forms-data="dynamicData"
|
|
9
|
+
:dynamicData.sync="setDynamicData"
|
|
10
|
+
:formItemKey.sync="formItemKey"
|
|
11
|
+
:formGroupKey.sync="formGroupKey"
|
|
12
|
+
:detailData="detailData"
|
|
13
|
+
:uploadParam="uploadParam"
|
|
14
|
+
:formAttrs="{
|
|
15
|
+
size: 'small',
|
|
16
|
+
class: 'label-width-16em',
|
|
17
|
+
labelWidth: '16em',
|
|
18
|
+
}"
|
|
19
|
+
v-model="formData"
|
|
20
|
+
:showButtons="showBottomBtns"
|
|
21
|
+
:localConfig="localConfigT"
|
|
22
|
+
:isShowObject.sync="isShowObject"
|
|
23
|
+
:isEditableObject.sync="isEditableObject"
|
|
24
|
+
:initPageDone="initPageDone"
|
|
25
|
+
:needDIY="true"
|
|
26
|
+
:showButton="true"
|
|
27
|
+
@changeFormData="changeFormData"
|
|
28
|
+
>
|
|
29
|
+
<!-- 付款账号 -->
|
|
30
|
+
<template slot="payAccountNo" slot-scope="scope">
|
|
31
|
+
<el-input disabled class="input-w"/>
|
|
32
|
+
</template>
|
|
33
|
+
|
|
34
|
+
<!-- 收款单位 -->
|
|
35
|
+
<template slot="recCltName" slot-scope="scope">
|
|
36
|
+
</template>
|
|
37
|
+
<!-- 收款账号 -->
|
|
38
|
+
<template slot="recAccountNo" slot-scope="scope">
|
|
39
|
+
<el-input disabled class="input-w"/>
|
|
40
|
+
</template>
|
|
41
|
+
<!-- 附件地址 -->
|
|
42
|
+
<template slot="attachmentAddress" slot-scope="scope">
|
|
43
|
+
<UrlLinkInput v-model="formData[scope.groupProp][scope.prop]"/>
|
|
44
|
+
</template>
|
|
45
|
+
<!-- 开户行地区-->
|
|
46
|
+
<template slot="recRegNo" slot-scope="scope">
|
|
47
|
+
<CascaderArea
|
|
48
|
+
:props="{ emitPath: false }"
|
|
49
|
+
v-model="formData.receiverInfo.recRegNo"
|
|
50
|
+
:is-urban="true"
|
|
51
|
+
:disabled="storeUnEditFields.includes('recRegNo')"
|
|
52
|
+
ref="recRegNo"
|
|
53
|
+
class="input-w"
|
|
54
|
+
@change="(val) => changerRecRegNo(val, scope)"
|
|
55
|
+
/>
|
|
56
|
+
</template>
|
|
57
|
+
<!-- 付款金额 -->
|
|
58
|
+
<template slot="amount" slot-scope="scope">
|
|
59
|
+
<InputNumber
|
|
60
|
+
:max="9999999999999.99"
|
|
61
|
+
:min="0.0"
|
|
62
|
+
:is-clearable="true"
|
|
63
|
+
v-model="formData[scope.groupProp][scope.prop]"
|
|
64
|
+
@change="changeAmount"
|
|
65
|
+
:placeholder="'请输入' | $l"
|
|
66
|
+
:disabled="unEditFields.includes('amount')"
|
|
67
|
+
/>
|
|
68
|
+
<div
|
|
69
|
+
style="position: absolute; line-height: 24px; color: red"
|
|
70
|
+
v-show="!isNaN(parseFloat(formData.transInfo.amount))"
|
|
71
|
+
>
|
|
72
|
+
{{ formData.transInfo.amount | amountFormat }}
|
|
73
|
+
</div>
|
|
74
|
+
</template>
|
|
75
|
+
</NstcDynamicForm>
|
|
76
|
+
</div>
|
|
77
|
+
</template>
|
|
78
|
+
<script>
|
|
79
|
+
import {axios, InputNumber, CascaderArea} from "n20-common-lib";
|
|
80
|
+
import NstcDynamicForm from "../main.vue";
|
|
81
|
+
import {changeFormDataDoc, localConfig} from "../formConfig";
|
|
82
|
+
import UrlLinkInput from "../components/urlLinkInput.vue";
|
|
83
|
+
|
|
84
|
+
export default {
|
|
85
|
+
name: "index",
|
|
86
|
+
components: {
|
|
87
|
+
UrlLinkInput,
|
|
88
|
+
NstcDynamicForm,
|
|
89
|
+
InputNumber,
|
|
90
|
+
CascaderArea
|
|
91
|
+
},
|
|
92
|
+
data(vm) {
|
|
93
|
+
return {
|
|
94
|
+
pageType: 'BANK',
|
|
95
|
+
unEditFields: [],
|
|
96
|
+
storeUnEditFields: [], // 查询详情接口返回的不可编辑字段
|
|
97
|
+
isEditableObject: {},
|
|
98
|
+
isShowObject: {},
|
|
99
|
+
formItemKey: {},
|
|
100
|
+
formGroupKey: {},
|
|
101
|
+
localConfigT: localConfig,
|
|
102
|
+
dynamicData: {
|
|
103
|
+
businessClassNo: "",
|
|
104
|
+
moduleNo: "",
|
|
105
|
+
pageNo: ``,
|
|
106
|
+
pageId: false,
|
|
107
|
+
},
|
|
108
|
+
setDynamicData: {
|
|
109
|
+
units: [],
|
|
110
|
+
},
|
|
111
|
+
excludeCountries: [], // 排除的国家
|
|
112
|
+
formData: {
|
|
113
|
+
basicInfo: {
|
|
114
|
+
singleFlag: "1",
|
|
115
|
+
},
|
|
116
|
+
transInfo: {},
|
|
117
|
+
isNewOrder: 0,
|
|
118
|
+
},
|
|
119
|
+
showBottomBtns: [
|
|
120
|
+
true,
|
|
121
|
+
false,
|
|
122
|
+
true,
|
|
123
|
+
],
|
|
124
|
+
uploadParam: {
|
|
125
|
+
syscode: "060000000",
|
|
126
|
+
appno: "061400000",
|
|
127
|
+
bussValue: "070101001",
|
|
128
|
+
bussId: "", // 业务id
|
|
129
|
+
},
|
|
130
|
+
detailData: {
|
|
131
|
+
basicInfo: null,
|
|
132
|
+
payerInfo: null,
|
|
133
|
+
receiverInfo: null,
|
|
134
|
+
otherInfo: null,
|
|
135
|
+
transInfo: null,
|
|
136
|
+
businessInfo: null,
|
|
137
|
+
},
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
computed: {
|
|
141
|
+
variable() {
|
|
142
|
+
let obj = {
|
|
143
|
+
gdtLedgerTypeTypeCode: "", // 当“关联业务”选择“融资业务”: contexecTypeDown;当‘关联业务’选择‘内部借款’时: lms.ledgerType
|
|
144
|
+
payCountry: "",
|
|
145
|
+
bankNo: "",
|
|
146
|
+
recBankNo: "",
|
|
147
|
+
currencyNo: "",
|
|
148
|
+
recCountry: "CHN",
|
|
149
|
+
countryNo: "",
|
|
150
|
+
payGateWayType: "",
|
|
151
|
+
legalRequiremnt: "", // 香港:ptms.HK.legalRequirement;越南:ptms.VN.legalRequirement
|
|
152
|
+
};
|
|
153
|
+
obj.payCountry = this.formData?.payerInfo?.payCountry || "";
|
|
154
|
+
obj.bankNo = this.formData?.payerInfo?.payBankNo || "";
|
|
155
|
+
obj.recBankNo = this.formData?.receiverInfo?.recBankNo || "";
|
|
156
|
+
obj.currencyNo = this.formData?.transInfo?.currencyNo || "";
|
|
157
|
+
obj.recCountry = this.formData?.basicInfo?.recCountry || "";
|
|
158
|
+
obj.countryNo = this.formData?.payerInfo?.payCountry || "";
|
|
159
|
+
obj.gdtLedgerTypeTypeCode = this.formData?.businessInfo?.relateBusinessType === "GDT_BUSINESS"
|
|
160
|
+
? "contexecTypeDown"
|
|
161
|
+
: "lms.ledgerType";
|
|
162
|
+
obj.legalRequiremnt =
|
|
163
|
+
this.formData?.payerInfo?.payCountry === "HK"
|
|
164
|
+
? "ptms.HK.legalRequirement"
|
|
165
|
+
: "ptms.VN.legalRequirement";
|
|
166
|
+
if (this.formData?.basicInfo?.gdtLedgerType) {
|
|
167
|
+
this.formItemKey.businessInfo.gdtLedgerType = obj.gdtLedgerTypeTypeCode;
|
|
168
|
+
this.formItemKey.otherInfo.usage =
|
|
169
|
+
obj.bankNo + obj.recCountry + obj.countryNo;
|
|
170
|
+
this.formItemKey.otherInfo.legalRequiremnt = obj.legalRequiremnt;
|
|
171
|
+
}
|
|
172
|
+
// --bug=1445076 --user=岳红 【A01-mysql】【付款】【中行香港付款】:本机构付款,失败重发页面,“付款目的”下拉无值,不正确。 https://www.tapd.cn/58791002/s/9452579
|
|
173
|
+
if (this.formData?.payerInfo?.payBankNo && this.formItemKey?.otherInfo?.usage) {
|
|
174
|
+
this.formItemKey.otherInfo.usage++;
|
|
175
|
+
}
|
|
176
|
+
return obj;
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
mounted() {
|
|
180
|
+
this.getDynamicFormConfig()
|
|
181
|
+
},
|
|
182
|
+
|
|
183
|
+
methods: {
|
|
184
|
+
|
|
185
|
+
async initPageDone() {
|
|
186
|
+
this.isShowObject.basicInfo.attachmentAddress = false;
|
|
187
|
+
if (this.$route.query.orderId) {
|
|
188
|
+
this.isShowObject.payerInfo.cltNo = !!this.basicsFormData.isNewOrder;
|
|
189
|
+
} else {
|
|
190
|
+
this.isShowObject.payerInfo.cltNo = this.$route.query.type === "requestFormAdd";
|
|
191
|
+
}
|
|
192
|
+
if (!this.showBusinessGroup) {
|
|
193
|
+
this.$nextTick(() => {
|
|
194
|
+
this.$set(this.$refs["NstcDynamicForm"].isShowGroupObjectT, "businessInfo", 0);
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
this.deleteOtherData();
|
|
198
|
+
if (this.$route.query.refundAmount) {
|
|
199
|
+
this.$set(
|
|
200
|
+
this.formData.transInfo,
|
|
201
|
+
"amount",
|
|
202
|
+
parseFloat(this.$route.query.refundAmount)
|
|
203
|
+
);
|
|
204
|
+
}
|
|
205
|
+
if (this.$route.query.type === "mergePayment") {
|
|
206
|
+
this.setOriginalData();
|
|
207
|
+
this.$set(
|
|
208
|
+
this.formData.transInfo,
|
|
209
|
+
"currencyName",
|
|
210
|
+
this._originalData.transInfo.currencyName
|
|
211
|
+
);
|
|
212
|
+
let amount = this.mergeInfo.reduce((pre, cur) => {
|
|
213
|
+
return floatAdd(parseFloat(pre), parseFloat(cur.amount));
|
|
214
|
+
}, 0);
|
|
215
|
+
this.$set(
|
|
216
|
+
this.formData.transInfo,
|
|
217
|
+
"amount",
|
|
218
|
+
parseFloat(amount.toFixed(2))
|
|
219
|
+
);
|
|
220
|
+
if (
|
|
221
|
+
this.$route.query.type === "mergePayment" &&
|
|
222
|
+
(this.paymentTemplate == "THIRD_PARTY" ||
|
|
223
|
+
this._originalData.paymentTemplate == "PLATFORM")
|
|
224
|
+
) {
|
|
225
|
+
this.$set(
|
|
226
|
+
this.formData.payerInfo,
|
|
227
|
+
"payCurrencyName",
|
|
228
|
+
this._originalData.payerInfo.payCurrencyName
|
|
229
|
+
);
|
|
230
|
+
this.$set(
|
|
231
|
+
this.formData.payerInfo,
|
|
232
|
+
"payCurrencyNo",
|
|
233
|
+
this._originalData.payerInfo.payCurrencyNo
|
|
234
|
+
);
|
|
235
|
+
this.$set(
|
|
236
|
+
this.formData.payerInfo,
|
|
237
|
+
"associateFlag",
|
|
238
|
+
this._originalData.payerInfo.associateFlag
|
|
239
|
+
);
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
if (this.mergeInfo?.orderBusinessInfoCommonDTOs) {
|
|
243
|
+
this.$set(
|
|
244
|
+
this.formData.businessInfo,
|
|
245
|
+
"orderBusinessInfoCommonDTOs",
|
|
246
|
+
this.mergeInfo.orderBusinessInfoCommonDTOs
|
|
247
|
+
);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
this.getPamentWay();
|
|
252
|
+
if (this.formData?.otherInfo?.usage) {
|
|
253
|
+
this.formItemKey.otherInfo.usage++;
|
|
254
|
+
}
|
|
255
|
+
await this.$nextTick();
|
|
256
|
+
// 收款单位国家的值,自动取‘汇入国家’,可修改
|
|
257
|
+
if (this.isShowObject?.receiverInfo?.receiverCountry) {
|
|
258
|
+
this.formData.receiverInfo.receiverCountry =
|
|
259
|
+
this.formData.basicInfo.recCountry;
|
|
260
|
+
this.formData.receiverInfo.receiverCountryName =
|
|
261
|
+
this.formData.basicInfo.recCountryName;
|
|
262
|
+
}
|
|
263
|
+
// 招商银行境内外币、跨境支付:当费用承担方的值为‘付款人、共同’时,校验手续费支出户必填。默认手续费支出户为付款账户,并可修改。
|
|
264
|
+
if (
|
|
265
|
+
this.isShowObject?.otherInfo?.costBear &&
|
|
266
|
+
this.formData.payerInfo.payBankNo == "06"
|
|
267
|
+
) {
|
|
268
|
+
const costBear = this.formData.otherInfo.costBear;
|
|
269
|
+
const payAccountNo = this.formData.payerInfo.payAccountNo;
|
|
270
|
+
if ((costBear == "1" || costBear == "3") && payAccountNo) {
|
|
271
|
+
this.formData.otherInfo.feePayAccountNo = payAccountNo.includes("/")
|
|
272
|
+
? payAccountNo.split("/")[0]
|
|
273
|
+
: payAccountNo;
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
if (this.storeUnEditFields && this.storeUnEditFields.length > 0) {
|
|
277
|
+
this.storeUnEditFields.forEach((prop) => {
|
|
278
|
+
Object.keys(this.isEditableObject).forEach((key) => {
|
|
279
|
+
if (this.isEditableObject[key].hasOwnProperty(prop)) {
|
|
280
|
+
this.isEditableObject[key][prop] = 0;
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
});
|
|
284
|
+
}
|
|
285
|
+
this.$refs["NstcDynamicForm"]?.$refs["dynamicForms"].clearValidate();
|
|
286
|
+
if (this.applyId || this.isEditableObject.declareInfo) {
|
|
287
|
+
this.isEditableObject.basicInfo.singleFlag = 0;
|
|
288
|
+
if (this.isEditableObject.declareInfo) {
|
|
289
|
+
this.isEditableObject.declareInfo.transCurrencyNoOne = 0;
|
|
290
|
+
this.isEditableObject.declareInfo.transCurrencyNoTwo = 0;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
if (
|
|
294
|
+
!["G6", "PTMS", "", undefined, null].includes(
|
|
295
|
+
this.$route.query.payChannel
|
|
296
|
+
) ||
|
|
297
|
+
(!["G6", "PTMS", "", undefined, null].includes(
|
|
298
|
+
this.formData.basicInfo.payChannel
|
|
299
|
+
) &&
|
|
300
|
+
this.$route.query.paymentTemplate != "MIXED")
|
|
301
|
+
) {
|
|
302
|
+
this.isShowObject.basicInfo.isAllowChangeSettlementTool = true;
|
|
303
|
+
this.isEditableObject.basicInfo.isAllowChangeSettlementTool = false;
|
|
304
|
+
this.isShowObject.basicInfo.specialPayment = true;
|
|
305
|
+
}
|
|
306
|
+
if (["mergePayment"].includes(this.type)) {
|
|
307
|
+
this.isShowObject.basicInfo.isAllowChangeSettlementTool = true;
|
|
308
|
+
this.isEditableObject.basicInfo.isAllowChangeSettlementTool = false;
|
|
309
|
+
this.isShowObject.basicInfo.specialPayment = true;
|
|
310
|
+
}
|
|
311
|
+
if (
|
|
312
|
+
this.$route.query.paymentTemplate == "MIXED" ||
|
|
313
|
+
this.basicsFormData.baseForm?.isAllowChangeSettlementTool
|
|
314
|
+
) {
|
|
315
|
+
this.formData.basicInfo.isAllowChangeSettlementTool = 1;
|
|
316
|
+
this.isEditableObject.basicInfo.settlementTools = 1;
|
|
317
|
+
this.isEditableObject.basicInfo.payGateWayType = 1;
|
|
318
|
+
}
|
|
319
|
+
if (
|
|
320
|
+
this.isShowObject.basicInfo.isAllowChangeSettlementTool &&
|
|
321
|
+
this.formData.basicInfo?.isAllowChangeSettlementTool &&
|
|
322
|
+
!this.$route.query.typeCode //待处理不可变更支付工具。
|
|
323
|
+
) {
|
|
324
|
+
this.isEditableObject.basicInfo.settlementTools = 1;
|
|
325
|
+
!this.showBusinessGroup &&
|
|
326
|
+
(this.isEditableObject.basicInfo.payGateWayType = 0);
|
|
327
|
+
} else {
|
|
328
|
+
this.isEditableObject.basicInfo.settlementTools = 0;
|
|
329
|
+
}
|
|
330
|
+
if (this.formItemKey.otherInfo) {
|
|
331
|
+
if ("reserved1" in this.formItemKey.otherInfo) {
|
|
332
|
+
this.formItemKey.otherInfo.reserved1++;
|
|
333
|
+
} else {
|
|
334
|
+
this.formItemKey.otherInfo.reserved1 = 1;
|
|
335
|
+
}
|
|
336
|
+
if ("bpPaymentType" in this.formItemKey.otherInfo) {
|
|
337
|
+
this.formItemKey.otherInfo.bpPaymentType++;
|
|
338
|
+
} else {
|
|
339
|
+
this.formItemKey.otherInfo.bpPaymentType = 1;
|
|
340
|
+
}
|
|
341
|
+
}
|
|
342
|
+
//付款不需要展示‘变更支付工具’;
|
|
343
|
+
this.isShowObject.basicInfo.isAllowChangeSettlementTool = false;
|
|
344
|
+
this.formItemKey.receiverInfo.recBranchBankNo++;
|
|
345
|
+
this.getPageOrigin = "";
|
|
346
|
+
// await this.$refs["NstcDynamicForm"].getFormData();
|
|
347
|
+
this.setIsConnectBankDis();
|
|
348
|
+
if (this.pageType != "FUND") {
|
|
349
|
+
this.isMultipleBusiness = null;
|
|
350
|
+
this.getPublicParamsFn();
|
|
351
|
+
}
|
|
352
|
+
if (this.formData?.basicInfo?.singleFlag == 2) {
|
|
353
|
+
this.isEditableObject.transInfo.currencyNo = false;
|
|
354
|
+
this.formItemKey.transInfo.currencyNo++;
|
|
355
|
+
}
|
|
356
|
+
if (this.formData?.payerInfo?.paySwiftCode) return;
|
|
357
|
+
if (this.setDynamicData.units.length > 0) {
|
|
358
|
+
let index = this.setDynamicData.units[1].elements.findIndex(
|
|
359
|
+
(item) => item.prop == "payerInfoExt"
|
|
360
|
+
);
|
|
361
|
+
if (index == -1) return;
|
|
362
|
+
let psfc = this.setDynamicData.units[1].elements[index]?.elements?.find(
|
|
363
|
+
(item) => item.prop == "paySwiftCode"
|
|
364
|
+
);
|
|
365
|
+
|
|
366
|
+
if (psfc?.defaultValue) {
|
|
367
|
+
this.formData.payerInfo.paySwiftCode = psfc.defaultValue;
|
|
368
|
+
} else {
|
|
369
|
+
this.formData.payerInfo.paySwiftCode = "";
|
|
370
|
+
}
|
|
371
|
+
this.formItemKey.payerInfo.paySwiftCode++;
|
|
372
|
+
}
|
|
373
|
+
//【【流程测试】【融资】【付款】【还款申请】还款申请发送到付款,单笔/批量,应该默认置灰】https://www.tapd.cn/58791002/bugtrace/bugs/view?bug_id=1158791002001418175
|
|
374
|
+
if (this.formData.basicInfo.payChannel == "GDT") {
|
|
375
|
+
this.isEditableObject.basicInfo.singleFlag = 0;
|
|
376
|
+
this.formItemKey.basicInfo.singleFlag++;
|
|
377
|
+
}
|
|
378
|
+
if (!this.$showManageFramework) {
|
|
379
|
+
this.isShowObject.businessInfo.manageUnitNo = false;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
},
|
|
383
|
+
//更新付款方式下拉值
|
|
384
|
+
getPamentWay() {
|
|
385
|
+
let payCountry =
|
|
386
|
+
this.formData?.payerInfo?.payCountry ||
|
|
387
|
+
this.detailData?.payerInfo?.payCountry ||
|
|
388
|
+
"";
|
|
389
|
+
let payBankNo =
|
|
390
|
+
this.formData?.payerInfo?.payBankNo ||
|
|
391
|
+
this.detailData?.payerInfo?.payBankNo ||
|
|
392
|
+
"";
|
|
393
|
+
let recCountry =
|
|
394
|
+
this.formData?.basicInfo?.recCountry ||
|
|
395
|
+
this.detailData?.basicInfo?.recCountry ||
|
|
396
|
+
"";
|
|
397
|
+
let currencyNo =
|
|
398
|
+
this.formData?.transInfo?.currencyNo ||
|
|
399
|
+
this.detailData?.transInfo?.currencyNo ||
|
|
400
|
+
"";
|
|
401
|
+
if (!payBankNo || !recCountry || !currencyNo || !payCountry) {
|
|
402
|
+
return;
|
|
403
|
+
}
|
|
404
|
+
this.formItemKey.payerInfo.paymentWay++;
|
|
405
|
+
// 判断对应的新付款方式中是否包含上一次已选的付款方式,若包含,付款方式不变;若不包含,付款方式清空
|
|
406
|
+
if (!this.formData.payerInfo.paymentWay) return;
|
|
407
|
+
if (
|
|
408
|
+
!(
|
|
409
|
+
this.applicableCountries.length == 0 ||
|
|
410
|
+
this.applicableCountries.includes("ALL")
|
|
411
|
+
)
|
|
412
|
+
) {
|
|
413
|
+
if (
|
|
414
|
+
!this.applicableCountries.includes(this.formData.basicInfo.recCountry)
|
|
415
|
+
) {
|
|
416
|
+
this.formData.payerInfo.paymentWay = "";
|
|
417
|
+
this.formData.payerInfo.paymentWayName = "";
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
if (
|
|
421
|
+
!(
|
|
422
|
+
this.applicableCurrencyNos.length == 0 ||
|
|
423
|
+
this.applicableCurrencyNos.includes("ALL")
|
|
424
|
+
)
|
|
425
|
+
) {
|
|
426
|
+
if (
|
|
427
|
+
!this.applicableCurrencyNos.includes(
|
|
428
|
+
this.formData.transInfo.currencyNo
|
|
429
|
+
)
|
|
430
|
+
) {
|
|
431
|
+
this.formData.payerInfo.paymentWay = "";
|
|
432
|
+
this.formData.payerInfo.paymentWayName = "";
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
if (
|
|
436
|
+
this.excludeCountries.includes(this.formData.basicInfo.recCountry) ||
|
|
437
|
+
this.excludeCurrencyNos.includes(this.formData.transInfo.currencyNo)
|
|
438
|
+
) {
|
|
439
|
+
this.formData.payerInfo.paymentWay = "";
|
|
440
|
+
this.formData.payerInfo.paymentWayName = "";
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
deleteOtherData() {
|
|
444
|
+
console.log(this.setDynamicData, "this.setDynamicData");
|
|
445
|
+
let temp = this.setDynamicData.units.map((item) => item.prop);
|
|
446
|
+
for (let i in this.formData) {
|
|
447
|
+
if (!temp.includes(i)) {
|
|
448
|
+
delete this.formData[i];
|
|
449
|
+
}
|
|
450
|
+
}
|
|
451
|
+
},
|
|
452
|
+
async changeFormData({val, prop, type, item, group}) {
|
|
453
|
+
changeFormDataDoc(this, val, prop, item);
|
|
454
|
+
},
|
|
455
|
+
async changerRecRegNo(value, scope) {
|
|
456
|
+
await this.$nextTick();
|
|
457
|
+
if (!this.$refs["recRegNo"]) return;
|
|
458
|
+
let res = await this.$refs["recRegNo"].$refs["el-cascader"].getCheckedNodes();
|
|
459
|
+
this.$set(this.formData.receiverInfo, "recRegName", res[0]?.pathLabels.join("") || "");
|
|
460
|
+
this.formData.receiverInfo.recRegNo &&
|
|
461
|
+
this.$refs["NstcDynamicForm"]?.$refs["dynamicForms"].clearValidate();
|
|
462
|
+
},
|
|
463
|
+
changeAmount() {
|
|
464
|
+
if (this.isShowObject.declareInfo && this.formData.declareInfo) {
|
|
465
|
+
this.formData.declareInfo.transAmountOne = this.formData.transInfo.amount;
|
|
466
|
+
}
|
|
467
|
+
},
|
|
468
|
+
getDynamicFormConfig() {
|
|
469
|
+
const params = {
|
|
470
|
+
currencyNo: "USD", //币种
|
|
471
|
+
payBankNo: "", // 付方开户行
|
|
472
|
+
payCountry: "CHN", //付款国家
|
|
473
|
+
payWay: "DEPOSIT", //付款类型
|
|
474
|
+
recCountry: "CHN", //收款国家
|
|
475
|
+
}
|
|
476
|
+
axios.get('/api/nstc-ptms/1.0/payment/bank/route/page', params).then(res => {
|
|
477
|
+
this.dynamicData = {...this.dynamicData, ...res.data};
|
|
478
|
+
|
|
479
|
+
this.setDynamicData = res.data;
|
|
480
|
+
this.dynamicData.pageId = true;
|
|
481
|
+
})
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
</script>
|
|
486
|
+
|