|
@@ -0,0 +1,88 @@
|
|
|
+import { Component, OnInit, ViewChild } from '@angular/core';
|
|
|
+import { _HttpClient, ModalHelper } from '@delon/theme';
|
|
|
+import { STColumn, STComponent } from '@delon/abc';
|
|
|
+import { SFSchema } from '@delon/form';
|
|
|
+import { NzDrawerService } from 'ng-zorro-antd';
|
|
|
+import { FbsWorkshopDispatchListAddComponent } from '../add/add.component';
|
|
|
+import { FbsWorkshopDispatchList } from 'app/entity/fbs/fbs-workshop-dispatch-list';
|
|
|
+import { FbsWorkshopDispatchListUpdateComponent } from '../update/update.component';
|
|
|
+import { FbsWorkshopDispatchListViewComponent } from '../view/view.component';
|
|
|
+
|
|
|
+@Component({
|
|
|
+ selector: 'app-fbs-workshop-dispatch-list-list',
|
|
|
+ templateUrl: './list.component.html',
|
|
|
+})
|
|
|
+export class FbsWorkshopDispatchListListComponent implements OnInit {
|
|
|
+ constructor(private nzDrawerService: NzDrawerService) {}
|
|
|
+
|
|
|
+ ngOnInit() {}
|
|
|
+
|
|
|
+ dataList = [{}]; //表格数据
|
|
|
+ isLoading = false; //表格加载
|
|
|
+ page = {
|
|
|
+ total: 0,
|
|
|
+ current: 0,
|
|
|
+ size: 0,
|
|
|
+ };
|
|
|
+ fbsWorkshopDispatchList: FbsWorkshopDispatchList = {}; //派工单对象
|
|
|
+
|
|
|
+ // 按页码查询
|
|
|
+ pageIndexChange(event) {
|
|
|
+ this.fbsWorkshopDispatchList.pageNo = event;
|
|
|
+ //主数据刷新
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 新增页面
|
|
|
+ */
|
|
|
+ add() {
|
|
|
+ //打开新增抽屉
|
|
|
+ const drawerRef = this.nzDrawerService.create<FbsWorkshopDispatchListAddComponent>({
|
|
|
+ nzTitle: '新增车间派工单',
|
|
|
+ nzContent: FbsWorkshopDispatchListAddComponent,
|
|
|
+ nzWidth: window.innerWidth,
|
|
|
+ nzBodyStyle: { height: 'calc(100% - 55px)', overflow: 'auto', 'padding-bottom': '53px' },
|
|
|
+ nzContentParams: {},
|
|
|
+ });
|
|
|
+
|
|
|
+ //关闭抽屉的回调
|
|
|
+ drawerRef.afterClose.subscribe(isRefresh => {
|
|
|
+ if (isRefresh) {
|
|
|
+ //刷新list列表
|
|
|
+ // this.getPreList();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ view() {
|
|
|
+ //打开详情抽屉
|
|
|
+ const drawerRef = this.nzDrawerService.create<FbsWorkshopDispatchListViewComponent>({
|
|
|
+ nzTitle: '详情车间派工单',
|
|
|
+ nzContent: FbsWorkshopDispatchListViewComponent,
|
|
|
+ nzWidth: window.innerWidth,
|
|
|
+ nzBodyStyle: { height: 'calc(100% - 55px)', overflow: 'auto', 'padding-bottom': '53px' },
|
|
|
+ nzContentParams: {},
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ update() {
|
|
|
+ //打开修改抽屉
|
|
|
+ const drawerRef = this.nzDrawerService.create<FbsWorkshopDispatchListUpdateComponent>({
|
|
|
+ nzTitle: '修改车间派工单',
|
|
|
+ nzContent: FbsWorkshopDispatchListUpdateComponent,
|
|
|
+ nzWidth: window.innerWidth,
|
|
|
+ nzBodyStyle: { height: 'calc(100% - 55px)', overflow: 'auto', 'padding-bottom': '53px' },
|
|
|
+ nzContentParams: {},
|
|
|
+ });
|
|
|
+
|
|
|
+ //关闭抽屉的回调
|
|
|
+ drawerRef.afterClose.subscribe(isRefresh => {
|
|
|
+ if (isRefresh) {
|
|
|
+ //刷新list列表
|
|
|
+ // this.getPreList();
|
|
|
+ }
|
|
|
+ });
|
|
|
+ }
|
|
|
+
|
|
|
+ delete() {}
|
|
|
+}
|