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
import Api from '~/service/Api';
import commonFunctions from '~/mixin/commonFunctions.js';
export default {
mixins: [commonFunctions],
methods: {
async queryOwnref() {
let params = {
ownref: this.model.fcngrp.rec.ownref,
ptainr: this.model.fcngrp.apl.pts.ptainr,
};
const loading = this.loading();
let res = await Api.post('/business/fcnopn/getOwnRef', params);
if (res.respCode == SUCCESS) {
this.model.fcngrp.rec.ownref = res.data;
} else {
this.$message.error(res.respMsg);
}
loading.close();
},
async changeApl() {
if (!!this.model.fcngrp.apl.pts.ptainr) {
let param = {
ptainr: this.model.fcngrp.apl.pts.ptainr,
}
let res = await Api.post('/business/fcnopn/getIdcode', param);
if (res.respCode == SUCCESS) {
this.model.fcngrp.rec.idcode = res.data;
} else {
this.$message.error(res.respMsg)
}
this.model.fcngrp.rec.cusnam = this.model.fcngrp.apl.pts.cnnam
}
}
}
}