zs
2025-05-13 de4a3a2c1b39c128d4ecd23367db5fcbda957bdd
HIAWms/hiawms_web/src/widgets/WmsTask/Controllers/WmsTask.ts
@@ -67,6 +67,11 @@
    title: '',
  })
  const dialogChangeToPlaceConfig = reactive({
    visible: false,
    title: '',
    isAdd: false,
  })
  /**
   * 分页数据
   */
@@ -84,6 +89,14 @@
    sort.value = row.sort
  }
  const openChangToPlace = (row: any) => {
    current.value = row
    dialogChangeToPlaceConfig.visible = true
    dialogChangeToPlaceConfig.title = '修改目标库位'
    dialogChangeToPlaceConfig.isAdd = false
    console.log('row', row)
  }
  const contextMenu = [
    {
      label: '展开详情',
@@ -95,18 +108,16 @@
      divided: true,
      icon: 'o',
    },
    // {
    //   label: '向上添加',
    //   fn: (c: CurrentType, pageNum: number) => {
    //     current.value = null
    //     sort.value = c.index + 1 + (pageNum - 1) * 50
    //     dialogConfig.visible = true
    //     dialogConfig.title = '添加'
    //     dialogConfig.isAdd = false
    //   },
    //   divided: true,
    //   icon: 'up',
    // },
    {
      label: '修改目标库位',
      fn: (c: CurrentType) => {
        current.value = null
        sort.value = c.row.sort
        nextTick(() => openChangToPlace(c.row))
      },
      divided: true,
      icon: 'up',
    },
    {
      label: '强制完成',
      fn: async (c: CurrentType) => {
@@ -278,6 +289,7 @@
    dialogConfig,
    dialogConfigForQuery,
    dialogSettingConfig,
    dialogChangeToPlaceConfig,
    tableRef,
    current,
    search,
@@ -289,6 +301,7 @@
    onError,
    onSuccess,
    openDetail,
    openChangToPlace,
    onSearch,
    onExport,
    onRowClick,