fix: 删除无用控制台输出
This commit is contained in:
parent
cfdff429da
commit
bfb43d57ae
|
@ -78,7 +78,6 @@ const UseCouponList = () => {
|
||||||
|
|
||||||
const getTable = () => {
|
const getTable = () => {
|
||||||
let param = getParam();
|
let param = getParam();
|
||||||
console.log("调用接口 ...", param);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
|
|
@ -658,8 +658,6 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
|
||||||
return item.goods_id;
|
return item.goods_id;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
console.log("编辑 大提交 =>", param);
|
|
||||||
editCoupon(editData.id, param).then((res) => {
|
editCoupon(editData.id, param).then((res) => {
|
||||||
handelResponse(
|
handelResponse(
|
||||||
res,
|
res,
|
||||||
|
@ -730,8 +728,6 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
|
||||||
});
|
});
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
console.log("大提交 =>", param);
|
|
||||||
addCoupon(param).then((res) => {
|
addCoupon(param).then((res) => {
|
||||||
handelResponse(
|
handelResponse(
|
||||||
res,
|
res,
|
||||||
|
@ -880,7 +876,6 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
|
||||||
|
|
||||||
// 获取已经选择的商品数据(禁用商品选择)
|
// 获取已经选择的商品数据(禁用商品选择)
|
||||||
const getCheckedProduct = () => {
|
const getCheckedProduct = () => {
|
||||||
console.log("已选 =>", state.tableData);
|
|
||||||
let arr = state.tableData.map((item) => Number(item.product_id));
|
let arr = state.tableData.map((item) => Number(item.product_id));
|
||||||
return arr;
|
return arr;
|
||||||
};
|
};
|
||||||
|
@ -935,7 +930,6 @@ const UseCouponAddEdit = forwardRef((props, ref) => {
|
||||||
|
|
||||||
// 编辑
|
// 编辑
|
||||||
const productEditShow = (rowData, index) => {
|
const productEditShow = (rowData, index) => {
|
||||||
console.log("编辑数据 1 => ", rowData);
|
|
||||||
try {
|
try {
|
||||||
// 第一步:获取直连天下的商品数据需要分销商 id
|
// 第一步:获取直连天下的商品数据需要分销商 id
|
||||||
const direct_reseller_ids = state.direct_reseller_id;
|
const direct_reseller_ids = state.direct_reseller_id;
|
||||||
|
|
|
@ -42,7 +42,6 @@ const UseGoodsScopePop = forwardRef((props, ref) => {
|
||||||
Number(form_model.quantity)
|
Number(form_model.quantity)
|
||||||
);
|
);
|
||||||
form_model.effectDate = "-";
|
form_model.effectDate = "-";
|
||||||
console.log("new_tableData[table_index] 1=>", new_tableData[table_index]);
|
|
||||||
if (product_title === "编辑商品") {
|
if (product_title === "编辑商品") {
|
||||||
if (table_index !== -1) {
|
if (table_index !== -1) {
|
||||||
let ck = new_tableData[table_index].checked;
|
let ck = new_tableData[table_index].checked;
|
||||||
|
@ -60,7 +59,6 @@ const UseGoodsScopePop = forwardRef((props, ref) => {
|
||||||
let new_tableData = tableData;
|
let new_tableData = tableData;
|
||||||
let form_model = knockGold_el.current.state.form_data;
|
let form_model = knockGold_el.current.state.form_data;
|
||||||
let table_obj = knockGoldFun(form_model);
|
let table_obj = knockGoldFun(form_model);
|
||||||
console.log("new_tableData[table_index] 2=>", new_tableData[table_index]);
|
|
||||||
if (product_title === "编辑立减金") {
|
if (product_title === "编辑立减金") {
|
||||||
if (table_index !== -1) {
|
if (table_index !== -1) {
|
||||||
let ck = new_tableData[table_index].checked;
|
let ck = new_tableData[table_index].checked;
|
||||||
|
@ -92,7 +90,6 @@ const UseGoodsScopePop = forwardRef((props, ref) => {
|
||||||
} else {
|
} else {
|
||||||
form_data = format_knockGold_model();
|
form_data = format_knockGold_model();
|
||||||
}
|
}
|
||||||
console.log("form_data =>", form_data);
|
|
||||||
submit(form_data);
|
submit(form_data);
|
||||||
onClose();
|
onClose();
|
||||||
}
|
}
|
||||||
|
|
|
@ -174,7 +174,6 @@ const UseProductPop = forwardRef((props, ref) => {
|
||||||
setState({
|
setState({
|
||||||
productDataAll: req.data,
|
productDataAll: req.data,
|
||||||
});
|
});
|
||||||
console.log("所有商品数据 =>", req.data);
|
|
||||||
let optArr = req.data.map((item) => {
|
let optArr = req.data.map((item) => {
|
||||||
return {
|
return {
|
||||||
key: item.id,
|
key: item.id,
|
||||||
|
|
|
@ -38,7 +38,6 @@ const UseUploadExcel = (props) => {
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
try {
|
try {
|
||||||
let el = uploadInputRef.current;
|
let el = uploadInputRef.current;
|
||||||
console.log(el);
|
|
||||||
if (el) {
|
if (el) {
|
||||||
el.click();
|
el.click();
|
||||||
}
|
}
|
||||||
|
@ -51,7 +50,6 @@ const UseUploadExcel = (props) => {
|
||||||
setFilesTip(200);
|
setFilesTip(200);
|
||||||
setHash(res.data.hash);
|
setHash(res.data.hash);
|
||||||
setDisabledSureBtn(false);
|
setDisabledSureBtn(false);
|
||||||
console.log("res => 成功", res);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const bachUploadState_0 = (res) => {
|
const bachUploadState_0 = (res) => {
|
||||||
|
@ -111,7 +109,6 @@ const UseUploadExcel = (props) => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
console.log("res =>", res);
|
|
||||||
Notify.error(res.message);
|
Notify.error(res.message);
|
||||||
setFilesTip(0);
|
setFilesTip(0);
|
||||||
}
|
}
|
||||||
|
@ -128,7 +125,6 @@ const UseUploadExcel = (props) => {
|
||||||
setFilesName(my_file.name);
|
setFilesName(my_file.name);
|
||||||
setShowUpType(true);
|
setShowUpType(true);
|
||||||
excelParseFun(my_file); // 文件解析
|
excelParseFun(my_file); // 文件解析
|
||||||
console.log("file =>", my_file);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -170,7 +170,6 @@ const UseCouponCommodity = () => {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
console.log("resData =>", resData);
|
|
||||||
setState({ tableData: resData });
|
setState({ tableData: resData });
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -490,7 +490,6 @@ const UseKeyAddEdit = () => {
|
||||||
return o;
|
return o;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
console.log("newData =>", newData);
|
|
||||||
if (Number(data.bind_object[0]) === 1) {
|
if (Number(data.bind_object[0]) === 1) {
|
||||||
setState({ distdata: newData });
|
setState({ distdata: newData });
|
||||||
} else {
|
} else {
|
||||||
|
@ -563,7 +562,6 @@ const UseKeyAddEdit = () => {
|
||||||
|
|
||||||
// 编辑
|
// 编辑
|
||||||
const rowEditClick = (row, rowIndex) => {
|
const rowEditClick = (row, rowIndex) => {
|
||||||
console.log("编辑 -01");
|
|
||||||
if (state.keyType === 1) {
|
if (state.keyType === 1) {
|
||||||
setState({
|
setState({
|
||||||
draw_title: "编辑兑换码",
|
draw_title: "编辑兑换码",
|
||||||
|
@ -797,7 +795,6 @@ const UseKeyAddEdit = () => {
|
||||||
* @param {*} data
|
* @param {*} data
|
||||||
*/
|
*/
|
||||||
const couponExchangeSubmit = (apiType, data) => {
|
const couponExchangeSubmit = (apiType, data) => {
|
||||||
console.log("apiType =>", apiType);
|
|
||||||
let keyBatch_id = sessionStorage.getItem("keybatch_id");
|
let keyBatch_id = sessionStorage.getItem("keybatch_id");
|
||||||
if (apiType === 0) {
|
if (apiType === 0) {
|
||||||
let create_param = {
|
let create_param = {
|
||||||
|
@ -875,7 +872,6 @@ const UseKeyAddEdit = () => {
|
||||||
|
|
||||||
// 优惠券
|
// 优惠券
|
||||||
const couponTools = () => {
|
const couponTools = () => {
|
||||||
console.log("state.couponData =>", state.couponData);
|
|
||||||
// 第一步:整理数据 编辑优惠券数据
|
// 第一步:整理数据 编辑优惠券数据
|
||||||
let editCouponData = state.couponData.filter(
|
let editCouponData = state.couponData.filter(
|
||||||
(item) =>
|
(item) =>
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -308,7 +308,6 @@ export default class acclist extends React.Component {
|
||||||
handelResponse(
|
handelResponse(
|
||||||
res,
|
res,
|
||||||
(req, msg) => {
|
(req, msg) => {
|
||||||
console.log("req =>", req);
|
|
||||||
if (req.data.length > 0) {
|
if (req.data.length > 0) {
|
||||||
sessionStorage.setItem("keyType", req.data[0].bind_object[0]);
|
sessionStorage.setItem("keyType", req.data[0].bind_object[0]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue