copy from zy-asrs-admin/src/views/asrs/matFieldValue/index.vue
copy to zy-asrs-admin/src/views/asrs/manLocDetl/index.vue
| File was copied from zy-asrs-admin/src/views/asrs/matFieldValue/index.vue |
| | |
| | | |
| | | const router = useRouter(); |
| | | |
| | | const TABLE_KEY = 'table-matFieldValue'; |
| | | const TABLE_KEY = 'table-manLocDetl'; |
| | | let currentPage = 1; |
| | | let pageSize = 10; |
| | | const searchInput = ref("") |
| | |
| | | |
| | | const columns = [ |
| | | { |
| | | title: formatMessage('db.man_mat_field_value.name', '字段名'), |
| | | dataIndex: 'name', |
| | | title: formatMessage('db.view_man_loc_detl.id', 'ID'), |
| | | dataIndex: 'id', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.man_mat_field_value.field_id', '字段'), |
| | | dataIndex: 'fieldId$', |
| | | title: formatMessage('db.view_man_loc_detl.loc_id', '库位'), |
| | | dataIndex: 'locId$', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.man_mat_field_value.mat_id', '物料'), |
| | | title: formatMessage('db.view_man_loc_detl.loc_no', '库位号'), |
| | | dataIndex: 'locNo', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.view_man_loc_detl.mat_id', '物料'), |
| | | dataIndex: 'matId$', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.man_mat_field_value.value', '参数值'), |
| | | dataIndex: 'value', |
| | | title: formatMessage('db.view_man_loc_detl.matnr', '物料号'), |
| | | dataIndex: 'matnr', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.man_mat_field_value.status', '状态'), |
| | | title: formatMessage('db.view_man_loc_detl.order_no', '订单号'), |
| | | dataIndex: 'orderNo', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.view_man_loc_detl.batch', '批号'), |
| | | dataIndex: 'batch', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.view_man_loc_detl.anfme', '数量'), |
| | | dataIndex: 'anfme', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.view_man_loc_detl.status', '状态'), |
| | | dataIndex: 'status$', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.man_mat_field_value.create_time', '添加时间'), |
| | | title: formatMessage('db.view_man_loc_detl.create_time', '添加时间'), |
| | | dataIndex: 'createTime$', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.man_mat_field_value.create_by', '添加人员'), |
| | | title: formatMessage('db.view_man_loc_detl.create_by', '添加人员'), |
| | | dataIndex: 'createBy$', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.man_mat_field_value.update_time', '修改时间'), |
| | | title: formatMessage('db.view_man_loc_detl.update_time', '修改时间'), |
| | | dataIndex: 'updateTime$', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.man_mat_field_value.update_by', '修改人员'), |
| | | title: formatMessage('db.view_man_loc_detl.update_by', '修改人员'), |
| | | dataIndex: 'updateBy$', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.man_mat_field_value.memo', '备注'), |
| | | title: formatMessage('db.view_man_loc_detl.memo', '备注'), |
| | | dataIndex: 'memo', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.view_man_loc_detl.detl_id', '库存明细'), |
| | | dataIndex: 'detlId$', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.view_man_loc_detl.special', ''), |
| | | dataIndex: 'special', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.view_man_loc_detl.special2', ''), |
| | | dataIndex: 'special2', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.view_man_loc_detl.tttt', ''), |
| | | dataIndex: 'tttt', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | |
| | | }; |
| | | |
| | | function getPage() { |
| | | post('/api/matFieldValue/page', { |
| | | post('/api/manLocDetl/page', { |
| | | current: currentPage, |
| | | pageSize: pageSize, |
| | | condition: searchInput.value |
| | |
| | | onOk: async () => { |
| | | const hide = message.loading(formatMessage('common.loading', '请求中')); |
| | | try { |
| | | post('/api/matFieldValue/remove/' + rows.map((row) => row.id).join(','), {}).then(resp => { |
| | | post('/api/manLocDetl/remove/' + rows.map((row) => row.id).join(','), {}).then(resp => { |
| | | let result = resp.data; |
| | | if (result.code === 200) { |
| | | message.success(result.msg); |
| | |
| | | } |
| | | |
| | | const handleExport = async (intl) => { |
| | | postBlob('/api/matFieldValue/export', {}).then(result => { |
| | | postBlob('/api/manLocDetl/export', {}).then(result => { |
| | | const blob = new Blob([result.data], { type: 'application/vnd.ms-excel' }); |
| | | window.location.href = window.URL.createObjectURL(blob); |
| | | return true; |
| | |
| | | |
| | | <script> |
| | | export default { |
| | | name: '商品属性扩展值' |
| | | name: '库存明细视图' |
| | | } |
| | | </script> |
| | | |