update
This commit is contained in:
parent
1871dcfd0b
commit
284c811f9d
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "ant-design-pro",
|
"name": "ant-design-pro",
|
||||||
"version": "4.5.79",
|
"version": "4.5.80",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "An out-of-box UI solution for enterprise applications",
|
"description": "An out-of-box UI solution for enterprise applications",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@ -22,7 +22,7 @@ import type { FormInstance } from "antd";
|
|||||||
import type { ServerpartShopModel } from './data'
|
import type { ServerpartShopModel } from './data'
|
||||||
|
|
||||||
import { useRef, useState } from "react";
|
import { useRef, useState } from "react";
|
||||||
import { getList, delServerpartShop, updateServerpartShop, handleSynchroServerpartShop, handleDeleteServerpartShop, handleSynchroRTSERVERPARTSHOP } from "./service";
|
import { getList, delServerpartShop, updateServerpartShop, handleSynchroServerpartShop, handleDeleteServerpartShop, handleSynchroRTSERVERPARTSHOP, handleModifyShopBusinessState } from "./service";
|
||||||
import './style.less'
|
import './style.less'
|
||||||
|
|
||||||
import type { ConnectState } from "@/models/connect";
|
import type { ConnectState } from "@/models/connect";
|
||||||
@ -280,8 +280,27 @@ const ServerpartShopTable: React.FC<{ currentUser: CurrentUser }> = ({ currentUs
|
|||||||
|
|
||||||
// 同步门店经营状态
|
// 同步门店经营状态
|
||||||
const handleUpdateShopState = async (value: any) => {
|
const handleUpdateShopState = async (value: any) => {
|
||||||
|
let list: any = []
|
||||||
|
if (selectServerPartList && selectServerPartList.length > 0) {
|
||||||
|
selectServerPartList.forEach((item: any) => {
|
||||||
|
list.push({
|
||||||
|
ServerPartShopId: item,
|
||||||
|
BusinessState: value.BUSINESS_STATE.toString()
|
||||||
|
})
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
setUpdateShopStateLoading(true)
|
setUpdateShopStateLoading(true)
|
||||||
|
const data = await handleModifyShopBusinessState({ list: list })
|
||||||
setUpdateShopStateLoading(false)
|
setUpdateShopStateLoading(false)
|
||||||
|
if (data.Result_Code === 100) {
|
||||||
|
message.success(data.Result_Desc)
|
||||||
|
setSelectServerPartList([])
|
||||||
|
setUpdateShopStateModal(false)
|
||||||
|
actionRef.current?.reload()
|
||||||
|
} else {
|
||||||
|
message.error(data.Result_Desc)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -196,3 +196,17 @@ export async function handleSynchroRTSERVERPARTSHOP(params?: any) {
|
|||||||
|
|
||||||
return data
|
return data
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 批量同步门店状态
|
||||||
|
export async function handleModifyShopBusinessState(params?: any) {
|
||||||
|
const data = await request(`/BaseInfo/ModifyShopBusinessState`, {
|
||||||
|
method: 'POST',
|
||||||
|
data: { ...params, requestEncryption: true }
|
||||||
|
});
|
||||||
|
|
||||||
|
if (data.Result_Code !== 100) {
|
||||||
|
return data
|
||||||
|
}
|
||||||
|
|
||||||
|
return data
|
||||||
|
}
|
||||||
@ -383,6 +383,7 @@ const YearExamineProcess = ({ currentUser, onShow, setOnShow, parentRow, setPare
|
|||||||
nextApproveState: AfterSettlementRef.current?.nextState || ''
|
nextApproveState: AfterSettlementRef.current?.nextState || ''
|
||||||
}
|
}
|
||||||
console.log('req', req);
|
console.log('req', req);
|
||||||
|
|
||||||
const data = await handleCreateSettlement(req)
|
const data = await handleCreateSettlement(req)
|
||||||
if (data.Result_Code === 100) {
|
if (data.Result_Code === 100) {
|
||||||
const fileList: any = AfterSettlementRef.current?.fileList
|
const fileList: any = AfterSettlementRef.current?.fileList
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||
// 由 scripts/writeVersion.js 自动生成
|
// 由 scripts/writeVersion.js 自动生成
|
||||||
export const VERSION = "4.5.79";
|
export const VERSION = "4.5.80";
|
||||||
export const GIT_HASH = "19e42b8";
|
export const GIT_HASH = "1871dcf";
|
||||||
export const BUILD_TIME = "2025-12-24T06:15:18.426Z";
|
export const BUILD_TIME = "2026-01-30T08:29:11.807Z";
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user