| | |
| | | dataIndex: 'oper', |
| | | key: 'oper', |
| | | fixed: 'right', |
| | | width: 240, |
| | | width: 300, |
| | | }, |
| | | ]; |
| | | |
| | |
| | | }); |
| | | } |
| | | |
| | | const handlePick = (record) => { |
| | | Modal.confirm({ |
| | | title: formatMessage('page.pick', '拣料'), |
| | | content: formatMessage('page.pick.confirm', '确定拣料该项吗?'), |
| | | maskClosable: true, |
| | | onOk: async () => { |
| | | const hide = message.loading(formatMessage('common.loading', '请求中')); |
| | | try { |
| | | post('/api/task/pick', record).then(resp => { |
| | | let result = resp.data; |
| | | if (result.code === 200) { |
| | | message.success(result.msg); |
| | | } else { |
| | | message.error(result.msg); |
| | | } |
| | | getPage() |
| | | hide() |
| | | }) |
| | | } catch (error) { |
| | | message.error(formatMessage('common.fail', '请求失败')); |
| | | } |
| | | }, |
| | | }); |
| | | } |
| | | |
| | | </script> |
| | | |
| | | <script> |
| | |
| | | <a-input-search v-model:value="searchInput" :placeholder="formatMessage('page.input', '请输入')" |
| | | style="width: 200px;" @search="onSearch" /> |
| | | <div class="table-header-right"> |
| | | <a-button @click="handleEdit(null)" type="primary">{{ formatMessage('page.add', '添加') }}</a-button> |
| | | <!-- <a-button @click="handleEdit(null)" type="primary">{{ formatMessage('page.add', '添加') }}</a-button> --> |
| | | <a-button @click="handleExport">{{ formatMessage('page.export', '导出') }}</a-button> |
| | | </div> |
| | | </div> |
| | |
| | | <div style="display: flex;justify-content: space-evenly;"> |
| | | <a-button type="link" primary @click="showDetl(record)">{{ formatMessage('page.task.orderDetl', '任务明细') |
| | | }}</a-button> |
| | | <a-button type="link" primary @click="handleComplete(record)">{{ formatMessage('page.complete', '完成') }}</a-button> |
| | | <a-button v-if="record.taskType == 103" type="link" primary @click="handlePick(record)">{{ |
| | | formatMessage('page.pick', '拣料') |
| | | }}</a-button> |
| | | <a-button type="link" primary @click="handleComplete(record)">{{ formatMessage('page.complete', '完成') |
| | | }}</a-button> |
| | | <a-button type="link" danger @click="handleCancel(record)">{{ formatMessage('page.cancel', '取消') |
| | | }}</a-button> |
| | | </div> |