1) 增加key批次优惠券
This commit is contained in:
parent
1b0fd5af7a
commit
34c2519505
|
@ -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,
|
||||
|
|
|
@ -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
|
@ -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";
|
||||
|
|
Loading…
Reference in New Issue