|
@ -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'"/> |
|
|
@success="importSuccess" :updateIsDisable="true" :coverIsDisable="true" :mode="2" :extend="'assembleSparePart'"/> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
|
|
@ -349,7 +349,7 @@ const buttonTableClick = async (val, row) => { |
|
|
} else if (val == 'delete') { // 删除 |
|
|
} else if (val == 'delete') { // 删除 |
|
|
handleDelete(row.masterId) |
|
|
handleDelete(row.masterId) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
/** 添加/修改操作 */ |
|
|
/** 添加/修改操作 */ |
|
@ -486,10 +486,20 @@ const importSuccess = () => { |
|
|
|
|
|
|
|
|
// 筛选提交 |
|
|
// 筛选提交 |
|
|
const searchFormClick = (searchData) => { |
|
|
const searchFormClick = (searchData) => { |
|
|
tableObject.params = { |
|
|
tableObject.params.isSearch = true |
|
|
isSearch: true, |
|
|
if(!searchData.filters){//重置的时候应用 |
|
|
filters: 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() // 刷新当前列表 |
|
|
getList() // 刷新当前列表 |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|