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