干燥机配套车间生产管理系统/云平台服务端
baoshiwei
2023-08-01 3efe2606474fba1905fa4edab82b713b9cfb5ef3
src/views/dry/DryOrderList.vue
@@ -53,6 +53,8 @@
   import { BasicTable, TableAction } from '/@/components/Table'
   import { useListPage } from '/@/hooks/system/useListPage'
   import { downloadFile } from '/@/utils/common/renderUtils'
   import { router } from '/@/router'
   const checkedKeys = ref<Array<string | number>>([])
   //注册model
   const [registerModal, { openModal }] = useModal()
@@ -141,8 +143,8 @@
   function getTableAction(record) {
      return [
         {
            label: '编辑',
            onClick: handleEdit.bind(null, record),
            label: '操作记录',
            onClick: openReport.bind(null, record),
         },
      ]
   }
@@ -151,6 +153,10 @@
    */
   function getDropDownAction(record) {
      return [
         {
            label: '编辑',
            onClick: handleEdit.bind(null, record),
         },
         {
            label: '详情',
            onClick: handleDetail.bind(null, record),
@@ -164,6 +170,17 @@
         },
      ]
   }
   /**打开报表 */
   function openReport(record: Recordable) {
      console.log(`output->record`, record)
      router.push({
         path: '/dry/order/report',
         query: {
            batch: record.code,
         },
      })
   }
</script>
<style scoped></style>