物料增加按钮-推送电力电子、箱变、精密物料

This commit is contained in:
mzr 2025-11-12 18:45:04 +08:00
parent 855c0405c2
commit 9c2c4f7484
2 changed files with 1155 additions and 822 deletions

View File

@ -15,6 +15,7 @@ const {NCTooltip} = base;
export default function (props, id) { export default function (props, id) {
let _this = this; let _this = this;
let {initImages, initImagesrc, initImgList, curPageIndex} = this.state; let {initImages, initImagesrc, initImgList, curPageIndex} = this.state;
let pks = [];
switch (id) { switch (id) {
case 'Add': case 'Add':
ajax({ ajax({
@ -655,17 +656,35 @@ export default function (props, id) {
enctype: 1 enctype: 1
}); });
break; break;
case 'pushtoqms': case 'dldztomes':
pk = this.props.form.getFormItemsValue(formid, 'pk_material'); pk = this.props.form.getFormItemsValue(formid, 'pk_material');
pks.push(pk.value)
ajax({ ajax({
url: "/nccloud/uapbd/material/pushtoqms.do", url: "/nccloud/uapbd/material/pushtodldzmes.do",
data: { data: {
pk_material: pk.value pks: pks
}, },
success: (res) => { success: (res) => {
this.onButtonClick(props, 'Refresh'); this.onButtonClick(props, 'Refresh');
toast({ toast({
content: "推送启源qms成功", content: "推送成功",
color: 'success'
});/* 国际化处理: 操作成功*/
}
})
break;
case 'pushtoqms':
pk = this.props.form.getFormItemsValue(formid, 'pk_material');
pks.push(pk.value)
ajax({
url: "/nccloud/uapbd/material/pushtoqms.do",
data: {
pks: pks
},
success: (res) => {
this.onButtonClick(props, 'Refresh');
toast({
content: "推送成功",
color: 'success' color: 'success'
});/* 国际化处理: 操作成功*/ });/* 国际化处理: 操作成功*/
} }
@ -673,15 +692,16 @@ export default function (props, id) {
break; break;
case 'pushtojmqy': case 'pushtojmqy':
pk = this.props.form.getFormItemsValue(formid, 'pk_material'); pk = this.props.form.getFormItemsValue(formid, 'pk_material');
pks.push(pk.value)
ajax({ ajax({
url: "/nccloud/uapbd/material/pushtojmqy.do", url: "/nccloud/uapbd/material/pushtojmqy.do",
data: { data: {
pks: pk.value pks: pks
}, },
success: (res) => { success: (res) => {
this.onButtonClick(props, 'Refresh'); this.onButtonClick(props, 'Refresh');
toast({ toast({
content: "推送启源成功", content: "推送成功",
color: 'success' color: 'success'
});/* 国际化处理: 操作成功*/ });/* 国际化处理: 操作成功*/
} }

View File

@ -9,10 +9,21 @@
*/ */
import React, {Component} from 'react'; import React, {Component} from 'react';
import ReactDOM from 'react-dom'; import {
import { createPage, ajax, base,high,toast,print,getBusinessInfo,cardCache,promptBox,deepClone,output,formDownload,crossTabData } from 'nc-lightapp-front'; ajax,
const { NCTooltip } = base; base,
import Utils from '../../../public/utils'; cardCache,
createPage,
crossTabData,
deepClone,
formDownload,
getBusinessInfo,
high,
output,
print,
promptBox,
toast
} from 'nc-lightapp-front';
import AssignStepModal from '../excomponents/assign/AssignStepModal'; import AssignStepModal from '../excomponents/assign/AssignStepModal';
import AssignModal from '../excomponents/assign/AssignModal'; import AssignModal from '../excomponents/assign/AssignModal';
import excelImportconfig from 'uap/common/components/excelImportconfig'; import excelImportconfig from 'uap/common/components/excelImportconfig';
@ -25,6 +36,8 @@ import './index.less';
import Batcheditmodal from '../excomponents/batchEdit/BatchEditModal'; import Batcheditmodal from '../excomponents/batchEdit/BatchEditModal';
import Batcheditstepmodal from '../excomponents/batchEdit/BatchEditStepModal'; import Batcheditstepmodal from '../excomponents/batchEdit/BatchEditStepModal';
const {NCTooltip} = base;
let {setDefData, getDefData} = cardCache; let {setDefData, getDefData} = cardCache;
const {PrintOutput} = high; const {PrintOutput} = high;
const {NCButton, NCDiv, NCUpload} = base; const {NCButton, NCDiv, NCUpload} = base;
@ -82,7 +95,8 @@ const EditTabConfig = {
"materialwarh_info": 'pk_org' "materialwarh_info": 'pk_org'
} }
}; };
const EMPTYFUNC = () => {}; const EMPTYFUNC = () => {
};
/** /**
* 有权限的组织pk * 有权限的组织pk
*/ */
@ -171,12 +185,14 @@ class Material extends Component {
if (info.file.response.data) { if (info.file.response.data) {
toast({content: info.file.response.data, color: "danger", title: "出错啦"}); toast({content: info.file.response.data, color: "danger", title: "出错啦"});
} else { } else {
toast({content:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-0000176'),color:"success"}); toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-0000176'),
color: "success"
});
} }
console.log(`${info.file.name} file uploaded successfully`); console.log(`${info.file.name} file uploaded successfully`);
// props.modal.close('importImagesModel'); // props.modal.close('importImagesModel');
} } else if (info.file.status === 'error') {
else if (info.file.status === 'error') {
console.log(`${info.file.name} file upload failed.`); console.log(`${info.file.name} file upload failed.`);
} }
}, },
@ -213,10 +229,16 @@ class Material extends Component {
this.updateButtonDisable(); this.updateButtonDisable();
if (this.config.node_type === 'GROUP_NODE') { if (this.config.node_type === 'GROUP_NODE') {
let businessInfo = getBusinessInfo(); let businessInfo = getBusinessInfo();
this.props.search.setSearchValByField(searchid,'pk_org',{value:businessInfo.groupId,display:businessInfo.groupName}); this.props.search.setSearchValByField(searchid, 'pk_org', {
value: businessInfo.groupId,
display: businessInfo.groupName
});
} else { } else {
if (this.state.context && this.state.context.pk_org && this.state.context.org_Name) { if (this.state.context && this.state.context.pk_org && this.state.context.org_Name) {
this.props.search.setSearchValByField(searchid,'pk_org_assign',{value:this.state.context.pk_org,display:this.state.context.org_Name}); this.props.search.setSearchValByField(searchid, 'pk_org_assign', {
value: this.state.context.pk_org,
display: this.state.context.org_Name
});
} }
} }
// 如果从卡片页返回列表 则给oids赋值 否则打印输出拿不到数据 // 如果从卡片页返回列表 则给oids赋值 否则打印输出拿不到数据
@ -232,7 +254,10 @@ class Material extends Component {
initTemplate = (props, modifierMeta, callback) => { initTemplate = (props, modifierMeta, callback) => {
let count = 0; let count = 0;
let AppCode = props.getAppCode(); let AppCode = props.getAppCode();
let data,res;console.log(data);console.log(res);console.log(props.meta.getMeta()); let data, res;
console.log(data);
console.log(res);
console.log(props.meta.getMeta());
let handleMetaTemplete = () => { let handleMetaTemplete = () => {
if (data.button) { if (data.button) {
let button = data.button; let button = data.button;
@ -260,26 +285,86 @@ class Material extends Component {
setDefData('searchVal', this.props.config.datasource, searchVal); setDefData('searchVal', this.props.config.datasource, searchVal);
this.queryData(); this.queryData();
}); });
let stockimportconfig = excelImportconfig(props, 'uapbd', 'materialstock', true, '', { appcode: '10140MAG', pagecode: 'stock_import', isbatch: 'Y', nodetype: props.config.billType }, () => { }); let stockimportconfig = excelImportconfig(props, 'uapbd', 'materialstock', true, '', {
appcode: '10140MAG',
pagecode: 'stock_import',
isbatch: 'Y',
nodetype: props.config.billType
}, () => {
});
props.button.setUploadConfig("importstock", stockimportconfig); props.button.setUploadConfig("importstock", stockimportconfig);
let saleimportconfig = excelImportconfig(props, 'uapbd', 'materialsale', true, '', { appcode: '10140MAG', pagecode: 'sale_import', isbatch: 'Y', nodetype: props.config.billType }, () => { }); let saleimportconfig = excelImportconfig(props, 'uapbd', 'materialsale', true, '', {
appcode: '10140MAG',
pagecode: 'sale_import',
isbatch: 'Y',
nodetype: props.config.billType
}, () => {
});
props.button.setUploadConfig("importsale", saleimportconfig); props.button.setUploadConfig("importsale", saleimportconfig);
let fiimportconfig = excelImportconfig(props, 'uapbd', 'materialfi', true, '', { appcode: '10140MAG', pagecode: 'fi_import', isbatch: 'Y', nodetype: props.config.billType }, () => { }); let fiimportconfig = excelImportconfig(props, 'uapbd', 'materialfi', true, '', {
appcode: '10140MAG',
pagecode: 'fi_import',
isbatch: 'Y',
nodetype: props.config.billType
}, () => {
});
props.button.setUploadConfig("importfi", fiimportconfig); props.button.setUploadConfig("importfi", fiimportconfig);
let puimportconfig = excelImportconfig(props, 'uapbd', 'materialpu', true, '', { appcode: '10140MAG', pagecode: 'pu_import', isbatch: 'Y', nodetype: props.config.billType }, () => { }); let puimportconfig = excelImportconfig(props, 'uapbd', 'materialpu', true, '', {
appcode: '10140MAG',
pagecode: 'pu_import',
isbatch: 'Y',
nodetype: props.config.billType
}, () => {
});
props.button.setUploadConfig("importpu", puimportconfig); props.button.setUploadConfig("importpu", puimportconfig);
let prodimportconfig = excelImportconfig(props, 'uapbd', 'materialprod', true, '', { appcode: '10140MAG', pagecode: 'prod_import', isbatch: 'Y', nodetype: props.config.billType }, () => { }); let prodimportconfig = excelImportconfig(props, 'uapbd', 'materialprod', true, '', {
appcode: '10140MAG',
pagecode: 'prod_import',
isbatch: 'Y',
nodetype: props.config.billType
}, () => {
});
props.button.setUploadConfig("importprod", prodimportconfig); props.button.setUploadConfig("importprod", prodimportconfig);
let costimportconfig = excelImportconfig(props, 'uapbd', 'materialcost', true, '', { appcode: '10140MAG', pagecode: 'cost_import', isbatch: 'Y', nodetype: props.config.billType }, () => { }); let costimportconfig = excelImportconfig(props, 'uapbd', 'materialcost', true, '', {
appcode: '10140MAG',
pagecode: 'cost_import',
isbatch: 'Y',
nodetype: props.config.billType
}, () => {
});
props.button.setUploadConfig("importcost", costimportconfig); props.button.setUploadConfig("importcost", costimportconfig);
let planimportconfig = excelImportconfig(props, 'uapbd', 'materialplan', true, '', { appcode: '10140MAG', pagecode: 'plan_import', isbatch: 'Y', nodetype: props.config.billType }, () => { }); let planimportconfig = excelImportconfig(props, 'uapbd', 'materialplan', true, '', {
appcode: '10140MAG',
pagecode: 'plan_import',
isbatch: 'Y',
nodetype: props.config.billType
}, () => {
});
props.button.setUploadConfig("importplan", planimportconfig); props.button.setUploadConfig("importplan", planimportconfig);
let pfcimportconfig = excelImportconfig(props, 'uapbd', 'materialpfc', true, '', { appcode: '10140MAG', pagecode: 'pfc_import', isbatch: 'Y', nodetype: props.config.billType }, () => { }); let pfcimportconfig = excelImportconfig(props, 'uapbd', 'materialpfc', true, '', {
appcode: '10140MAG',
pagecode: 'pfc_import',
isbatch: 'Y',
nodetype: props.config.billType
}, () => {
});
props.button.setUploadConfig("importpfc", pfcimportconfig); props.button.setUploadConfig("importpfc", pfcimportconfig);
let pfccimportconfig = excelImportconfig(props, 'uapbd', 'materialpfcc', true, '', { appcode: '10140MAG', pagecode: 'cost_import', isbatch: 'Y', nodetype: props.config.billType }, () => { }); let pfccimportconfig = excelImportconfig(props, 'uapbd', 'materialpfcc', true, '', {
appcode: '10140MAG',
pagecode: 'cost_import',
isbatch: 'Y',
nodetype: props.config.billType
}, () => {
});
props.button.setUploadConfig("importpfcc", pfccimportconfig); props.button.setUploadConfig("importpfcc", pfccimportconfig);
let import_assignconfig = excelImportconfig(props, 'uapbd', 'import_assign', true, '', { appcode: '10140MAG', pagecode: 'import_assign', isbatch: 'Y', nodetype: props.config.billType }, () => { }); let import_assignconfig = excelImportconfig(props, 'uapbd', 'import_assign', true, '', {
appcode: '10140MAG',
pagecode: 'import_assign',
isbatch: 'Y',
nodetype: props.config.billType
}, () => {
});
props.button.setUploadConfig("import_assign", import_assignconfig); props.button.setUploadConfig("import_assign", import_assignconfig);
props.button.setUploadConfig("import", excelimportconfig); props.button.setUploadConfig("import", excelimportconfig);
@ -305,7 +390,8 @@ class Material extends Component {
let meta = data.template; let meta = data.template;
meta = modifierMeta.call(this, props, meta); meta = modifierMeta.call(this, props, meta);
props.meta.setMeta(meta, () => { props.meta.setMeta(meta, () => {
var cb = callback || function () { }; var cb = callback || function () {
};
cb(); cb();
}); });
@ -714,7 +800,8 @@ class Material extends Component {
pk_group: businessInfo.groupId, pk_group: businessInfo.groupId,
AppCode: AppCode, AppCode: AppCode,
TreeRefActionExt: 'nccloud.web.uapbd.material.action.BusinessUnitAndGroupTreeRefExt' TreeRefActionExt: 'nccloud.web.uapbd.material.action.BusinessUnitAndGroupTreeRefExt'
}} }
}
}); });
meta['materialqry'].items.forEach((item, index) => { meta['materialqry'].items.forEach((item, index) => {
if (item.attrcode === 'pk_marbasclass') { if (item.attrcode === 'pk_marbasclass') {
@ -781,7 +868,10 @@ class Material extends Component {
break; break;
case 'UpgradeOpr': case 'UpgradeOpr':
if (record.pk_org.value === record.pk_group.value) { if (record.pk_org.value === record.pk_group.value) {
toast({content:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000026'),color:'warning'});/* 国际化处理: 待升级物料全部为集团数据,不需升级。*/ toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000026'),
color: 'warning'
});/* 国际化处理: 待升级物料全部为集团数据,不需升级。*/
break; break;
} }
ajax({ ajax({
@ -817,7 +907,10 @@ class Material extends Component {
}, },
success: (res) => { success: (res) => {
this.onButtonClick(props, 'Refresh'); this.onButtonClick(props, 'Refresh');
toast({content:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000028'),color:'success'});/* 国际化处理: 操作成功*/ toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000028'),
color: 'success'
});/* 国际化处理: 操作成功*/
} }
}) })
} }
@ -825,7 +918,10 @@ class Material extends Component {
} }
} else { } else {
this.onButtonClick(props, 'Refresh'); this.onButtonClick(props, 'Refresh');
toast({content:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000028'),color:'success'});/* 国际化处理: 操作成功*/ toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000028'),
color: 'success'
});/* 国际化处理: 操作成功*/
} }
} }
}); });
@ -899,7 +995,10 @@ class Material extends Component {
this.queryData({pageInfo: {...pageInfo1}, isRefresh: false}); this.queryData({pageInfo: {...pageInfo1}, isRefresh: false});
} }
this.updateButtonDisable(); this.updateButtonDisable();
toast({ content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000022'), color: 'success' });/* 国际化处理: 启用成功*/ toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000022'),
color: 'success'
});/* 国际化处理: 启用成功*/
} }
}); });
} }
@ -941,7 +1040,10 @@ class Material extends Component {
if (data.error) { if (data.error) {
toast({content: data.error, color: 'warning'}); toast({content: data.error, color: 'warning'});
} else { } else {
toast({ content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000025'), color: 'success' });/* 国际化处理: 停用成功*/ toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000025'),
color: 'success'
});/* 国际化处理: 停用成功*/
} }
} }
}); });
@ -1029,11 +1131,13 @@ class Material extends Component {
} }
searchdata.pageCode = pagecode; searchdata.pageCode = pagecode;
searchdata.pageInfo = pageInfo; searchdata.pageInfo = pageInfo;
searchdata.custcondition = {conditions:[{ searchdata.custcondition = {
conditions: [{
field: 'node_type', value: {firstvalue: this.config.node_type} field: 'node_type', value: {firstvalue: this.config.node_type}
}, { }, {
field: 'isShowDisable', value: {firstvalue: this.state.checkflag ? '1' : '0'} field: 'isShowDisable', value: {firstvalue: this.state.checkflag ? '1' : '0'}
}]}; }]
};
ajax({ ajax({
url: urls['searchQuery'], url: urls['searchQuery'],
data: searchdata, data: searchdata,
@ -1047,7 +1151,10 @@ class Material extends Component {
); );
} }
let {sucess, data} = res; let {sucess, data} = res;
isRefresh && toast({color:'success',title:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-0000147')});/* 国际化处理: 刷新成功!*/ isRefresh && toast({
color: 'success',
title: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-0000147')
});/* 国际化处理: 刷新成功!*/
if (data && data[tableid]) { if (data && data[tableid]) {
if (isToTop) { if (isToTop) {
this.setState({oids: data[tableid].allpks}, this.props.table.setAllTableData(tableid, data[tableid])); this.setState({oids: data[tableid].allpks}, this.props.table.setAllTableData(tableid, data[tableid]));
@ -1064,12 +1171,21 @@ class Material extends Component {
} }
let sum = data[tableid].allpks ? data[tableid].allpks.length : 0; let sum = data[tableid].allpks ? data[tableid].allpks.length : 0;
if (sum === 0) { if (sum === 0) {
isSearch && toast({content:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000062'),color:'warning'});/* 国际化处理: 未查询到符合条件的数据!,请注意!*/ isSearch && toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000062'),
color: 'warning'
});/* 国际化处理: 未查询到符合条件的数据!,请注意!*/
} else { } else {
isSearch && toast({content:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000064',{sum:sum}),color:'success'});/* 国际化处理: 查询成功,共,条数据。,已成功!*/ isSearch && toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000064', {sum: sum}),
color: 'success'
});/* 国际化处理: 查询成功,共,条数据。,已成功!*/
} }
} else { } else {
isSearch && toast({content:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000062'),color:'warning'});/* 国际化处理: 未查询到符合条件的数据!,请注意!*/ isSearch && toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000062'),
color: 'warning'
});/* 国际化处理: 未查询到符合条件的数据!,请注意!*/
this.setState({oids: []}, this.props.table.setAllTableData(tableid, { this.setState({oids: []}, this.props.table.setAllTableData(tableid, {
allpks: [], allpks: [],
areacode: 'material', areacode: 'material',
@ -1088,7 +1204,8 @@ class Material extends Component {
/** /**
* 编辑后事件 * 编辑后事件
*/ */
onAfterEvent = () => {} onAfterEvent = () => {
}
onSelected = (props, moduleId, record, index, status) => { onSelected = (props, moduleId, record, index, status) => {
this.props.setUrlParam({'id': record.pk_material.value}) this.props.setUrlParam({'id': record.pk_material.value})
@ -1117,7 +1234,10 @@ class Material extends Component {
hasPerm = (orgs) => { hasPerm = (orgs) => {
for (let i = 0; i < orgs.length; i++) { for (let i = 0; i < orgs.length; i++) {
if (permOrg.indexOf(orgs[i]) === -1) { if (permOrg.indexOf(orgs[i]) === -1) {
toast({content:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000013'),color:'warning'});/* 国际化处理: 组织节点只能维护当前节点有权限组织的数据!*/ toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000013'),
color: 'warning'
});/* 国际化处理: 组织节点只能维护当前节点有权限组织的数据!*/
return false; return false;
} }
} }
@ -1147,7 +1267,9 @@ class Material extends Component {
return return
} }
let pk_orgs = []; let pk_orgs = [];
rows.forEach(row=>{pk_orgs.push(row.data.values.pk_org.value)}); rows.forEach(row => {
pk_orgs.push(row.data.values.pk_org.value)
});
if (this.hasPerm(pk_orgs)) { if (this.hasPerm(pk_orgs)) {
props.modal.show('deleteModal', { props.modal.show('deleteModal', {
content: this.getDeleteModalContext(), content: this.getDeleteModalContext(),
@ -1205,7 +1327,9 @@ class Material extends Component {
return return
} }
pk_orgs = []; pk_orgs = [];
rows.forEach(row=>{pk_orgs.push(row.data.values.pk_org.value)}); rows.forEach(row => {
pk_orgs.push(row.data.values.pk_org.value)
});
if (!this.hasPerm(pk_orgs)) { if (!this.hasPerm(pk_orgs)) {
break; break;
} }
@ -1267,7 +1391,10 @@ class Material extends Component {
// }); // });
} }
this.updateButtonDisable(); this.updateButtonDisable();
toast({content:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000022'),color:'success'});/* 国际化处理: 启用成功*/ toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000022'),
color: 'success'
});/* 国际化处理: 启用成功*/
} }
}); });
} }
@ -1280,7 +1407,9 @@ class Material extends Component {
return return
} }
pk_orgs = []; pk_orgs = [];
rows.forEach(row=>{pk_orgs.push(row.data.values.pk_org.value)}); rows.forEach(row => {
pk_orgs.push(row.data.values.pk_org.value)
});
if (!this.hasPerm(pk_orgs)) { if (!this.hasPerm(pk_orgs)) {
break; break;
} }
@ -1348,7 +1477,10 @@ class Material extends Component {
if (data.error) { if (data.error) {
toast({content: data.error, color: 'warning'}); toast({content: data.error, color: 'warning'});
} else { } else {
toast({content:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000025'),color:'success'});/* 国际化处理: 停用成功*/ toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000025'),
color: 'success'
});/* 国际化处理: 停用成功*/
} }
} }
@ -1404,7 +1536,10 @@ class Material extends Component {
if (success) { if (success) {
console.log(data); console.log(data);
} }
toast({content:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-0000173'),color:'success'});/* 国际化处理: 升级成功*/ toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-0000173'),
color: 'success'
});/* 国际化处理: 升级成功*/
let pageInfo = this.props.table.getTablePageInfo(tableid); let pageInfo = this.props.table.getTablePageInfo(tableid);
this.queryData({pageInfo, isRefresh: true}); this.queryData({pageInfo, isRefresh: true});
} }
@ -1434,7 +1569,10 @@ class Material extends Component {
case 'Copy': case 'Copy':
rows = props.table.getCheckedRows(tableid); rows = props.table.getCheckedRows(tableid);
if (!rows || rows.length !== 1) { if (!rows || rows.length !== 1) {
toast({content:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000067'),color:'warning'});/* 国际化处理: 请选择一条数据进行复制*/ toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000067'),
color: 'warning'
});/* 国际化处理: 请选择一条数据进行复制*/
return return
} }
ajax({ ajax({
@ -1456,7 +1594,9 @@ class Material extends Component {
return return
} }
pk_orgs = []; pk_orgs = [];
rows.forEach(row=>{pk_orgs.push(row.data.values.pk_org.value)}); rows.forEach(row => {
pk_orgs.push(row.data.values.pk_org.value)
});
ajax({ ajax({
url: urls['queryJurisdiction'], url: urls['queryJurisdiction'],
data: {}, data: {},
@ -1473,7 +1613,9 @@ class Material extends Component {
rows.forEach((val) => { rows.forEach((val) => {
ids.push(val.data.values.pk_material.value); ids.push(val.data.values.pk_material.value);
}); });
this.setState({assignModal:true},()=>{this.assignModal.show(ids,false);}); this.setState({assignModal: true}, () => {
this.assignModal.show(ids, false);
});
} }
}); });
@ -1502,7 +1644,9 @@ class Material extends Component {
// this.setState({assignStepModal:true},()=>{this.assignStepModal.show('assign');}); // this.setState({assignStepModal:true},()=>{this.assignStepModal.show('assign');});
// } // }
// }); // });
this.setState({assignStepModal:true},()=>{this.assignStepModal.show('assign');}); this.setState({assignStepModal: true}, () => {
this.assignStepModal.show('assign');
});
break; break;
case 'CancelAssign': case 'CancelAssign':
@ -1512,7 +1656,9 @@ class Material extends Component {
return return
} }
pk_orgs = []; pk_orgs = [];
rows.forEach(row=>{pk_orgs.push(row.data.values.pk_org.value)}); rows.forEach(row => {
pk_orgs.push(row.data.values.pk_org.value)
});
ajax({ ajax({
url: urls['queryJurisdiction'], url: urls['queryJurisdiction'],
data: {}, data: {},
@ -1529,7 +1675,9 @@ class Material extends Component {
rows.forEach((val) => { rows.forEach((val) => {
ids.push(val.data.values.pk_material.value); ids.push(val.data.values.pk_material.value);
}); });
this.setState({assignModal:true},()=>{this.assignModal.show(ids,true);}); this.setState({assignModal: true}, () => {
this.assignModal.show(ids, true);
});
} }
}); });
@ -1542,12 +1690,17 @@ class Material extends Component {
toast({content: 请选择数据, color: 'warning'});/* 国际化处理: 请选择数据,请选择数据*/ toast({content: 请选择数据, color: 'warning'});/* 国际化处理: 请选择数据,请选择数据*/
return return
} else if (rows.length > 1) { } else if (rows.length > 1) {
toast({content:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000068'),color:'warning'});/* 国际化处理: 请选择一条数据*/ toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000068'),
color: 'warning'
});/* 国际化处理: 请选择一条数据*/
return return
} }
this.props.modal.show('assignstatusModal', { this.props.modal.show('assignstatusModal', {
title: [this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000048'), /* 国际化处理: 已分配组织查询*/,/* 国际化处理: 已分配组织查询*/ title: [this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000048'), /* 国际化处理: 已分配组织查询*/,/* 国际化处理: 已分配组织查询*/
<NCTooltip inverse overlay={this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-0000180')} trigger={["hover"]}> <NCTooltip inverse
overlay={this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-0000180')}
trigger={["hover"]}>
<span className='iconfont icon-shuoming1 shuoming-style'></span> <span className='iconfont icon-shuoming1 shuoming-style'></span>
</NCTooltip>], </NCTooltip>],
content: this.getAssignStatus(rows[0].data.values['pk_material'].value) content: this.getAssignStatus(rows[0].data.values['pk_material'].value)
@ -1562,19 +1715,30 @@ class Material extends Component {
case 'Print': case 'Print':
let checkdata = props.table.getCheckedRows(tableid) let checkdata = props.table.getCheckedRows(tableid)
if (this.state.oids.length === 0) { if (this.state.oids.length === 0) {
toast({content:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000069'),color:'warning'});/* 国际化处理: 无可打印数据*/ toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000069'),
color: 'warning'
});/* 国际化处理: 无可打印数据*/
return; return;
} }
if (checkdata.length > 160000) { if (checkdata.length > 160000) {
toast({content:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-0000160'),color:'warning'});/* 国际化处理: 打印的数据不能大于16000条*/ toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-0000160'),
color: 'warning'
});/* 国际化处理: 打印的数据不能大于16000条*/
return; return;
} }
if (checkdata.length <= 0 && this.state.oids.length > 16000) { if (checkdata.length <= 0 && this.state.oids.length > 16000) {
toast({content:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-0000160'),color:'warning'});/* 国际化处理: 打印的数据不能大于16000条*/ toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-0000160'),
color: 'warning'
});/* 国际化处理: 打印的数据不能大于16000条*/
return; return;
} }
let pk_materials = []; let pk_materials = [];
checkdata.forEach(row=>{pk_materials.push(row.data.values.pk_material.value)}); checkdata.forEach(row => {
pk_materials.push(row.data.values.pk_material.value)
});
var tableorder = this.props.table.getSortParam(tableid); var tableorder = this.props.table.getSortParam(tableid);
print('pdf', print('pdf',
urls['print'], urls['print'],
@ -1589,9 +1753,14 @@ class Material extends Component {
case 'Output': case 'Output':
let checkdatas = props.table.getCheckedRows(tableid) let checkdatas = props.table.getCheckedRows(tableid)
let allpk_materials = []; let allpk_materials = [];
checkdatas.forEach(row=>{allpk_materials.push(row.data.values.pk_material.value)}); checkdatas.forEach(row => {
allpk_materials.push(row.data.values.pk_material.value)
});
if (this.state.oids.length === 0) { if (this.state.oids.length === 0) {
toast({content:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000070'),color:'warning'});/* 国际化处理: 无可输出的数据*/ toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000070'),
color: 'warning'
});/* 国际化处理: 无可输出的数据*/
return; return;
} }
@ -1611,11 +1780,16 @@ class Material extends Component {
case 'File': case 'File':
rows = props.table.getCheckedRows(tableid); rows = props.table.getCheckedRows(tableid);
if (!rows || rows.length !== 1) { if (!rows || rows.length !== 1) {
toast({content:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000071'),color:'warning'});/* 国际化处理: 请选择一条数据进行操作*/ toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000071'),
color: 'warning'
});/* 国际化处理: 请选择一条数据进行操作*/
return return
} }
pk_orgs = []; pk_orgs = [];
rows.forEach(row=>{pk_orgs.push(row.data.values.pk_org.value)}); rows.forEach(row => {
pk_orgs.push(row.data.values.pk_org.value)
});
if (!this.hasPerm(pk_orgs)) { if (!this.hasPerm(pk_orgs)) {
break; break;
} }
@ -1751,9 +1925,14 @@ class Material extends Component {
case 'exportimages': case 'exportimages':
let imageDatas = props.table.getCheckedRows(tableid) let imageDatas = props.table.getCheckedRows(tableid)
let allpks = []; let allpks = [];
imageDatas.forEach(row=>{allpks.push(row.data.values.pk_material.value)}); imageDatas.forEach(row => {
allpks.push(row.data.values.pk_material.value)
});
if (this.state.oids.length === 0) { if (this.state.oids.length === 0) {
toast({content:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000070'),color:'warning'});/* 国际化处理: 无可输出的数据*/ toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000070'),
color: 'warning'
});/* 国际化处理: 无可输出的数据*/
return; return;
} }
@ -1771,6 +1950,76 @@ class Material extends Component {
// case 'importimages': // case 'importimages':
// props.modal.show('importImagesModel'); // props.modal.show('importImagesModel');
// break; // break;
case 'dldztomes':
rows = props.table.getCheckedRows(tableid);
if (!rows || rows.length === 0) {
toast({content: '请选择数据', color: 'warning'});/* 国际化处理: 请选择数据,请选择数据*/
return
}
pks = [];
rows.forEach(row => {
pks.push(row.data.values.pk_material.value)
});
ajax({
url: "/nccloud/uapbd/material/pushtodldzmes.do",
data: {
pks: pks
},
success: (res) => {
toast({
content: "推送成功",
color: 'success'
});
// this.onButtonClick(props, 'Refresh');
}
})
break;
case 'pushtoqms':
rows = props.table.getCheckedRows(tableid);
if (!rows || rows.length === 0) {
toast({content: '请选择数据', color: 'warning'});/* 国际化处理: 请选择数据,请选择数据*/
return
}
pks = [];
rows.forEach(row => {
pks.push(row.data.values.pk_material.value)
});
ajax({
url: "/nccloud/uapbd/material/pushtoqms.do",
data: {
pks: pks
},
success: (res) => {
toast({
content: "推送成功",
color: 'success'
});
}
})
break;
case 'pushtojmqy':
rows = props.table.getCheckedRows(tableid);
if (!rows || rows.length === 0) {
toast({content: '请选择数据', color: 'warning'});/* 国际化处理: 请选择数据,请选择数据*/
return
}
pks = [];
rows.forEach(row => {
pks.push(row.data.values.pk_material.value)
});
ajax({
url: "/nccloud/uapbd/material/pushtojmqy.do",
data: {
pks: pks
},
success: (res) => {
toast({
content: "推送成功",
color: 'success'
});
}
})
break;
default: default:
break; break;
} }
@ -1784,25 +2033,64 @@ class Material extends Component {
); );
} }
getDeleteModalContext = (dataArr, indexArr) => { getDeleteModalContext = (dataArr, indexArr) => {
let newModalTitle={fontWeight: 'normal !important',paddingLeft: 38,lineHeight: '21px',fontSize: 18,marginTop: 5,display: 'flex'}; let newModalTitle = {
let newModalBody={marginBottom: 15,padding: '8px 47px 0 85px',width: '100%',fontSize: 13,height: '-webkit-max-content',height: '-moz-max-content',height: 'max-content',lineHeight: '21px',color: '#555555'}; fontWeight: 'normal !important',
paddingLeft: 38,
lineHeight: '21px',
fontSize: 18,
marginTop: 5,
display: 'flex'
};
let newModalBody = {
marginBottom: 15,
padding: '8px 47px 0 85px',
width: '100%',
fontSize: 13,
height: '-webkit-max-content',
height: '-moz-max-content',
height: 'max-content',
lineHeight: '21px',
color: '#555555'
};
return ( return (
[ [
<h4 className="nc-theme-common-font-c" style={newModalTitle}><span style={{color: '#ffbf00',fontSize:25,marginRight:20}}class="iconfont icon-zhuyi1 warning"></span>{this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000056')/* 国际化处理 删除*/}</h4>, <h4 className="nc-theme-common-font-c" style={newModalTitle}><span
<div className="nc-theme-common-font-c" style={newModalBody} tabindex="0">{this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000053')/* 国际化处理: 删除可能等待很长的时间,可以点击'后台删除'按钮,调用后台任务执行。*/}</div>, style={{color: '#ffbf00', fontSize: 25, marginRight: 20}}
class="iconfont icon-zhuyi1 warning"></span>{this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000056')/* 国际化处理 删除*/}
</h4>,
<div className="nc-theme-common-font-c" style={newModalBody}
tabindex="0">{this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000053')/* 国际化处理: 删除可能等待很长的时间,可以点击'后台删除'按钮,调用后台任务执行。*/}</div>,
] ]
) )
} }
getDelcustomBtns = (dataArr, indexArr) => { getDelcustomBtns = (dataArr, indexArr) => {
let newuModalFooter={height: 45,paddingLeft: 0,backgroundColor: '#fff',borderTop: '1px solid #d0d0d0',marginTop: 5,marginBottom:-7,display:'flex',flexDirection:'row-reverse',alignItems:'flex-end'}; let newuModalFooter = {
height: 45,
paddingLeft: 0,
backgroundColor: '#fff',
borderTop: '1px solid #d0d0d0',
marginTop: 5,
marginBottom: -7,
display: 'flex',
flexDirection: 'row-reverse',
alignItems: 'flex-end'
};
return ( return (
<div> <div>
<NCButton fieldid = 'sure' onClick={ ()=>{this.props.modal.close("deleteModal");this.onDelForBrowse(false,dataArr,indexArr)}}>{this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000056')/* 国际化处理: 删除*/}</NCButton> <NCButton fieldid='sure' onClick={() => {
<NCButton fieldid = 'backgroudDelete' colors='primary' onClick={ ()=>{this.props.modal.close("deleteModal");this.onDelForBrowse(true,dataArr,indexArr)}}>{this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000030')/* 国际化处理: 后台删除*/}</NCButton> this.props.modal.close("deleteModal");
<NCButton fieldid = 'cancel' onClick={()=>{this.props.modal.close("deleteModal");} }>{this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000017')/* 国际化处理: 取消*/}</NCButton> this.onDelForBrowse(false, dataArr, indexArr)
}}>{this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000056')/* 国际化处理: 删除*/}</NCButton>
<NCButton fieldid='backgroudDelete' colors='primary' onClick={() => {
this.props.modal.close("deleteModal");
this.onDelForBrowse(true, dataArr, indexArr)
}}>{this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000030')/* 国际化处理: 后台删除*/}</NCButton>
<NCButton fieldid='cancel' onClick={() => {
this.props.modal.close("deleteModal");
}}>{this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000017')/* 国际化处理: 取消*/}</NCButton>
</div> </div>
); );
} }
@ -1856,14 +2144,20 @@ class Material extends Component {
let {success, data} = res; let {success, data} = res;
if (success) { if (success) {
if (isBackDelete) { if (isBackDelete) {
toast({title:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-0000174'),color:'success'});/* 国际化处理: 已添加后台任务*/ toast({
title: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-0000174'),
color: 'success'
});/* 国际化处理: 已添加后台任务*/
this.queryData({isDelete: true}); this.queryData({isDelete: true});
} else { } else {
this.props.table.deleteTableRowsByIndex(tableid, indexArr); this.props.table.deleteTableRowsByIndex(tableid, indexArr);
dataArr.forEach(item => { dataArr.forEach(item => {
this.props.table.deleteCacheId(tableid, item.values.pk_material.value); this.props.table.deleteCacheId(tableid, item.values.pk_material.value);
}); });
toast({content:this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000029'),color:'success'});/* 国际化处理: 删除成功*/ toast({
content: this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000029'),
color: 'success'
});/* 国际化处理: 删除成功*/
this.queryData({isDelete: true}); this.queryData({isDelete: true});
} }
} }
@ -1988,7 +2282,8 @@ class Material extends Component {
})} })}
</div> </div>
<div className="title-search-detail" style={{marginLeft: 16}}> <div className="title-search-detail" style={{marginLeft: 16}}>
<NCCheckbox onChange = {this.onCheckShowDisable} checked = {this.state.checkflag}>{this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000074')/* 国际化处理: 显示停用*/}</NCCheckbox> <NCCheckbox onChange={this.onCheckShowDisable}
checked={this.state.checkflag}>{this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000074')/* 国际化处理: 显示停用*/}</NCCheckbox>
</div> </div>
<div className="title-search-detail" style={{display: 'none', marginLeft: 20}}> <div className="title-search-detail" style={{display: 'none', marginLeft: 20}}>
<NCCheckbox>{this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000075')/* 国际化处理: 显示已分配*/}</NCCheckbox> <NCCheckbox>{this.props.MutiInit.getIntl("10140MATERIAL") && this.props.MutiInit.getIntl("10140MATERIAL").get('10140MATERIAL-000075')/* 国际化处理: 显示已分配*/}</NCCheckbox>
@ -2043,10 +2338,26 @@ class Material extends Component {
} }
)} )}
</div> </div>
{this.state.assignStepModal && <AssignStepModal ref={(assignStepModal) => this.assignStepModal = assignStepModal} closeEvnt={()=>{this.setState({assignStepModal:false});}} {...this.props}/>} {this.state.assignStepModal &&
{this.state.assignModal && <AssignModal ref={(assignModal) => this.assignModal = assignModal} closeEvnt={()=>{this.setState({assignModal:false});}} {...this.props}/>} <AssignStepModal ref={(assignStepModal) => this.assignStepModal = assignStepModal}
<Batcheditmodal ref={(item)=>{this.Batcheditmodal=item}} {...this.props} tableConfig={EditTabConfig} url={urls['batchUpdate']} onFinish={(res)=>{this.onButtonClick(this.props,'Refresh', false,false)}}/> closeEvnt={() => {
<Batcheditstepmodal ref={(item)=>{this.Batcheditstepmodal=item}} {...this.props} tableConfig={BatchUpdateWizardConfig} url={urls['batchUpdateWizard']} onFinish={(res)=>{this.onButtonClick(this.props,'Refresh', false)}}/> this.setState({assignStepModal: false});
}} {...this.props}/>}
{this.state.assignModal &&
<AssignModal ref={(assignModal) => this.assignModal = assignModal} closeEvnt={() => {
this.setState({assignModal: false});
}} {...this.props}/>}
<Batcheditmodal ref={(item) => {
this.Batcheditmodal = item
}} {...this.props} tableConfig={EditTabConfig} url={urls['batchUpdate']} onFinish={(res) => {
this.onButtonClick(this.props, 'Refresh', false, false)
}}/>
<Batcheditstepmodal ref={(item) => {
this.Batcheditstepmodal = item
}} {...this.props} tableConfig={BatchUpdateWizardConfig} url={urls['batchUpdateWizard']}
onFinish={(res) => {
this.onButtonClick(this.props, 'Refresh', false)
}}/>
<PrintOutput <PrintOutput
ref='printOutput' ref='printOutput'
url={urls['print']} url={urls['print']}
@ -2099,7 +2410,9 @@ class Material extends Component {
}} }}
//billNo={'001'} //billNo={'001'}
placement={'bottom'} placement={'bottom'}
onHide={()=>{this.setState({showUploader:false})}} // 关闭功能 onHide={() => {
this.setState({showUploader: false})
}} // 关闭功能
//beforeUpload={this.beforeUpload} //beforeUpload={this.beforeUpload}
/> />
} }