| | |
| | | >更新排产区域</el-button |
| | | > |
| | | </el-col> |
| | | <el-col :span="1.5"> |
| | | <el-button |
| | | type="success" |
| | | plain |
| | | icon="Refresh" |
| | | :disabled="loadingRefresh" |
| | | @click="handleRefreshData" |
| | | v-hasPermi="['system:dict:remove']" |
| | | >刷新缓存BOM、工艺路线、库存数据</el-button |
| | | > |
| | | </el-col> |
| | | <right-toolbar |
| | | v-model:showSearch="showSearch" |
| | | @queryTable="getList" |
| | |
| | | refreshCache, |
| | | refreshApsArea |
| | | } from "@/api/system/dict/type"; |
| | | |
| | | import { refreshBomRouteStorageDataList } from "@/api/basicData/bom/bom.js" |
| | | const { proxy } = getCurrentInstance(); |
| | | const { sys_normal_disable } = proxy.useDict("sys_normal_disable"); |
| | | |
| | | const typeList = ref([]); |
| | | const open = ref(false); |
| | | const loading = ref(true); |
| | | const loadingRefresh = ref(false); |
| | | const showSearch = ref(true); |
| | | const ids = ref([]); |
| | | const single = ref(true); |
| | |
| | | }); |
| | | handleQuery(); |
| | | } |
| | | function handleRefreshData() { |
| | | loadingRefresh.value = true; |
| | | refreshBomRouteStorageDataList().then(res=>{ |
| | | if(res.code==200){ |
| | | proxy.$modal.msgSuccess("更新成功"); |
| | | loadingRefresh.value = false; |
| | | }else{ |
| | | loadingRefresh.value = false; |
| | | } |
| | | }).catch(()=>{ |
| | | loadingRefresh.value = false; |
| | | }) |
| | | } |
| | | getList(); |
| | | </script> |