出库申请拉单调整

This commit is contained in:
xyz 2024-12-26 10:25:56 +08:00
parent 3a2dfacc35
commit 63dfa0dc22
6 changed files with 46 additions and 25 deletions

View File

@ -97,7 +97,15 @@ class SapplyBillCard extends Component {
}); });
orderhids.add(v.head.pk); orderhids.add(v.head.pk);
}); });
let ids = [{ cbilltype: '422X', hids: orderhids, bids: orderbids }]; let type = getUrlParam(this.props.getUrlParam, 'type');
let cbilltype = '';
if (type == 'ref422x') {
cbilltype = '422X';
} else if (type == 'refBljh') {
cbilltype = 'Bljh';
}
// let ids = [{ cbilltype: '422X', hids: orderhids, bids: orderbids }];
let ids = [{ cbilltype: cbilltype, hids: orderhids, bids: orderbids }];
transfer.call(this, ids); transfer.call(this, ids);
} }
} else { } else {

View File

@ -11,13 +11,16 @@ import { FIELD, URL, PAGECODE } from '../../constance';
import transtypeUtils from '../../../../../scmpub/scmpub/pub/tool/transtypeUtils'; import transtypeUtils from '../../../../../scmpub/scmpub/pub/tool/transtypeUtils';
import {showErrorInfo} from '../../../../../scmpub/scmpub/pub/tool/messageUtil'; import {showErrorInfo} from '../../../../../scmpub/scmpub/pub/tool/messageUtil';
import {getUrlParam} from '../../../pub/utils'; import {getUrlParam} from '../../../pub/utils';
export default function (ids) { export default function (ids) {
let data = { let data = {
info: ids, info: ids,
pagecode: PAGECODE.card pagecode: PAGECODE.card
}; };
let url = URL.transfer
if (ids[0].cbilltype == 'Bljh') url = URL.transfer2
ajax({ ajax({
url: URL.transfer, url: url,
data: data, data: data,
success: (res) => { success: (res) => {
if (res.success) { if (res.success) {

View File

@ -129,6 +129,14 @@ export default function clickBtn(props, id, text, record, mindex) {
usecache: 'N' //跳转到转单查询区不使用缓存 usecache: 'N' //跳转到转单查询区不使用缓存
}); });
break; break;
//备料计划
case BUTTONID_CARD.RefBljh:
clearTransferCache(props, DATASOURCE.refBljhDataSource);
props.pushTo(URL.gotoTransfer2, {
type: 'refBljh',
usecache: 'N' //跳转到转单查询区不使用缓存
});
break;
//行打开 //行打开
case BUTTONID_CARD.LineOpen: case BUTTONID_CARD.LineOpen:
return rowOpenCloseBtnClick.call(this, props, true, record, this.queryDatas); return rowOpenCloseBtnClick.call(this, props, true, record, this.queryDatas);

View File

@ -25,7 +25,8 @@ const URL = {
rowOpenClose: '/nccloud/ic/sapplybill/rowOpenClose.do', //行打开关闭操作 rowOpenClose: '/nccloud/ic/sapplybill/rowOpenClose.do', //行打开关闭操作
maintain: '/nccloud/ic/sapplybill/maintain.do', //删除、提交、收回 maintain: '/nccloud/ic/sapplybill/maintain.do', //删除、提交、收回
queryAddTab: '/nccloud/ic/pub/queryaddtab.do', //查询单据业务流可用信息 queryAddTab: '/nccloud/ic/pub/queryaddtab.do', //查询单据业务流可用信息
transfer: '/nccloud/ic/sapplybill/transfervo.do', //转单 transfer: '/nccloud/ic/sapplybill/transfervo.do', //转单(物资需求)
transfer2: '/nccloud/ic/sapplybill/transfervo1.do', //转单(备料计划)
printUrl: '/nccloud/ic/sapplybill/print.do', //打印 printUrl: '/nccloud/ic/sapplybill/print.do', //打印
combine: '/nccloud/ic/sapplybill/combine.do', // 合并显示 combine: '/nccloud/ic/sapplybill/combine.do', // 合并显示
combineprint: '/nccloud/ic/pub/combineprint.do', // 合并打印 combineprint: '/nccloud/ic/pub/combineprint.do', // 合并打印

View File

@ -7,7 +7,7 @@
* @Last Modified time: 2024-12-13 17:33:02 * @Last Modified time: 2024-12-13 17:33:02
*/ */
import { URL } from '../../constance'; import { URL } from '../../constance';
import { DATASOURCE } from '../../transfer/const'; import { DATASOURCE } from '../../transfer2/const';
import { clearTransferCache } from '../../../../../scmpub/scmpub/pub/cache/cacheDataManager'; import { clearTransferCache } from '../../../../../scmpub/scmpub/pub/cache/cacheDataManager';
export default function clickAddBtn(props) { export default function clickAddBtn(props) {
clearTransferCache(props, DATASOURCE.refBljhDataSource); clearTransferCache(props, DATASOURCE.refBljhDataSource);

View File

@ -19,7 +19,8 @@ const PAGEAREA = {
tile422x: 'tile422x' tile422x: 'tile422x'
}; };
const DATASOURCE = { const DATASOURCE = {
ref422xDataSource: 'ref422xDataSource' ref422xDataSource: 'ref422xDataSource',
refBljhDataSource: 'refBljhDataSource'
}; };
//物资需求申请 //物资需求申请
const fileds_orgfilter_422x = [ const fileds_orgfilter_422x = [