1) 增加优惠券立减金

This commit is contained in:
zhangds 2022-09-05 18:07:58 +08:00
parent e54d19407f
commit 1168ea84f1
3 changed files with 20 additions and 4 deletions

View File

@ -241,6 +241,14 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
const onReturn = () => {};
const onChangeCombinedDate = (e) => {
setForm_info_data({ date_time: e });
//
sessionStorage.setItem(
"knockGold_effectDate",
JSON.stringify({
begin_time: e[0],
end_time: e[1],
})
);
};
const onDisabledRange = (date, type) => {
let disabled = false;
@ -358,7 +366,7 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
//
const scopePopSubmit = (data) => {
console.log("scopePopSubmit =>", data);
// console.log("scopePopSubmit =>", data);
};
return (

View File

@ -34,10 +34,17 @@ const UseGoodsScopePop = forwardRef((props, ref) => {
try {
if (visible) {
if (type === "addProduct") {
scope_table_data = sessionStorage.getItem("productData");
scope_table_data = sessionStorage.getItem("productData");
if (scope_table_data) {
scope_table_data = JSON.parse(scope_table_data);
}
submit(JSON.parse(scope_table_data));
//
if (type === "addProduct") {
}
console.log("提交数据 =>", scope_table_data);
// submit(JSON.parse(scope_table_data));
onClose();
}
} catch (err) {
console.log("err =>", err);

View File

@ -190,6 +190,7 @@ const UseCouponList = () => {
];
sessionStorage.setItem("breaknav", JSON.stringify(activerou));
sessionStorage.setItem("productData", "");
history.push("/home/coupon-add-edit");
};
const selectionFun = () => {};