Browse Source

物料隔离记录

hella_online_20240913
yufei_wang 2 months ago
parent
commit
d5afaaf776
  1. 59
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMainOKHOLD/index.vue
  2. 10
      src/views/wms/moveManage/inventorymove/inventorymoveRecordMainOKHOLD/inventorymoveRecordMainOKHOLD.data.ts

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

@ -147,6 +147,14 @@ const buttonBaseClick = (val, item) => {
console.log('其他按钮', item)
}
}
//
const isShowMainButton = (row,val) => {
if (val.indexOf(row.status) > -1) {
return false
} else {
return true
}
}
// -
const butttondata = (row,$index) => {
@ -154,12 +162,61 @@ const butttondata = (row,$index) => {
if(findIndex>-1&&findIndex<$index){
return []
}
return []
return [
{
label: '拒收',
name: 'mainJobRefusal',
hide: isShowMainButton(row, ['0']),
type: 'primary',
icon: '',
color: '',
hasPermi: '',
link: true //
},
{
label: '接收',
name: 'mainJobRecept',
hide: isShowMainButton(row, ['0']),
type: 'primary',
icon: '',
color: '',
hasPermi: '',
link: true //
}
]
}
// -
const buttonTableClick = async (val, row) => {
if(val == 'mainJobRefusal'){
//
handleRefusal(row)
}else if(val == 'mainJobRecept'){
//
handleRecept(row)
}
}
//
const handleRefusal = async () => {
try {
loadStart()
//
} catch {
} finally {
loadDone()
}
}
//
const handleRecept = async () => {
try {
loadStart()
//
} catch {
} finally {
loadDone()
}
}
//
const { wsCache } = useCache()
/** 详情操作 */

10
src/views/wms/moveManage/inventorymove/inventorymoveRecordMainOKHOLD/inventorymoveRecordMainOKHOLD.data.ts

@ -706,6 +706,16 @@ export const InventorymoveRecordDetail = useCrudSchemas(reactive<CrudSchema[]>([
// width: 150
// },
// },
{
label: '操作',
field: 'action',
isDetail: false,
isForm: false,
table: {
width: 120,
fixed: 'right'
},
}
]))
//表单校验

Loading…
Cancel
Save