update 形态转换,解决未分配标签信息列表未展示库存信息,和点击右移按钮已分配标签信息未展示数据问题
This commit is contained in:
parent
6caeebc44e
commit
f11e91daa4
@ -41,7 +41,26 @@
|
||||
<div class="page-table-title-left">
|
||||
<span>未分配标签信息</span>
|
||||
</div>
|
||||
<el-form :model="queryParams" :inline="true" label-width="40px" label-position="left" style="margin-left:20px">
|
||||
<el-form-item label="货位" prop="params.LOCATION">
|
||||
<el-select
|
||||
size="small"
|
||||
filterable
|
||||
v-model="state.ChangeLocation"
|
||||
default-first-option
|
||||
placeholder="请选择货位"
|
||||
:filter-method="getlocDec"
|
||||
style="width: 240px"
|
||||
@change="searchFn"
|
||||
>
|
||||
<el-option
|
||||
v-for="item in state.LocationList"
|
||||
:key="item.STORAGENAME"
|
||||
:label="item.DESCRIPTION"
|
||||
:value="item.STORAGENAME"
|
||||
/>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
<!-- <el-form :model="queryParams" :inline="true" label-width="40px" label-position="left" style="margin-left:20px">
|
||||
<el-form-item label="货位" prop="params.LOCATION">
|
||||
<el-select v-model="state.ChangeLocation" clearable collapse-tags placeholder="请选择货位"
|
||||
popper-class="custom-header" :max-collapse-tags="1" style="width: 240px"
|
||||
@ -51,6 +70,7 @@
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
-->
|
||||
</div>
|
||||
</div>
|
||||
</el-col>
|
||||
@ -145,6 +165,7 @@ import { bTableHeight } from "../../../composables/calcTableHeight";
|
||||
import { localStorage } from "@/utils/storage";
|
||||
import { cals } from '@/utils/cal'
|
||||
import { AssignOrDessignShipRequest, MoveTransform } from '@/api/moveTrans'
|
||||
import request from '@/utils/request'
|
||||
const { tableContainer, tableHeight, updateTableHeight, handleResize } = bTableHeight(400);
|
||||
|
||||
const queryFormRef = ref(ElForm);
|
||||
@ -179,6 +200,7 @@ const state: any = reactive({
|
||||
ChangeERPLocation: [],
|
||||
ChangeLocation: [],
|
||||
STOCKSELECTLIST: [] as any,
|
||||
locDecListAll: [] as any,
|
||||
queryParams: {
|
||||
queryId: "",
|
||||
version: "",
|
||||
@ -200,6 +222,7 @@ const state: any = reactive({
|
||||
SHIPREQUESTDETAILNAME: '',
|
||||
DESCRIPTION: '',
|
||||
CAREER_ASSISTANCE: '',
|
||||
ERPRECEIVELOCATION: '',
|
||||
},
|
||||
},
|
||||
RightqueryParams: {
|
||||
@ -329,6 +352,7 @@ onMounted(() => {
|
||||
state.commitDate = year + '-' + moth + '-' + day
|
||||
updateTableHeight();
|
||||
window.addEventListener('resize', handleResize);
|
||||
getStorageSpecLocationList()
|
||||
});
|
||||
|
||||
function JudgeMentERPLocation() {
|
||||
@ -414,14 +438,14 @@ function handle(row: any, event: any, column: any) {
|
||||
state.LShipRequestDetailName = row.SHIPREQUESTDETAILNAME
|
||||
state.LShipType = row.SHIPREQUESTTYPE
|
||||
state.queryParams.params.IsCheck = state.IsCheck
|
||||
|
||||
state.queryParams.params.ERPRECEIVELOCATION = state.ChangeLocation
|
||||
getQueryList(state.queryParams).then((res: any) => {
|
||||
state.MaterialPackingList = res.data;
|
||||
state.MaterialPackingList2 = res.data;
|
||||
});
|
||||
|
||||
state.RightqueryParams.queryId = 'GetPackingRow';
|
||||
state.RightqueryParams.version = 'Z00002_NEW';
|
||||
state.RightqueryParams.version = 'Z00003_NEW';
|
||||
state.RightqueryParams.params.MATERIALSPECNAME = row.MATERIALSPECNAME;
|
||||
state.RightqueryParams.params.SHIPREQUESTNAME = row.SHIPREQUESTNAME;
|
||||
state.RightqueryParams.params.SDK_ID = row.SDK_ID;
|
||||
@ -436,7 +460,7 @@ function handle(row: any, event: any, column: any) {
|
||||
return (cals.add(init, current.MATERIALQUANTITY2)).toNumber();
|
||||
}, 0)
|
||||
});
|
||||
|
||||
/*
|
||||
state.queryParams.queryId = 'GetLocationList';
|
||||
state.queryParams.version = 'ZWP007_NEW';
|
||||
state.queryParams.params.MATERIALSPECNAME = row.MATERIALSPECNAME;
|
||||
@ -451,7 +475,7 @@ function handle(row: any, event: any, column: any) {
|
||||
getQueryList(state.queryParams).then((res: any) => {
|
||||
state.LocationList = res.data;
|
||||
});
|
||||
|
||||
*/
|
||||
tableInfo.value.setCurrentRow(row)
|
||||
}
|
||||
|
||||
@ -613,6 +637,37 @@ function handleStockOut() {
|
||||
state.buttonOut_loading = false;
|
||||
}
|
||||
}
|
||||
|
||||
async function getStorageSpecLocationList() {
|
||||
let erpLocation = JSON.parse(localStorage.get('orgNo'));
|
||||
request({
|
||||
url: '/api/api/storage/getLocationNameForERPLocation',
|
||||
method: 'post',
|
||||
data: {
|
||||
erpLocation: erpLocation,
|
||||
SITENAME: 'SDK',
|
||||
},
|
||||
}).then((res: any) => {
|
||||
state.locDecListAll = res.resultObj;
|
||||
});
|
||||
}
|
||||
|
||||
function getlocDec(query: any) {
|
||||
// console.log(query)
|
||||
//let arr = state.locDecListAll;
|
||||
let arr = state.locDecListAll.filter((item: any) => {
|
||||
return item.STORAGENAME.includes(query) || item.STORAGENAME.includes(query)
|
||||
})
|
||||
// console.log(arr)
|
||||
if (arr.length > 50) {
|
||||
state.LocationList = arr.slice(0, 50)
|
||||
} else {
|
||||
state.LocationList = arr
|
||||
}
|
||||
state.LocationList.unshift({
|
||||
STORAGENAME: ''
|
||||
})
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped lang="scss">
|
||||
|
Loading…
x
Reference in New Issue
Block a user