diff --git a/src/views/Query/BasicQuery/materialBoxStockedQuery/index.vue b/src/views/Query/BasicQuery/materialBoxStockedQuery/index.vue index 150220a..56be59d 100644 --- a/src/views/Query/BasicQuery/materialBoxStockedQuery/index.vue +++ b/src/views/Query/BasicQuery/materialBoxStockedQuery/index.vue @@ -39,11 +39,11 @@ + remote :remote-method="handleInput" filterable> - + @@ -297,6 +297,7 @@ import { getORG } from '@/api/auth'; import { bTableHeight } from "../../../../composables/calcTableHeight"; import dayjs from 'dayjs' + import { search } from '@/api/wareHouse' const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(310); const { proxy }: any = getCurrentInstance(); @@ -557,6 +558,24 @@ }) } + + function handleInput(val: any) { + let index = [1, 3, 4, 7, 8] + if (index.indexOf(val.length) > -1) { + state.LocationList = [] + search({ + storageName: val, + orgNo: JSON.parse(localStorage.getItem('orgNo')) + }).then((res:any) => { + if (res.resultObj) { + state.LocationList = res.resultObj + } else { + proxy.$ElMessage.warning(res.message); + } + }) + } + } + function exportExcel() { let paramsObjet = state.queryParams.params; const parmlist = Object.keys(paramsObjet).filter((key: any) => key !== 'SITENAME') @@ -692,7 +711,7 @@ if (!areAllNotEmpty(state.ChangeERPLocation)) { return } - if (!value) { + /*if (!value) { let ERPLOCATIONList = state.ChangeERPLocation; getQueryList({ queryId: "GetLocationListForSomeERPLocation", @@ -709,7 +728,7 @@ }); }) .catch(() => { }); - } + }*/ } diff --git a/src/views/label/modifyRemark/index.vue b/src/views/label/modifyRemark/index.vue index 18c690a..0119696 100644 --- a/src/views/label/modifyRemark/index.vue +++ b/src/views/label/modifyRemark/index.vue @@ -75,7 +75,6 @@ v-model="state.queryParams.params.ERPLOCATION" placeholder="选择仓库" clearable - @change="getStorageSpec" style="width: 170px" > @@ -293,6 +293,7 @@ import { localStorage } from '@/utils/storage' import { bTableHeight } from '../../../composables/calcTableHeight' import { getORG } from '@/api/auth' import { cals } from '@/utils/cal' +import { search } from '@/api/wareHouse' const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(280) const queryFormRef = ref(ElForm) @@ -458,6 +459,23 @@ onMounted(() => { window.addEventListener('resize', handleResize) }) +function handleInput(val: any) { + let index = [1, 3, 4, 7, 8] + if (index.indexOf(val.length) > -1) { + state.LocationList = [] + search({ + storageName: val, + orgNo: JSON.parse(localStorage.get('orgNo')) + }).then((res:any) => { + if (res.resultObj) { + state.LocationList = res.resultObj + } else { + proxy.$ElMessage.warning(res.message); + } + }) + } +} + const exportLabel = () => { console.log('state.multipleSelection', state.multipleSelection) // 打印选中行的数据 printLabel(state.multipleSelection) diff --git a/src/views/stocked/NoOrMoveLibrary/index.vue b/src/views/stocked/NoOrMoveLibrary/index.vue index 14ceabf..a253e84 100644 --- a/src/views/stocked/NoOrMoveLibrary/index.vue +++ b/src/views/stocked/NoOrMoveLibrary/index.vue @@ -50,14 +50,16 @@ @@ -286,6 +288,7 @@ import { IFTRUE } from '@/utils/CommonUtil' import { bTableHeight } from '../../../composables/calcTableHeight' import { getORG } from '@/api/auth' import { cals } from '@/utils/cal' +import { search } from '@/api/wareHouse' const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(330) const queryFormRef = ref(ElForm) @@ -506,6 +509,23 @@ onMounted(() => { window.addEventListener('resize', handleResize) }) +function handleInput(val: any) { + let index = [1, 3, 4, 7, 8] + if (index.indexOf(val.length) > -1) { + state.LocationList = [] + search({ + storageName: val, + orgNo: JSON.parse(localStorage.getItem('orgNo')) + }).then((res:any) => { + if (res.resultObj) { + state.LocationList = res.resultObj + } else { + proxy.$ElMessage.warning(res.message); + } + }) + } +} + function getRKey(row: any) { // console.log(row.CHARGE) return row.CHARGE @@ -590,7 +610,7 @@ function changeERPLocation(e: any) { // console.log(e) state.queryParams.params.LOCATIONNAME = '' state.queryParamsLocation.params.ERPLOCATION = e - LocationQuery() + // LocationQuery() } //货位查询 function LocationQuery() { diff --git a/src/views/stocked/careerAssistanceInquiry/index.vue b/src/views/stocked/careerAssistanceInquiry/index.vue index 584f9e6..e4d253b 100644 --- a/src/views/stocked/careerAssistanceInquiry/index.vue +++ b/src/views/stocked/careerAssistanceInquiry/index.vue @@ -39,11 +39,13 @@ + remote :remote-method="handleInput" filterable> - + @@ -208,6 +210,7 @@ import { updateCareerAssistance, updateRemark } from '@/api/label' import { bTableHeight } from "../../../composables/calcTableHeight"; import { getORG } from '@/api/auth'; + import { search } from '@/api/wareHouse' const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(310); @@ -446,6 +449,23 @@ const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableH }; + function handleInput(val: any) { + let index = [1, 3, 4, 7, 8] + if (index.indexOf(val.length) > -1) { + state.LocationList = [] + search({ + storageName: val, + orgNo: JSON.parse(localStorage.get('orgNo')) + }).then((res:any) => { + if (res.resultObj) { + state.LocationList = res.resultObj + } else { + proxy.$ElMessage.warning(res.message); + } + }) + } + } + function isChinese(text : any) { const reg = /^[\u4e00-\u9fa5]+$/; @@ -679,7 +699,7 @@ const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableH if (!areAllNotEmpty(state.ChangeERPLocation)) { return } - if (!value) { + /*if (!value) { let ERPLOCATIONList = state.ChangeERPLocation; getQueryList({ queryId: "GetLocationListForSomeERPLocation", @@ -696,7 +716,7 @@ const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableH }); }) .catch(() => { }); - } + }*/ } diff --git a/src/views/stocked/locationMovePage/index.vue b/src/views/stocked/locationMovePage/index.vue index 1f53cdf..7bc8c7f 100644 --- a/src/views/stocked/locationMovePage/index.vue +++ b/src/views/stocked/locationMovePage/index.vue @@ -44,14 +44,16 @@ @@ -252,6 +254,7 @@ import type { CascaderProps } from 'element-plus' import { IFTRUE } from '@/utils/CommonUtil' import { bTableHeight } from '../../../composables/calcTableHeight' import { getORG } from '@/api/auth' +import { search } from '@/api/wareHouse' const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(240) const queryFormRef = ref(ElForm) @@ -391,6 +394,23 @@ const { checkResultOptions } = toRefs(state) +function handleInput(val: any) { + let index = [1, 3, 4, 7, 8] + if (index.indexOf(val.length) > -1) { + state.LocationList = [] + search({ + storageName: val, + orgNo: JSON.parse(localStorage.getItem('orgNo')) + }).then((res:any) => { + if (res.resultObj) { + state.LocationList = res.resultObj + } else { + proxy.$ElMessage.warning(res.message); + } + }) + } +} + onMounted(() => { state.column = [ { header: '工厂', field: 'SITENAME', hide: true }, @@ -473,7 +493,7 @@ function changeERPLocation(e: any) { // console.log(e) state.queryParams.params.LOCATIONNAME = '' state.queryParamsLocation.params.ERPLOCATION = e - LocationQuery() + // LocationQuery() } //货位查询 function LocationQuery() {