Browse Source

YT-1928:补给品发料

intex_online20250220
songguoqiang 2 weeks ago
parent
commit
526daf4be7
  1. 38
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

38
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue

@ -118,6 +118,7 @@ import { usePageLoading } from '@/hooks/web/usePageLoading'
import { getBaseUrl, getJmreportBaseUrl } from '@/utils/systemParam'
import { getAccessToken } from '@/utils/auth'
import * as PackageApi from '@/api/wms/package'
import { log } from 'console'
const { loadStart, loadDone } = usePageLoading()
//
@ -272,25 +273,23 @@ const { tableObject, tableMethods } = useTable({
const { getList, setSearchParams } = tableMethods
//
const HeadButttondata = [
//defaultButtons.defaultAddBtn({ hasPermi: 'wms:preparetoissue-main:create' }), //
const HeadButttondata = computed(()=>{
const button = [
//defaultButtons.defaultAddBtn({ hasPermi: 'wms:preparetoissue-main:create' }), //
defaultButtons.defaultImportBtn({ hasPermi: 'wms:preparetoissue-main:import' }), //
defaultButtons.defaultExportBtn({ hasPermi: 'wms:preparetoissue-main:export' }), //
defaultButtons.mainLisSelectiontTrialResultBtn(null), //
defaultButtons.mainLisSelectiontPointBtn(null), //
//
defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null) //
// {
// label: '',
// name: 'zdy',
// hide: false,
// type: 'primary',
// icon: 'Select',
// color: ''
// },
]
]
if(selectionRows.value.length > 0 && selectionRows.value[0]?.selectionRows.length > 0 ){
button.push(defaultButtons.mainLisSelectiontPointBtn(null),defaultButtons.mainLisSelectiontTrialResultBtn(null))
}else{
button.push(defaultButtons.mainLisSelectiontPointBtn({type: 'info',}),defaultButtons.mainLisSelectiontTrialResultBtn({type: 'info',}))
}
return button
})
//
const buttonBaseClick = (val, item) => {
if (val == 'add') {
@ -315,10 +314,13 @@ const buttonBaseClick = (val, item) => {
} else if (val == 'filtrate') {
//
} else if (val=='selection_point'){//
handleSelectionPoint()
if(selectionRows.value.length > 0 && selectionRows.value[0]?.selectionRows.length > 0 ){
handleSelectionPoint()
}
}else if (val=='trial_result'){//
debugger
handleSelectionTrialResult()
if(selectionRows.value.length > 0 && selectionRows.value[0]?.selectionRows.length > 0 ){
handleSelectionTrialResult()
}
}else {
//
console.log('其他按钮', item)
@ -797,8 +799,8 @@ const handleSelectionTrialResult = async ()=>{
const selectionRows = ref<any>([])
const tableRef = ref()
const getSelectionRows = (currentPage,currentPageSelectionRows) => {
console.log("getSelectionRows",currentPage,currentPageSelectionRows)
const currentRows = selectionRows.value.find(item=>item.currentPage==currentPage)
console.log("getSelectionRows",currentPage,currentPageSelectionRows,currentRows,selectionRows.value)
if(currentRows){
currentRows.selectionRows = currentPageSelectionRows
}else{

Loading…
Cancel
Save