出库申请拉单调整
This commit is contained in:
parent
3a2dfacc35
commit
63dfa0dc22
|
@ -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 {
|
||||||
|
|
|
@ -6,18 +6,21 @@
|
||||||
* @Last Modified by: mikey.zhaopeng
|
* @Last Modified by: mikey.zhaopeng
|
||||||
* @Last Modified time: 2020-04-21 14:47:47
|
* @Last Modified time: 2020-04-21 14:47:47
|
||||||
*/
|
*/
|
||||||
import { ajax } from 'nc-lightapp-front';
|
import {ajax} from 'nc-lightapp-front';
|
||||||
import { FIELD, URL, PAGECODE } from '../../constance';
|
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) {
|
||||||
|
@ -29,7 +32,7 @@ export default function (ids) {
|
||||||
}
|
}
|
||||||
this.props.form.setFormStatus(this.formId, 'edit');
|
this.props.form.setFormStatus(this.formId, 'edit');
|
||||||
this.props.cardTable.setStatus(this.tableId, 'edit');
|
this.props.cardTable.setStatus(this.tableId, 'edit');
|
||||||
this.setState({ listdata: res.data });
|
this.setState({listdata: res.data});
|
||||||
this.toggleShow();
|
this.toggleShow();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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', // 合并打印
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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 = [
|
||||||
|
@ -35,6 +36,6 @@ const URL = {
|
||||||
search422x: '/nccloud/ic/sapplybill/query422x.do'
|
search422x: '/nccloud/ic/sapplybill/query422x.do'
|
||||||
};
|
};
|
||||||
|
|
||||||
export { PAGECODE, APPCODE, PAGEAREA, PK, URL, DATASOURCE, fileds_orgfilter_422x };
|
export {PAGECODE, APPCODE, PAGEAREA, PK, URL, DATASOURCE, fileds_orgfilter_422x};
|
||||||
|
|
||||||
/*2gXQ0nN3+Et9xmw6gOyzbHfStbROxMgHTt7COgBVOUw=*/
|
/*2gXQ0nN3+Et9xmw6gOyzbHfStbROxMgHTt7COgBVOUw=*/
|
Loading…
Reference in New Issue