Commit fa08df65 by 闫泽浩

letdrw获取单据编号

parent b64312d4
...@@ -139,6 +139,20 @@ export default { ...@@ -139,6 +139,20 @@ export default {
this.model.ledgrp.rec.ownref = res.data; 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弹框表格数据 // 获取gitopn弹框表格数据
async queryGridEtyPromptDialogData(type, ptytyp) { async queryGridEtyPromptDialogData(type, ptytyp) {
let params = { let params = {
......
...@@ -193,9 +193,15 @@ ...@@ -193,9 +193,15 @@
disabled disabled
></c-input> ></c-input>
<template slot="footer"> <template slot="footer">
<c-button size="small" type="primary" <c-button
:disabled="model.bedgrp.rec.ownref!=''||model.ledgrp.rec.ownref==''"> style="margin: 0 0"
Get Ref size="small"
type="primary"
:disabled="
model.ledgrp.ben.pts.adrblk && !model.ledgrp.rec.ownref? false: true"
@click="getBedgrpOwnref"
>
获取
</c-button> </c-button>
</template> </template>
</c-fullbox> </c-fullbox>
......
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