index.js 1.42 KB
Newer Older
fukai committed
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
import Api from '~/service/Api';
import CommonEvent from "../../common/event/CommonEvent"
export default {
	mixins: [CommonEvent],
	methods: {
		changeBasType(e) {
			if (e === undefined) {
				return;
			}
			if (this.model.mtabut.basflg === "X") {
				this.model.recgrp.bas.actiontype = "A";
			} else {
				this.model.recgrp.bas.actiontype = "";
			}
		},
		changeVrfType(e) {
			if (e === undefined) {
				return;
			}
			if (this.model.mtabut.vrfflg === "X") {
				this.model.recgrp.vrf.actiontype = "A";
			} 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"
fukai committed
44
			let res = await Api.post(`/report/bopnew/public/getBopcodList/${iotyp}`,{});
fukai committed
45 46 47 48 49 50 51 52 53 54
			loading.close();
			if (res.respCode === SUCCESS) {
				this.bopcodList = res.data;
				this.options1 = this.bopcodList;
				this.options2 = this.bopcodList;
			}

		},
	}
}