|
|
@ -873,6 +873,7 @@ import { |
|
|
queryComponentPartRecipeList, // 查子物料配方 |
|
|
queryComponentPartRecipeList, // 查子物料配方 |
|
|
} from '@/api/part/recipeManagement.js' |
|
|
} from '@/api/part/recipeManagement.js' |
|
|
import ChooseList from '@/views/modules/common/Chooselist' |
|
|
import ChooseList from '@/views/modules/common/Chooselist' |
|
|
|
|
|
import {isAuth} from "../../../utils"; |
|
|
|
|
|
|
|
|
export default { |
|
|
export default { |
|
|
// 组件 |
|
|
// 组件 |
|
|
@ -2944,7 +2945,7 @@ export default { |
|
|
// 获取数据列表 |
|
|
// 获取数据列表 |
|
|
getDataList () { |
|
|
getDataList () { |
|
|
//如果是跳转过来的 要判断 |
|
|
//如果是跳转过来的 要判断 |
|
|
if (localStorage.getItem('recipeData') != undefined) { |
|
|
|
|
|
|
|
|
if (localStorage.getItem('recipeData')) { |
|
|
let data = JSON.parse(localStorage.getItem('recipeData')) |
|
|
let data = JSON.parse(localStorage.getItem('recipeData')) |
|
|
this.searchData.partNo = data.partNo |
|
|
this.searchData.partNo = data.partNo |
|
|
this.searchData.ifsPartNo = data.ifsPartNo |
|
|
this.searchData.ifsPartNo = data.ifsPartNo |
|
|
@ -2961,19 +2962,23 @@ export default { |
|
|
this.pageSize = data.page.pageSize |
|
|
this.pageSize = data.page.pageSize |
|
|
this.totalPage = data.page.totalCount |
|
|
this.totalPage = data.page.totalCount |
|
|
this.$refs.selectDiv.setLengthAll( this.dataList.length) |
|
|
this.$refs.selectDiv.setLengthAll( this.dataList.length) |
|
|
if (localStorage.getItem('recipeData') != undefined) { |
|
|
|
|
|
|
|
|
if (localStorage.getItem('recipeData')) { |
|
|
let data = JSON.parse(localStorage.getItem('recipeData')) |
|
|
let data = JSON.parse(localStorage.getItem('recipeData')) |
|
|
if(data.engChgLevel&&data.engChgLevel!==''&&data.engChgLevel!==null){ |
|
|
|
|
|
|
|
|
if (data.engChgLevel && data.engChgLevel !== '' && data.engChgLevel !== null && isAuth('104002003:update')) { |
|
|
this.updateModal(this.dataList[0]) |
|
|
this.updateModal(this.dataList[0]) |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
this.queryLoading = false |
|
|
|
|
|
} else { |
|
|
|
|
|
this.queryLoading = false |
|
|
} |
|
|
} |
|
|
this.queryLoading = false |
|
|
|
|
|
if (localStorage.getItem('recipeData') != undefined) { |
|
|
|
|
|
|
|
|
if (localStorage.getItem('recipeData')) { |
|
|
this.$nextTick(function () { |
|
|
this.$nextTick(function () { |
|
|
localStorage.removeItem('recipeData') |
|
|
localStorage.removeItem('recipeData') |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
}).catch(()=>{ |
|
|
|
|
|
this.queryLoading = false |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|