Browse Source

制品上架打印

master_hella_20240701
zhaoxuebing 5 months ago
parent
commit
d9d5208eff
  1. 12
      src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue
  2. 2
      src/views/wms/productionManage/productputaway/productputawayJobMain/productputawayJobMain.data.ts

12
src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue

@ -73,6 +73,8 @@ import * as ProductputawayJobMainApi from '@/api/wms/productputawayJobMain'
import * as ProductputawayJobDetailApi from '@/api/wms/productputawayJobDetail' import * as ProductputawayJobDetailApi from '@/api/wms/productputawayJobDetail'
import * as defaultButtons from '@/utils/disposition/defaultButtons' import * as defaultButtons from '@/utils/disposition/defaultButtons'
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' import { CACHE_KEY, useCache } from '@/hooks/web/useCache'
import {getAccessToken} from "@/utils/auth";
import { getJmreportBaseUrl } from '@/utils/systemParam'
// //
defineOptions({ name: 'ProductputawayJobMain' }) defineOptions({ name: 'ProductputawayJobMain' })
@ -156,6 +158,7 @@ const butttondata = (row,$index) => {
return [] return []
} }
return [ return [
defaultButtons.mainListDocumentPrintBtn(null), //
defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), //
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), //
@ -244,6 +247,9 @@ const buttonTableClick = async (val, row) => {
} else if (val == 'mainJobAcc') { // } else if (val == 'mainJobAcc') { //
await ProductputawayJobMainApi.acceptProductputawayMain(row.masterId) await ProductputawayJobMainApi.acceptProductputawayMain(row.masterId)
getList() getList()
} else if (val == 'documentPrint') {
//
handleDocumentPrint(row)
} }
} }
// //
@ -256,6 +262,12 @@ const openDetail = (row: any, titleName: any, titleValue: any) => {
detailRef.value.openDetail(row, titleName, titleValue,'jobProductputawayMain') detailRef.value.openDetail(row, titleName, titleValue,'jobProductputawayMain')
} }
const BASE_URL = getJmreportBaseUrl()
const src = ref(BASE_URL + '/jmreport/view/965858364788637696?token=' + getAccessToken())
const handleDocumentPrint = async (row) => {
window.open(src.value+'&id='+row.masterId)
}
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) // const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {

2
src/views/wms/productionManage/productputaway/productputawayJobMain/productputawayJobMain.data.ts

@ -575,7 +575,7 @@ export const ProductputawayJobMain = useCrudSchemas(reactive<CrudSchema[]>([
isDetail: false, isDetail: false,
isForm: false, isForm: false,
table: { table: {
width: 150, width: 300,
fixed: 'right' fixed: 'right'
}, },
} }

Loading…
Cancel
Save