生产订单列表联查备料计划
This commit is contained in:
parent
957ab91bc7
commit
508b227e83
|
@ -6,6 +6,7 @@ import { getLangByResId } from '../../../../../mmpub/mmpub/pub/tool/multiLangUti
|
|||
import { buttonController, buttonClickController } from '../viewController/index';
|
||||
import { columnSortUtils } from '../../../../../mmpub/mmpub/pub/tool/columnSortUtils';
|
||||
import commonSearch from '../btnClicks/commonSearch';
|
||||
import pageInfoBtnClick from '../btnClicks/pageInfoBtnClick';
|
||||
let {openAppByBilltype} = pageTo;
|
||||
export default function () {
|
||||
this.props.createUIDom(
|
||||
|
@ -298,6 +299,13 @@ function toggleShow() {
|
|||
// });
|
||||
// }
|
||||
//}
|
||||
let ids=_this.props.getUrlParam('ids');
|
||||
if(ids){
|
||||
let idArr = ids.split(',').filter(id => id); // 按逗号拆分为数组
|
||||
if(idArr&& idArr.length>0){
|
||||
pageInfoBtnClick.call(_this,_this.props, null, idArr);
|
||||
}
|
||||
}
|
||||
}
|
||||
function process4dashboard() {
|
||||
let queryCriteria = getGlobalStorage('localStorage', 'QueryCriteria');
|
||||
|
|
|
@ -269,9 +269,9 @@ export default function clickBtn(props, id, text, record, index) {
|
|||
let pmomos = pmoMosBtnClick.bind(this);
|
||||
return pmomos(props);
|
||||
//备料计划
|
||||
//case PMO_LIST_BUTTON.pmopickm:
|
||||
// let pickm = pickmBtnClick.bind(this);
|
||||
// return pickm(props);
|
||||
case PMO_LIST_BUTTON.pmopickm:
|
||||
let pickm = pickmBtnClick.bind(this);
|
||||
return pickm(props);
|
||||
//分次投放
|
||||
case PMO_LIST_BUTTON.pmoresolve:
|
||||
let pmoresolve = pmoresolveBtnClick.bind(this);
|
||||
|
|
|
@ -5,10 +5,11 @@
|
|||
* @Last Modified by: fengjinga
|
||||
* @Last Modified time: 2019-03-15 13:18:42
|
||||
*/
|
||||
import { PMO_LIST, HEADATTRCODE } from '../../pmoconst';
|
||||
import { ajax } from 'nc-lightapp-front';
|
||||
import { PMO_LIST, URL, HEADATTRCODE } from '../../pmoconst';
|
||||
import { ajax, pageTo } from 'nc-lightapp-front';
|
||||
import { showSuccessInfo, showErrorInfo, showWarningInfo } from '../../../../../mmpub/mmpub/pub/tool/messageUtil';
|
||||
import { getLangByResId } from '../../../../../mmpub/mmpub/pub/tool/multiLangUtil';
|
||||
let { openAppByBilltype } = pageTo;
|
||||
const tableId = PMO_LIST.tableId;
|
||||
export default function pickm(props) {
|
||||
let checkedrows = props.table.getCheckedRows(tableId);
|
||||
|
@ -25,10 +26,31 @@ export default function pickm(props) {
|
|||
}
|
||||
});
|
||||
pkJson[HEADATTRCODE.CPMOHID] = ids;
|
||||
cacheTools.set("55A2To55A3Json", pkJson);
|
||||
props.openTo(null, {
|
||||
pagecode: '50080102_list',
|
||||
appcode: '50080102',
|
||||
billtype: PMO_LIST.billType
|
||||
ajax({
|
||||
url: URL.pmopickmURL,
|
||||
data: pkJson,
|
||||
success: (res) => {
|
||||
if (res.success) {
|
||||
if (res.data && res.data.length == 1 && res.data[0]) {
|
||||
|
||||
props.openTo('/nccloud/resources/mmpac/mmpac/pickm/main/index.html#/card', {
|
||||
appcode: '400802800',
|
||||
pagecode: '50080102_card',
|
||||
status: 'browse',
|
||||
id: res.data
|
||||
});
|
||||
|
||||
|
||||
} else if (res.data && res.data.length >= 1 && res.data[0]) {
|
||||
props.openTo('/nccloud/resources/mmpac/mmpac/pickm/main/index.html#/list', {
|
||||
appcode: '400802800',
|
||||
pagecode: '50080102_list',
|
||||
status: 'browse',
|
||||
ids: res.data
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue