update
This commit is contained in:
parent
9a7cf2f7c9
commit
8244fac686
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ant-design-pro",
|
||||
"version": "4.5.69",
|
||||
"version": "4.5.72",
|
||||
"private": true,
|
||||
"description": "An out-of-box UI solution for enterprise applications",
|
||||
"scripts": {
|
||||
|
||||
@ -563,7 +563,7 @@ const BasicLayout: React.FC<BasicLayoutProps> = (props) => {
|
||||
|
||||
|
||||
// 卡券类型
|
||||
getFieldEnum({ FieldExplainField: 'COUPONTYPE' }).then((COUPONTYPEList) => {
|
||||
getFieldEnum({ FieldExplainField: 'COUPONTYPE', FieldEnumStatus: 1 }).then((COUPONTYPEList) => {
|
||||
session.set('COUPONTYPEList', COUPONTYPEList);
|
||||
if (COUPONTYPEList && COUPONTYPEList.length > 0) {
|
||||
const COUPONTYPEObj = handleGetLabel(COUPONTYPEList)
|
||||
|
||||
@ -47,7 +47,8 @@ const CardInfo = ({ showDetail, currentRow, currentUser, parentRef, setShowDetai
|
||||
const [imagePreviewVisible, setImagePreviewVisible] = useState<boolean>(false) // 预览图片
|
||||
// 悬浮框 按钮加载的属性
|
||||
const [modalLoading, setModalLoading] = useState<boolean>(false)
|
||||
|
||||
// 当前选择的卡券类型
|
||||
const [COUPON_TYPE, setCOUPON_TYPE] = useState<any>()
|
||||
|
||||
// 预览上传后的图片
|
||||
const handlePreview = async () => {
|
||||
@ -153,6 +154,7 @@ const CardInfo = ({ showDetail, currentRow, currentUser, parentRef, setShowDetai
|
||||
setCurrentRow(null)
|
||||
setShowDetail(false)
|
||||
setFileList([])
|
||||
setCOUPON_TYPE(null)
|
||||
}}
|
||||
confirmLoading={modalLoading}
|
||||
width={1400}
|
||||
@ -178,6 +180,7 @@ const CardInfo = ({ showDetail, currentRow, currentUser, parentRef, setShowDetai
|
||||
setCurrentRow(null)
|
||||
setShowDetail(false)
|
||||
setFileList([])
|
||||
setCOUPON_TYPE(null)
|
||||
}}
|
||||
handleOK={() => {
|
||||
ModalFormRef?.current?.validateFields().then(async (res) => {
|
||||
@ -198,8 +201,10 @@ const CardInfo = ({ showDetail, currentRow, currentUser, parentRef, setShowDetai
|
||||
}
|
||||
const data = await handeGetCOUPONDetail(req)
|
||||
setCouponDetail(data)
|
||||
setCOUPON_TYPE(currentRow?.COUPON_TYPE)
|
||||
return data
|
||||
} else {
|
||||
setCOUPON_TYPE(1000)
|
||||
return {}
|
||||
}
|
||||
}}
|
||||
@ -241,6 +246,12 @@ const CardInfo = ({ showDetail, currentRow, currentUser, parentRef, setShowDetai
|
||||
}
|
||||
]}
|
||||
readonly={readonly}
|
||||
fieldProps={{
|
||||
onChange: (e) => {
|
||||
console.log('eeee', e);
|
||||
setCOUPON_TYPE(e)
|
||||
}
|
||||
}}
|
||||
/>
|
||||
</Col>
|
||||
<Col span={8}>
|
||||
@ -284,7 +295,7 @@ const CardInfo = ({ showDetail, currentRow, currentUser, parentRef, setShowDetai
|
||||
<Row>
|
||||
<Col span={12}>
|
||||
<ProFormText
|
||||
label={"购买满:"}
|
||||
label={COUPON_TYPE === 1000 ? '购买满:' : COUPON_TYPE === 2000 ? '购买满:' : COUPON_TYPE === 3000 ? '购买满:' : COUPON_TYPE === 5000 ? '实物价值:' : COUPON_TYPE === 9000 ? '销售价:' : ''}
|
||||
name={"WITH_AMOUNT"}
|
||||
rules={[
|
||||
{
|
||||
@ -296,9 +307,13 @@ const CardInfo = ({ showDetail, currentRow, currentUser, parentRef, setShowDetai
|
||||
/>
|
||||
</Col>
|
||||
|
||||
<Col span={12}>
|
||||
<Col span={12} style={{ display: 'flex', alignItems: 'flex-start' }}>
|
||||
<ProFormText
|
||||
label={"减:"}
|
||||
fieldProps={{
|
||||
style: { display: COUPON_TYPE === 5000 ? 'none' : '' }
|
||||
}}
|
||||
// style={{ display: COUPON_TYPE === 5000 ? 'none' : 'block' }}
|
||||
label={COUPON_TYPE === 1000 ? '减:' : COUPON_TYPE === 2000 ? '享受:' : COUPON_TYPE === 3000 ? '抵扣:' : COUPON_TYPE === 5000 ? '' : COUPON_TYPE === 9000 ? '会员价:' : ''}
|
||||
name={"USED_AMOUNT"}
|
||||
rules={[
|
||||
{
|
||||
@ -308,6 +323,7 @@ const CardInfo = ({ showDetail, currentRow, currentUser, parentRef, setShowDetai
|
||||
]}
|
||||
readonly={readonly}
|
||||
/>
|
||||
{COUPON_TYPE === 2000 ? '折' : ''}
|
||||
</Col>
|
||||
</Row>
|
||||
</Col>
|
||||
|
||||
@ -358,6 +358,7 @@ const EventRegistrationDetail = ({ parentRow, setparentRow, onShow, setOnShow, c
|
||||
listType="picture-card"
|
||||
accept="image/*"
|
||||
readonly={readonly}
|
||||
disabled={readonly}
|
||||
fieldProps={{
|
||||
className: readonly ? "noUoloadButton" : "",
|
||||
beforeUpload: beforeUpload,
|
||||
|
||||
@ -472,6 +472,17 @@ const HomepageAds: React.FC<{ currentUser: CurrentUser | undefined }> = (props)
|
||||
label="显示时间"
|
||||
/>
|
||||
</Col>
|
||||
<Col span={12}>
|
||||
<ProFormSelect
|
||||
name="BUSINESSTYPE"
|
||||
label="海报类型"
|
||||
options={[
|
||||
{ label: "每周特惠", value: 1000 },
|
||||
{ label: "营销活动", value: 2000 },
|
||||
]}
|
||||
initialValue={1000}
|
||||
/>
|
||||
</Col>
|
||||
<Col span={12}>
|
||||
<ProFormUploadButton
|
||||
name="USERDEFINEDTYPE_ICO"
|
||||
|
||||
@ -207,7 +207,7 @@ const SharedRestStationDetail = ({ parentRow, setParentRow, onShow, setOnShow, r
|
||||
const handleAddUpdateStation = async (obj: any) => {
|
||||
let req: any = {}
|
||||
|
||||
if (parentRow.RESTSTATION_ID) {
|
||||
if (parentRow?.RESTSTATION_ID) {
|
||||
req = {
|
||||
...parentRow,
|
||||
...obj,
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
// 由 scripts/writeVersion.js 自动生成
|
||||
export const VERSION = "4.5.69";
|
||||
export const GIT_HASH = "52119dd";
|
||||
export const BUILD_TIME = "2025-11-03T07:37:38.106Z";
|
||||
export const VERSION = "4.5.72";
|
||||
export const GIT_HASH = "9a7cf2f";
|
||||
export const BUILD_TIME = "2025-11-12T10:24:34.154Z";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user