Browse Source

缺陷:HL-5776

hella_online_20240913
zhaoxuebing 2 months ago
parent
commit
c64cdb3b1d
  1. 1
      src/api/wms/inventorymoveRecordDetail/index.ts
  2. 11
      src/api/wms/inventorymoveRecordMain/index.ts
  3. 22
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMainOKHOLD/index.vue

1
src/api/wms/inventorymoveRecordDetail/index.ts

@ -74,3 +74,4 @@ export const exportInventorymoveRecordDetail = async (params) => {
export const importTemplate = () => { export const importTemplate = () => {
return request.download({ url: '/wms/inventorymove-record-detail/get-import-template' }) return request.download({ url: '/wms/inventorymove-record-detail/get-import-template' })
} }

11
src/api/wms/inventorymoveRecordMain/index.ts

@ -148,3 +148,14 @@ export const importTemplate = () => {
export const importTemplateExceptMove = () => { export const importTemplateExceptMove = () => {
return request.download({ url: '/wms/inventorymove-record-main/get-import-template-exceptMove' }) return request.download({ url: '/wms/inventorymove-record-main/get-import-template-exceptMove' })
} }
// 接收隔离收货
export const receive = (id) => {
return request.put({ url: '/wms/inventorymove-record-main/receive?id=' + id })
}
// 拒收隔离收货
export const refuse = (id) => {
return request.put({ url: '/wms/inventorymove-record-main/refuse?id=' + id })
}

22
src/views/wms/moveManage/inventorymove/inventorymoveRecordMainOKHOLD/index.vue

@ -149,7 +149,7 @@ const buttonBaseClick = (val, item) => {
} }
// //
const isShowMainButton = (row,val) => { const isShowMainButton = (row,val) => {
if (val.indexOf(row.status) > -1) { if (val.indexOf(row.receiveStatus) > -1) {
return false return false
} else { } else {
return true return true
@ -197,20 +197,36 @@ const buttonTableClick = async (val, row) => {
} }
} }
// //
const handleRefusal = async () => { const handleRefusal = async (row) => {
try { try {
loadStart() loadStart()
// //
InventorymoveRecordMainApi.refuse(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
})
} catch { } catch {
} finally { } finally {
loadDone() loadDone()
} }
} }
// //
const handleRecept = async () => { const handleRecept = async (row) => {
try { try {
loadStart() loadStart()
// //
InventorymoveRecordMainApi.receive(row.masterId).then(() => {
message.success(t('common.updateSuccess'))
tableObject.loading = false
buttonBaseClick('refresh',null)
}).catch(err => {
tableObject.loading = false
console.log(err)
})
} catch { } catch {
} finally { } finally {
loadDone() loadDone()

Loading…
Cancel
Save