diff --git a/src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue b/src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue index f5b547605..edfe467ad 100644 --- a/src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue +++ b/src/views/wms/inventoryjobManage/containermanage/containerRecordMain/index.vue @@ -49,7 +49,7 @@ :tableFormRules="ContainerRecordDetailRules" :isBusiness="true" /> - + { // 筛选提交 const searchFormClick = (searchData) => { + const cmd = { + 'column':'type', + 'action':'==', + 'value':'INITIAL' + } + searchData.filters.push(cmd) tableObject.params = { isSearch: true, filters: searchData.filters diff --git a/src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue b/src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue index 38af72a70..a8b9799b5 100644 --- a/src/views/wms/inventoryjobManage/containermanage/initialContainerMainRequest/index.vue +++ b/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