Browse Source

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

hella_online_20240913
陈薪名 2 months ago
parent
commit
84fafcc044
  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
  4. 9
      src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

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

@ -74,3 +74,4 @@ export const exportInventorymoveRecordDetail = async (params) => {
export const importTemplate = () => {
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 = () => {
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) => {
if (val.indexOf(row.status) > -1) {
if (val.indexOf(row.receiveStatus) > -1) {
return false
} else {
return true
@ -197,20 +197,36 @@ const buttonTableClick = async (val, row) => {
}
}
//
const handleRefusal = async () => {
const handleRefusal = async (row) => {
try {
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 {
} finally {
loadDone()
}
}
//
const handleRecept = async () => {
const handleRecept = async (row) => {
try {
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 {
} finally {
loadDone()

9
src/views/wms/productionManage/productreceiptAssemble/productreceiptAssembleRecordMain/index.vue

@ -393,6 +393,15 @@ const handleExport = async () => {
//
const searchFormClick = (searchData) => {
const cmd = {
'column':'type',
'action':'==',
'value':'assemble'
}
if (!Array.isArray(searchData.filters)) {
searchData.filters = [];
}
searchData.filters.push(cmd)
tableObject.params = {
isSearch: true,
filters: searchData.filters

Loading…
Cancel
Save