| File was renamed from zy-asrs-admin/src/views/asrs/matFieldValue/index.vue |
| | |
| | | |
| | | const router = useRouter(); |
| | | |
| | | const TABLE_KEY = 'table-matFieldValue'; |
| | | const TABLE_KEY = 'table-locDetlField'; |
| | | let currentPage = 1; |
| | | let pageSize = 10; |
| | | const searchInput = ref("") |
| | |
| | | |
| | | const columns = [ |
| | | { |
| | | title: formatMessage('db.man_mat_field_value.name', '字段名'), |
| | | title: formatMessage('db.man_loc_detl_field.name', '字段名'), |
| | | dataIndex: 'name', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.man_mat_field_value.field_id', '字段'), |
| | | title: formatMessage('db.man_loc_detl_field.field_id', '字段'), |
| | | dataIndex: 'fieldId$', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.man_mat_field_value.mat_id', '物料'), |
| | | dataIndex: 'matId$', |
| | | title: formatMessage('db.man_loc_detl_field.detl_id', '库存明细'), |
| | | dataIndex: 'detlId$', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.man_mat_field_value.value', '参数值'), |
| | | title: formatMessage('db.man_loc_detl_field.value', '参数值'), |
| | | dataIndex: 'value', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.man_mat_field_value.status', '状态'), |
| | | title: formatMessage('db.man_loc_detl_field.status', '状态'), |
| | | dataIndex: 'status$', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.man_mat_field_value.create_time', '添加时间'), |
| | | title: formatMessage('db.man_loc_detl_field.create_time', '添加时间'), |
| | | dataIndex: 'createTime$', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.man_mat_field_value.create_by', '添加人员'), |
| | | title: formatMessage('db.man_loc_detl_field.create_by', '添加人员'), |
| | | dataIndex: 'createBy$', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.man_mat_field_value.update_time', '修改时间'), |
| | | title: formatMessage('db.man_loc_detl_field.update_time', '修改时间'), |
| | | dataIndex: 'updateTime$', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.man_mat_field_value.update_by', '修改人员'), |
| | | title: formatMessage('db.man_loc_detl_field.update_by', '修改人员'), |
| | | dataIndex: 'updateBy$', |
| | | width: 140, |
| | | ellipsis: true, |
| | | }, |
| | | { |
| | | title: formatMessage('db.man_mat_field_value.memo', '备注'), |
| | | title: formatMessage('db.man_loc_detl_field.memo', '备注'), |
| | | dataIndex: 'memo', |
| | | width: 140, |
| | | ellipsis: true, |
| | |
| | | }; |
| | | |
| | | function getPage() { |
| | | post('/api/matFieldValue/page', { |
| | | post('/api/locDetlField/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/locDetlField/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/locDetlField/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> |
| | | |