fix: 优化包码结算列表
This commit is contained in:
parent
ca58568250
commit
ed25376de9
|
@ -18,6 +18,7 @@ import { Alert, Button, CombinedDateRangePicker, Notify, Select } from "zent"
|
||||||
import "./list.less"
|
import "./list.less"
|
||||||
import { Column } from "./utils"
|
import { Column } from "./utils"
|
||||||
import { pickBy } from "lodash-es"
|
import { pickBy } from "lodash-es"
|
||||||
|
|
||||||
var moment = require("moment")
|
var moment = require("moment")
|
||||||
let day = moment(nowDay()).format("YYYY-MM-DD")
|
let day = moment(nowDay()).format("YYYY-MM-DD")
|
||||||
let tomonth = moment(nowMonth()).format("YYYY-MM-DD")
|
let tomonth = moment(nowMonth()).format("YYYY-MM-DD")
|
||||||
|
@ -183,17 +184,18 @@ export default class settlementList extends React.Component {
|
||||||
//!获取订单列表
|
//!获取订单列表
|
||||||
getOrderFn() {
|
getOrderFn() {
|
||||||
let { page, limit, search, combinedValue } = this.state
|
let { page, limit, search, combinedValue } = this.state
|
||||||
|
let { key, key_batch_id, plan_id, reseller_id, type } = search
|
||||||
let data = {
|
let data = {
|
||||||
page,
|
page,
|
||||||
limit,
|
limit,
|
||||||
begin_time: combinedValue[0],
|
begin_time: combinedValue[0],
|
||||||
end_time: combinedValue[1]
|
end_time: combinedValue[1],
|
||||||
|
key: key ? key : "",
|
||||||
|
key_batch_id: key_batch_id ? key_batch_id.key : "",
|
||||||
|
plan_id: plan_id ? plan_id.key : "",
|
||||||
|
reseller_id: reseller_id ? reseller_id.key : "",
|
||||||
|
type: type ? type.key : ""
|
||||||
}
|
}
|
||||||
|
|
||||||
for (let key in search) {
|
|
||||||
data[key] = typeof search[key] === "string" ? search[key] : search[key].key
|
|
||||||
}
|
|
||||||
|
|
||||||
getSettlementOrder(pickBy(data))
|
getSettlementOrder(pickBy(data))
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
handelResponse(
|
handelResponse(
|
||||||
|
@ -254,6 +256,7 @@ export default class settlementList extends React.Component {
|
||||||
onChange={(va) => {
|
onChange={(va) => {
|
||||||
this.searchChange("plan_id", va)
|
this.searchChange("plan_id", va)
|
||||||
if (va) {
|
if (va) {
|
||||||
|
// 1.获取key 批次
|
||||||
this.getBatchKeys(va.key)
|
this.getBatchKeys(va.key)
|
||||||
} else {
|
} else {
|
||||||
this.setState({ keysOptions: [] })
|
this.setState({ keysOptions: [] })
|
||||||
|
|
Loading…
Reference in New Issue