|
|
|
@ -49,6 +49,7 @@ |
|
|
|
</el-form-item> |
|
|
|
<el-form-item label=" "> |
|
|
|
<el-button plain type="primary" :loading="searchLoading" @click="getDataList">查询</el-button> |
|
|
|
<el-button type="warning" :loading="updateAbnormalDataLoading" @click="handleUpdateAbnormalData">异常数据更新</el-button> |
|
|
|
<el-button type="primary" :loading="saveDataLoading" @click="changeModel">变更申请</el-button> |
|
|
|
<download-excel |
|
|
|
:fields="fields()" |
|
|
|
@ -1021,6 +1022,7 @@ |
|
|
|
getBuBySite, // 根据site查bu |
|
|
|
choosePartNoList, // 根据视图查物料计划 |
|
|
|
deleteTempChangeInfo, // 删除临时变更数据 |
|
|
|
updateShowInQueryFlag, // 更新异常数据 |
|
|
|
} from "@/api/changeManagement/changeManagement.js" |
|
|
|
import {getChooselistData, verifyData} from "@/api/chooselist/chooselist.js" |
|
|
|
import { searchDelegateAccessByUser} from "@/api/proofing/proofingInformation.js" |
|
|
|
@ -2198,6 +2200,7 @@ |
|
|
|
partModelFlag: false, |
|
|
|
saveDataLoading: false, |
|
|
|
searchLoading: false, |
|
|
|
updateAbnormalDataLoading: false, |
|
|
|
filterVisible: false, |
|
|
|
isFilterSearch: false, |
|
|
|
filterSearchData: {}, |
|
|
|
@ -2399,6 +2402,34 @@ |
|
|
|
this.isFilterSearch = false |
|
|
|
}, |
|
|
|
|
|
|
|
// 异常数据更新 |
|
|
|
handleUpdateAbnormalData() { |
|
|
|
this.$confirm('此操作将更新异常数据, 是否继续?', '提示', { |
|
|
|
confirmButtonText: '确定', |
|
|
|
cancelButtonText: '取消', |
|
|
|
type: 'warning' |
|
|
|
}).then(() => { |
|
|
|
this.updateAbnormalDataLoading = true |
|
|
|
const params = { |
|
|
|
site: this.$store.state.user.site |
|
|
|
} |
|
|
|
updateShowInQueryFlag(params).then(({data}) => { |
|
|
|
this.updateAbnormalDataLoading = false |
|
|
|
if (data && data.code === 0) { |
|
|
|
this.$message.success('异常数据更新成功') |
|
|
|
this.getDataList() |
|
|
|
} else { |
|
|
|
this.$message.error(data.msg || '更新失败') |
|
|
|
} |
|
|
|
}).catch((error) => { |
|
|
|
this.updateAbnormalDataLoading = false |
|
|
|
this.$message.error(error || '更新失败') |
|
|
|
}) |
|
|
|
}).catch(() => { |
|
|
|
this.$message.info('已取消操作') |
|
|
|
}) |
|
|
|
}, |
|
|
|
|
|
|
|
// 复选物料信息 |
|
|
|
selectionData (val) { |
|
|
|
this.dataSelections = val |
|
|
|
|