diff --git a/src/views/stocked/NoOrMoveLibrary/index.vue b/src/views/stocked/NoOrMoveLibrary/index.vue index e88cda2..6a854b8 100644 --- a/src/views/stocked/NoOrMoveLibrary/index.vue +++ b/src/views/stocked/NoOrMoveLibrary/index.vue @@ -202,11 +202,12 @@ v-model="queryParams.params.destinationErpFactory" placeholder="下拉选择组织" size="small" + @change="changeSpcERPFactory" > @@ -644,7 +645,7 @@ function changeFac(e: any) { (item.ERPFACTORY === e) ) } - + changeSpcERPFactory(e) } function changeERPLocation(e: any) { // console.log(e) @@ -681,6 +682,7 @@ function ERPFactoryQuery() { (item.ERPFACTORY === state.queryParams.params.ERPFACTORY) ) } + changeSpcERPFactory(state.queryParams.params.ERPFACTORY) state.queryParams.params.destinationErpFactory = state.queryParams.params.ERPFACTORY }) .catch(() => {}) @@ -1103,6 +1105,27 @@ async function getStorageSpecLocationList() { state.locDecListAll = res.resultObj; }); } + +function changeSpcERPFactory(e: any) { + state.locDecList1 = [] as any + getQueryList({ + queryId: 'GetErpLocationList', + version: 'WEB00001', + params: { + SITENAME: localStorage.getItem('siteName') || 'SDK', + ERPFACTORYNAME: e + }, + pageNum: 1, + pageSize: 10 + }) + .then((res: any) => { + state.locDecList1 = res.data + /* state.ERPLocationList.unshift({ + ENUMVALUE: '' + })*/ + }) + .catch(() => {}) +}