| | |
| | | import { h } from 'vue' |
| | | import { ElButton, ElTag } from 'element-plus' |
| | | import { $t } from '@/locales' |
| | | import ArtButtonMore from '@/components/core/forms/art-button-more/index.vue' |
| | | import ArtButtonTable from '@/components/core/forms/art-button-table/index.vue' |
| | | import { getAsnOrderActionList } from './asnOrderPage.helpers' |
| | |
| | | }, |
| | | { |
| | | type: 'globalIndex', |
| | | label: '序号', |
| | | label: $t('table.index'), |
| | | width: 72, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | prop: 'code', |
| | | label: 'ASN单号', |
| | | label: $t('pages.orders.asnOrder.search.code'), |
| | | minWidth: 170, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'poCode', |
| | | label: 'PO单号', |
| | | label: $t('pages.orders.asnOrder.search.poCode'), |
| | | minWidth: 170, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'wkTypeLabel', |
| | | label: '业务类型', |
| | | label: $t('pages.orders.asnOrder.search.wkType'), |
| | | minWidth: 130, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'anfme', |
| | | label: '应收数量', |
| | | label: $t('pages.orders.asnOrder.detail.anfme'), |
| | | width: 110, |
| | | align: 'right' |
| | | }, |
| | | { |
| | | prop: 'qty', |
| | | label: '已收数量', |
| | | label: $t('pages.orders.asnOrder.detail.qty'), |
| | | width: 110, |
| | | align: 'right' |
| | | }, |
| | | { |
| | | prop: 'supplierName', |
| | | label: '供应商', |
| | | label: $t('pages.orders.asnOrder.search.supplierName'), |
| | | minWidth: 180, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'purchaseUserName', |
| | | label: '采购员', |
| | | label: $t('pages.orders.asnOrder.search.purchaseUserName'), |
| | | minWidth: 120, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'exceStatusText', |
| | | label: '单据状态', |
| | | label: $t('pages.orders.asnOrder.search.exceStatus'), |
| | | width: 120, |
| | | formatter: (row) => |
| | | h( |
| | |
| | | }, |
| | | { |
| | | prop: 'updateTimeText', |
| | | label: '更新时间', |
| | | label: $t('pages.orders.asnOrder.detail.updateTime'), |
| | | minWidth: 170, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'operation', |
| | | label: '操作', |
| | | label: $t('table.operation'), |
| | | width: 120, |
| | | align: 'center', |
| | | fixed: 'right', |
| | |
| | | return [ |
| | | { |
| | | type: 'globalIndex', |
| | | label: '序号', |
| | | label: $t('table.index'), |
| | | width: 72, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | prop: 'matnrCode', |
| | | label: '物料编码', |
| | | label: $t('table.materialCode'), |
| | | minWidth: 150, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'maktx', |
| | | label: '物料名称', |
| | | label: $t('table.materialName'), |
| | | minWidth: 220, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'platItemId', |
| | | label: 'PO行号', |
| | | label: $t('pages.orders.asnOrder.table.poItemId'), |
| | | width: 110 |
| | | }, |
| | | { |
| | | prop: 'splrBatch', |
| | | label: '供应商批次', |
| | | label: $t('table.supplierBatch'), |
| | | minWidth: 140, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'splrName', |
| | | label: '供应商', |
| | | label: $t('table.supplier'), |
| | | minWidth: 180, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'stockUnit', |
| | | label: '单位', |
| | | label: $t('table.unit'), |
| | | width: 100 |
| | | }, |
| | | { |
| | | prop: 'anfme', |
| | | label: '应收数量', |
| | | label: $t('pages.orders.asnOrder.table.expectedQty'), |
| | | width: 110, |
| | | align: 'right' |
| | | }, |
| | | { |
| | | prop: 'qty', |
| | | label: '已收数量', |
| | | label: $t('pages.orders.asnOrder.table.receivedQty'), |
| | | width: 110, |
| | | align: 'right' |
| | | }, |
| | | { |
| | | prop: 'memo', |
| | | label: '备注', |
| | | label: $t('table.remark'), |
| | | minWidth: 180, |
| | | showOverflowTooltip: true |
| | | } |
| | |
| | | return [ |
| | | { |
| | | type: 'globalIndex', |
| | | label: '序号', |
| | | label: $t('table.index'), |
| | | width: 72, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | prop: 'code', |
| | | label: 'PO单号', |
| | | label: $t('pages.orders.asnOrder.search.poCode'), |
| | | minWidth: 170, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'wkTypeLabel', |
| | | label: '业务类型', |
| | | label: $t('pages.orders.asnOrder.search.wkType'), |
| | | minWidth: 130, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'source', |
| | | label: '来源', |
| | | label: $t('table.source'), |
| | | minWidth: 140, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'supplierName', |
| | | label: '供应商', |
| | | label: $t('pages.orders.asnOrder.search.supplierName'), |
| | | minWidth: 180, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'purchaseUserName', |
| | | label: '采购员', |
| | | label: $t('pages.orders.asnOrder.search.purchaseUserName'), |
| | | minWidth: 120, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'remainingQty', |
| | | label: '可建单数量', |
| | | label: $t('pages.orders.asnOrder.table.remainingQty'), |
| | | width: 120, |
| | | align: 'right' |
| | | }, |
| | | { |
| | | prop: 'exceStatusText', |
| | | label: 'PO状态', |
| | | label: $t('pages.orders.asnOrder.table.poStatus'), |
| | | minWidth: 120, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'operation', |
| | | label: '操作', |
| | | label: $t('table.operation'), |
| | | width: 120, |
| | | align: 'center', |
| | | fixed: 'right', |
| | |
| | | return [ |
| | | { |
| | | type: 'globalIndex', |
| | | label: '序号', |
| | | label: $t('table.index'), |
| | | width: 72, |
| | | align: 'center' |
| | | }, |
| | | { |
| | | prop: 'platItemId', |
| | | label: 'PO行号', |
| | | label: $t('pages.orders.asnOrder.table.poItemId'), |
| | | width: 110 |
| | | }, |
| | | { |
| | | prop: 'matnrCode', |
| | | label: '物料编码', |
| | | label: $t('table.materialCode'), |
| | | minWidth: 150, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'maktx', |
| | | label: '物料名称', |
| | | label: $t('table.materialName'), |
| | | minWidth: 220, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'splrName', |
| | | label: '供应商', |
| | | label: $t('table.supplier'), |
| | | minWidth: 180, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'splrBatch', |
| | | label: '供应商批次', |
| | | label: $t('table.supplierBatch'), |
| | | minWidth: 140, |
| | | showOverflowTooltip: true |
| | | }, |
| | | { |
| | | prop: 'unit', |
| | | label: '单位', |
| | | label: $t('table.unit'), |
| | | width: 100 |
| | | }, |
| | | { |
| | | prop: 'anfme', |
| | | label: '采购数量', |
| | | label: $t('pages.orders.asnOrder.table.purchaseQty'), |
| | | width: 110, |
| | | align: 'right' |
| | | }, |
| | | { |
| | | prop: 'qty', |
| | | label: '已生成ASN数量', |
| | | label: $t('pages.orders.asnOrder.table.generatedQty'), |
| | | width: 130, |
| | | align: 'right' |
| | | }, |
| | | { |
| | | prop: 'nromQty', |
| | | label: '收货数量', |
| | | label: $t('pages.orders.asnOrder.table.receivedQtyTotal'), |
| | | width: 110, |
| | | align: 'right' |
| | | }, |
| | | { |
| | | prop: 'selectAction', |
| | | label: '操作提示', |
| | | label: $t('table.operation'), |
| | | minWidth: 120, |
| | | formatter: () => |
| | | h( |
| | |
| | | type: 'primary', |
| | | class: '!px-0' |
| | | }, |
| | | () => '随 PO 全量建单' |
| | | () => $t('pages.orders.asnOrder.buttons.createByPo') |
| | | ) |
| | | } |
| | | ] |