Browse Source

Merge branch 'master_hella' of http://dev.ccwin-in.com:3000/sfms3.0/sfms3.0-ui into master_hella

master_hella_20240701
wangyufei 5 months ago
parent
commit
ed0bfcb3e8
  1. 91
      src/views/wms/productionManage/productputaway/productputawayJobMain/index.vue

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

@ -119,6 +119,15 @@ const { getList, setSearchParams } = tableMethods
// //
const HeadButttondata = [ const HeadButttondata = [
defaultButtons.defaultExportBtn({hasPermi:'wms:productputaway-job-main:export'}), // defaultButtons.defaultExportBtn({hasPermi:'wms:productputaway-job-main:export'}), //
{
label: '待处理状态全部打印',
name: 'printAllPending',
hide: false,
type: 'primary',
icon: '',
color: '',
hasPermi: ''
},
defaultButtons.defaultFreshBtn(null), // defaultButtons.defaultFreshBtn(null), //
defaultButtons.defaultFilterBtn(null), // defaultButtons.defaultFilterBtn(null), //
defaultButtons.defaultSetBtn(null), // defaultButtons.defaultSetBtn(null), //
@ -137,7 +146,10 @@ const buttonBaseClick = (val, item) => {
getList() getList()
} }
} else if (val == 'filtrate') { // } else if (val == 'filtrate') { //
} else { // } else if(val == 'printAllPending'){
//
handleDocumentPrintAll()
}else { //
console.log('其他按钮', item) console.log('其他按钮', item)
} }
} }
@ -169,75 +181,7 @@ const butttondata = (row,$index) => {
// - // -
const buttonTableClick = async (val, row) => { const buttonTableClick = async (val, row) => {
if (val == 'mainJobExe') { // if (val == 'mainJobExe') { //
let aaa = { // ProductputawayJobMainApi.executeProductputawayMain(aaa)
"id": "1809190000111838147",
"requestNumber": "REC4620231214-0004",
"supplierCode": null,
"fromWarehouseCode": "W1",
"toWarehouseCode": null,
"fromAreaCodes": "",
"toAreaCodes": "",
"fromAreaTypes": "WIP,RAW",
"toAreaTypes": "SEMI,FG",
"completetime": 1702545291000,
"requestTime": 1702524283000,
"requestDueTime": 1689562428000,
"status": "2",
"expiredTime": null,
"updateTime": 1702545291000,
"updater": "1",
"jobStageStatus": null,
"priority": null,
"priorityIncrement": null,
"departmentCode": "103",
"acceptUserId": "1",
"acceptTime": 1702552206000,
"completeUserId": null,
"number": "JOB2220231214-0007",
"businessType": "ProductPutaway",
"remark": "111100",
"createTime": 1702545291000,
"creator": "1",
"autoComplete": "FALSE",
"allowModifyLocation": "FALSE",
"allowModifyQty": "TRUE",
"allowBiggerQty": "TRUE",
"allowSmallerQty": "TRUE",
"allowModifyInventoryStatus": "TRUE",
"allowContinuousScanning": "TRUE",
"allowPartialComplete": "TRUE",
"allowModifyBatch": "FALSE",
"allowModifyPackingNumber": "FALSE",
"inInventoryStatuses": "OK",
"outInventoryStatuses": "OK",
subList: [
{
"id": "1809190001814017359",
"packingNumber": "12",
"containerNumber": "001",
"batch": "21",
"inventoryStatus": "OK",
"poNumber": null,
"poLine": "item01",
"fromLocationCode": "H03",
"toLocationCode": "L-R-001-002-1-02",
"itemCode": "item01",
"itemName": "物料01",
"itemDesc1": "",
"itemDesc2": "",
"projectCode": "xm01",
"qty": 3,
"uom": "EA",
"number": "JOB2220231214-0007",
"remark": "00",
"createTime": 1702545291000,
"creator": "1",
"fromOwnerCode": null,
"toOwnerCode": null
}
]
}
ProductputawayJobMainApi.executeProductputawayMain(aaa)
} else if (val == 'mainJobAba') { // } else if (val == 'mainJobAba') { //
await ProductputawayJobMainApi.abandonProductputawayMain(row.masterId) await ProductputawayJobMainApi.abandonProductputawayMain(row.masterId)
getList() getList()
@ -268,6 +212,13 @@ const handleDocumentPrint = async (row) => {
window.open(src.value+'&id='+row.masterId) window.open(src.value+'&id='+row.masterId)
} }
/**
* 待处理全部打印
*/
const handleDocumentPrintAll = async () => {
window.open(src.value+'&id=printAllPending')
}
/** 导出按钮操作 */ /** 导出按钮操作 */
const exportLoading = ref(false) // const exportLoading = ref(false) //
const handleExport = async () => { const handleExport = async () => {

Loading…
Cancel
Save