|
|
|
@ -36,6 +36,9 @@ import {NzTabComponent, NzTabSetComponent, NzTabsModule} from "ng-zorro-antd/tab |
|
|
|
|
import {NzSpinComponent} from "ng-zorro-antd/spin"; |
|
|
|
|
import {NzTimelineComponent, NzTimelineItemComponent} from "ng-zorro-antd/timeline"; |
|
|
|
|
import {NzResultComponent} from "ng-zorro-antd/result"; |
|
|
|
|
import {DateSelectType, DateUtils} from "../../../utils/dateUtils.service"; |
|
|
|
|
import {NzDatePickerComponent, NzRangePickerComponent} from "ng-zorro-antd/date-picker"; |
|
|
|
|
import {NzRadioButtonDirective, NzRadioComponent, NzRadioGroupComponent} from "ng-zorro-antd/radio"; |
|
|
|
|
|
|
|
|
|
@Component({ |
|
|
|
|
selector: 'app-goods-list', |
|
|
|
@ -81,6 +84,11 @@ import {NzResultComponent} from "ng-zorro-antd/result"; |
|
|
|
|
NgClass, |
|
|
|
|
NzResultComponent, |
|
|
|
|
NzTimelineComponent, |
|
|
|
|
NzDatePickerComponent, |
|
|
|
|
NzRadioButtonDirective, |
|
|
|
|
NzRadioComponent, |
|
|
|
|
NzRadioGroupComponent, |
|
|
|
|
NzRangePickerComponent, |
|
|
|
|
|
|
|
|
|
], |
|
|
|
|
templateUrl: './goods-list.component.html', |
|
|
|
@ -112,6 +120,10 @@ export class GoodsListComponent { |
|
|
|
|
logisticsNo: any; |
|
|
|
|
logisticsTraceDetails: any; |
|
|
|
|
goodsOrderId: any; |
|
|
|
|
// 时间类型选择
|
|
|
|
|
dateTypeSelect = DateSelectType; |
|
|
|
|
// 更多查询条件
|
|
|
|
|
isCollapse = false; |
|
|
|
|
|
|
|
|
|
protected readonly fallbackImg = fallbackImg; |
|
|
|
|
protected readonly orderGoodsStatus = orderGoodsStatus; |
|
|
|
@ -130,6 +142,10 @@ export class GoodsListComponent { |
|
|
|
|
goodsBrand: [''], |
|
|
|
|
userPhone: [''], |
|
|
|
|
goodsSpecsName: [''], |
|
|
|
|
createTimeArray: [[]], |
|
|
|
|
createTimeSelect: ['1'], |
|
|
|
|
createTimeS: [''], |
|
|
|
|
createTimeE: [''], |
|
|
|
|
goodsName: [''], |
|
|
|
|
payType: [''], |
|
|
|
|
status: [''], |
|
|
|
@ -144,6 +160,16 @@ export class GoodsListComponent { |
|
|
|
|
|
|
|
|
|
// 查询列表
|
|
|
|
|
public getRequest(reset: boolean = false) { |
|
|
|
|
|
|
|
|
|
if (this.searchForm.controls['createTimeArray'].value != null |
|
|
|
|
&& this.searchForm.controls['createTimeArray'].value.length > 0) { |
|
|
|
|
this.searchForm.controls['createTimeS'].setValue(this.searchForm.controls['createTimeArray'].value[0]); |
|
|
|
|
this.searchForm.controls['createTimeE'].setValue(this.searchForm.controls['createTimeArray'].value[1]); |
|
|
|
|
} else { |
|
|
|
|
this.searchForm.controls['createTimeS'].setValue(null) |
|
|
|
|
this.searchForm.controls['createTimeE'].setValue(null) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
this.tableData.loading = true; |
|
|
|
|
if (reset) { |
|
|
|
|
this.tablePageNum = 1; |
|
|
|
@ -171,6 +197,17 @@ export class GoodsListComponent { |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 创建时间初始化 |
|
|
|
|
*/ |
|
|
|
|
createTimeInit() { |
|
|
|
|
let createTimeSelect = this.searchForm.controls['createTimeSelect'].value; |
|
|
|
|
if (createTimeSelect != null) { |
|
|
|
|
let timeObj = DateUtils.getDate(new Date(), Number(createTimeSelect)); |
|
|
|
|
this.searchForm.controls['createTimeArray'].setValue([timeObj.timeS, timeObj.timeE]); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 配置数据
|
|
|
|
|
getNode(array: any): any { |
|
|
|
|
array.forEach((item: any) => { |
|
|
|
@ -241,4 +278,5 @@ export class GoodsListComponent { |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|