Browse Source

YT-1458打印补给品备料单

intex_20241211
zhaoyiran 2 months ago
parent
commit
996f10243b
  1. 23
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/index.vue
  2. 2
      src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/preparetoissueMain.data.ts

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

@ -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) => {

2
src/views/wms/issueManage/preparetoissueplan/preparetoissueMain/preparetoissueMain.data.ts

@ -483,7 +483,7 @@ export const PreparetoissueMain = useCrudSchemas(reactive<CrudSchema[]>([
isDetail: false,
isForm: false,
table: {
width: 220,
width: 320,
fixed: 'right'
},
}

Loading…
Cancel
Save