import commonFunctions from '~/mixin/commonFunctions.js'; import Api from '~/service/Api'; export default { mixins: [commonFunctions], methods: { async getOwnref() { if (this.model.crdgrp.rec.clrtyp == "") { this.$notify.warning({ title: "提示", message: "清算类型为空!", }); return; } const loading = this.loading(); let res = await Api.post( `/${this.moduleRouter()}/crtcbk/getRef`, this.model ); loading.close(); if (res.respCode !== SUCCESS) { this.$message.error(res.respMsg); return; } this.model.crdgrp.rec.ownref = res.data; }, } }