onPageChange(e)}
- emptyText={
- state.lodgingTable
- ? "抱歉,暂无相关数据记录"
- : "查询 请输入【分销商】或【计划名称】或【key】进行查询"
- }
- countChange={(e) => onCountChange(e)}
- checkChange={(data) => selectionFun(data)}
- ComponentHandler={(com, rowData, rowIndex) => {
- if (com === "opearo") {
- return (
-
- productEditShow(rowData, rowIndex)}
- >
- 编辑
-
-
- );
+
+
+ onPageChange(e)}
+ emptyText={
+ state.lodgingTable
+ ? "抱歉,暂无相关数据记录"
+ : "查询 请输入【分销商】或【计划名称】或【key】进行查询"
}
+ countChange={(e) => onCountChange(e)}
+ checkChange={(data) => selectionFun(data)}
+ ComponentHandler={(com, rowData, rowIndex) => {
+ if (com === "opearo") {
+ return (
+
+ productEditShow(rowData, rowIndex)}
+ >
+ 编辑
+
+
+ );
+ }
- if (com === "type") {
- return {rowData.type === 1 ? "商品" : "立减金"};
- }
- }}
- />
-
+ if (com === "type") {
+ return {rowData.type === 1 ? "商品" : "立减金"};
+ }
+
+ if (com === "cost_price") {
+ return (
+ <>
+ {rowData.type === 2
+ ? rowData.official_price
+ : rowData.cost_price}
+ >
+ );
+ }
+ }}
+ />
+