出库申请拉单调整
This commit is contained in:
parent
b72ff3946b
commit
00f0d7a8db
|
@ -6,36 +6,36 @@
|
||||||
* @Last Modified by: lizhbo
|
* @Last Modified by: lizhbo
|
||||||
* @Last Modified time: 2019-12-30 13:41:11
|
* @Last Modified time: 2019-12-30 13:41:11
|
||||||
*/
|
*/
|
||||||
import React, { Component } from 'react';
|
import React, {Component} from 'react';
|
||||||
import { createPage, ajax, high, base } from 'nc-lightapp-front';
|
import {createPage, ajax, high, base} from 'nc-lightapp-front';
|
||||||
import { initTemplate, transfer } from './init';
|
import {initTemplate, transfer} from './init';
|
||||||
import { headAfterEvent, bodyAfterEvent } from './afterEvents';
|
import {headAfterEvent, bodyAfterEvent} from './afterEvents';
|
||||||
import { headBeforeEvent, bodyBeforeEvent } from './beforeEvents';
|
import {headBeforeEvent, bodyBeforeEvent} from './beforeEvents';
|
||||||
import { btnClickController, buttonController } from './viewController';
|
import {btnClickController, buttonController} from './viewController';
|
||||||
import 'src/scmpub/scmpub/pub/style/common.less';
|
import 'src/scmpub/scmpub/pub/style/common.less';
|
||||||
import { FIELD, URL, PAGECODE, UISTATE, DISABLEBTNS, BUTTONID_CARD } from '../constance';
|
import {FIELD, URL, PAGECODE, UISTATE, DISABLEBTNS, BUTTONID_CARD} from '../constance';
|
||||||
import { getUrlParam } from '../../pub/utils';
|
import {getUrlParam} from '../../pub/utils';
|
||||||
import './index.less';
|
import './index.less';
|
||||||
import btnIsDisableCard from '../../pub/viewController/outbound_card/btnIsDisableCard';
|
import btnIsDisableCard from '../../pub/viewController/outbound_card/btnIsDisableCard';
|
||||||
import { onHandBtnSelected } from '../../pub/btnClicks/onHandSelected';
|
import {onHandBtnSelected} from '../../pub/btnClicks/onHandSelected';
|
||||||
import backBtnClick from '../../pub/btnClicks/outboundcard/backBtnClick';
|
import backBtnClick from '../../pub/btnClicks/outboundcard/backBtnClick';
|
||||||
import ExtendRefer from '../../pub/onhandRefer';
|
import ExtendRefer from '../../pub/onhandRefer';
|
||||||
import { getCacheDataByPk, updateCacheData, getDefData } from '../../../../scmpub/scmpub/pub/cache';
|
import {getCacheDataByPk, updateCacheData, getDefData} from '../../../../scmpub/scmpub/pub/cache';
|
||||||
import MergePrinting from '../../../../scmpub/scmpub/pub/components/mergePrinting';
|
import MergePrinting from '../../../../scmpub/scmpub/pub/components/mergePrinting';
|
||||||
import BarCode from '../../pub/components/barcode/index';
|
import BarCode from '../../pub/components/barcode/index';
|
||||||
import { RownoUtils } from '../../../../scmpub/scmpub/pub/tool/cardTableTools/RownoUtil';
|
import {RownoUtils} from '../../../../scmpub/scmpub/pub/tool/cardTableTools/RownoUtil';
|
||||||
import { initLang, getLangByResId } from '../../../../scmpub/scmpub/pub/tool/multiLangUtil';
|
import {initLang, getLangByResId} from '../../../../scmpub/scmpub/pub/tool/multiLangUtil';
|
||||||
import { showSuccessInfo } from '../../../../scmpub/scmpub/pub/tool/messageUtil';
|
import {showSuccessInfo} from '../../../../scmpub/scmpub/pub/tool/messageUtil';
|
||||||
import commonBodyEvent from '../../pub/afterEvents/commonBodyEvent';
|
import commonBodyEvent from '../../pub/afterEvents/commonBodyEvent';
|
||||||
import transtypeUtils from '../../../../scmpub/scmpub/pub/tool/transtypeUtils';
|
import transtypeUtils from '../../../../scmpub/scmpub/pub/tool/transtypeUtils';
|
||||||
import { getCardDisableHotKeyBtn } from '../../pub/utils/hotKeysUtil';
|
import {getCardDisableHotKeyBtn} from '../../pub/utils/hotKeysUtil';
|
||||||
import inputChange from '../../../../scmpub/scmpub/pub/tool/rownoInputUtil';
|
import inputChange from '../../../../scmpub/scmpub/pub/tool/rownoInputUtil';
|
||||||
import { commitBtnClick, saveAndCommitBtnClick } from './btnClicks';
|
import {commitBtnClick, saveAndCommitBtnClick} from './btnClicks';
|
||||||
import { createCardTitle } from '../../../../scmpub/scmpub/pub/tool/titleUtil';
|
import {createCardTitle} from '../../../../scmpub/scmpub/pub/tool/titleUtil';
|
||||||
|
|
||||||
const { BillTrack, NCUploader, ApproveDetail, ApprovalTrans } = high;
|
const {BillTrack, NCUploader, ApproveDetail, ApprovalTrans} = high;
|
||||||
const { NCAffix, NCDiv } = base;
|
const {NCAffix, NCDiv} = base;
|
||||||
const constance = { FIELD, DISABLEBTNS, URL, PAGECODE };
|
const constance = {FIELD, DISABLEBTNS, URL, PAGECODE};
|
||||||
|
|
||||||
class SapplyBillCard extends Component {
|
class SapplyBillCard extends Component {
|
||||||
constructor(props) {
|
constructor(props) {
|
||||||
|
@ -45,7 +45,7 @@ class SapplyBillCard extends Component {
|
||||||
this.skipCodes = null; //缓存交互式异常类型编码
|
this.skipCodes = null; //缓存交互式异常类型编码
|
||||||
this.state = {
|
this.state = {
|
||||||
barCodeEnable: false, //条形码value
|
barCodeEnable: false, //条形码value
|
||||||
headRows: { rows: [] }, //存量查拣-表头数据
|
headRows: {rows: []}, //存量查拣-表头数据
|
||||||
editable: false, //页面是否可以编辑
|
editable: false, //页面是否可以编辑
|
||||||
billcode: '',
|
billcode: '',
|
||||||
status: this.getStatus(),
|
status: this.getStatus(),
|
||||||
|
@ -82,11 +82,21 @@ class SapplyBillCard extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
// 渲染页面后,执行的方法
|
// 渲染页面后,执行的方法
|
||||||
componentDidMount() { }
|
componentDidMount() {
|
||||||
|
}
|
||||||
|
|
||||||
initData = (isRefresh) => {
|
initData = (isRefresh) => {
|
||||||
if (getUrlParam(this.props.getUrlParam, 'type') && !isRefresh) {
|
if (getUrlParam(this.props.getUrlParam, 'type') && !isRefresh) {
|
||||||
this.type = 'ref422x';
|
let type = getUrlParam(this.props.getUrlParam, 'type');
|
||||||
|
let cbilltype = '';
|
||||||
|
if (type == 'ref422x') {
|
||||||
|
cbilltype = '422X';
|
||||||
|
this.type = 'ref422x';
|
||||||
|
} else if (type == 'refBljh') {
|
||||||
|
cbilltype = '55A3';
|
||||||
|
this.type = 'refBljh';
|
||||||
|
}
|
||||||
|
|
||||||
let transferIds = this.props.transferTable.getTransferTableSelectedId();
|
let transferIds = this.props.transferTable.getTransferTableSelectedId();
|
||||||
if (transferIds) {
|
if (transferIds) {
|
||||||
let orderbids = new Set();
|
let orderbids = new Set();
|
||||||
|
@ -97,15 +107,8 @@ class SapplyBillCard extends Component {
|
||||||
});
|
});
|
||||||
orderhids.add(v.head.pk);
|
orderhids.add(v.head.pk);
|
||||||
});
|
});
|
||||||
let type = getUrlParam(this.props.getUrlParam, 'type');
|
|
||||||
let cbilltype = '';
|
|
||||||
if (type == 'ref422x') {
|
|
||||||
cbilltype = '422X';
|
|
||||||
} else if (type == 'refBljh') {
|
|
||||||
cbilltype = '55A3';
|
|
||||||
}
|
|
||||||
// let ids = [{ cbilltype: '422X', hids: orderhids, bids: orderbids }];
|
// let ids = [{ cbilltype: '422X', hids: orderhids, bids: orderbids }];
|
||||||
let ids = [{ cbilltype: cbilltype, hids: orderhids, bids: orderbids }];
|
let ids = [{cbilltype: cbilltype, hids: orderhids, bids: orderbids}];
|
||||||
transfer.call(this, ids);
|
transfer.call(this, ids);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
@ -125,13 +128,13 @@ class SapplyBillCard extends Component {
|
||||||
//不是编辑
|
//不是编辑
|
||||||
if (status == 'edit' && copypk) {
|
if (status == 'edit' && copypk) {
|
||||||
//复制
|
//复制
|
||||||
let data = { pageid: PAGECODE.card, pk: copypk };
|
let data = {pageid: PAGECODE.card, pk: copypk};
|
||||||
ajax({
|
ajax({
|
||||||
url: URL.copy,
|
url: URL.copy,
|
||||||
data: data,
|
data: data,
|
||||||
method: 'post',
|
method: 'post',
|
||||||
success: (res) => {
|
success: (res) => {
|
||||||
this.props.form.setAllFormValue({ [FIELD.formArea]: res.data.billcard.head[FIELD.formArea] });
|
this.props.form.setAllFormValue({[FIELD.formArea]: res.data.billcard.head[FIELD.formArea]});
|
||||||
this.props.cardTable.setTableData(
|
this.props.cardTable.setTableData(
|
||||||
FIELD.cardTable,
|
FIELD.cardTable,
|
||||||
res.data.billcard.body[FIELD.cardTable],
|
res.data.billcard.body[FIELD.cardTable],
|
||||||
|
@ -147,7 +150,7 @@ class SapplyBillCard extends Component {
|
||||||
} else {
|
} else {
|
||||||
billcodeStr = '';
|
billcodeStr = '';
|
||||||
this.props.form.EmptyAllFormValue(FIELD.formArea);
|
this.props.form.EmptyAllFormValue(FIELD.formArea);
|
||||||
this.props.cardTable.setTableData(FIELD.cardTable, { rows: [] }, null, true, true);
|
this.props.cardTable.setTableData(FIELD.cardTable, {rows: []}, null, true, true);
|
||||||
this.props.BillHeadInfo.setBillHeadInfoVisible({
|
this.props.BillHeadInfo.setBillHeadInfoVisible({
|
||||||
billCode: billcodeStr //修改单据号---非必传
|
billCode: billcodeStr //修改单据号---非必传
|
||||||
});
|
});
|
||||||
|
@ -158,7 +161,7 @@ class SapplyBillCard extends Component {
|
||||||
let cacheData = getCacheDataByPk(this.props, FIELD.CacheKey, pk);
|
let cacheData = getCacheDataByPk(this.props, FIELD.CacheKey, pk);
|
||||||
if (cacheData) {
|
if (cacheData) {
|
||||||
billcodeStr = cacheData.head[FIELD.formArea].rows[0].values.vbillcode.value;
|
billcodeStr = cacheData.head[FIELD.formArea].rows[0].values.vbillcode.value;
|
||||||
this.props.form.setAllFormValue({ [FIELD.formArea]: cacheData.head[FIELD.formArea] });
|
this.props.form.setAllFormValue({[FIELD.formArea]: cacheData.head[FIELD.formArea]});
|
||||||
this.props.cardTable.setTableData(
|
this.props.cardTable.setTableData(
|
||||||
FIELD.cardTable,
|
FIELD.cardTable,
|
||||||
cacheData.body[FIELD.cardTable],
|
cacheData.body[FIELD.cardTable],
|
||||||
|
@ -177,7 +180,7 @@ class SapplyBillCard extends Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//表示是编辑或查看进入,有id(否则就是新增进入)
|
//表示是编辑或查看进入,有id(否则就是新增进入)
|
||||||
data = { pk: pk, pageid: PAGECODE.card };
|
data = {pk: pk, pageid: PAGECODE.card};
|
||||||
ajax({
|
ajax({
|
||||||
url: URL.cardQuery,
|
url: URL.cardQuery,
|
||||||
data: data,
|
data: data,
|
||||||
|
@ -193,11 +196,11 @@ class SapplyBillCard extends Component {
|
||||||
}
|
}
|
||||||
if (!res.data) {
|
if (!res.data) {
|
||||||
billcodeStr = '';
|
billcodeStr = '';
|
||||||
this.props.form.setAllFormValue(FIELD.formArea, { rows: [{}] });
|
this.props.form.setAllFormValue(FIELD.formArea, {rows: [{}]});
|
||||||
this.props.cardTable.setTableData(FIELD.cardTable, { rows: [] }, null, true, true);
|
this.props.cardTable.setTableData(FIELD.cardTable, {rows: []}, null, true, true);
|
||||||
} else {
|
} else {
|
||||||
billcodeStr = res.data.billcard.head[FIELD.formArea].rows[0].values.vbillcode.value;
|
billcodeStr = res.data.billcard.head[FIELD.formArea].rows[0].values.vbillcode.value;
|
||||||
this.props.form.setAllFormValue({ [FIELD.formArea]: res.data.billcard.head[FIELD.formArea] });
|
this.props.form.setAllFormValue({[FIELD.formArea]: res.data.billcard.head[FIELD.formArea]});
|
||||||
this.props.cardTable.setTableData(
|
this.props.cardTable.setTableData(
|
||||||
FIELD.cardTable,
|
FIELD.cardTable,
|
||||||
res.data.billcard.body[FIELD.cardTable],
|
res.data.billcard.body[FIELD.cardTable],
|
||||||
|
@ -239,7 +242,7 @@ class SapplyBillCard extends Component {
|
||||||
//切换页面状态
|
//切换页面状态
|
||||||
toggleShow = () => {
|
toggleShow = () => {
|
||||||
let status = getUrlParam(this.props.getUrlParam, 'status') || UISTATE.browse;
|
let status = getUrlParam(this.props.getUrlParam, 'status') || UISTATE.browse;
|
||||||
this.setState({ status: status });
|
this.setState({status: status});
|
||||||
this.props.form.setFormStatus(FIELD.formArea, status);
|
this.props.form.setFormStatus(FIELD.formArea, status);
|
||||||
this.props.cardTable.setStatus(FIELD.cardTable, status);
|
this.props.cardTable.setStatus(FIELD.cardTable, status);
|
||||||
let id = getUrlParam(this.props.getUrlParam, 'id');
|
let id = getUrlParam(this.props.getUrlParam, 'id');
|
||||||
|
@ -255,12 +258,12 @@ class SapplyBillCard extends Component {
|
||||||
});
|
});
|
||||||
if (cachpkorg_v && (!pk_org_v || !pk_org_v.value)) {
|
if (cachpkorg_v && (!pk_org_v || !pk_org_v.value)) {
|
||||||
this.props.form.setFormItemsValue(FIELD.formArea, cachpkorg_v);
|
this.props.form.setFormItemsValue(FIELD.formArea, cachpkorg_v);
|
||||||
headAfterEvent.call(this, this.props, FIELD.formArea, 'pk_org_v', { value: cachpkorg_v });
|
headAfterEvent.call(this, this.props, FIELD.formArea, 'pk_org_v', {value: cachpkorg_v});
|
||||||
} else if (!pk_org_v || !pk_org_v.value) {
|
} else if (!pk_org_v || !pk_org_v.value) {
|
||||||
this.props.form.EmptyAllFormValue(FIELD.formArea);
|
this.props.form.EmptyAllFormValue(FIELD.formArea);
|
||||||
this.props.cardTable.setTableData(FIELD.cardTable, { rows: [] });
|
this.props.cardTable.setTableData(FIELD.cardTable, {rows: []});
|
||||||
this.props.initMetaByPkorg('pk_org_v');
|
this.props.initMetaByPkorg('pk_org_v');
|
||||||
this.props.form.setFormItemsDisabled(FIELD.formArea, { pk_org_v: false });
|
this.props.form.setFormItemsDisabled(FIELD.formArea, {pk_org_v: false});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (status == 'edit' && !type) {
|
if (status == 'edit' && !type) {
|
||||||
|
@ -307,7 +310,7 @@ class SapplyBillCard extends Component {
|
||||||
placeholder={getLangByResId(this, '4008PUB-000064') /* 国际化处理: 请输入条形码*/}
|
placeholder={getLangByResId(this, '4008PUB-000064') /* 国际化处理: 请输入条形码*/}
|
||||||
cannotAddLine={cannotAddLine}
|
cannotAddLine={cannotAddLine}
|
||||||
setSerMnger={(isLocationManaged, materialSerialMap, materialSnunitMap) => {
|
setSerMnger={(isLocationManaged, materialSerialMap, materialSnunitMap) => {
|
||||||
this.setState({ isLocationManaged, materialSerialMap, materialSnunitMap });
|
this.setState({isLocationManaged, materialSerialMap, materialSnunitMap});
|
||||||
}}
|
}}
|
||||||
{...this.props}
|
{...this.props}
|
||||||
/>
|
/>
|
||||||
|
@ -315,7 +318,7 @@ class SapplyBillCard extends Component {
|
||||||
};
|
};
|
||||||
// 控制存量查拣的显示隐藏
|
// 控制存量查拣的显示隐藏
|
||||||
toggleOnhandShow = () => {
|
toggleOnhandShow = () => {
|
||||||
this.setState({ onhandShow: !this.state.onhandShow });
|
this.setState({onhandShow: !this.state.onhandShow});
|
||||||
};
|
};
|
||||||
|
|
||||||
//获取url的status
|
//获取url的status
|
||||||
|
@ -329,7 +332,7 @@ class SapplyBillCard extends Component {
|
||||||
this.curindex = index;
|
this.curindex = index;
|
||||||
let isEdit = this.transferStatus[this.curindex];
|
let isEdit = this.transferStatus[this.curindex];
|
||||||
//点击转单缩略图的钩子函数
|
//点击转单缩略图的钩子函数
|
||||||
this.props.form.setAllFormValue({ [FIELD.formArea]: record.head[FIELD.formArea] }, isEdit == 'browse');
|
this.props.form.setAllFormValue({[FIELD.formArea]: record.head[FIELD.formArea]}, isEdit == 'browse');
|
||||||
transtypeUtils.setValue.call(this, FIELD.formArea, FIELD.ctrantypeid, FIELD.vtrantypecode);
|
transtypeUtils.setValue.call(this, FIELD.formArea, FIELD.ctrantypeid, FIELD.vtrantypecode);
|
||||||
this.props.cardTable.setTableData(FIELD.cardTable, record.body[FIELD.cardTable], null, isEdit == 'browse');
|
this.props.cardTable.setTableData(FIELD.cardTable, record.body[FIELD.cardTable], null, isEdit == 'browse');
|
||||||
let pk = record.head[FIELD.formArea].rows[0].values.cgeneralhid;
|
let pk = record.head[FIELD.formArea].rows[0].values.cgeneralhid;
|
||||||
|
@ -369,24 +372,24 @@ class SapplyBillCard extends Component {
|
||||||
getTransferView = () => {
|
getTransferView = () => {
|
||||||
let status = this.props.getUrlParam('status') || UISTATE.browse;
|
let status = this.props.getUrlParam('status') || UISTATE.browse;
|
||||||
this.props.controlAutoFocus(true); //取消自动聚焦
|
this.props.controlAutoFocus(true); //取消自动聚焦
|
||||||
let { headRows = { rows: [] } } = this.state;
|
let {headRows = {rows: []}} = this.state;
|
||||||
let { form, cardTable, button, transferTable, modal } = this.props;
|
let {form, cardTable, button, transferTable, modal} = this.props;
|
||||||
const { createTransferList } = transferTable;
|
const {createTransferList} = transferTable;
|
||||||
let { createForm } = form;
|
let {createForm} = form;
|
||||||
let { createCardTable } = cardTable;
|
let {createCardTable} = cardTable;
|
||||||
let { createModal } = modal;
|
let {createModal} = modal;
|
||||||
let buttons = button.getButtons();
|
let buttons = button.getButtons();
|
||||||
let { showUploader, target } = this.state;
|
let {showUploader, target} = this.state;
|
||||||
let refdatasource = getUrlParam(this.props.getUrlParam, 'type') + 'DataSource';
|
let refdatasource = getUrlParam(this.props.getUrlParam, 'type') + 'DataSource';
|
||||||
const MergePrintingProps = {
|
const MergePrintingProps = {
|
||||||
jsonData: this.combineData,
|
jsonData: this.combineData,
|
||||||
toggleConditionModal: () => {
|
toggleConditionModal: () => {
|
||||||
this.setState({ showConditionModal: !this.state.showConditionModal });
|
this.setState({showConditionModal: !this.state.showConditionModal});
|
||||||
},
|
},
|
||||||
showConditionModal: this.state.showConditionModal
|
showConditionModal: this.state.showConditionModal
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<div id="transferCard" className="nc-bill-transferList" style={{ position: 'relative' }}>
|
<div id="transferCard" className="nc-bill-transferList" style={{position: 'relative'}}>
|
||||||
<NCAffix>
|
<NCAffix>
|
||||||
<NCDiv areaCode={NCDiv.config.HEADER} className="nc-bill-header-area">
|
<NCDiv areaCode={NCDiv.config.HEADER} className="nc-bill-header-area">
|
||||||
<div className="header-title-search-area">
|
<div className="header-title-search-area">
|
||||||
|
@ -404,7 +407,7 @@ class SapplyBillCard extends Component {
|
||||||
<BillTrack
|
<BillTrack
|
||||||
show={this.state.showTrack}
|
show={this.state.showTrack}
|
||||||
close={() => {
|
close={() => {
|
||||||
this.setState({ showTrack: false });
|
this.setState({showTrack: false});
|
||||||
}}
|
}}
|
||||||
pk={this.state.pk}
|
pk={this.state.pk}
|
||||||
type="4455"
|
type="4455"
|
||||||
|
@ -442,7 +445,7 @@ class SapplyBillCard extends Component {
|
||||||
isEdit = this.transferStatus[index];
|
isEdit = this.transferStatus[index];
|
||||||
}
|
}
|
||||||
this.curindex = index;
|
this.curindex = index;
|
||||||
this.setState({ currentindex: index });
|
this.setState({currentindex: index});
|
||||||
this.props.form.setAllFormValue(
|
this.props.form.setAllFormValue(
|
||||||
{
|
{
|
||||||
[FIELD.formArea]: record.head[FIELD.formArea]
|
[FIELD.formArea]: record.head[FIELD.formArea]
|
||||||
|
@ -473,14 +476,14 @@ class SapplyBillCard extends Component {
|
||||||
},
|
},
|
||||||
onTransferItemClick: (record, index, status) => {
|
onTransferItemClick: (record, index, status) => {
|
||||||
// 如果编辑过,则弹框提示,让用户选择是否继续
|
// 如果编辑过,则弹框提示,让用户选择是否继续
|
||||||
this.setState({ currentindex: index });
|
this.setState({currentindex: index});
|
||||||
this.transferListClick(record, index, status);
|
this.transferListClick(record, index, status);
|
||||||
}
|
}
|
||||||
})}
|
})}
|
||||||
<div
|
<div
|
||||||
className="transferList-content-right nc-bill-card"
|
className="transferList-content-right nc-bill-card"
|
||||||
id="puarrival-card"
|
id="puarrival-card"
|
||||||
style={{ position: 'relative' }}
|
style={{position: 'relative'}}
|
||||||
>
|
>
|
||||||
<div className="nc-bill-top-area">
|
<div className="nc-bill-top-area">
|
||||||
<div className="nc-bill-form-area">
|
<div className="nc-bill-form-area">
|
||||||
|
@ -514,16 +517,16 @@ class SapplyBillCard extends Component {
|
||||||
onHandBtnSelected.call(
|
onHandBtnSelected.call(
|
||||||
this,
|
this,
|
||||||
{
|
{
|
||||||
AREA: { body: FIELD.cardTable, formArea: FIELD.formArea },
|
AREA: {body: FIELD.cardTable, formArea: FIELD.formArea},
|
||||||
FIELD: { cwarehouseid: FIELD.cwarehouseid },
|
FIELD: {cwarehouseid: FIELD.cwarehouseid},
|
||||||
PAGECODE: { card: PAGECODE.card }
|
PAGECODE: {card: PAGECODE.card}
|
||||||
},
|
},
|
||||||
commonBodyEvent.bind(
|
commonBodyEvent.bind(
|
||||||
this,
|
this,
|
||||||
this.props,
|
this.props,
|
||||||
FIELD.cardTable,
|
FIELD.cardTable,
|
||||||
'nnum',
|
'nnum',
|
||||||
[{ oldvalue: { value: '' }, newvalue: { value: 1 } }],
|
[{oldvalue: {value: ''}, newvalue: {value: 1}}],
|
||||||
-1,
|
-1,
|
||||||
constance,
|
constance,
|
||||||
null
|
null
|
||||||
|
@ -547,7 +550,7 @@ class SapplyBillCard extends Component {
|
||||||
billId={this.state.pk}
|
billId={this.state.pk}
|
||||||
target={target}
|
target={target}
|
||||||
onHide={() => {
|
onHide={() => {
|
||||||
this.setState({ showUploader: false });
|
this.setState({showUploader: false});
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
@ -558,7 +561,7 @@ class SapplyBillCard extends Component {
|
||||||
display={this.state.compositedisplay}
|
display={this.state.compositedisplay}
|
||||||
getResult={this.getAssginUsedr}
|
getResult={this.getAssginUsedr}
|
||||||
cancel={() => {
|
cancel={() => {
|
||||||
this.setState({ compositedisplay: false });
|
this.setState({compositedisplay: false});
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
@ -587,26 +590,26 @@ class SapplyBillCard extends Component {
|
||||||
getNormalView = () => {
|
getNormalView = () => {
|
||||||
let status = this.props.getUrlParam('status') || UISTATE.browse;
|
let status = this.props.getUrlParam('status') || UISTATE.browse;
|
||||||
this.props.controlAutoFocus(true); //取消自动聚焦
|
this.props.controlAutoFocus(true); //取消自动聚焦
|
||||||
let { headRows = { rows: [] } } = this.state;
|
let {headRows = {rows: []}} = this.state;
|
||||||
const { cardTable, form, modal, cardPagination } = this.props;
|
const {cardTable, form, modal, cardPagination} = this.props;
|
||||||
const { createForm } = form;
|
const {createForm} = form;
|
||||||
const { createCardTable } = cardTable;
|
const {createCardTable} = cardTable;
|
||||||
const { createModal } = modal;
|
const {createModal} = modal;
|
||||||
const { createCardPagination } = cardPagination;
|
const {createCardPagination} = cardPagination;
|
||||||
const { createBillHeadInfo } = this.props.BillHeadInfo;
|
const {createBillHeadInfo} = this.props.BillHeadInfo;
|
||||||
|
|
||||||
let buttons = this.props.button.getButtons();
|
let buttons = this.props.button.getButtons();
|
||||||
let { showUploader, target } = this.state;
|
let {showUploader, target} = this.state;
|
||||||
|
|
||||||
const MergePrintingProps = {
|
const MergePrintingProps = {
|
||||||
jsonData: this.combineData,
|
jsonData: this.combineData,
|
||||||
toggleConditionModal: () => {
|
toggleConditionModal: () => {
|
||||||
this.setState({ showConditionModal: !this.state.showConditionModal });
|
this.setState({showConditionModal: !this.state.showConditionModal});
|
||||||
},
|
},
|
||||||
showConditionModal: this.state.showConditionModal
|
showConditionModal: this.state.showConditionModal
|
||||||
};
|
};
|
||||||
return (
|
return (
|
||||||
<div className="nc-bill-card" id="scm-ic-sapplybill-card" style={{ position: 'relative' }}>
|
<div className="nc-bill-card" id="scm-ic-sapplybill-card" style={{position: 'relative'}}>
|
||||||
<div className="nc-bill-top-area">
|
<div className="nc-bill-top-area">
|
||||||
<NCAffix>
|
<NCAffix>
|
||||||
<NCDiv areaCode={NCDiv.config.HEADER} className="nc-bill-header-area">
|
<NCDiv areaCode={NCDiv.config.HEADER} className="nc-bill-header-area">
|
||||||
|
@ -624,20 +627,20 @@ class SapplyBillCard extends Component {
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
{this.props.getUrlParam('status') == UISTATE.browse &&
|
{this.props.getUrlParam('status') == UISTATE.browse &&
|
||||||
getUrlParam(this.props.getUrlParam, 'scene') != 'approvesce' ? (
|
getUrlParam(this.props.getUrlParam, 'scene') != 'approvesce' ? (
|
||||||
<div className="header-cardPagination-area" style={{ float: 'right' }}>
|
<div className="header-cardPagination-area" style={{float: 'right'}}>
|
||||||
{createCardPagination({
|
{createCardPagination({
|
||||||
handlePageInfoChange: this.queryDatas.bind(this),
|
handlePageInfoChange: this.queryDatas.bind(this),
|
||||||
dataSource: FIELD.CacheKey
|
dataSource: FIELD.CacheKey
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
''
|
''
|
||||||
)}
|
)}
|
||||||
<BillTrack
|
<BillTrack
|
||||||
show={this.state.showTrack}
|
show={this.state.showTrack}
|
||||||
close={() => {
|
close={() => {
|
||||||
this.setState({ showTrack: false });
|
this.setState({showTrack: false});
|
||||||
}}
|
}}
|
||||||
pk={this.state.pk}
|
pk={this.state.pk}
|
||||||
type="4455"
|
type="4455"
|
||||||
|
@ -686,16 +689,16 @@ class SapplyBillCard extends Component {
|
||||||
onHandBtnSelected.call(
|
onHandBtnSelected.call(
|
||||||
this,
|
this,
|
||||||
{
|
{
|
||||||
AREA: { body: FIELD.cardTable, formArea: FIELD.formArea },
|
AREA: {body: FIELD.cardTable, formArea: FIELD.formArea},
|
||||||
FIELD: { cwarehouseid: FIELD.cwarehouseid },
|
FIELD: {cwarehouseid: FIELD.cwarehouseid},
|
||||||
PAGECODE: { card: PAGECODE.card }
|
PAGECODE: {card: PAGECODE.card}
|
||||||
},
|
},
|
||||||
commonBodyEvent.bind(
|
commonBodyEvent.bind(
|
||||||
this,
|
this,
|
||||||
this.props,
|
this.props,
|
||||||
FIELD.cardTable,
|
FIELD.cardTable,
|
||||||
'nnum',
|
'nnum',
|
||||||
[{ oldvalue: { value: '' }, newvalue: { value: 1 } }],
|
[{oldvalue: {value: ''}, newvalue: {value: 1}}],
|
||||||
-1,
|
-1,
|
||||||
constance,
|
constance,
|
||||||
null
|
null
|
||||||
|
@ -719,7 +722,7 @@ class SapplyBillCard extends Component {
|
||||||
billId={this.state.pk}
|
billId={this.state.pk}
|
||||||
target={target}
|
target={target}
|
||||||
onHide={() => {
|
onHide={() => {
|
||||||
this.setState({ showUploader: false });
|
this.setState({showUploader: false});
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
@ -730,7 +733,7 @@ class SapplyBillCard extends Component {
|
||||||
display={this.state.compositedisplay}
|
display={this.state.compositedisplay}
|
||||||
getResult={this.getAssginUsedr}
|
getResult={this.getAssginUsedr}
|
||||||
cancel={() => {
|
cancel={() => {
|
||||||
this.setState({ compositedisplay: false });
|
this.setState({compositedisplay: false});
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
@ -758,6 +761,7 @@ class SapplyBillCard extends Component {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
SapplyBillCard = createPage({
|
SapplyBillCard = createPage({
|
||||||
billinfo: {
|
billinfo: {
|
||||||
billtype: 'card',
|
billtype: 'card',
|
||||||
|
|
Loading…
Reference in New Issue