no message
parent
6b8c5413bd
commit
1800cb614c
|
|
@ -1,11 +1,952 @@
|
|||
<script setup>
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
$END$
|
||||
<div class="div1">
|
||||
|
||||
<div class="div2" style="padding-bottom: 10px">
|
||||
<el-form ref="form" :model="param" label-width="80px">
|
||||
<el-row :gutter="24">
|
||||
<el-col :span="4">
|
||||
<el-form-item label="子任务号:">
|
||||
<el-input type="textarea" v-model="param.BILLCODE" :rows="1"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label="工单号:" >
|
||||
<el-input type="textarea" v-model="param.pt_code" :rows="1"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label="SAP类型:">
|
||||
<el-input type="text" v-model="param.sourceType" :rows="1"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<el-form-item label="拣货库区">
|
||||
<el-select v-model="param.z_name" multiple filterable placeholder="请选择库区" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in Ku"
|
||||
:key="item.index"
|
||||
:label="item.name"
|
||||
:value="item.name"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<el-form-item label="所在库位:">
|
||||
<el-input type="textarea" v-model="param.lc2_code" :rows="1"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<el-form-item label="料号:">
|
||||
<el-input type="textarea" v-model="param.i_code" :rows="1"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="24" v-show="isShow">
|
||||
<el-col :span="4">
|
||||
<el-form-item label="单据类型">
|
||||
<el-select v-model="param.bt_name" multiple filterable placeholder="请选择库区" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in Dj"
|
||||
:key="item.index"
|
||||
:label="item.name"
|
||||
:value="item.name"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<el-form-item label="工作站">
|
||||
<el-select v-model="param.END_REGION" multiple filterable placeholder="请选择库区" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in Gz"
|
||||
:key="item.index"
|
||||
:label="item.END_REGION"
|
||||
:value="item.END_REGION"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<el-form-item label="拣货人">
|
||||
<el-select v-model="param.w4_name" multiple filterable placeholder="请选择库区" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in Jhr"
|
||||
:key="item.index"
|
||||
:label="item.name"
|
||||
:value="item.name"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<el-form-item label="波次号:">
|
||||
<el-input type="text" v-model="param.wd_code"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<el-form-item label="容器码:">
|
||||
<el-input type="text" v-model="param.LP"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<el-form-item label="拣货库位">
|
||||
<el-select
|
||||
v-model="param.lc1_code"
|
||||
multiple
|
||||
filterable
|
||||
remote
|
||||
reserve-keyword
|
||||
placeholder="请输入关键词"
|
||||
:remote-method="remoteMethod"
|
||||
:loading="loading">
|
||||
<el-option
|
||||
v-for="item in Kw"
|
||||
:key="item.index"
|
||||
:label="item.CODE"
|
||||
:value="item.CODE">
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="24" v-show="isShow">
|
||||
<el-col :span="8">
|
||||
<el-form-item label="需求日期:">
|
||||
<el-date-picker style="width: 325px"
|
||||
v-model="param.ORDER_DATE"
|
||||
type="daterange"
|
||||
align="right"
|
||||
unlink-panels
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:picker-options="pickerOptions">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="8">
|
||||
<el-form-item label="分配日期:">
|
||||
<el-date-picker style="width: 325px"
|
||||
v-model="param.CREATE_TIME"
|
||||
type="daterange"
|
||||
align="right"
|
||||
unlink-panels
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:picker-options="pickerOptions">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="8">
|
||||
<el-form-item label="拣货日期:">
|
||||
<el-date-picker style="width: 325px"
|
||||
v-model="param.OPERATE_TIME"
|
||||
type="daterange"
|
||||
align="right"
|
||||
unlink-panels
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:picker-options="pickerOptions">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<el-form-item label="拣货状态:">
|
||||
<el-select v-model="param.Status" placeholder="请选择" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in Zt"
|
||||
:key="item.label"
|
||||
:label="item.values"
|
||||
:value="item.label"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<el-form-item label="加急标记">
|
||||
<el-select v-model="param.equated_Quantity" placeholder="请选择库区" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in Bj"
|
||||
:key="item.index"
|
||||
:label="item.equated_Quantity"
|
||||
:value="item.equated_Quantity"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<el-form-item label="下发人">
|
||||
<el-select v-model="param.strBill1" multiple filterable placeholder="请选择库区" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in Xf"
|
||||
:key="item.index"
|
||||
:label="item.strBill1"
|
||||
:value="item.strBill1"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
</el-row>
|
||||
|
||||
<el-button type="success" @click="find">查找</el-button>
|
||||
<el-button type="success" @click="rest">重置</el-button>
|
||||
<el-checkbox v-model="checked" @change="Allquesr">是否显示全部查询条件</el-checkbox>
|
||||
</el-form>
|
||||
</div>
|
||||
|
||||
<el-table
|
||||
v-loading="this.tableloding"
|
||||
:height="MaxHeight"
|
||||
:header-cell-style="{background:'#000',color:'#fff'}"
|
||||
:data="tableData"
|
||||
id="educe-table"
|
||||
ref="tableData"
|
||||
style="width: 100%;">
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
fixed
|
||||
label="序号"
|
||||
v-if="false"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ scope.row.id }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="ID"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.id}}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="工单号"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.pt_code }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="需求日期"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.ORDER_DATE }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="工作站"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.END_REGION }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="分拨墙"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.s_name }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="库区"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.z_name }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="SAP类型"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.sourceType }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="单据类型"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.bt_name }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="子任务号"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.BILLCODE}}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="描述"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.i_name }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="料号"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.i_code }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="单位"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.UNIT }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="价值等级"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.SHIP_RULES }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="源库位"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.lc1_code }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="容器"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.LP }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="目标容器"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.lc2_code }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="合单位置"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.strBill4 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="下发数量"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.yc_qty }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="分配数量"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.PLAN_QUANTITY_MU }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="拣货数量"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.MOVED_QUANTITY_MU }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="状态"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.Status }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="批次号"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.PROP_C1 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="LOC"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.PROP_C2 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="特殊标记"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.PROP_C3 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="供应商编号"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.PROP_C5}}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="申请编号"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.PROP_C6 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="申请人"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.PROP_C7}}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="暂存原因"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.PROP_C8 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column><el-table-column
|
||||
label="工厂"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.PROP_C9}}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="加急标记"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.equated_Quantity }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column><el-table-column
|
||||
label="序列号"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.BAR_CODE }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="单号状态"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.INVENTORY_STATUS}}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="项号"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.LINE_NUMBER}}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="指定拣货人"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.w1_name }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="实际拣货人"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.w4_name }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="操作员"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.OPERATE_TIME }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="分配日期"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.CREATE_TIME }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="分配时间"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.CREATE_TIME }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="波次号"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.wd_code}}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="SAP状态 "
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.statusCode }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="AGV状态"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.agv_Status }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column> <el-table-column
|
||||
label="sap扣料"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.popular}}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="任务号"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.t_code }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-pagination
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"
|
||||
:current-page="pageNum"
|
||||
:page-sizes="[ 50, 100, 200,500]"
|
||||
:page-size="pageSize"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="total">
|
||||
</el-pagination>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
pickerOptions: {
|
||||
shortcuts: [{
|
||||
text: '最近一周',
|
||||
onClick(picker) {
|
||||
const end = new Date();
|
||||
const start = new Date();
|
||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
||||
picker.$emit('pick', [start, end]);
|
||||
}
|
||||
}, {
|
||||
text: '最近一个月',
|
||||
onClick(picker) {
|
||||
const end = new Date();
|
||||
const start = new Date();
|
||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
||||
picker.$emit('pick', [start, end]);
|
||||
}
|
||||
}, {
|
||||
text: '最近三个月',
|
||||
onClick(picker) {
|
||||
const end = new Date();
|
||||
const start = new Date();
|
||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
||||
picker.$emit('pick', [start, end]);
|
||||
}
|
||||
}]
|
||||
},
|
||||
tableloding: false,
|
||||
isShow:false,//是否展示全部搜索条件
|
||||
value1: '',
|
||||
value2: '',
|
||||
tableData: [],
|
||||
pageSize: 50,
|
||||
pageNum: 1,
|
||||
total: 3,
|
||||
param: {
|
||||
//子任务号
|
||||
BILLCODE: '',
|
||||
//工单号
|
||||
pt_code: '',
|
||||
//SAP类型
|
||||
sourceType: '',
|
||||
//拣货库区
|
||||
z_name: [],
|
||||
//所在库位
|
||||
lc1_code: '',
|
||||
//料号
|
||||
i_code: '',
|
||||
//单据类型
|
||||
bt_name: [],
|
||||
//工作站
|
||||
END_REGION: [],
|
||||
//拣货人
|
||||
w4_name: [],
|
||||
//波次号
|
||||
wd_code: '',
|
||||
//容器码
|
||||
LP: '',
|
||||
//拣货库位
|
||||
lc2_code: [],
|
||||
//需求日期
|
||||
ORDER_DATE: [],
|
||||
//分配日期
|
||||
CREATE_TIME: [],
|
||||
//拣货日期
|
||||
OPERATE_TIME: [],
|
||||
//加急标记
|
||||
equated_Quantity: '',
|
||||
//下发人
|
||||
strBill1: [],
|
||||
//拣货状态
|
||||
Status: '',
|
||||
},
|
||||
Ku: [],
|
||||
//单据类型
|
||||
Dj: [],
|
||||
//工作站
|
||||
Gz: [],
|
||||
//拣货人
|
||||
Jhr: [],
|
||||
//库位
|
||||
Kw: [],
|
||||
loading: false,
|
||||
//加急标记
|
||||
Bj: [],
|
||||
//下发人
|
||||
Xf: [],
|
||||
//状态
|
||||
Zt: [
|
||||
{
|
||||
label: '处理完成',
|
||||
values: '处理完成'
|
||||
},
|
||||
{
|
||||
label: '未处理',
|
||||
values: '未处理'
|
||||
},
|
||||
{
|
||||
label: '处理中',
|
||||
values: '处理中'
|
||||
}
|
||||
],
|
||||
|
||||
checked: false,
|
||||
}
|
||||
},computed:{
|
||||
MaxHeight(){
|
||||
return window.innerHeight - 240 +"px";
|
||||
}
|
||||
},
|
||||
mounted: function () {
|
||||
this.queryUser();
|
||||
this.KuS();
|
||||
this.DjS();
|
||||
this.GzS();
|
||||
this.JhrS();
|
||||
this.BjS();
|
||||
this.XfS();
|
||||
},
|
||||
methods: {
|
||||
|
||||
handleEdit(index, row) {
|
||||
console.log(index, row);
|
||||
},
|
||||
handleDelete(index, row) {
|
||||
console.log(index, row);
|
||||
},
|
||||
handleSizeChange(val) {
|
||||
console.log(`每页 ${val} 条`);
|
||||
this.pageNum = 1;
|
||||
this.pageSize = val;
|
||||
this.queryUser();
|
||||
},
|
||||
handleCurrentChange(val) {
|
||||
console.log(`当前页: ${val}`);
|
||||
this.pageNum = val;
|
||||
this.queryUser();
|
||||
},
|
||||
KuS(){
|
||||
//库区下拉列表数据加载
|
||||
this.$axios.post(this.$httpUrl + '/Kucunhuizong/ku', {
|
||||
|
||||
}).then(res => res.data)
|
||||
.then(res => {
|
||||
if (res.code == 200) {
|
||||
this.Ku = res.data;
|
||||
} else {
|
||||
this.$message.error('获取数据失败');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
},err=>{
|
||||
this.tableloding=false;
|
||||
})
|
||||
},
|
||||
DjS(){
|
||||
|
||||
this.$axios.post(this.$httpUrl + '/Jianhuojiemian/dj', {
|
||||
|
||||
}).then(res => res.data)
|
||||
.then(res => {
|
||||
if (res.code == 200) {
|
||||
this.Dj = res.data;
|
||||
} else {
|
||||
this.$message.error('获取数据失败');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
},err=>{
|
||||
this.tableloding=false;
|
||||
})
|
||||
},
|
||||
GzS(){
|
||||
|
||||
this.$axios.post(this.$httpUrl + '/Jianhuojiemian/gz', {
|
||||
|
||||
}).then(res => res.data)
|
||||
.then(res => {
|
||||
if (res.code == 200) {
|
||||
this.Gz = res.data;
|
||||
} else {
|
||||
this.$message.error('获取数据失败');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
},err=>{
|
||||
this.tableloding=false;
|
||||
})
|
||||
},
|
||||
JhrS(){
|
||||
this.$axios.post(this.$httpUrl + '/Jianhuojiemian/jhr', {
|
||||
}).then(res => res.data)
|
||||
.then(res => {
|
||||
if (res.code == 200) {
|
||||
this.Jhr = res.data;
|
||||
} else {
|
||||
this.$message.error('获取数据失败');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
},err=>{
|
||||
this.tableloding=false;
|
||||
})
|
||||
},
|
||||
remoteMethod(query) {
|
||||
|
||||
if (query !== '') {
|
||||
if(query.length>2) {
|
||||
|
||||
this.$axios.post(this.$httpUrl + '/Jianhuojiemian/kw', {
|
||||
query
|
||||
}).then(res => res.data)
|
||||
.then(res => {
|
||||
if (res.code == 200) {
|
||||
this.Kw = res.data;
|
||||
} else {
|
||||
this.$message.error('获取数据失败');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
}, err => {
|
||||
this.tableloding = false;
|
||||
})
|
||||
}
|
||||
} else {
|
||||
this.Kw = [];
|
||||
}
|
||||
},
|
||||
XfS(){
|
||||
this.$axios.post(this.$httpUrl + '/Jianhuojiemian/xf', {
|
||||
|
||||
}).then(res => res.data)
|
||||
.then(res => {
|
||||
if (res.code == 200) {
|
||||
this.Xf = res.data;
|
||||
} else {
|
||||
this.$message.error('获取数据失败');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
},err=>{
|
||||
this.tableloding=false;
|
||||
})
|
||||
},
|
||||
BjS(){
|
||||
|
||||
this.$axios.post(this.$httpUrl + '/Jianhuojiemian/bj', {
|
||||
|
||||
}).then(res => res.data)
|
||||
.then(res => {
|
||||
if (res.code == 200) {
|
||||
this.Bj = res.data;
|
||||
} else {
|
||||
this.$message.error('获取数据失败');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
},err=>{
|
||||
this.tableloding=false;
|
||||
})
|
||||
},
|
||||
|
||||
queryUser() {
|
||||
//列表数据加载
|
||||
this.$axios.post(this.$httpUrl + '/Jianhuojiemian/queryJian', {
|
||||
pageSize: this.pageSize,
|
||||
pageNum: this.pageNum,
|
||||
param: this.param,
|
||||
}).then(res => res.data)
|
||||
.then(res => {
|
||||
if (res.code == 200) {
|
||||
this.tableData = res.data
|
||||
this.total = res.total
|
||||
} else {
|
||||
this.$message.error('获取数据失败');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
},err=>{
|
||||
this.tableloding=false;
|
||||
})
|
||||
|
||||
},
|
||||
find(){
|
||||
this.queryUser();
|
||||
},
|
||||
Allquesr(){
|
||||
//查询按钮
|
||||
if(this.checked){
|
||||
this.isShow=true;
|
||||
}else {
|
||||
this.isShow=false;
|
||||
}
|
||||
},
|
||||
rest() {
|
||||
//条件查询重置
|
||||
this.checked=false;
|
||||
this.isShow=false;
|
||||
this.param={};
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -1,11 +1,845 @@
|
|||
<script setup>
|
||||
|
||||
</script>
|
||||
|
||||
<template>
|
||||
$END$
|
||||
<div class="div1">
|
||||
|
||||
<div class="div2" style="padding-bottom: 10px">
|
||||
<el-form ref="form" :model="param" label-width="80px">
|
||||
<el-row :gutter="24">
|
||||
<el-col :span="4">
|
||||
<el-form-item label="库位号:">
|
||||
<el-input type="textarea" v-model="param.locCode" :rows="1"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label="料号:" >
|
||||
<el-input type="textarea" v-model="param.itemCode" :rows="1"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="4">
|
||||
<el-form-item label="物料描述:">
|
||||
<el-input type="text" v-model="param.itemName" :rows="1"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<el-form-item label="LOC">
|
||||
<el-select v-model="param.propC2" multiple filterable placeholder="请选择库区" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in LOCS"
|
||||
:key="item.ID"
|
||||
:label="item.PROP_C2"
|
||||
:value="item.PROP_C2"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<el-form-item label="库存状态:">
|
||||
<el-select v-model="param.status" multiple filterable placeholder="请选择库存状态" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in Zt"
|
||||
:key="item.index"
|
||||
:label="item.STATUS"
|
||||
:value="item.STATUS"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<el-form-item label="库区">
|
||||
<el-select v-model="param.kqName" multiple filterable placeholder="请选择库区" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in Ku"
|
||||
:key="item.index"
|
||||
:label="item.name"
|
||||
:value="item.name"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-row :gutter="24" v-show="isShow">
|
||||
<el-col :span="4">
|
||||
<el-form-item label="批次号:">
|
||||
<el-input type="textarea" v-model="param.propC1" :rows="1"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<el-form-item label="特殊标记:" ref="all">
|
||||
<el-input type="text" v-model="param.propC3"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="8">
|
||||
<el-form-item label="存货日期:">
|
||||
<el-date-picker style="width: 325px"
|
||||
v-model="param.storageDate"
|
||||
type="daterange"
|
||||
align="right"
|
||||
unlink-panels
|
||||
range-separator="至"
|
||||
start-placeholder="开始日期"
|
||||
end-placeholder="结束日期"
|
||||
:picker-options="pickerOptions">
|
||||
</el-date-picker>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<el-form-item label="供应商号:">
|
||||
<el-input type="text" v-model="param.propC5"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<el-form-item label="是否盘点:">
|
||||
<el-select v-model="param.coun_Plan" placeholder="请选择" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in pd"
|
||||
:key="item.label"
|
||||
:label="item.values"
|
||||
:value="item.label"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="24" v-show="isShow">
|
||||
<el-col :span="4">
|
||||
<el-form-item label="是否批次号管理:">
|
||||
<el-select v-model="param.SINGLE_ITEM" placeholder="请选择" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in pc"
|
||||
:key="item.label"
|
||||
:label="item.values"
|
||||
:value="item.label"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<el-form-item label="是否有效期管理:">
|
||||
<el-select v-model="param.validity" placeholder="请选择" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in yxq"
|
||||
:key="item.label"
|
||||
:label="item.values"
|
||||
:value="item.label"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
|
||||
<el-col :span="4">
|
||||
<el-form-item label="退料状态:">
|
||||
<el-select v-model="param.statuss" placeholder="请选择" style="width: 100%;">
|
||||
<el-option
|
||||
v-for="item in tl"
|
||||
:key="item.label"
|
||||
:label="item.values"
|
||||
:value="item.label"
|
||||
>
|
||||
</el-option>
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
|
||||
<el-button type="success" @click="find">查找</el-button>
|
||||
<el-button type="success" @click="rest">重置</el-button>
|
||||
<el-checkbox v-model="checked" @change="Allquesr">是否显示全部查询条件</el-checkbox>
|
||||
</el-form>
|
||||
</div>
|
||||
|
||||
<el-table
|
||||
v-loading="this.tableloding"
|
||||
:height="MaxHeight"
|
||||
:header-cell-style="{background:'#000',color:'#fff'}"
|
||||
:data="tableData"
|
||||
id="educe-table"
|
||||
ref="tableData"
|
||||
style="width: 100%;">
|
||||
<el-table-column
|
||||
type="selection"
|
||||
width="55">
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
fixed
|
||||
label="序号"
|
||||
v-if="false"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<span style="margin-left: 10px">{{ scope.row.id }}</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="ID"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.id}}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="库位号"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.locCode }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="料号"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.itemCode }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="描述"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.itemName }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="序列号"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.barCode }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="状态"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.status }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="库位ID"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.LOCATION_ID }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="料号属性ID"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.ITEM_KEY_ID }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="库存数量"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.quantity}}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="占用数量"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.queuedQuantity }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="批次号"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.propC1 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="LOC"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.propC2 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="特殊标记"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.propC3 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="部门"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.propC4 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="供应商编号"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.propC5 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="申请人编号"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.propC6 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="申请人"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.propC7 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="暂存原因"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.propC8 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="工厂"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.propC9 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="入库单号"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.soi }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="生产日期"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.propD1 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="到日期"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.propD2 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="库区"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.kqName }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="库区ID"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.ZONE_ID }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="是否盘点"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.lock==1?"是":"否"}}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="AGV库位"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.LSname }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="是否SAP料号"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.Be_SAP_Item==1?"是":"否"}}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="体积"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.VOLUME }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column><el-table-column
|
||||
label="是否危化品"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.BE_WEIGHT==1?"是":"否" }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="库存价值等级"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.SHIP_RULES }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column><el-table-column
|
||||
label="OA料号"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.FEE_TYPE }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="是否批号管理"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.SINGLE_ITEM==1?"是":"否" }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="是否序列号"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.BE_MARK_WEIGHT ==1?"是":"否"}}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="单位"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.UNIT }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="备注"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.STR_EXTEND1 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="币种"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.STR_EXTEND2 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="标准价"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.STR_EXTEND3 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="库存单位"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.STR_EXTEND4 }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="是否在GAV仓"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.agvFlag==1?"是":"否" }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="库位id"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.locId }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="库位类型"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.lts_name }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column> <el-table-column
|
||||
label="是否有效期管理"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.validity==1?"是":"否" }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="库存日期"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.storageDate }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column> <el-table-column
|
||||
label="工作站"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.moveStatus }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column
|
||||
label="退料标记"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.inv_status }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column> <el-table-column
|
||||
label="重量"
|
||||
width="180">
|
||||
<template slot-scope="scope">
|
||||
<div slot="reference" class="name-wrapper">
|
||||
<span>{{ scope.row.WEIGHT }}</span>
|
||||
</div>
|
||||
</template>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
<el-pagination
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"
|
||||
:current-page="pageNum"
|
||||
:page-sizes="[ 50, 100, 200,500]"
|
||||
:page-size="pageSize"
|
||||
layout="total, sizes, prev, pager, next, jumper"
|
||||
:total="total">
|
||||
</el-pagination>
|
||||
</div>
|
||||
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
//是否盘点
|
||||
pd: [
|
||||
{
|
||||
label:0,
|
||||
values:"否",
|
||||
},{
|
||||
label:1,
|
||||
values:"是",
|
||||
}
|
||||
],
|
||||
//是否批次号管理
|
||||
pc: [
|
||||
{
|
||||
label:0,
|
||||
values:"否",
|
||||
},{
|
||||
label:1,
|
||||
values:"是",
|
||||
}
|
||||
],
|
||||
//是否有效期管理
|
||||
yxq: [
|
||||
{
|
||||
label:0,
|
||||
values:"否",
|
||||
},{
|
||||
label:1,
|
||||
values:"是",
|
||||
}
|
||||
],
|
||||
//退料状态
|
||||
tl: [
|
||||
{
|
||||
label:0,
|
||||
values:"否",
|
||||
},{
|
||||
label:1,
|
||||
values:"是",
|
||||
}
|
||||
],
|
||||
pickerOptions: {
|
||||
shortcuts: [{
|
||||
text: '最近一周',
|
||||
onClick(picker) {
|
||||
const end = new Date();
|
||||
const start = new Date();
|
||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 7);
|
||||
picker.$emit('pick', [start, end]);
|
||||
}
|
||||
}, {
|
||||
text: '最近一个月',
|
||||
onClick(picker) {
|
||||
const end = new Date();
|
||||
const start = new Date();
|
||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 30);
|
||||
picker.$emit('pick', [start, end]);
|
||||
}
|
||||
}, {
|
||||
text: '最近三个月',
|
||||
onClick(picker) {
|
||||
const end = new Date();
|
||||
const start = new Date();
|
||||
start.setTime(start.getTime() - 3600 * 1000 * 24 * 90);
|
||||
picker.$emit('pick', [start, end]);
|
||||
}
|
||||
}]
|
||||
},
|
||||
tableloding: false,
|
||||
isShow:false,//是否展示全部搜索条件
|
||||
value1: '',
|
||||
value2: '',
|
||||
tableData: [],
|
||||
pageSize: 50,
|
||||
pageNum: 1,
|
||||
total: 3,
|
||||
param: {
|
||||
itemCode: '',
|
||||
locCode: '',
|
||||
//物料描述
|
||||
itemName: '',
|
||||
//批次号
|
||||
propC1: '',
|
||||
//库存状态
|
||||
status: '',
|
||||
//库区
|
||||
kqName: '',
|
||||
//Loc
|
||||
propC2: [],
|
||||
//特殊标记
|
||||
propC3: '',
|
||||
//存货日期
|
||||
storageDate: [],
|
||||
//供应商号
|
||||
propC5: '',
|
||||
//盘点是否锁定
|
||||
coun_Plan: '',
|
||||
//是否批次号管理
|
||||
SINGLE_ITEM: '',
|
||||
//是否有效期管理
|
||||
validity: '',
|
||||
//退料状态
|
||||
statuss: '',
|
||||
},
|
||||
LOCS: [],
|
||||
Ku: [],
|
||||
Zt: [],
|
||||
checked: false,
|
||||
}
|
||||
},computed:{
|
||||
MaxHeight(){
|
||||
return window.innerHeight - 240 +"px";
|
||||
}
|
||||
},
|
||||
mounted: function () {
|
||||
this.queryUser();
|
||||
this.LOC();
|
||||
this.KuS();
|
||||
this.ZtS();
|
||||
},
|
||||
methods: {
|
||||
|
||||
handleEdit(index, row) {
|
||||
console.log(index, row);
|
||||
},
|
||||
handleDelete(index, row) {
|
||||
console.log(index, row);
|
||||
},
|
||||
handleSizeChange(val) {
|
||||
console.log(`每页 ${val} 条`);
|
||||
this.pageNum = 1;
|
||||
this.pageSize = val;
|
||||
this.queryUser();
|
||||
},
|
||||
handleCurrentChange(val) {
|
||||
console.log(`当前页: ${val}`);
|
||||
this.pageNum = val;
|
||||
this.queryUser();
|
||||
},
|
||||
LOC(){
|
||||
//LOC下拉列表数据加载
|
||||
this.$axios.post(this.$httpUrl + '/Rukuzhengli/LOC', {
|
||||
|
||||
}).then(res => res.data)
|
||||
.then(res => {
|
||||
if (res.code == 200) {
|
||||
this.LOCS = res.data;
|
||||
} else {
|
||||
this.$message.error('获取数据失败');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
},err=>{
|
||||
this.tableloding=false;
|
||||
})
|
||||
},
|
||||
KuS(){
|
||||
//库区下拉列表数据加载
|
||||
this.$axios.post(this.$httpUrl + '/Kucunhuizong/ku', {
|
||||
|
||||
}).then(res => res.data)
|
||||
.then(res => {
|
||||
if (res.code == 200) {
|
||||
this.Ku = res.data;
|
||||
} else {
|
||||
this.$message.error('获取数据失败');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
},err=>{
|
||||
this.tableloding=false;
|
||||
})
|
||||
},
|
||||
ZtS(){
|
||||
//状态下拉列表数据加载
|
||||
this.$axios.post(this.$httpUrl + '/Kucunhuizong/zt', {
|
||||
|
||||
}).then(res => res.data)
|
||||
.then(res => {
|
||||
if (res.code == 200) {
|
||||
this.Zt = res.data;
|
||||
} else {
|
||||
this.$message.error('获取数据失败');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
},err=>{
|
||||
this.tableloding=false;
|
||||
})
|
||||
},
|
||||
queryUser() {
|
||||
//列表数据加载
|
||||
this.$axios.post(this.$httpUrl + '/Kucunhuizong/queryAll', {
|
||||
pageSize: this.pageSize,
|
||||
pageNum: this.pageNum,
|
||||
param: this.param,
|
||||
}).then(res => res.data)
|
||||
.then(res => {
|
||||
if (res.code == 200) {
|
||||
this.tableData = res.data
|
||||
this.total = res.total
|
||||
} else {
|
||||
this.$message.error('获取数据失败');
|
||||
}
|
||||
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
},err=>{
|
||||
this.tableloding=false;
|
||||
})
|
||||
|
||||
},
|
||||
find(){
|
||||
this.queryUser();
|
||||
},
|
||||
Allquesr(){
|
||||
//查询按钮
|
||||
if(this.checked){
|
||||
this.isShow=true;
|
||||
}else {
|
||||
this.isShow=false;
|
||||
}
|
||||
},
|
||||
rest() {
|
||||
//条件查询重置
|
||||
this.checked=false;
|
||||
this.isShow=false;
|
||||
this.param={};
|
||||
},
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
|
|
|
|||
|
|
@ -121,7 +121,7 @@
|
|||
|
||||
<el-table
|
||||
v-loading="this.tableloding"
|
||||
:max-height="MaxHeight"
|
||||
:height="MaxHeight"
|
||||
:header-cell-style="{background:'#000',color:'#fff'}"
|
||||
:data="tableData"
|
||||
id="educe-table"
|
||||
|
|
@ -438,7 +438,6 @@ export default {
|
|||
}
|
||||
}]
|
||||
},
|
||||
MaxHeight: '',
|
||||
tableloding: false,
|
||||
isShow:false,//是否展示全部搜索条件
|
||||
value1: '',
|
||||
|
|
@ -465,14 +464,15 @@ export default {
|
|||
LOCS: [],
|
||||
checked: false,
|
||||
}
|
||||
}
|
||||
,mounted() {
|
||||
},computed:{
|
||||
MaxHeight(){
|
||||
return window.innerHeight - 240 +"px";
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.queryUser();
|
||||
this.PlantS();
|
||||
this.LOC();
|
||||
this.$nextTick(() => {
|
||||
this.MaxHeight = window.innerHeight - 240 +"px";
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
handleEdit(index, row) {
|
||||
|
|
@ -527,7 +527,7 @@ export default {
|
|||
|
||||
},
|
||||
queryUser() {
|
||||
this.tableloding=true;
|
||||
|
||||
//列表数据加载
|
||||
this.$axios.post(this.$httpUrl + '/Rukuzhengli/queryUser', {
|
||||
pageSize: this.pageSize,
|
||||
|
|
@ -538,7 +538,6 @@ export default {
|
|||
if (res.code == 200) {
|
||||
this.tableData = res.data
|
||||
this.total = res.total
|
||||
console.log(this.tableData)
|
||||
} else {
|
||||
this.$message.error('获取数据失败');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@
|
|||
|
||||
<el-table
|
||||
v-loading="this.tableloding"
|
||||
:max-height="MaxHeight"
|
||||
:height="MaxHeight"
|
||||
:header-cell-style="{background:'#000',color:'#fff'}"
|
||||
:data="tableData"
|
||||
id="educe-table"
|
||||
|
|
@ -565,7 +565,6 @@ export default {
|
|||
//容器码
|
||||
LP: ''
|
||||
},
|
||||
MaxHeight: '',
|
||||
plant: [],
|
||||
loc: [],
|
||||
name: [],
|
||||
|
|
@ -599,14 +598,15 @@ export default {
|
|||
title:''
|
||||
}
|
||||
},
|
||||
computed:{
|
||||
MaxHeight(){
|
||||
return window.innerHeight - 240 +"px";
|
||||
}
|
||||
},
|
||||
mounted() {
|
||||
this.Plant();
|
||||
this.Loc();
|
||||
this.z_Name();
|
||||
this.$nextTick(() => {
|
||||
this.MaxHeight = window.innerHeight - 240 +"px";
|
||||
})
|
||||
|
||||
},
|
||||
methods: {
|
||||
handleEdit(index, row) {
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ const routes=[
|
|||
meta:{
|
||||
title:'首页'
|
||||
},
|
||||
component: () => import('../components/duochaxun/Zhengliqingdan')
|
||||
component: () => import('../components/duochaxun/Jianhuojiemian')
|
||||
},
|
||||
{
|
||||
path:'/Zhengliqingdan',
|
||||
|
|
@ -36,10 +36,26 @@ const routes=[
|
|||
path:'/Rukuzhengli',
|
||||
name:'Rukuzhengli',
|
||||
meta:{
|
||||
title:'整理完成未上架清单'
|
||||
title:'入库整理'
|
||||
},
|
||||
component: () => import('@/components/duochaxun/Rukuzhengli.vue')
|
||||
}
|
||||
},
|
||||
{
|
||||
path:'/Kucunhuizong',
|
||||
name:'Kucunhuizong',
|
||||
meta:{
|
||||
title:'库存汇总界面'
|
||||
},
|
||||
component: () => import('@/components/duochaxun/Kucunhuizong.vue')
|
||||
},
|
||||
{
|
||||
path:'/Jianhuojiemian',
|
||||
name:'Jianhuojiemian',
|
||||
meta:{
|
||||
title:'拣货界面'
|
||||
},
|
||||
component: () => import('@/components/duochaxun/Jianhuojiemian.vue')
|
||||
},
|
||||
|
||||
]
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,2 +1,60 @@
|
|||
package com.yc.wms.bean;public class Jianhuojiemian {
|
||||
package com.yc.wms.bean;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class Jianhuojiemian {
|
||||
|
||||
//子任务号
|
||||
public String BILLCODE;
|
||||
|
||||
//工单号
|
||||
public String pt_code;
|
||||
|
||||
//SAP类型
|
||||
public String sourceType;
|
||||
|
||||
//拣货库区
|
||||
public String[] z_name;
|
||||
|
||||
//所在库位
|
||||
public String lc2_code;
|
||||
|
||||
//料号
|
||||
public String i_code;
|
||||
|
||||
//单据类型
|
||||
public String[] bt_name;
|
||||
|
||||
//工作站
|
||||
public String[] END_REGION;
|
||||
|
||||
//拣货人
|
||||
public String[] w4_name;
|
||||
|
||||
//波次号
|
||||
public String wd_code;
|
||||
|
||||
//容器码
|
||||
public String LP;
|
||||
|
||||
//拣货库位
|
||||
public String[] lc1_code;
|
||||
|
||||
//需求日期
|
||||
public Date[] ORDER_DATE;
|
||||
|
||||
//分配日期
|
||||
public Date[] CREATE_TIME;
|
||||
|
||||
//拣货日期
|
||||
public Date[] OPERATE_TIME;
|
||||
|
||||
//加急标记
|
||||
public String equated_Quantity;
|
||||
|
||||
//下发人
|
||||
public String[] strBill1;
|
||||
|
||||
//拣货状态
|
||||
public String Status;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,2 +1,50 @@
|
|||
package com.yc.wms.bean;public class Kucunhuizong {
|
||||
package com.yc.wms.bean;
|
||||
|
||||
import io.swagger.models.auth.In;
|
||||
import lombok.Getter;
|
||||
|
||||
import java.util.Date;
|
||||
|
||||
public class Kucunhuizong {
|
||||
//库位号
|
||||
public String locCode;
|
||||
|
||||
//料号
|
||||
public String itemCode;
|
||||
|
||||
//物料描述
|
||||
public String itemName;
|
||||
|
||||
//批次号
|
||||
public String propC1;
|
||||
|
||||
//库存状态
|
||||
public String[] status;
|
||||
|
||||
//库区
|
||||
public String[] kqName;
|
||||
|
||||
//Loc
|
||||
public String[] propC2;
|
||||
|
||||
//特殊标记
|
||||
public String propC3;
|
||||
|
||||
//存货日期
|
||||
public Date[] storageDate;
|
||||
|
||||
//供应商号
|
||||
public String propC5;
|
||||
|
||||
//盘点是否锁定
|
||||
public String coun_Plan;
|
||||
|
||||
//是否批次号管理
|
||||
public String SINGLE_ITEM;
|
||||
|
||||
//是否有效期管理
|
||||
public String validity;
|
||||
|
||||
//退料状态
|
||||
public String statuss;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,2 +1,82 @@
|
|||
package com.yc.wms.controller;public class JianhuojiemianController {
|
||||
package com.yc.wms.controller;
|
||||
|
||||
import cn.hutool.json.JSONObject;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.yc.wms.service.Jianhuojiemian;
|
||||
import com.yc.wms.until.QueryPageUtil;
|
||||
import com.yc.wms.until.Result;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("/Jianhuojiemian")
|
||||
public class JianhuojiemianController {
|
||||
|
||||
@Autowired
|
||||
private Jianhuojiemian jianhuojiemian;
|
||||
|
||||
@PostMapping("/queryJian")
|
||||
public Result queryUser(@RequestBody String json) {
|
||||
QueryPageUtil query =new QueryPageUtil();
|
||||
JSONObject jsonObject= JSONUtil.parseObj(json);
|
||||
query.setPageSize((int)jsonObject.get("pageSize"));
|
||||
query.setPageNum((int)jsonObject.get("pageNum"));
|
||||
|
||||
JSONObject param= (JSONObject)jsonObject.get("param");
|
||||
|
||||
com.yc.wms.bean.Jianhuojiemian j = JSONUtil.toBean(param.toString(), com.yc.wms.bean.Jianhuojiemian.class);
|
||||
|
||||
return jianhuojiemian.QueryJson(query,j);
|
||||
}
|
||||
|
||||
//单据类型
|
||||
@PostMapping("/dj")
|
||||
public Result Dj() {
|
||||
return jianhuojiemian.Dj();
|
||||
}
|
||||
|
||||
//工作站
|
||||
@PostMapping("/gz")
|
||||
public Result Gz() {
|
||||
return jianhuojiemian.Gz();
|
||||
}
|
||||
|
||||
//拣货人
|
||||
@PostMapping("/jhr")
|
||||
public Result Jhr() {
|
||||
return jianhuojiemian.Jhr();
|
||||
}
|
||||
|
||||
//库位
|
||||
@PostMapping("/kw")
|
||||
public Result Kw(@RequestBody String query) {
|
||||
|
||||
JSONObject jsonObject= JSONUtil.parseObj(query);
|
||||
String w= (String) jsonObject.get("query");
|
||||
System.out.println(w);
|
||||
|
||||
return jianhuojiemian.Kw(w);
|
||||
}
|
||||
|
||||
//加急标记
|
||||
@PostMapping("/bj")
|
||||
public Result Bj() {
|
||||
return jianhuojiemian.Bj();
|
||||
}
|
||||
|
||||
//下发人
|
||||
@PostMapping("xf")
|
||||
public Result Xf() {
|
||||
return jianhuojiemian.Xf();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,2 +1,52 @@
|
|||
package com.yc.wms.controller;public class KucunhuizongController {
|
||||
package com.yc.wms.controller;
|
||||
|
||||
import cn.hutool.json.JSONObject;
|
||||
import cn.hutool.json.JSONUtil;
|
||||
import com.yc.wms.bean.Kucunhuizong;
|
||||
import com.yc.wms.bean.Zhengliqingdan;
|
||||
import com.yc.wms.until.QueryPageUtil;
|
||||
import com.yc.wms.until.Result;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@RestController
|
||||
@Slf4j
|
||||
@RequestMapping("/Kucunhuizong")
|
||||
public class KucunhuizongController {
|
||||
@Autowired
|
||||
private com.yc.wms.service.Kucunhuizong kucunhuizong;
|
||||
|
||||
@PostMapping("/queryAll")
|
||||
public Result queryUser(@RequestBody String json) {
|
||||
|
||||
QueryPageUtil query =new QueryPageUtil();
|
||||
JSONObject jsonObject= JSONUtil.parseObj(json);
|
||||
query.setPageSize((int)jsonObject.get("pageSize"));
|
||||
query.setPageNum((int)jsonObject.get("pageNum"));
|
||||
|
||||
JSONObject param= (JSONObject)jsonObject.get("param");
|
||||
|
||||
Kucunhuizong k = JSONUtil.toBean(param.toString(), Kucunhuizong.class);
|
||||
|
||||
return kucunhuizong.QueryJson(query,k);
|
||||
}
|
||||
|
||||
|
||||
@PostMapping("/zt")
|
||||
public Result zt() {
|
||||
return kucunhuizong.zt();
|
||||
}
|
||||
|
||||
@PostMapping("/ku")
|
||||
public Result ku() {
|
||||
return kucunhuizong.ku();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ public class UserController {
|
|||
// return result;
|
||||
JSONArray array=new JSONArray();
|
||||
JSONObject data=new JSONObject();
|
||||
int menuCount=2;
|
||||
int menuCount=4;
|
||||
for (int i=1;i<=menuCount;i++){
|
||||
JSONObject menu=new JSONObject();
|
||||
menu.put("id",i);
|
||||
|
|
@ -61,6 +61,14 @@ public class UserController {
|
|||
menu.put("menuName", "入库整理");
|
||||
menu.put("menuComponent","/Rukuzhengli");
|
||||
menu.put("menuClick","Rukuzhengli");
|
||||
}else if(i==3) {
|
||||
menu.put("menuName", "库存汇总界面");
|
||||
menu.put("menuComponent","/Kucunhuizong");
|
||||
menu.put("menuClick","Kucunhuizong");
|
||||
}else if(i==4) {
|
||||
menu.put("menuName", "拣货界面");
|
||||
menu.put("menuComponent","/Jianhuojiemian");
|
||||
menu.put("menuClick","Jianhuojiemian");
|
||||
}
|
||||
menu.put("menuLevel",i);
|
||||
menu.put("menuParentCode",i);
|
||||
|
|
|
|||
|
|
@ -1,2 +1,29 @@
|
|||
package com.yc.wms.service;public interface Jianhuojiemian {
|
||||
package com.yc.wms.service;
|
||||
|
||||
import com.yc.wms.until.QueryPageUtil;
|
||||
import com.yc.wms.until.Result;
|
||||
|
||||
public interface Jianhuojiemian {
|
||||
|
||||
// 条件查询加分页
|
||||
Result QueryJson(QueryPageUtil query, com.yc.wms.bean.Jianhuojiemian jianhuojiemian);
|
||||
|
||||
//单据类型
|
||||
Result Dj();
|
||||
|
||||
//工作站
|
||||
Result Gz();
|
||||
|
||||
//拣货人
|
||||
Result Jhr();
|
||||
|
||||
//库位
|
||||
Result Kw(String w);
|
||||
|
||||
//加急标记
|
||||
Result Bj();
|
||||
|
||||
//下发人
|
||||
Result Xf();
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,2 +1,25 @@
|
|||
package com.yc.wms.service;public interface Kucunhuizong {
|
||||
package com.yc.wms.service;
|
||||
|
||||
|
||||
import com.yc.wms.until.QueryPageUtil;
|
||||
import com.yc.wms.until.Result;
|
||||
|
||||
/**
|
||||
* <p>
|
||||
* 入库汇总:
|
||||
* </p>
|
||||
*
|
||||
* @author wms
|
||||
* @since 2023-04-01
|
||||
*/
|
||||
public interface Kucunhuizong {
|
||||
|
||||
// 条件查询加分页
|
||||
Result QueryJson(QueryPageUtil query, com.yc.wms.bean.Kucunhuizong kucunhuizong);
|
||||
|
||||
//状态下拉
|
||||
Result zt();
|
||||
|
||||
//库区下拉
|
||||
Result ku();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,2 +1,318 @@
|
|||
package com.yc.wms.service.impl;public class JianhuojiemianImpl {
|
||||
package com.yc.wms.service.impl;
|
||||
|
||||
import com.yc.wms.service.Jianhuojiemian;
|
||||
import com.yc.wms.until.QueryPageUtil;
|
||||
import com.yc.wms.until.Result;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class JianhuojiemianImpl implements Jianhuojiemian {
|
||||
|
||||
@Autowired
|
||||
private NamedParameterJdbcTemplate jdbcTemplate;
|
||||
|
||||
@Override
|
||||
public Result QueryJson(QueryPageUtil query, com.yc.wms.bean.Jianhuojiemian jianhuojiemian) {
|
||||
|
||||
int pageNum = query.getPageNum();//当前页
|
||||
int pageSize = query.getPageSize();//条数
|
||||
|
||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
|
||||
String sql="select Row_number() OVER(ORDER BY t.id) as Row_Num, \n" +
|
||||
"t.id, pt.CODE pt_code,pt.ORDER_DATE, t.END_REGION,s.name s_name,z.NAME z_name,\n" +
|
||||
"pt.sourceType,bt.NAME bt_name,t.BILLCODE,i.NAME i_name,i.CODE i_code,i.UNIT,i.SHIP_RULES,\n" +
|
||||
"lc1.CODE lc1_code,st.LP ,lc2.CODE lc2_code,t.strBill4 ,t.yc_qty ,t.PLAN_QUANTITY_MU ,\n" +
|
||||
"t.MOVED_QUANTITY_MU , \n" +
|
||||
"case WHEN t.PLAN_QUANTITY_MU-t.MOVED_QUANTITY_MU <=0 then '处理完成' WHEN t.MOVED_QUANTITY_MU =0 then '未处理' else '处理中' end as Status ,\n" +
|
||||
"ik.PROP_C1 ,ik.PROP_C2 ,ik.PROP_C3 ,ik.PROP_C5 ,ik.PROP_C6 ,ik.PROP_C7 ,ik.PROP_C8 ,ik.PROP_C9 ,\n" +
|
||||
"pt.equated_Quantity ,t.BAR_CODE ,t.INVENTORY_STATUS ,pd.LINE_NUMBER ,\n" +
|
||||
"t.strBill1 ,w1.NAME w1_name,w4.NAME w4_name,t.OPERATE_TIME,t.CREATE_TIME ,t.CREATE_TIME t_date,wd.CODE wd_code,t.statusCode ,\n" +
|
||||
"t.agv_Status ,t.popular ,t.CODE t_code\n" +
|
||||
" from TASK t\n" +
|
||||
" left join PICK_TICKET_DETAIL pd on pd.id=t.PICK_TICKET_DETAIL_ID\n" +
|
||||
" left join PICK_TICKET pt on pt.id=pd.PICK_TICKET_ID\n" +
|
||||
" left join Seed_Wall s on s.id=t.Seed_Wall_ID\n" +
|
||||
" left join BILL_TYPE bt on bt.id=pt.BILL_TYPE_ID\n" +
|
||||
" left join ITEM_KEY ik on ik.id=t.ITEM_KEY_ID\n" +
|
||||
" left join ITEM i on i.id=ik.ITEM_ID\n" +
|
||||
" left join LOCATION lc1 on lc1.id=t.SRC_LOC_ID\n" +
|
||||
" left join [ZONE] z on z.id=lc1.ZONE_ID\n" +
|
||||
" left join LOCATION lc2 on lc2.id=t.DST_LOC_ID\n" +
|
||||
" left join WAVE_DOC wd on wd.id=t.WAVE_DOC_ID\n" +
|
||||
" left join WORKER w1 on w1.id=t.WORKER1_ID\n" +
|
||||
" left join WORKER w4 on w4.id=t.WORKER4_ID\n" +
|
||||
" left join stock st on st.id=t.DST_LP\n" +
|
||||
"where 1=1";
|
||||
|
||||
//子任务号
|
||||
if(jianhuojiemian.BILLCODE!=null){
|
||||
if(!jianhuojiemian.BILLCODE.trim().equals("")){
|
||||
String[] str=jianhuojiemian.BILLCODE.trim().split("\n");
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for (int i=0;i<str.length;i++){
|
||||
|
||||
if(str.length-1==i){
|
||||
sb.append("'"+ str[i]+"'");
|
||||
}else {
|
||||
sb.append("'"+ str[i]+"'"+",");
|
||||
}
|
||||
}
|
||||
sql+=" and t.BILLCODE in ("+sb.toString()+")";
|
||||
}
|
||||
}
|
||||
|
||||
//工单号
|
||||
if(jianhuojiemian.pt_code!=null){
|
||||
if(!jianhuojiemian.pt_code.trim().equals("")){
|
||||
String[] str=jianhuojiemian.pt_code.trim().split("\n");
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for (int i=0;i<str.length;i++){
|
||||
|
||||
if(str.length-1==i){
|
||||
sb.append("'"+ str[i]+"'");
|
||||
}else {
|
||||
sb.append("'"+ str[i]+"'"+",");
|
||||
}
|
||||
}
|
||||
sql+=" and pt.CODE in ("+sb.toString()+")";
|
||||
}
|
||||
}
|
||||
|
||||
//SAP类型
|
||||
if(jianhuojiemian.sourceType!=null){
|
||||
if(!jianhuojiemian.sourceType.trim().equals("")){
|
||||
sql+=" and item.name like "+"'%"+jianhuojiemian.sourceType.trim()+"%'";
|
||||
}
|
||||
}
|
||||
|
||||
//拣货库区
|
||||
if(jianhuojiemian.z_name!=null&& jianhuojiemian.z_name.length>0){
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for (int i = 0; i< jianhuojiemian.z_name.length; i++){
|
||||
if(jianhuojiemian.z_name.length-1==i){
|
||||
sb.append("'"+ jianhuojiemian.z_name[i]+"'");
|
||||
}else {
|
||||
sb.append("'"+ jianhuojiemian.z_name[i]+"'"+",");
|
||||
}
|
||||
}
|
||||
sql+=" and z.NAME in ("+sb.toString()+")";;
|
||||
}
|
||||
|
||||
//所在库位
|
||||
if(jianhuojiemian.lc2_code!=null){
|
||||
if(!jianhuojiemian.lc2_code.trim().equals("")){
|
||||
String[] str=jianhuojiemian.lc2_code.trim().split("\n");
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for (int i=0;i<str.length;i++){
|
||||
|
||||
if(str.length-1==i){
|
||||
sb.append("'"+ str[i]+"'");
|
||||
}else {
|
||||
sb.append("'"+ str[i]+"'"+",");
|
||||
}
|
||||
}
|
||||
sql+=" and lc2.CODE in ("+sb.toString()+")";
|
||||
}
|
||||
}
|
||||
|
||||
//料号
|
||||
if(jianhuojiemian.i_code!=null){
|
||||
if(!jianhuojiemian.i_code.trim().equals("")){
|
||||
String[] str=jianhuojiemian.i_code.trim().split("\n");
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for (int i=0;i<str.length;i++){
|
||||
|
||||
if(str.length-1==i){
|
||||
sb.append("'"+ str[i]+"'");
|
||||
}else {
|
||||
sb.append("'"+ str[i]+"'"+",");
|
||||
}
|
||||
}
|
||||
sql+=" and i.CODE in ("+sb.toString()+")";
|
||||
}
|
||||
}
|
||||
|
||||
//单据类型
|
||||
if(jianhuojiemian.bt_name!=null&& jianhuojiemian.bt_name.length>0){
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for (int i = 0; i< jianhuojiemian.bt_name.length; i++){
|
||||
if(jianhuojiemian.bt_name.length-1==i){
|
||||
sb.append("'"+ jianhuojiemian.bt_name[i]+"'");
|
||||
}else {
|
||||
sb.append("'"+ jianhuojiemian.bt_name[i]+"'"+",");
|
||||
}
|
||||
}
|
||||
sql+=" and bt.NAME in ("+sb.toString()+")";;
|
||||
}
|
||||
|
||||
//工作站
|
||||
if(jianhuojiemian.END_REGION!=null&& jianhuojiemian.END_REGION.length>0){
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for (int i = 0; i< jianhuojiemian.END_REGION.length; i++){
|
||||
if(jianhuojiemian.END_REGION.length-1==i){
|
||||
sb.append("'"+ jianhuojiemian.END_REGION[i]+"'");
|
||||
}else {
|
||||
sb.append("'"+ jianhuojiemian.END_REGION[i]+"'"+",");
|
||||
}
|
||||
}
|
||||
sql+=" and t.END_REGION in ("+sb.toString()+")";;
|
||||
}
|
||||
|
||||
//拣货人
|
||||
if(jianhuojiemian.w4_name!=null&& jianhuojiemian.w4_name.length>0){
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for (int i = 0; i< jianhuojiemian.w4_name.length; i++){
|
||||
if(jianhuojiemian.w4_name.length-1==i){
|
||||
sb.append("'"+ jianhuojiemian.w4_name[i]+"'");
|
||||
}else {
|
||||
sb.append("'"+ jianhuojiemian.w4_name[i]+"'"+",");
|
||||
}
|
||||
}
|
||||
sql+=" and w4.NAME in ("+sb.toString()+")";;
|
||||
}
|
||||
|
||||
//波次号
|
||||
if(jianhuojiemian.wd_code!=null){
|
||||
if(!jianhuojiemian.wd_code.trim().equals("")){
|
||||
sql+=" and wd.CODE="+"'"+jianhuojiemian.wd_code.trim()+"'";
|
||||
}
|
||||
}
|
||||
|
||||
//容器码
|
||||
if(jianhuojiemian.LP!=null){
|
||||
if(!jianhuojiemian.LP.trim().equals("")){
|
||||
sql+=" and wd.CODE="+"'"+jianhuojiemian.LP.trim()+"'";
|
||||
}
|
||||
}
|
||||
|
||||
//拣货库位
|
||||
if(jianhuojiemian.lc1_code!=null&& jianhuojiemian.lc1_code.length>0){
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for (int i = 0; i< jianhuojiemian.lc1_code.length; i++){
|
||||
if(jianhuojiemian.lc1_code.length-1==i){
|
||||
sb.append("'"+ jianhuojiemian.lc1_code[i]+"'");
|
||||
}else {
|
||||
sb.append("'"+ jianhuojiemian.lc1_code[i]+"'"+",");
|
||||
}
|
||||
}
|
||||
sql+=" and lc1.CODE in ("+sb.toString()+")";;
|
||||
}
|
||||
|
||||
//需求日期
|
||||
if(jianhuojiemian.ORDER_DATE!=null&&jianhuojiemian.ORDER_DATE.length>0){
|
||||
String startDate = simpleDateFormat.format(jianhuojiemian.ORDER_DATE[0]);
|
||||
String endDate = simpleDateFormat.format(jianhuojiemian.ORDER_DATE[1]);
|
||||
sql+=" and pt.ORDER_DATE "+"'"+startDate+"'"+" and "+ "'"+endDate+"'";
|
||||
}
|
||||
|
||||
//分配日期
|
||||
if(jianhuojiemian.CREATE_TIME!=null&&jianhuojiemian.CREATE_TIME.length>0){
|
||||
String startDate = simpleDateFormat.format(jianhuojiemian.CREATE_TIME[0]);
|
||||
String endDate = simpleDateFormat.format(jianhuojiemian.CREATE_TIME[1]);
|
||||
sql+=" and t.CREATE_TIME "+"'"+startDate+"'"+" and "+ "'"+endDate+"'";
|
||||
}
|
||||
|
||||
//拣货日期
|
||||
if(jianhuojiemian.OPERATE_TIME!=null&&jianhuojiemian.OPERATE_TIME.length>0){
|
||||
String startDate = simpleDateFormat.format(jianhuojiemian.OPERATE_TIME[0]);
|
||||
String endDate = simpleDateFormat.format(jianhuojiemian.OPERATE_TIME[1]);
|
||||
sql+=" and t.OPERATE_TIME "+"'"+startDate+"'"+" and "+ "'"+endDate+"'";
|
||||
}
|
||||
|
||||
//拣货状态
|
||||
if(jianhuojiemian.Status!=null&&!jianhuojiemian.Status.equals("")){
|
||||
if(jianhuojiemian.Status.equals("处理完成")){
|
||||
sql+=" and t.PLAN_QUANTITY_MU-t.MOVED_QUANTITY_MU <=0";
|
||||
}else if(jianhuojiemian.Status.equals("未处理")){
|
||||
sql+=" and t.MOVED_QUANTITY_MU =0";
|
||||
}else {
|
||||
sql+=" and t.MOVED_QUANTITY_MU >0 and t.MOVED_QUANTITY_MU<t.PLAN_QUANTITY_MU";
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
//加急标记
|
||||
if(jianhuojiemian.equated_Quantity!=null&& !jianhuojiemian.equated_Quantity.equals("")){
|
||||
sql+=" and pt.equated_Quantity ="+"'"+jianhuojiemian.equated_Quantity+"'";
|
||||
}
|
||||
|
||||
//下发人
|
||||
if(jianhuojiemian.strBill1!=null&& jianhuojiemian.strBill1.length>0){
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for (int i = 0; i< jianhuojiemian.strBill1.length; i++){
|
||||
if(jianhuojiemian.strBill1.length-1==i){
|
||||
sb.append("'"+ jianhuojiemian.strBill1[i]+"'");
|
||||
}else {
|
||||
sb.append("'"+ jianhuojiemian.strBill1[i]+"'"+",");
|
||||
}
|
||||
}
|
||||
sql+=" and t.strBill1 in ("+sb.toString()+")";;
|
||||
}
|
||||
|
||||
|
||||
|
||||
String sqlCount = "select count(t.id) as nums from(" + sql+") t";
|
||||
String sqlFy = "select t.* from(" + sql+") t";
|
||||
|
||||
sqlFy+= " WHERE Row_Num BETWEEN " + (pageNum-1) * pageSize + " AND " + (pageNum) * pageSize;
|
||||
//查询单数据
|
||||
Map<String,Object> listCount = jdbcTemplate.queryForMap(sqlCount, new HashMap<>());
|
||||
//查询多条数据据
|
||||
List<Map<String,Object>> maps = jdbcTemplate.queryForList(sqlFy, new HashMap<>());
|
||||
|
||||
return Result.success(Long.parseLong(listCount.get("nums").toString()),maps);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result Dj() {
|
||||
String sql="select distinct name from BILL_TYPE";
|
||||
List<Map<String,Object>> list=jdbcTemplate.queryForList(sql,new HashMap<>());
|
||||
return Result.success(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result Gz() {
|
||||
String sql="select distinct END_REGION from TASK where END_REGION is not null";
|
||||
List<Map<String,Object>> list=jdbcTemplate.queryForList(sql,new HashMap<>());
|
||||
return Result.success(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result Jhr() {
|
||||
String sql="select distinct name from WORKER";
|
||||
List<Map<String,Object>> list=jdbcTemplate.queryForList(sql,new HashMap<>());
|
||||
return Result.success(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result Kw(String w) {
|
||||
String sql="select distinct CODE from LOCATION where CODE like "+"'%"+w+"%'";
|
||||
List<Map<String,Object>> list=jdbcTemplate.queryForList(sql,new HashMap<>());
|
||||
return Result.success(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result Bj() {
|
||||
String sql="select distinct equated_Quantity from PICK_TICKET where equated_Quantity !='' and equated_Quantity is not null";
|
||||
List<Map<String,Object>> list=jdbcTemplate.queryForList(sql,new HashMap<>());
|
||||
return Result.success(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result Xf() {
|
||||
String sql=" select distinct strBill1 from TASK where strBill1 is not null";
|
||||
List<Map<String,Object>> list=jdbcTemplate.queryForList(sql,new HashMap<>());
|
||||
return Result.success(list);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,2 +1,277 @@
|
|||
package com.yc.wms.service.impl;public class KucunhuizongImpl {
|
||||
package com.yc.wms.service.impl;
|
||||
|
||||
import com.yc.wms.service.Kucunhuizong;
|
||||
import com.yc.wms.until.QueryPageUtil;
|
||||
import com.yc.wms.until.Result;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.jdbc.core.namedparam.NamedParameterJdbcTemplate;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Service
|
||||
@Slf4j
|
||||
public class KucunhuizongImpl implements Kucunhuizong {
|
||||
|
||||
@Autowired
|
||||
private NamedParameterJdbcTemplate jdbcTemplate;
|
||||
|
||||
@Override
|
||||
public Result QueryJson(QueryPageUtil query, com.yc.wms.bean.Kucunhuizong kucunhuizong) {
|
||||
|
||||
int pageNum = query.getPageNum();//当前页
|
||||
int pageSize = query.getPageSize();//条数
|
||||
|
||||
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
|
||||
|
||||
String sql="select Row_number() OVER(ORDER BY inv.id) as Row_Num,\n" +
|
||||
"max(inv.id) as id,\n" +
|
||||
"max(loc.code) as locCode,--库位号\n" +
|
||||
"max(item.code) as itemCode,--料号\n" +
|
||||
"max(item.name) as itemName,--描述\n" +
|
||||
"max(inv.BAR_CODE) as barCode,--序列号\n" +
|
||||
"max(inv.STATUS) as status,--状态\n" +
|
||||
"max(inv.LOCATION_ID) as LOCATION_ID,--库位ID\n" +
|
||||
"max(inv.ITEM_KEY_ID) as ITEM_KEY_ID,--料号属性ID\n" +
|
||||
"sum(inv.QUANTITY) as quantity,\t--库存数量\n" +
|
||||
"sum(inv.QUEUED_QUANTITY) as queuedQuantity,--占用数量\n" +
|
||||
"max(ik.PROP_C1) as propC1,--批次号\n" +
|
||||
"max(ik.PROP_C2) as propC2,--LOC\n" +
|
||||
"max(ik.PROP_C3) as propC3,--特殊标记\n" +
|
||||
"max(ik.PROP_C4) as propC4,--部门\n" +
|
||||
"max(ik.PROP_C5) as propC5,--供应商编号\n" +
|
||||
"max(ik.PROP_C6) as propC6,--申请人编号\n" +
|
||||
"max(ik.PROP_C7) as propC7,--申请人\n" +
|
||||
"max(ik.PROP_C8) as propC8,--暂存原因\n" +
|
||||
"max(ik.PROP_C9) as propC9,--工厂\n" +
|
||||
"max(inv.SOI) as soi,--入库单号\n" +
|
||||
"max(ik.PROP_D1) as propD1,--生产日期\n" +
|
||||
"max(ik.PROP_D2) as propD2,--到日期\n" +
|
||||
"max(z.name) as kqName,--库区\n" +
|
||||
"max(z.ID) as ZONE_ID,--库区ID\n" +
|
||||
"\n" +
|
||||
"case \n" +
|
||||
"\twhen max(inv.coun_Plan) is null then 0\n" +
|
||||
"\telse 1\n" +
|
||||
"end as lock,--是否盘点\n" +
|
||||
"case \n" +
|
||||
"\twhen max(z.NAME) in('7#堆垛区','3#货架区','3#料箱区') \n" +
|
||||
"then max(ls1.name) else max(ls.name) end as LSname,--AGV库位\n" +
|
||||
"max(item.Be_SAP_Item) Be_SAP_Item, --是否SAP料号\n" +
|
||||
"max(item.VOLUME) VOLUME,--体积\n" +
|
||||
"max(item.BE_WEIGHT) BE_WEIGHT,--是否危化品\n" +
|
||||
"max(item.SHIP_RULES) SHIP_RULES,--库存价值等级\n" +
|
||||
"max(item.FEE_TYPE) FEE_TYPE,--OA料号\n" +
|
||||
"max(item.SINGLE_ITEM) SINGLE_ITEM,--是否批号管理\n" +
|
||||
"max(item.BE_MARK_WEIGHT) BE_MARK_WEIGHT,--是否序列号\n" +
|
||||
"max(item.UNIT) UNIT,--单位\n" +
|
||||
"max(item.STR_EXTEND1) STR_EXTEND1,--备注\n" +
|
||||
"max(item.STR_EXTEND2) STR_EXTEND2,--币种\n" +
|
||||
"max(item.STR_EXTEND3) STR_EXTEND3,--标准价\n" +
|
||||
"max(item.STR_EXTEND4) STR_EXTEND4,--库存单位\n" +
|
||||
"ISNULL(stock1.agvFlag, 0) agvFlag,--是否在GAV仓\n" +
|
||||
"loc.id locId ,--库位id\n" +
|
||||
"max(lts.NAME) as lts_name,--库位类型\n" +
|
||||
"item.ISBOM validity,--是否有效期管理\n" +
|
||||
"CONVERT(varchar(100), min(inv.STORAGE_DATE), 20) as storageDate,--库存日期\n" +
|
||||
" max(inv.moveStatus) moveStatus,--工作站\n" +
|
||||
"inv.statuss inv_status,--退料标记\n" +
|
||||
"MAX(stock1.WEIGHT) as WEIGHT --重量\n" +
|
||||
"\n" +
|
||||
"from INVENTORY inv\n" +
|
||||
"left join ZONE kq on kq.id=inv.warehouse_Area_ID \n" +
|
||||
"left join LOCATION loc on loc.id=inv.LOCATION_ID\n" +
|
||||
"left join LOCATIONS lts on lts.id=loc.LOCATIONS_ID\n" +
|
||||
"left join STOCK stock1 on stock1.id=loc.stock\n" +
|
||||
"left join LOCATION_STORAGE ls1 on ls1.ID=stock1.locationStorage_ID\n" +
|
||||
"left join ZONE z on z.ID =loc.ZONE_ID\n" +
|
||||
"left join ITEM_KEY ik on ik.id=inv.ITEM_KEY_ID\n" +
|
||||
"left join ITEM item on item.id=ik.ITEM_ID\n" +
|
||||
"left join STOCK stock on stock.ID=inv.LP\n" +
|
||||
"left join LOCATION_STORAGE ls on ls.ID=stock.locationStorage_ID\n" +
|
||||
"where 1=1 and inv.QUANTITY>0";
|
||||
|
||||
//库位号
|
||||
if(kucunhuizong.locCode!=null){
|
||||
if(!kucunhuizong.locCode.trim().equals("")){
|
||||
String[] str=kucunhuizong.locCode.trim().split("\n");
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for (int i=0;i<str.length;i++){
|
||||
|
||||
if(str.length-1==i){
|
||||
sb.append("'"+ str[i]+"'");
|
||||
}else {
|
||||
sb.append("'"+ str[i]+"'"+",");
|
||||
}
|
||||
}
|
||||
sql+=" and loc.code in ("+sb.toString()+")";
|
||||
}
|
||||
}
|
||||
|
||||
//料号
|
||||
if(kucunhuizong.itemCode!=null){
|
||||
if(!kucunhuizong.itemCode.trim().equals("")){
|
||||
String[] str=kucunhuizong.itemCode.trim().split("\n");
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for (int i=0;i<str.length;i++){
|
||||
|
||||
if(str.length-1==i){
|
||||
sb.append("'"+ str[i]+"'");
|
||||
}else {
|
||||
sb.append("'"+ str[i]+"'"+",");
|
||||
}
|
||||
}
|
||||
sql+=" and item.code in ("+sb.toString()+")";
|
||||
}
|
||||
}
|
||||
|
||||
//物料描述
|
||||
if(kucunhuizong.itemName!=null){
|
||||
if(!kucunhuizong.itemName.trim().equals("")){
|
||||
sql+=" and item.name like "+"'%"+kucunhuizong.itemName.trim()+"%'";
|
||||
}
|
||||
}
|
||||
|
||||
//LOC
|
||||
if(kucunhuizong.propC2!=null&& kucunhuizong.propC2.length>0){
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for (int i = 0; i< kucunhuizong.propC2.length; i++){
|
||||
if(kucunhuizong.propC2.length-1==i){
|
||||
sb.append("'"+ kucunhuizong.propC2[i]+"'");
|
||||
}else {
|
||||
sb.append("'"+ kucunhuizong.propC2[i]+"'"+",");
|
||||
}
|
||||
}
|
||||
sql+=" and ik.PROP_C2 in ("+sb.toString()+")";;
|
||||
}
|
||||
|
||||
//库存状态
|
||||
if(kucunhuizong.status!=null&& kucunhuizong.status.length>0){
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for (int i = 0; i< kucunhuizong.status.length; i++){
|
||||
if(kucunhuizong.status.length-1==i){
|
||||
sb.append("'"+ kucunhuizong.status[i]+"'");
|
||||
}else {
|
||||
sb.append("'"+ kucunhuizong.status[i]+"'"+",");
|
||||
}
|
||||
}
|
||||
sql+=" and inv.STATUS in ("+sb.toString()+")";;
|
||||
}
|
||||
|
||||
//库区
|
||||
if(kucunhuizong.kqName!=null&& kucunhuizong.kqName.length>0){
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for (int i = 0; i< kucunhuizong.kqName.length; i++){
|
||||
if(kucunhuizong.kqName.length-1==i){
|
||||
sb.append("'"+ kucunhuizong.kqName[i]+"'");
|
||||
}else {
|
||||
sb.append("'"+ kucunhuizong.kqName[i]+"'"+",");
|
||||
}
|
||||
}
|
||||
sql+=" and z.name in ("+sb.toString()+")";;
|
||||
}
|
||||
|
||||
//批次号
|
||||
if(kucunhuizong.propC1!=null){
|
||||
if(!kucunhuizong.propC1.trim().equals("")){
|
||||
String[] str=kucunhuizong.propC1.trim().split("\n");
|
||||
StringBuffer sb = new StringBuffer();
|
||||
for (int i=0;i<str.length;i++){
|
||||
|
||||
if(str.length-1==i){
|
||||
sb.append("'"+ str[i]+"'");
|
||||
}else {
|
||||
sb.append("'"+ str[i]+"'"+",");
|
||||
}
|
||||
}
|
||||
sql+=" and ik.PROP_C3 in ("+sb.toString()+")";
|
||||
}
|
||||
}
|
||||
|
||||
//特殊标记
|
||||
if(kucunhuizong.propC3!=null){
|
||||
if(!kucunhuizong.propC3.trim().equals("")){
|
||||
sql+=" and item.name like "+"'%"+kucunhuizong.propC3.trim()+"%'";
|
||||
}
|
||||
}
|
||||
|
||||
//存货日期
|
||||
if(kucunhuizong.storageDate!=null&&kucunhuizong.storageDate.length>0){
|
||||
String startDate = simpleDateFormat.format(kucunhuizong.storageDate[0]);
|
||||
String endDate = simpleDateFormat.format(kucunhuizong.storageDate[1]);
|
||||
sql+=" and inv.STORAGE_DATE between "+"'"+startDate+"'"+" and "+ "'"+endDate+"'";
|
||||
}
|
||||
|
||||
//供应商号
|
||||
if(kucunhuizong.propC5!=null){
|
||||
if(!kucunhuizong.propC5.trim().equals("")){
|
||||
|
||||
sql+=" and ik.PROP_C5 = "+"'"+kucunhuizong.propC5.trim()+"'";
|
||||
}
|
||||
}
|
||||
|
||||
//是否盘点
|
||||
if(kucunhuizong.coun_Plan!=null&& !kucunhuizong.coun_Plan.equals("")){
|
||||
if (Integer.parseInt(kucunhuizong.coun_Plan)==0) {
|
||||
sql+=" and inv.coun_Plan is null";
|
||||
}else {
|
||||
sql+=" and inv.coun_Plan is not null";
|
||||
}
|
||||
}
|
||||
|
||||
//是否批次号管理
|
||||
if(kucunhuizong.SINGLE_ITEM!=null&& !kucunhuizong.SINGLE_ITEM.equals("")){
|
||||
|
||||
if (Integer.parseInt(kucunhuizong.SINGLE_ITEM)==0) {
|
||||
sql+=" and ik.PROP_C1 is null";
|
||||
}else {
|
||||
sql+=" and ik.PROP_C1 is not null";
|
||||
}
|
||||
}
|
||||
|
||||
//是否有效期管理
|
||||
if(kucunhuizong.validity!=null&& !kucunhuizong.validity.equals("")){
|
||||
|
||||
sql+=" and item.ISBOM = "+"'"+kucunhuizong.validity+"'";
|
||||
}
|
||||
|
||||
//退料标记
|
||||
if(kucunhuizong.statuss!=null&& !kucunhuizong.statuss.equals("")){
|
||||
|
||||
sql+=" and inv.statuss = "+"'"+kucunhuizong.statuss+"'";
|
||||
}
|
||||
|
||||
|
||||
String sqlCount = "select count(t.id) as nums from(" + sql+"\n " +
|
||||
"group by inv.id,item.id,loc.id,ik.PROP_C1,ik.PROP_C2,ik.PROP_C3,ik.PROP_C5,ik.PROP_C7,inv.STATUS,item.isBOM,inv.statuss,stock1.agvFlag"+") t";
|
||||
String sqlFy = "select t.* from(" + sql+"\n " +
|
||||
"group by inv.id,item.id,loc.id,ik.PROP_C1,ik.PROP_C2,ik.PROP_C3,ik.PROP_C5,ik.PROP_C7,inv.STATUS,item.isBOM,inv.statuss,stock1.agvFlag"+") t";
|
||||
|
||||
|
||||
sqlFy+= " WHERE Row_Num BETWEEN " + (pageNum-1) * pageSize + " AND " + (pageNum) * pageSize;
|
||||
//查询单数据
|
||||
Map<String,Object> listCount = jdbcTemplate.queryForMap(sqlCount, new HashMap<>());
|
||||
//查询多条数据据
|
||||
List<Map<String,Object>> maps = jdbcTemplate.queryForList(sqlFy, new HashMap<>());
|
||||
|
||||
return Result.success(Long.parseLong(listCount.get("nums").toString()),maps);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result zt() {
|
||||
String sql="select distinct STATUS from INVENTORY";
|
||||
List<Map<String,Object>> list=jdbcTemplate.queryForList(sql,new HashMap<>());
|
||||
return Result.success(list);
|
||||
}
|
||||
|
||||
@Override
|
||||
public Result ku() {
|
||||
String sql="select distinct name from [ZONE]";
|
||||
List<Map<String,Object>> list=jdbcTemplate.queryForList(sql,new HashMap<>());
|
||||
return Result.success(list);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue