|
|
|
@ -11,10 +11,17 @@
|
|
|
|
|
<el-input v-model="queryParams.shelfNo" placeholder="请输入工装架子号" clearable @keyup.enter="handleQuery" />
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="库位id" prop="storePlaceId">
|
|
|
|
|
<el-input v-model="queryParams.storePlaceId" placeholder="请输入库位id" clearable @keyup.enter="handleQuery" />
|
|
|
|
|
<el-select v-model="queryParams.storePlaceId" placeholder="请选择所属仓库">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in baseStoreList"
|
|
|
|
|
:key="item.objId"
|
|
|
|
|
:label="item.storePlaceCode"
|
|
|
|
|
:value="item.objId"
|
|
|
|
|
></el-option>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="品级编号" prop="gradeCode">
|
|
|
|
|
<el-select v-model="form.gradeCode" placeholder="请选择品级编号">
|
|
|
|
|
<el-select v-model="queryParams.gradeCode" placeholder="请选择品级编号">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in wms_grade_code"
|
|
|
|
|
:key="dict.value"
|
|
|
|
@ -24,7 +31,7 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="产品类别" prop="productCategory">
|
|
|
|
|
<el-select v-model="form.gradeCode" placeholder="请选择产品类别">
|
|
|
|
|
<el-select v-model="queryParams.gradeCode" placeholder="请选择产品类别">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="dict in wms_product_category"
|
|
|
|
|
:key="dict.value"
|
|
|
|
@ -34,7 +41,14 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="物料" prop="materialId">
|
|
|
|
|
<el-input v-model="queryParams.materialId" placeholder="请输入物料" clearable @keyup.enter="handleQuery" />
|
|
|
|
|
<el-select v-model="queryParams.materialId" placeholder="请选择物料">
|
|
|
|
|
<el-option
|
|
|
|
|
v-for="item in materialList"
|
|
|
|
|
:key="item.materialId"
|
|
|
|
|
:label="item.materialCode"
|
|
|
|
|
:value="item.materialId"
|
|
|
|
|
/>
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="入库类型" prop="instockType">
|
|
|
|
|
<el-select v-model="queryParams.instockType" placeholder="请选择入库类型,0:半制品产出,2:入半制品线边库3:入成型线边库" clearable >
|
|
|
|
@ -74,7 +88,7 @@
|
|
|
|
|
<!-- <el-table-column label="主键id" align="center" prop="objId" v-if="columns[0].visible"/> -->
|
|
|
|
|
<el-table-column label="流水卡号" align="center" prop="cardNo" v-if="columns[6].visible"/>
|
|
|
|
|
<el-table-column label="工装架子号" align="center" prop="shelfNo" v-if="columns[7].visible"/>
|
|
|
|
|
<el-table-column label="库位id" align="center" prop="storePlaceId" v-if="columns[8].visible"/>
|
|
|
|
|
<el-table-column label="库位" align="center" prop="storePlaceCode" v-if="columns[8].visible"/>
|
|
|
|
|
<el-table-column label="品级编号" align="center" prop="gradeCode" v-if="columns[9].visible">
|
|
|
|
|
<template #default="scope">
|
|
|
|
|
<dict-tag :options="wms_grade_code" :value="scope.row.gradeCode"/>
|
|
|
|
@ -85,7 +99,7 @@
|
|
|
|
|
<dict-tag :options="wms_product_category" :value="scope.row.productCategory"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column label="物料" align="center" prop="materialId" v-if="columns[11].visible"/>
|
|
|
|
|
<el-table-column label="物料" align="center" prop="materialCode" v-if="columns[11].visible"/>
|
|
|
|
|
<el-table-column label="物料规格" align="center" prop="materialSpec" v-if="columns[12].visible"/>
|
|
|
|
|
<el-table-column label="入库数量" align="center" prop="instockNum"/>
|
|
|
|
|
<el-table-column label="入库类型" align="center" prop="instockType" v-if="columns[13].visible">
|
|
|
|
@ -158,7 +172,8 @@
|
|
|
|
|
<script setup name="HppInStockDetail" lang="ts">
|
|
|
|
|
import { listHppInStockDetail, getHppInStockDetail, delHppInStockDetail, addHppInStockDetail, updateHppInStockDetail } from '@/api/wms/hppInStockDetail';
|
|
|
|
|
import { HppInStockDetailVO, HppInStockDetailQuery, HppInStockDetailForm } from '@/api/wms/hppInStockDetail/types';
|
|
|
|
|
|
|
|
|
|
import { getWmsHppStorePlaceList } from '@/api/wms/hppStorePlace';
|
|
|
|
|
import { getMaterialListVo } from '@/api/wms/instockDetail';
|
|
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
|
|
const { wms_grade_code, wms_product_category, wms_halfproduct_instock_type } = toRefs<any>(proxy?.useDict('wms_grade_code','wms_product_category','wms_halfproduct_instock_type'));
|
|
|
|
|
const hppInStockDetailList = ref<HppInStockDetailVO[]>([]);
|
|
|
|
@ -256,7 +271,17 @@ const data = reactive<PageData<HppInStockDetailForm, HppInStockDetailQuery>>({
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
const { queryParams, form, rules } = toRefs(data);
|
|
|
|
|
|
|
|
|
|
let baseStoreList = ref([]);
|
|
|
|
|
const materialList = ref([]);
|
|
|
|
|
const getStorePlaceList = async () => {
|
|
|
|
|
let res = await getWmsHppStorePlaceList(null);
|
|
|
|
|
baseStoreList.value = res.data;
|
|
|
|
|
};
|
|
|
|
|
const getMaterialList = async () => {
|
|
|
|
|
const res = await getMaterialListVo(null);
|
|
|
|
|
console.log(res.data);
|
|
|
|
|
materialList.value = res.data;
|
|
|
|
|
}
|
|
|
|
|
/** 查询半制品入库列表 */
|
|
|
|
|
const getList = async () => {
|
|
|
|
|
loading.value = true;
|
|
|
|
@ -348,6 +373,8 @@ const handleExport = () => {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
onMounted(() => {
|
|
|
|
|
getMaterialList();
|
|
|
|
|
getStorePlaceList();
|
|
|
|
|
getList();
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|