parent
33ac08515e
commit
5d4f763316
|
|
@ -49,7 +49,7 @@ class Index extends Component {
|
|||
importPayload: {
|
||||
visible: false,
|
||||
importOpts: {
|
||||
taxYearMonth: moment(new Date()).format("YYYY-MM")
|
||||
declareMonth: moment(new Date()).format("YYYY-MM")
|
||||
},
|
||||
importFormComponent: null,
|
||||
step: 0,
|
||||
|
|
@ -126,7 +126,12 @@ class Index extends Component {
|
|||
* Date: 2023/2/20
|
||||
*/
|
||||
handleImportFile = (params) => {
|
||||
importCumSituationParam(params).then(({ status, data }) => {
|
||||
const { declareMonth, ...extra } = params;
|
||||
const payload = {
|
||||
taxYearMonth: declareMonth,
|
||||
...extra
|
||||
};
|
||||
importCumSituationParam(payload).then(({ status, data }) => {
|
||||
if (status) {
|
||||
const { importPayload } = this.state;
|
||||
this.setState({
|
||||
|
|
@ -515,7 +520,8 @@ class Index extends Component {
|
|||
slideLoading={saveLoading} exportPayloadUrl={exportPayloadUrl}
|
||||
form={form} condition={advanceCondition} onAdSearch={this.handleAdSearch}
|
||||
onImportSetStep={this.handleImportSetStep} onCancel={this.handleCloseImport}
|
||||
importPayload={importPayload} onImportFile={this.handleImportFile}
|
||||
importPayload={{ ...importPayload, importOpts: { taxYearMonth: importPayload.importOpts.declareMonth } }}
|
||||
onImportFile={this.handleImportFile}
|
||||
onPreviewImport={this.handlePreviewImport} detailOptBtns={this.getDetailOptBtns()}
|
||||
>
|
||||
<DataTables
|
||||
|
|
|
|||
Loading…
Reference in New Issue