|
|
@ -90,7 +90,8 @@ import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import * as ProductionlineitemApi from '@/api/wms/productionlineitem' |
|
|
|
import { formatDate } from '@/utils/formatTime' |
|
|
|
import { usePageLoading } from '@/hooks/web/usePageLoading' |
|
|
|
import { getBaseUrl } from '@/utils/systemParam' |
|
|
|
import {getBaseUrl, getJmreportBaseUrl} from '@/utils/systemParam' |
|
|
|
import {getAccessToken} from "@/utils/auth"; |
|
|
|
|
|
|
|
const { loadStart, loadDone } = usePageLoading() |
|
|
|
// 备料计划 |
|
|
@ -317,6 +318,17 @@ const butttondata = (row,$index) => { |
|
|
|
link: true, // 文本展现按钮 |
|
|
|
color: '' |
|
|
|
}, |
|
|
|
{ |
|
|
|
label: '打印补给品备料单', |
|
|
|
name: 'printSupplyList', |
|
|
|
hide: isShowMainButton(row,['6']), |
|
|
|
type: 'primary', |
|
|
|
icon: 'Select', |
|
|
|
hasPermi:'wms:preparetoissue-main:publish', |
|
|
|
link: true, // 文本展现按钮 |
|
|
|
color: '' |
|
|
|
}, |
|
|
|
|
|
|
|
] |
|
|
|
} |
|
|
|
|
|
|
@ -428,9 +440,18 @@ const buttonTableClick = async (val, row) => { |
|
|
|
openForm('update', row) |
|
|
|
} else if (val == 'delete') { // 删除 |
|
|
|
handleDelete(row.masterId) |
|
|
|
} else if (val == 'printSupplyList'){ |
|
|
|
// 打印补给品备料单 |
|
|
|
handlePrintSupplyList(row.masterId) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
const BASE_URL = getJmreportBaseUrl() |
|
|
|
const documentSrc = ref(BASE_URL + '/jmreport/view/1024904872747347968?token=' + getAccessToken()) |
|
|
|
const handlePrintSupplyList = async (id) => { |
|
|
|
window.open(documentSrc.value + '&id=' + id) |
|
|
|
} |
|
|
|
|
|
|
|
/** 添加/修改操作 */ |
|
|
|
const formRef = ref() |
|
|
|
const openForm =async (type: string, row?: number) => { |
|
|
|