借料入库弹窗调整

This commit is contained in:
mzr 2025-07-11 10:15:00 +08:00
parent d6287eefc6
commit 498fa57aff
1 changed files with 34 additions and 33 deletions

View File

@ -1,11 +1,11 @@
import React, { Component } from 'react'; import React, { Component } from 'react';
import { createPage, ajax, base, high } from 'nc-lightapp-front'; import { createPage, ajax, base, high, toast } from 'nc-lightapp-front';
import ApproveDetail from 'uap/common/components/ApproveDetail'; import ApproveDetail from 'uap/common/components/ApproveDetail';
import NCUploader from 'uap/common/components/NCUploader'; import NCUploader from 'uap/common/components/NCUploader';
import ApprovalTrans from 'uap/common/components/approvalTrans'; import ApprovalTrans from 'uap/common/components/approvalTrans';
const { BillTrack } = high; const { BillTrack } = high;
import { initTemplate } from './init'; import { initTemplate } from './init';
import { pageInfoClick, pageInfoClickPage,getParentURlParme } from './btnClicks'; import { pageInfoClick, pageInfoClickPage, getParentURlParme } from './btnClicks';
import newLineDefaultUtil from './utils/newLineDefaultUtil'; import newLineDefaultUtil from './utils/newLineDefaultUtil';
import { checkDeleteRows } from './utils/rowDeleteUtil'; import { checkDeleteRows } from './utils/rowDeleteUtil';
import { btnClickController, buttonController } from './viewController/index'; import { btnClickController, buttonController } from './viewController/index';
@ -134,7 +134,7 @@ class PickmCard extends Component {
render() { render() {
const { createBillHeadInfo } = this.props.BillHeadInfo; const { createBillHeadInfo } = this.props.BillHeadInfo;
let { table,cardTable, form, button, modal, cardPagination, socket } = this.props; let { table, cardTable, form, button, modal, cardPagination, socket } = this.props;
let buttons = this.props.button.getButtons(); let buttons = this.props.button.getButtons();
let multiLang = this.props.MutiInit.getIntl(this.moduleId); let multiLang = this.props.MutiInit.getIntl(this.moduleId);
let { createForm } = form; let { createForm } = form;
@ -144,8 +144,8 @@ class PickmCard extends Component {
const { createCardPagination } = cardPagination; const { createCardPagination } = cardPagination;
let { showUploader, target } = this.state; let { showUploader, target } = this.state;
// this.props.use.form('NCTable_83c3abf9') // this.props.use.form('NCTable_83c3abf9')
//         this.props.form.setFormStatus('NCTable_83c3abf9', 'edit') //         this.props.form.setFormStatus('NCTable_83c3abf9', 'edit')
return ( return (
<div className='nc-bill-card' id='mm-mmpac-pickm-card' > <div className='nc-bill-card' id='mm-mmpac-pickm-card' >
{socket.connectMesg({ {socket.connectMesg({
@ -269,17 +269,17 @@ class PickmCard extends Component {
{createModal('SetBackDeliverDlg', { zIndex: "280" })} {createModal('SetBackDeliverDlg', { zIndex: "280" })}
{createModal('ReplaceDlg', { zIndex: "300" })} {createModal('ReplaceDlg', { zIndex: "300" })}
{createModal('NCTable_83c3abf9', { {createModal('NCTable_83c3abf9', {
title: '备料明细', title: '备料明细',
content: ( content: (
<div class="flex-container" style={{ height: '100%' }}> <div class="flex-container" style={{ height: '100%' }}>
{createSimpleTable("NCTable_83c3abf9", {showIndex: true})}</div> {createSimpleTable("NCTable_83c3abf9", { showIndex: true })}</div>
), ),
size: '500', size: '500',
beSureBtnClick: () => { beSureBtnClick: () => {
let rowids = []; let rowids = [];
let hids = []; let hids = [];
let hid; let hid;
let rows = this.props.cardTable.getCheckedRows(AREA.bodyTable); let rows = this.props.cardTable.getCheckedRows(AREA.bodyTable);
hid = this.props.form.getFormItemsValue(AREA.formArea, FIELD.hid).value; hid = this.props.form.getFormItemsValue(AREA.formArea, FIELD.hid).value;
hids.push(hid); hids.push(hid);
@ -303,30 +303,31 @@ class PickmCard extends Component {
success: (res) => { success: (res) => {
if (res.success) { if (res.success) {
toast({ color: 'success', title: "推送成功" }); toast({ color: 'success', title: "推送成功" });
this.props.modal.close('NCTable_83c3abf9');
} }
} }
}); });
}, },
cancelBtnClick: () => { cancelBtnClick: () => {
this.props.modal.close('NCTable_83c3abf9') this.props.modal.close('NCTable_83c3abf9')
}, },
userControl: true userControl: true
})} })}
<div> <div>
<ReserveQuery <ReserveQuery
show={this.state.showReserveQuery} show={this.state.showReserveQuery}
pks={this.reserveQueryPks} pks={this.reserveQueryPks}
onClose={() => { onClose={() => {
this.setState({ this.setState({
showReserveQuery: false showReserveQuery: false
}); });
} }
} }
/> />
</div> </div>
<div> <div>
<BillReserve <BillReserve
show={this.state.showReserve} show={this.state.showReserve}
data={this.reserveData} data={this.reserveData}
billType={'55A3'} billType={'55A3'}