|
|
@ -73,6 +73,8 @@ import * as ProductputawayJobMainApi from '@/api/wms/productputawayJobMain' |
|
|
|
import * as ProductputawayJobDetailApi from '@/api/wms/productputawayJobDetail' |
|
|
|
import * as defaultButtons from '@/utils/disposition/defaultButtons' |
|
|
|
import { CACHE_KEY, useCache } from '@/hooks/web/useCache' |
|
|
|
import {getAccessToken} from "@/utils/auth"; |
|
|
|
import { getJmreportBaseUrl } from '@/utils/systemParam' |
|
|
|
// 制品上架任务主 |
|
|
|
defineOptions({ name: 'ProductputawayJobMain' }) |
|
|
|
|
|
|
@ -156,6 +158,7 @@ const butttondata = (row,$index) => { |
|
|
|
return [] |
|
|
|
} |
|
|
|
return [ |
|
|
|
defaultButtons.mainListDocumentPrintBtn(null), // 单据打印 |
|
|
|
defaultButtons.mainListJobAccBtn({hide:isShowMainButton(row,['1'])}), // 承接 |
|
|
|
defaultButtons.mainListJobCloBtn({hide:isShowMainButton(row,['1'])}), // 关闭 |
|
|
|
defaultButtons.mainListJobAbaBtn({hide:isShowMainButton(row,['2'])}), // 放弃 |
|
|
@ -244,6 +247,9 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} else if (val == 'mainJobAcc') { // 承接 |
|
|
|
await ProductputawayJobMainApi.acceptProductputawayMain(row.masterId) |
|
|
|
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') |
|
|
|
} |
|
|
|
|
|
|
|
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 handleExport = async () => { |
|
|
|