1) 增加key批次优惠券

This commit is contained in:
zhangds 2022-09-22 13:40:56 +08:00
parent 1b0fd5af7a
commit 34c2519505
5 changed files with 3250 additions and 1007 deletions

View File

@ -98,8 +98,8 @@ const tableColumn = [
},
{
title: "创建时间",
name: "createDate",
prop: "createDate",
name: "create_time",
prop: "create_time",
type: "normal",
width: "auto",
},
@ -328,7 +328,7 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
table_obj.channel_activity_id = item.channel_activity_id; //
table_obj.all_budget = Number(item.all_budget); //
table_obj.effectDate = `${item.time_limit.effect_time.end_time}${item.time_limit.effect_time.start_time}`; //
table_obj.createDate = ""; //
table_obj.create_time = item.create_time; //
return table_obj;
});
@ -568,7 +568,6 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
res,
(req, msg) => {
Notify.success(res.message);
return;
setTimeout(() => {
window.history.back();
}, 2000);
@ -785,6 +784,7 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
table_index: index,
});
} else {
console.log("rowData =>", rowData);
setState({
product_title: "编辑商品",
productData: rowData,

View File

@ -69,7 +69,7 @@ const UseGoodsScopePop = forwardRef((props, ref) => {
table_obj.channel_activity_id = form_model.channel_activity_id; //
table_obj.all_budget = Number(form_model.all_budget); //
table_obj.effectDate = `${form_model.time_limit.effect_time.end_time}${form_model.time_limit.effect_time.start_time}`; //
table_obj.createDate = ""; //
table_obj.create_time = form_model.create_time; //
if (product_title === "编辑立减金") {
if (table_index !== -1) {
@ -102,6 +102,7 @@ const UseGoodsScopePop = forwardRef((props, ref) => {
} else {
form_data = format_knockGold_model();
}
console.log("form_data =>", form_data);
submit(form_data);
onClose();
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -32,7 +32,7 @@ import {
import { divNum } from "@/tools/number";
import ProductForm from "../product/add"; /* 商品 */
import KnockGold from "@/components/knockGold"; /* 立减金 */
import UseCouponAddEdit from "@/components/UseCouponAddEdit"; /* 立减金 */
import UseCouponAddEdit from "@/components/UseCouponAddEdit"; // 优惠券
import moment from "moment";
import { uploadImg } from "@/assets/api.js";
import "./add.less";