diff --git a/src/views/stocked/NoOrMoveLibrary/index.vue b/src/views/stocked/NoOrMoveLibrary/index.vue index a253e84..64c5ee1 100644 --- a/src/views/stocked/NoOrMoveLibrary/index.vue +++ b/src/views/stocked/NoOrMoveLibrary/index.vue @@ -195,6 +195,23 @@
+ + + + + + + { @@ -498,7 +518,11 @@ onMounted(() => { { header: '备注', field: 'REMARK', hide: false } ] let pwd: any = localStorage.getItem('remeberPwd') - // state.orgNo = JSON.parse(pwd).orgNo; + if(pwd) { + state.orgNo = JSON.parse(pwd).orgNo; + state.queryParams.params.ERPFACTORY = state.orgNo + } + // state.queryParams.params.ERPFACTORY = JSON.parse(pwd).orgNo; // state.queryParamsERPLocation.params.ERPFACTORYNAME = JSON.parse(pwd).orgNo; ERPFactoryQuery() @@ -601,10 +625,16 @@ async function Storage2List(firstLocation: any) { } } function changeFac(e: any) { - // console.log(e) + console.log(e) state.queryParams.params.ERPLOCATION = '' state.queryParamsERPLocation.params.ERPFACTORYNAME = e ERPLocationQuery() + if(e.ERPFACTORY == "1010" || e.ERPFACTORY == "1020") { + state.spcERPFactoryList = state.ERPFactoryList.filter((item: any) => + (e.ERPFACTORY == "1010" || e.ERPFACTORY == "1020") + ) + } + } function changeERPLocation(e: any) { // console.log(e) @@ -651,6 +681,12 @@ const updateList = (col: any) => { } function queryInfo() { state.queryParams.pageNum = 1 + if(!state.queryParams.params.ERPFACTORY) { + ElMessageBox.alert('请选择库存组织!', '提醒框', { + confirmButtonText: 'OK' + }) + } + handleQuery() } async function handleQuery() {