|
@ -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 |
|
|