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

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

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

Loading…
Cancel
Save