生产领料打印
This commit is contained in:
parent
6d60e76942
commit
5c4ac2a745
|
@ -1,6 +1,6 @@
|
||||||
/*auVpq9xwZL1gPRSzNVP/w0hBm26YHXsnVMAUlT2iQRQ=*/
|
/*auVpq9xwZL1gPRSzNVP/w0hBm26YHXsnVMAUlT2iQRQ=*/
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { createPage, base, createPageIcon } from 'nc-lightapp-front';
|
import { createPage, base, createPageIcon,print,output} from 'nc-lightapp-front';
|
||||||
import { AREA, BUTTON, BILLTYPE, FIELD } from '../constance';
|
import { AREA, BUTTON, BILLTYPE, FIELD } from '../constance';
|
||||||
import { initPickmTemplate, initReqpickmTemplate, initTemplate,initDirectTransTemplate } from './init';
|
import { initPickmTemplate, initReqpickmTemplate, initTemplate,initDirectTransTemplate } from './init';
|
||||||
import { serachPickm_btnClick, serachReqpickm_btnClick, onList_BtnClicks, selectOrg_BtnClick ,serachDirectTrans_btnClick} from './btnClicks';
|
import { serachPickm_btnClick, serachReqpickm_btnClick, onList_BtnClicks, selectOrg_BtnClick ,serachDirectTrans_btnClick} from './btnClicks';
|
||||||
|
@ -19,6 +19,7 @@ import { onhandChange } from './afterEvent';
|
||||||
import { showWarningDialog } from '../../../../mmpub/mmpub/pub/tool/messageUtil';
|
import { showWarningDialog } from '../../../../mmpub/mmpub/pub/tool/messageUtil';
|
||||||
const { NCTabs, NCDiv } = base;
|
const { NCTabs, NCDiv } = base;
|
||||||
const NCTabPane = NCTabs.NCTabPane;
|
const NCTabPane = NCTabs.NCTabPane;
|
||||||
|
const nodekey = "insetrule_print";
|
||||||
let { issueAppcode, headPageArea, bodyPageArea } = AREA;
|
let { issueAppcode, headPageArea, bodyPageArea } = AREA;
|
||||||
class List extends Component {
|
class List extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
@ -222,6 +223,38 @@ class List extends Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//打印方法
|
||||||
|
onClickPrint = (pkarray,callback = EMPTY_FN)=>{
|
||||||
|
print(
|
||||||
|
'pdf',
|
||||||
|
urls['print'],
|
||||||
|
{
|
||||||
|
//打印请求的ur1
|
||||||
|
funcode: this.config.moduleId,
|
||||||
|
nodekey:nodekey,
|
||||||
|
oids:pkarray
|
||||||
|
}
|
||||||
|
)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// 输出功能
|
||||||
|
|
||||||
|
onOutPut=(oids)=>{
|
||||||
|
let printdata={
|
||||||
|
funcode: this.config.moduleId,
|
||||||
|
appcode: this.config.moduleId,
|
||||||
|
nodekey: nodekey,
|
||||||
|
oids: oids,
|
||||||
|
outputType: "output",
|
||||||
|
};
|
||||||
|
//小应用编码//小应用编码
|
||||||
|
//默认模板分配的key//需要输出的单据主键//输出类型 --默认output
|
||||||
|
output({ url: urls['print'], data: printdata });
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
const { search, BillHeadInfo } = this.props;
|
const { search, BillHeadInfo } = this.props;
|
||||||
const { NCCreateSearch } = search;
|
const { NCCreateSearch } = search;
|
||||||
|
|
Loading…
Reference in New Issue