Browse Source

高级筛选 器具初始化申请、记录、没传type参数

hella_online_20240829
TengXF 5 months ago
parent
commit
124b38ec0c
  1. 14
      src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue
  2. 16
      src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue

14
src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue

@ -49,7 +49,7 @@
:tableFormRules="ContainerRecordDetailRules"
:isBusiness="true"
/>
<!-- 详情 -->
<Detail
ref="detailRef"
@ -91,7 +91,7 @@ const { tableObject, tableMethods } = useTable({
//
/**
*
*
*/
if ( routeName.value == 'ReturnContainerManageRecord') {
tableObject.params = {
@ -111,11 +111,11 @@ const { tableObject, tableMethods } = useTable({
}
businessType.value = 'InitialContainerManage'
importFileName.value = '器具初始化记录'
}
}
else if ( routeName.value == 'ScrapContainerManageRecord') {
tableObject.params = {
type:'SCRAP'
}
}
businessType.value = 'ScrapContainerManage'
importFileName.value = '器具报废记录'
} else if ( routeName.value == 'DeliverContainerManageRecord') {
@ -237,6 +237,12 @@ const handleExport = async () => {
//
const searchFormClick = (searchData) => {
const cmd = {
'column':'type',
'action':'==',
'value':'INITIAL'
}
searchData.filters.push(cmd)
tableObject.params = {
isSearch: true,
filters: searchData.filters

16
src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue

@ -109,7 +109,7 @@ const { tableObject, tableMethods } = useTable({
})
//
/**
*
*
*/
if ( routeName.value == 'InitialContainerManageRequest') {
tableObject.params = {
@ -121,7 +121,7 @@ const { tableObject, tableMethods } = useTable({
}});
businessType.value = 'InitialContainerManage'
importFileName.value = '器具初始化申请'
}
}
// //
const trueFalse = ref(false)
@ -397,19 +397,19 @@ const submitForm = async (formType,submitData) => {
if(data.masterId){
data.id = data.masterId
}
data.subList = tableData.value //
data.subList = tableData.value //
data.subList.forEach(item => {
if(item.qty == 0){
message.error(`到数量不能为0!`)
flag.value = true
return;
}
}
})
try {
if (formType === 'create') {
data.businessType = businessType.value
console.log(data.businessType,999);
await ContainerMainRequestApi.createContainerMainRequest(data)
message.success(t('common.createSuccess'))
} else {
@ -475,6 +475,12 @@ const importSuccess = () => {
//
const searchFormClick = (searchData) => {
const cmd = {
'column':'type',
'action':'==',
'value':'INITIAL'
}
searchData.filters.push(cmd)
tableObject.params = {
isSearch: true,
filters: searchData.filters

Loading…
Cancel
Save