From d24be5dfd41781ec62bbf73b42ad1c5313fbb00a Mon Sep 17 00:00:00 2001 From: lys <971387674@qq.com> Date: Mon, 21 Apr 2025 16:04:53 +0800 Subject: [PATCH] =?UTF-8?q?custom/=E9=A2=86=E6=82=A6=E4=B8=9A=E5=8A=A1?= =?UTF-8?q?=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hrmSalary/apis/custom-apis/lingyue/index.js | 3 +++ .../lingyue/vouncherSummary/acctBookDialog.js | 16 ++++++++++++---- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/pc4mobx/hrmSalary/apis/custom-apis/lingyue/index.js b/pc4mobx/hrmSalary/apis/custom-apis/lingyue/index.js index ac41e93e..994d4984 100644 --- a/pc4mobx/hrmSalary/apis/custom-apis/lingyue/index.js +++ b/pc4mobx/hrmSalary/apis/custom-apis/lingyue/index.js @@ -64,6 +64,9 @@ export const genAndPreveiw = (params) => { export const pushUCAndSave = (params) => { return postFetch("/api/bs/hrmsalary/ly/PZ/pushUCAndSave", params); }; +export const getHszb = (params) => { + return postFetch("/api/bs/hrmsalary/ly/PZ/getHszb", params); +}; export const getHistoryVoucherList = (params) => { return postFetch("/api/bs/hrmsalary/ly/PZ/historyVoucherList", params); }; diff --git a/pc4mobx/hrmSalary/pages/custom-pages/lingyue/vouncherSummary/acctBookDialog.js b/pc4mobx/hrmSalary/pages/custom-pages/lingyue/vouncherSummary/acctBookDialog.js index 17886eea..2ab20c18 100644 --- a/pc4mobx/hrmSalary/pages/custom-pages/lingyue/vouncherSummary/acctBookDialog.js +++ b/pc4mobx/hrmSalary/pages/custom-pages/lingyue/vouncherSummary/acctBookDialog.js @@ -10,10 +10,11 @@ import React, { Component } from "react"; import { inject, observer } from "mobx-react"; import { WeaDialog, WeaLocaleProvider, WeaTools } from "ecCom"; -import { Button } from "antd"; -import moment from "moment"; +import { getHszb } from "../../../../apis/custom-apis/lingyue"; import { acctBookConditions } from "./conditions"; import { getSearchs } from "../../../../util"; +import { Button } from "antd"; +import moment from "moment"; const getLabel = WeaLocaleProvider.getLabel; const getKey = WeaTools.getKey; @@ -31,12 +32,18 @@ class AcctBookDialog extends Component { if (nextProps.visible !== this.props.visible && !nextProps.visible) nextProps.LYStore.initAcctBookForm(); } - acctBookForm = () => { + acctBookForm = async () => { + const { data } = await getHszb({ ffgsqc: decodeURI(WeaTools.getUrlParams().ffgsqc) }); this.setState({ conditions: _.map(acctBookConditions, item => ({ ...item, items: _.map(item.items, o => { if (getKey(o) === "zdrq") { return { ...o, label: getLabel(o.lanId, o.label), value: moment().format("YYYY-MM-DD") }; + } else if (getKey(o) === "zbbm") { + return { + ...o, label: getLabel(o.lanId, o.label), + browserConditionParam: { ...o.browserConditionParam, replaceDatas: [data] } + }; } return { ...o, label: getLabel(o.lanId, o.label) }; }) @@ -62,7 +69,8 @@ class AcctBookDialog extends Component { const { LYStore: { acctBookForm }, loading } = this.props; return ( (pre += cur.items.length), 0) * 47 + 33 }} buttons={[ ]}