This commit is contained in:
Taric Xin
2021-12-02 17:35:43 +08:00
parent d1467d4f45
commit 436dd750d3
18 changed files with 2900 additions and 10 deletions

View File

@ -0,0 +1,74 @@
import { Component, OnInit, ViewChild } from '@angular/core';
import { STComponent, STColumn } from '@delon/abc/st';
import { NzModalService } from 'ng-zorro-antd/modal';
import { SystemService } from '../../services/system.service';
@Component({
selector: 'app-goods-name-config',
templateUrl: './goods-name-config.component.html',
styleUrls: ['./goods-name-config.component.less']
})
export class GoodsNameConfigComponent implements OnInit {
typeList = [
{ title: '零件配件', sort: 1, id: 1 },
{ title: '衣用物资', sort: 2, id: 2 },
{ title: '空包装', sort: 3, id: 3 },
{ title: '废品废料', sort: 4, id: 4 },
{ title: '家具家居', sort: 8, id: 5 },
{ title: '衣用物资', sort: 6, id: 6 },
{ title: '空包装', sort: 7, id: 7 },
{ title: '衣用物资', sort: 8, id: 8 },
{ title: '空包装', sort: 9, id: 9 },
{ title: '废品废料', sort: 10, id: 10 },
{ title: '废品废料2', sort: 11, id: 11 },
{ title: '废品废料3', sort: 12, id: 12 },
{ title: '零件配件', sort: 1, id: 1 },
{ title: '衣用物资', sort: 2, id: 2 },
{ title: '空包装', sort: 3, id: 3 },
{ title: '废品废料', sort: 4, id: 4 },
{ title: '家具家居', sort: 8, id: 5 },
{ title: '衣用物资', sort: 6, id: 6 },
{ title: '空包装', sort: 7, id: 7 },
{ title: '衣用物资', sort: 8, id: 8 },
{ title: '空包装', sort: 9, id: 9 },
{ title: '废品废料', sort: 10, id: 10 },
{ title: '废品废料2', sort: 11, id: 11 },
{ title: '废品废料3', sort: 12, id: 12 }
];
selectedType = 1;
@ViewChild('st', { static: true })
st!: STComponent;
url = `/rule?_allow_anonymous=true`;
reqParams = {};
columns: STColumn[] = [
{ title: '货物名称', index: 'no' },
{ title: '更新时间', index: 'description' },
{
title: '操作',
buttons: [
{
text: '编辑'
// click: item => this.staffAction(item)
},
{
text: '上移',
iif: item => item.no !== 0
// click: item => this.action(2)
},
{
text: '下移',
iif: item => item.status !== 10
// click: item => this.action(1)
},
{
text: '删除',
// click: item => this.action(3)
}
]
}
];
constructor(public service: SystemService, private nzModalService: NzModalService) {}
ngOnInit(): void {}
}