1) 增加优惠券立减金
This commit is contained in:
parent
e54d19407f
commit
1168ea84f1
|
@ -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 (
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -190,6 +190,7 @@ const UseCouponList = () => {
|
|||
];
|
||||
|
||||
sessionStorage.setItem("breaknav", JSON.stringify(activerou));
|
||||
sessionStorage.setItem("productData", "");
|
||||
history.push("/home/coupon-add-edit");
|
||||
};
|
||||
const selectionFun = () => {};
|
||||
|
|
Loading…
Reference in New Issue