|
|
@ -74,7 +74,7 @@ |
|
|
|
/> |
|
|
|
|
|
|
|
<!-- 导入 --> |
|
|
|
<ImportForm ref="importFormRef" url="/wms/production-main/import" :importTemplateData="importTemplateData" |
|
|
|
<ImportForm ref="importFormRef" url="/wms/production-main/import" :importTemplateData="importTemplateData" |
|
|
|
@success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" :extend="'assembleSparePart'"/> |
|
|
|
</template> |
|
|
|
|
|
|
@ -349,7 +349,7 @@ const buttonTableClick = async (val, row) => { |
|
|
|
} else if (val == 'delete') { // 删除 |
|
|
|
handleDelete(row.masterId) |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
/** 添加/修改操作 */ |
|
|
@ -486,10 +486,20 @@ const importSuccess = () => { |
|
|
|
|
|
|
|
// 筛选提交 |
|
|
|
const searchFormClick = (searchData) => { |
|
|
|
tableObject.params = { |
|
|
|
isSearch: true, |
|
|
|
filters: searchData.filters |
|
|
|
tableObject.params.isSearch = true |
|
|
|
if(!searchData.filters){//重置的时候应用 |
|
|
|
searchData.filters = [] |
|
|
|
} |
|
|
|
let filters = [...searchData.filters] |
|
|
|
console.log('searchData',routeName.value); |
|
|
|
if(!filters.find(item=>item.column=='plan_type')){ |
|
|
|
filters = [...filters,{ |
|
|
|
action:'==', |
|
|
|
column:'plan_type', |
|
|
|
value:'assembleSparePart', |
|
|
|
}] |
|
|
|
} |
|
|
|
tableObject.params.filters = filters |
|
|
|
getList() // 刷新当前列表 |
|
|
|
} |
|
|
|
|
|
|
|