From f9f2b095a0456065814af040dbe04cce02065506 Mon Sep 17 00:00:00 2001 From: zhangds Date: Mon, 24 Oct 2022 11:47:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/UseCouponAddEdit/index.jsx | 15 --------------- src/components/UseProductPop/index.jsx | 5 ----- 2 files changed, 20 deletions(-) diff --git a/src/components/UseCouponAddEdit/index.jsx b/src/components/UseCouponAddEdit/index.jsx index b1aa410b..8e5d4bb5 100644 --- a/src/components/UseCouponAddEdit/index.jsx +++ b/src/components/UseCouponAddEdit/index.jsx @@ -244,9 +244,6 @@ const UseCouponAddEdit = forwardRef((props, ref) => { useEffect(() => { (async function init() { // 第一步:1.判断组件是否是 优惠券管理 couponType - console.log("couponType =>", couponType); - console.log("详情 =>", editData); - console.log("isstate =>", sessionStorage.getItem("isState")); if (couponType === 0) { // 如果是编辑 if (editData && editData !== "") { @@ -612,7 +609,6 @@ const UseCouponAddEdit = forwardRef((props, ref) => { update_product: {}, delete_product: [], }; - console.log("所有数据 =>", state.tableData); // 第一步: 商品-立减金过滤 let goods_arr = state.tableData.filter( (item) => item.checked && item.type === 1 @@ -641,11 +637,6 @@ const UseCouponAddEdit = forwardRef((props, ref) => { return item.only; }); // 编辑 - // console.log("编辑 大提交 =>", param); - // return; - - console.log("旧数据 =>", state.oldProduct); - console.log("编辑 大提交 =>", param); // return; // 商品立减金-删除 param.delete_product = state.tableData @@ -658,8 +649,6 @@ const UseCouponAddEdit = forwardRef((props, ref) => { } }); - console.log("所有数据 =>", state.tableData); - console.log("旧数据 =>", state.oldProduct); console.log("编辑 大提交 =>", param); editCoupon(editData.id, param).then((res) => { @@ -704,8 +693,6 @@ const UseCouponAddEdit = forwardRef((props, ref) => { ...item.only, }; }); - console.log("param 优惠券新增 大提交 =>", param); - // 复制id if (state.isState === "1") { param.copy_code_batch_id = editData.id; @@ -734,7 +721,6 @@ const UseCouponAddEdit = forwardRef((props, ref) => { handelResponse( res, (req, msg) => { - console.log("分销商 id =>", req.direct_reseller_id); setState({ direct_reseller_id: req.direct_reseller_id }); }, (err) => { @@ -853,7 +839,6 @@ const UseCouponAddEdit = forwardRef((props, ref) => { // 获取已经选择的商品数据(禁用商品选择) const getCheckedProduct = () => { - console.log("state.tableData =>", state.tableData); let arr = state.tableData.map((item) => item.product_id); return arr; }; diff --git a/src/components/UseProductPop/index.jsx b/src/components/UseProductPop/index.jsx index 30b50252..5656e70e 100644 --- a/src/components/UseProductPop/index.jsx +++ b/src/components/UseProductPop/index.jsx @@ -168,9 +168,6 @@ const UseProductPop = forwardRef((props, ref) => { checkedProduct.indexOf(item.id) !== -1 ? true : false, }; }); - console.log("opt-arr =>", optArr); - console.log("checkedProduct =>", checkedProduct); - // 设置是否已经选择 setState({ productOption: optArr }); resolve(optArr); @@ -179,7 +176,6 @@ const UseProductPop = forwardRef((props, ref) => { setState({ loading: false, }); - console.log("err =>", err); reject(false); } ); @@ -193,7 +189,6 @@ const UseProductPop = forwardRef((props, ref) => { // 编辑处理 const editFun = () => { return new Promise((resolve, reject) => { - console.log("商品编辑 =>", productData); // 编辑 if (productData) { setModel({