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
import Api from '~/service/Api';
import CommonEvent from "../../common/event/CommonEvent"
import DbcpEvent from "../../common/event/DbcpEvent"
export default {
mixins: [CommonEvent, DbcpEvent],
methods: {
changeBasType(e) {
if (e === undefined) {
return
}
if (this.model.mtabut.basflg === "X") {
this.model.recgrp.bas.actiontype = "A"
//模拟新增数据
this.model.recgrp.bas.rptno = "110000000701230809LV01"
this.model.recgrp.bas.custype = "C"
this.model.recgrp.bas.custnm = "鸿富锦精密电子(济南)有限公司"
this.model.recgrp.bas.buscode = "FB3941190004AGWW"
this.model.recgrp.bas.fcyamt = 20
this.model.recgrp.bas.method = "G"
this.model.recgrp.bas.oppuser = "(JW)ABCWW"
this.model.recgrp.bas.fcyacc = "39411488000040103WW"
this.model.recgrp.bas.txccy = "USD"
this.model.recgrp.bas.txamt = 20000
this.model.recgrp.bas.actuccy = "USD"
this.model.recgrp.bas.actuamt = 20000
} else {
this.model.recgrp.bas.actiontype = ""
}
},
changeDclType(e) {
if (e === undefined) {
return
}
if (this.model.mtabut.dclflg === "X") {
this.model.recgrp.dcl.actiontype = "A"
//模拟新增数据
this.model.recgrp.dcl.rptno = "110000000701230809LV01"
this.model.recgrp.dcl.rptdate = new Date("2023/08/15")
this.model.recgrp.dcl.paytype = "O"
this.model.recgrp.dcl.txrem = "395(WTS)一二WW33"
this.model.recgrp.dcl.tx2rem = "二三WW121212"
this.model.recgrp.dcl.isref = "Y"
this.model.recgrp.dcl.crtuser = "王腾飞"
this.model.recgrp.dcl.inptelc = "13456789123"
} else {
this.model.recgrp.dcl.actiontype = ""
}
},
changeVrfType(e) {
if (e === undefined) {
return
}
if (this.model.mtabut.vrfflg === "X") {
this.model.recgrp.vrf.actiontype = "A"
//模拟新增数据
this.model.recgrp.vrf.rptno = "110000000701230809LV01"
this.model.recgrp.vrf.contrno = "01601212"
this.model.recgrp.vrf.crtuser = "王腾飞"
this.model.recgrp.vrf.inptelc = "13456789123"
this.model.recgrp.vrf.invoino = "01271331212"
this.model.recgrp.vrf.rptdate = new Date("2023/08/15")
this.model.recgrp.vrf.billno = "123452"
this.model.recgrp.vrf.contamt = 2000
} else {
this.model.recgrp.vrf.actiontype = ""
}
},
// 获取地区机构号
async getOwnExtkeyCondition() {
const loading = this.loading();
let body = { ownExtKey: "" };
// if (this.model.trnInfo && this.model.trnInfo.sdhflg == "X" && this.model.cfagit.ownextkey) {
// body.ownExtKey = this.model.cfagit.ownextkey;
// }
let res = await Api.post('/report/cfa/public/getBranchListByownExtKey', body);
loading.close();
if (res.respCode === SUCCESS) {
this.ownExtkeyList = res.data;
}
},
//获取交易编码列列表
async getBopcodItems() {
console.log("进入getBopcodList");
const loading = this.loading();
let iotyp = "O"
let res = await Api.post(`/report/bopnew/public/getBopcodList/${iotyp}`,{});
loading.close();
if (res.respCode === SUCCESS) {
this.bopcodList = res.data;
this.options1 = this.bopcodList;
this.options2 = this.bopcodList;
}
},
}
}