Commit fa08df65 by 闫泽浩

letdrw获取单据编号

parent b64312d4
......@@ -139,6 +139,20 @@ export default {
this.model.ledgrp.rec.ownref = res.data;
}
},
//获取单据编号
async getBedgrpOwnref() {
let params = {
ptainr: this.model.ledgrp.ben.pts.ptainr,
businessType: 'BP',
tbl: 'BP',
};
const loading = this.loading();
let res = await Api.post('/service/letdrw/getOwnRef', params);
if (res.respCode == SUCCESS) {
loading.close();
this.model.Bedgrp.rec.ownref = res.data;
}
},
// 获取gitopn弹框表格数据
async queryGridEtyPromptDialogData(type, ptytyp) {
let params = {
......
......@@ -193,10 +193,16 @@
disabled
></c-input>
<template slot="footer">
<c-button size="small" type="primary"
:disabled="model.bedgrp.rec.ownref!=''||model.ledgrp.rec.ownref==''">
Get Ref
</c-button>
<c-button
style="margin: 0 0"
size="small"
type="primary"
:disabled="
model.ledgrp.ben.pts.adrblk && !model.ledgrp.rec.ownref? false: true"
@click="getBedgrpOwnref"
>
获取
</c-button>
</template>
</c-fullbox>
</el-form-item>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment