update
This commit is contained in:
@@ -22,35 +22,39 @@ export default function () {
|
||||
|
||||
const operations = {
|
||||
'ongoing': [
|
||||
{ name: 'view-detail', label: '查看详情' },
|
||||
{ name: 'end-order', label: '结束订单' },
|
||||
{ name: 'confirm-order', label: '确认订单' },
|
||||
{ name: 'move-to-top', label: 'to top', icon: 'top' },
|
||||
{ name: 'move-up', label: 'up', icon: 'top' },
|
||||
{ name: 'move-down', label: 'down', icon: 'top' },
|
||||
{ name: 'move-to-bottom', label: 'to bottom', icon: 'top' },
|
||||
{ name: 'destroy-order', label: '废除订单' },
|
||||
// { name: 'view-detail', label: '查看详情' },
|
||||
{ name: 'confirm-order', label: '确认', icon: 'success', showText: true },
|
||||
{ name: 'end-order', label: '结束', icon: 'error', showText: true },
|
||||
{ name: 'move-up', label: '上移', icon: 'caret-top', showText: true },
|
||||
{ name: 'move-down', label: '下移', icon: 'caret-bottom', showText: true },
|
||||
{ name: 'move-to-top', label: '至顶', icon: 'upload2', showText: true },
|
||||
{ name: 'move-to-bottom', label: '至底', icon: 'download', showText: true },
|
||||
{ name: 'destroy-order', label: '废除', icon: 'delete-solid', showText: true },
|
||||
],
|
||||
'pending': [
|
||||
{ name: 'confirm-order', label: '确认订单' },
|
||||
{ name: 'edit' },
|
||||
{ name: 'move-to-top', label: 'to top' },
|
||||
{ name: 'move-up', label: 'up' },
|
||||
{ name: 'move-down', label: 'down' },
|
||||
{ name: 'move-to-bottom', label: 'to bottom' },
|
||||
{ name: 'move-up', label: '上移', icon: 'caret-top' },
|
||||
{ name: 'move-down', label: '下移', icon: 'caret-bottom' },
|
||||
{ name: 'move-to-top', label: '移至顶部', icon: 'upload2' },
|
||||
{ name: 'move-to-bottom', label: '移至底部', icon: 'download' },
|
||||
// { name: 'move-to-top', label: 'to top' },
|
||||
// { name: 'move-up', label: 'up' },
|
||||
// { name: 'move-down', label: 'down' },
|
||||
// { name: 'move-to-bottom', label: 'to bottom' },
|
||||
{ name: 'delete' },
|
||||
|
||||
],
|
||||
'finished': [
|
||||
{ name: 'view-detail', label: '查看详情' }
|
||||
// { name: 'view-detail', label: '查看详情' }
|
||||
]
|
||||
}
|
||||
|
||||
const genTableProps = (type /** ongoing, pending, finished */) =>
|
||||
[
|
||||
{ width: 80, type: 'index', label: '序号' },
|
||||
{ width: 80, type: 'index', label: '序号', fixed: true },
|
||||
{ width: 120, prop: "code", label: "订单号", fixed: 'left' },
|
||||
{ width: 120, prop: "createTime", label: "添加时间", filter: timeFilter },
|
||||
{ width: 200, prop: "code", label: "订单号" },
|
||||
{ width: 120, prop: "statusDictValue", label: "订单状态", filter: dictFilter('order_status') }, // 不可编辑
|
||||
{ width: 200, prop: "cate", label: "子订单号" },
|
||||
{ width: 200, prop: "productCode", label: "物料编号" }, // select, filterable
|
||||
@@ -71,18 +75,19 @@ export default function () {
|
||||
{ width: 200, prop: "saleNo", label: "销售订单号" },
|
||||
{ width: 200, prop: "saleOrderItem", label: "销售订单item号" },
|
||||
{ width: 200, prop: "packTechCode", label: "包装工艺代码" }, // select, filterable
|
||||
{ width: 80, prop: "specifications", label: "生产订单类型" },
|
||||
{ width: 120, prop: "specifications", label: "生产订单类型" },
|
||||
{ width: 120, prop: "deliveryTime", label: "发货时间" },
|
||||
{ width: 120, prop: "customerCode", label: "客户" },
|
||||
// { prop: "description", label: "详情", subcomponent: TableTextComponent },
|
||||
{ width: 120, prop: "pcsKilnCar", label: "托盘码放砖数", },
|
||||
{ width: 200, prop: "remark", label: "备注" },
|
||||
{ prop: "description", label: "详情", subcomponent: TableTextComponent },
|
||||
{
|
||||
prop: "operations",
|
||||
name: "操作",
|
||||
fixed: "right",
|
||||
subcomponent: TableOperaionComponent,
|
||||
options: operations[type]
|
||||
options: operations[type],
|
||||
width: operations[type].length * 64
|
||||
},
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user