Merge remote-tracking branch 'origin/main'
This commit is contained in:
commit
043986bdc2
|
|
@ -170,6 +170,23 @@ export default function (props) {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
props.button.setUploadConfig(PMO_CARD_BUTTON.Import, excelimportconfig);
|
props.button.setUploadConfig(PMO_CARD_BUTTON.Import, excelimportconfig);
|
||||||
|
// 导入序列号
|
||||||
|
let excelimportconfig1 = excelImportconfig(
|
||||||
|
props,
|
||||||
|
PMO_LIST.excelOutput.module,
|
||||||
|
'pmo_sernio',
|
||||||
|
true,
|
||||||
|
'',
|
||||||
|
{
|
||||||
|
appcode: PMO_LIST.appcode,
|
||||||
|
pagecode: '50080000_import1'
|
||||||
|
},
|
||||||
|
() => {
|
||||||
|
//导入按钮的回调
|
||||||
|
buttonClick.call(this, props, PMO_CARD_BUTTON.Import);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
props.button.setUploadConfig(PMO_CARD_BUTTON.ImportNo, excelimportconfig1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -622,6 +622,11 @@ export default function clickBtn(props, id, text, record, index) {
|
||||||
let importC = importClick.bind(this, props, id);
|
let importC = importClick.bind(this, props, id);
|
||||||
return importC(props);
|
return importC(props);
|
||||||
}
|
}
|
||||||
|
case PMO_CARD_BUTTON.ImportNo: {
|
||||||
|
//导入序列号
|
||||||
|
let importC = importClick.bind(this, props, id);
|
||||||
|
return importC(props);
|
||||||
|
}
|
||||||
case PMO_CARD_BUTTON.PushToPlm: {
|
case PMO_CARD_BUTTON.PushToPlm: {
|
||||||
let billId = props.form.getFormItemsValue(formId, HEADATTRCODE.CPMOHID).value;
|
let billId = props.form.getFormItemsValue(formId, HEADATTRCODE.CPMOHID).value;
|
||||||
// 传递设计任务
|
// 传递设计任务
|
||||||
|
|
|
||||||
|
|
@ -377,5 +377,10 @@ export default function clickBtn(props, id, text, record, index) {
|
||||||
let importC = importClick.bind(this, props, id);
|
let importC = importClick.bind(this, props, id);
|
||||||
return importC(props);
|
return importC(props);
|
||||||
}
|
}
|
||||||
|
case PMO_LIST_BUTTON.ImportNo: {
|
||||||
|
//导入序列号
|
||||||
|
let importC = importClick.bind(this, props, id);
|
||||||
|
return importC(props);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import {base, ajax, toast, cacheTools, getGlobalStorage, removeGlobalStorage, cardCache} from 'nc-lightapp-front';
|
import {base, ajax, toast, cacheTools, getGlobalStorage, removeGlobalStorage, cardCache} from 'nc-lightapp-front';
|
||||||
import { PMO_LIST, PMO_CARD, DATECONST, PMO_LIST_BUTTON, HEADATTRCODE } from '../../pmoconst';
|
import {PMO_LIST, PMO_CARD, DATECONST, PMO_LIST_BUTTON, HEADATTRCODE, PMO_CARD_BUTTON} from '../../pmoconst';
|
||||||
import buttonClick from '../btnclicks/buttonClick';
|
import buttonClick from '../btnclicks/buttonClick';
|
||||||
import {buttonController, btnClickController} from '../viewControl';
|
import {buttonController, btnClickController} from '../viewControl';
|
||||||
import {transtypeUtils, setPsndocShowLeavePower, setRefShowDisabledData} from '../../../../../mmpub/mmpub/pub/tool';
|
import {transtypeUtils, setPsndocShowLeavePower, setRefShowDisabledData} from '../../../../../mmpub/mmpub/pub/tool';
|
||||||
|
|
@ -11,6 +11,7 @@ import { getLangByResId } from '../../../../../mmpub/mmpub/pub/tool/multiLangUti
|
||||||
import {conf as unitConf} from '../../../../../uapbd/refer/org/FactoryGridRef/index';
|
import {conf as unitConf} from '../../../../../uapbd/refer/org/FactoryGridRef/index';
|
||||||
//excel导入工具类(平台提供)
|
//excel导入工具类(平台提供)
|
||||||
import excelImportconfig from '../../../../../uap/common/components/excelImportconfig';
|
import excelImportconfig from '../../../../../uap/common/components/excelImportconfig';
|
||||||
|
|
||||||
let tableId = PMO_LIST.tableId;
|
let tableId = PMO_LIST.tableId;
|
||||||
let searchId = PMO_LIST.searchId;
|
let searchId = PMO_LIST.searchId;
|
||||||
let listpageid = PMO_LIST.pageid;
|
let listpageid = PMO_LIST.pageid;
|
||||||
|
|
@ -50,6 +51,7 @@ export default function(props) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
||||||
function modifierMeta(props, meta) {
|
function modifierMeta(props, meta) {
|
||||||
let noshowOrgFileds = [
|
let noshowOrgFileds = [
|
||||||
HEADATTRCODE.APPROVER,
|
HEADATTRCODE.APPROVER,
|
||||||
|
|
@ -290,6 +292,7 @@ export default function(props) {
|
||||||
meta[tableId].items.push(porCol);
|
meta[tableId].items.push(porCol);
|
||||||
return meta;
|
return meta;
|
||||||
}
|
}
|
||||||
|
|
||||||
function setQueryDefault(props, meta) {
|
function setQueryDefault(props, meta) {
|
||||||
let searchVal = cacheTools.get('searchVal');
|
let searchVal = cacheTools.get('searchVal');
|
||||||
if (!searchVal) {
|
if (!searchVal) {
|
||||||
|
|
@ -354,6 +357,7 @@ export default function(props) {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleShow() {
|
function toggleShow() {
|
||||||
//处理生产大屏数据穿透
|
//处理生产大屏数据穿透
|
||||||
process4dashboard.call(this);
|
process4dashboard.call(this);
|
||||||
|
|
@ -423,6 +427,7 @@ export default function(props) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//初始化Excel导入配置
|
//初始化Excel导入配置
|
||||||
function initExcelImportConfig(props) {
|
function initExcelImportConfig(props) {
|
||||||
//导入主子表
|
//导入主子表
|
||||||
|
|
@ -442,5 +447,22 @@ export default function(props) {
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
props.button.setUploadConfig(PMO_LIST_BUTTON.Import, excelimportconfig);
|
props.button.setUploadConfig(PMO_LIST_BUTTON.Import, excelimportconfig);
|
||||||
|
// 导入序列号
|
||||||
|
let excelimportconfig1 = excelImportconfig(
|
||||||
|
props,
|
||||||
|
PMO_LIST.excelOutput.module,
|
||||||
|
'pmo_sernio', // XML文件名称
|
||||||
|
true,
|
||||||
|
'',
|
||||||
|
{
|
||||||
|
appcode: PMO_LIST.appcode,
|
||||||
|
pagecode: '50080000_import1'
|
||||||
|
},
|
||||||
|
() => {
|
||||||
|
//导入按钮的回调
|
||||||
|
buttonClick.call(this, props, PMO_CARD_BUTTON.Import);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
props.button.setUploadConfig(PMO_CARD_BUTTON.ImportNo, excelimportconfig1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,14 +4,16 @@
|
||||||
"uap/common/components/ApproveDetail",
|
"uap/common/components/ApproveDetail",
|
||||||
"uap/common/components/NCUploader",
|
"uap/common/components/NCUploader",
|
||||||
"uap/common/components/approvalTrans",
|
"uap/common/components/approvalTrans",
|
||||||
"ic/ic/components/billReserve"
|
"ic/ic/components/billReserve",
|
||||||
|
"uap/common/components/excelImportconfig"
|
||||||
],
|
],
|
||||||
"dependjs": [
|
"dependjs": [
|
||||||
"../../../../uap/common/components/codeConfigModal/index.js",
|
"../../../../uap/common/components/codeConfigModal/index.js",
|
||||||
"../../../../uap/common/components/ApproveDetail/index.js",
|
"../../../../uap/common/components/ApproveDetail/index.js",
|
||||||
"../../../../uap/common/components/NCUploader/index.js",
|
"../../../../uap/common/components/NCUploader/index.js",
|
||||||
"../../../../uap/common/components/approvalTrans/index.js",
|
"../../../../uap/common/components/approvalTrans/index.js",
|
||||||
"../../../../ic/ic/components/billReserve/index.js"
|
"../../../../ic/ic/components/billReserve/index.js",
|
||||||
|
"../../../../uap/common/components/excelImportconfig/index.js"
|
||||||
],
|
],
|
||||||
"report": true
|
"report": true
|
||||||
}
|
}
|
||||||
|
|
@ -175,6 +175,7 @@ const PMO_LIST_BUTTON = {
|
||||||
pmobcdirectprint: 'PMOBCDirectPrint', //直接打印条码
|
pmobcdirectprint: 'PMOBCDirectPrint', //直接打印条码
|
||||||
pmobcprint: 'PMOBCPrint', //打印条码
|
pmobcprint: 'PMOBCPrint', //打印条码
|
||||||
Import: 'Import', //导入
|
Import: 'Import', //导入
|
||||||
|
ImportNo: 'ImportNo', //导入序列号
|
||||||
ExportTem: 'ExportTem' //导出
|
ExportTem: 'ExportTem' //导出
|
||||||
};
|
};
|
||||||
const PMO_CARD_BUTTON = {
|
const PMO_CARD_BUTTON = {
|
||||||
|
|
@ -307,6 +308,7 @@ const PMO_CARD_BUTTON = {
|
||||||
grand_g1: 'grand_g1',
|
grand_g1: 'grand_g1',
|
||||||
oresetno: 'OResetno', //联副产品重新排号
|
oresetno: 'OResetno', //联副产品重新排号
|
||||||
Import: 'Import', //导入
|
Import: 'Import', //导入
|
||||||
|
ImportNo: 'ImportNo', //导入序列号
|
||||||
ExportTem: 'ExportTem', //导出
|
ExportTem: 'ExportTem', //导出
|
||||||
PushToPlm: 'pushToPlm' //导出
|
PushToPlm: 'pushToPlm' //导出
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue