740 lines
30 KiB
Vue
740 lines
30 KiB
Vue
<template>
|
|
<div class="app-container">
|
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="68px">
|
|
<el-form-item label="出库单号" prop="stockoutId">
|
|
<el-input
|
|
v-model="queryParams.stockoutId"
|
|
placeholder="请输入出库单号"
|
|
clearable
|
|
@keyup.enter.native="handleQuery"
|
|
/>
|
|
</el-form-item>
|
|
<el-form-item label="出库类型" prop="outType">
|
|
<el-select v-model="queryParams.outType" placeholder="请选择出库类型" clearable>
|
|
<el-option
|
|
v-for="dict in dict.type.out_bill_type"
|
|
:key="dict.value"
|
|
:label="dict.label"
|
|
:value="dict.value"
|
|
/>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item label="出库状态" prop="status">
|
|
<el-select v-model="queryParams.status" placeholder="请选择出库状态" clearable>
|
|
<el-option
|
|
v-for="dict in dict.type.out_bill_status"
|
|
:key="dict.value"
|
|
:label="dict.label"
|
|
:value="dict.value"
|
|
/>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item label="订单号" prop="erpStockoutId">
|
|
<el-input
|
|
v-model="queryParams.erpStockoutId"
|
|
placeholder="请输入订单号"
|
|
clearable
|
|
@keyup.enter.native="handleQuery"
|
|
/>
|
|
</el-form-item>
|
|
<el-form-item label="品号" prop="productId">
|
|
<el-input
|
|
v-model="queryParams.productId"
|
|
placeholder="请输入品号"
|
|
clearable
|
|
@keyup.enter.native="handleQuery"
|
|
/>
|
|
</el-form-item>
|
|
|
|
<el-form-item label="品名" prop="productName">
|
|
<el-input
|
|
v-model="queryParams.productName"
|
|
placeholder="请输入品名"
|
|
clearable
|
|
@keyup.enter.native="handleQuery"
|
|
/>
|
|
</el-form-item>
|
|
<el-form-item label="序列号" prop="spare4">
|
|
<el-input
|
|
v-model="queryParams.spare4"
|
|
placeholder="请输入序列号"
|
|
clearable
|
|
@keyup.enter.native="handleQuery"
|
|
/>
|
|
</el-form-item>
|
|
<el-form-item label="开始时间" prop="startTime"> <!-- 开始时间 -->
|
|
<el-date-picker clearable
|
|
v-model="queryParams.startTime"
|
|
type="datetime"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
placeholder="请选择开始时间" style="width: 206px">
|
|
</el-date-picker>
|
|
</el-form-item>
|
|
|
|
<el-form-item label="结束时间" prop="finishTime"> <!-- 结束时间 -->
|
|
<el-date-picker clearable
|
|
v-model="queryParams.finishTime"
|
|
type="datetime"
|
|
value-format="yyyy-MM-dd HH:mm:ss"
|
|
placeholder="请选择结束时间" style="width: 206px">
|
|
</el-date-picker>
|
|
</el-form-item>
|
|
<el-form-item>
|
|
<el-button type="primary" icon="el-icon-search" size="mini" @click="handleQuery">搜索</el-button>
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
</el-form-item>
|
|
</el-form>
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
<!-- <el-col :span="1.5">-->
|
|
<!-- <el-button-->
|
|
<!-- type="primary"-->
|
|
<!-- plain-->
|
|
<!-- icon="el-icon-plus"-->
|
|
<!-- size="mini"-->
|
|
<!-- @click="handleAdd"-->
|
|
<!-- v-hasPermi="['search:ViewStockoutHistory:add']"-->
|
|
<!-- >新增</el-button>-->
|
|
<!-- </el-col>-->
|
|
<!-- <el-col :span="1.5">-->
|
|
<!-- <el-button-->
|
|
<!-- type="success"-->
|
|
<!-- plain-->
|
|
<!-- icon="el-icon-edit"-->
|
|
<!-- size="mini"-->
|
|
<!-- :disabled="single"-->
|
|
<!-- @click="handleUpdate"-->
|
|
<!-- v-hasPermi="['search:ViewStockoutHistory:edit']"-->
|
|
<!-- >修改</el-button>-->
|
|
<!-- </el-col>-->
|
|
<!-- <el-col :span="1.5">-->
|
|
<!-- <el-button-->
|
|
<!-- type="danger"-->
|
|
<!-- plain-->
|
|
<!-- icon="el-icon-delete"-->
|
|
<!-- size="mini"-->
|
|
<!-- :disabled="multiple"-->
|
|
<!-- @click="handleDelete"-->
|
|
<!-- v-hasPermi="['search:ViewStockoutHistory:remove']"-->
|
|
<!-- >删除</el-button>-->
|
|
<!-- </el-col>-->
|
|
<el-col :span="1.5">
|
|
<el-button
|
|
type="warning"
|
|
plain
|
|
icon="el-icon-download"
|
|
size="mini"
|
|
@click="handleExport"
|
|
v-hasPermi="['search:ViewStockoutHistory:export']"
|
|
>导出</el-button>
|
|
</el-col>
|
|
<right-toolbar :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar>
|
|
</el-row>
|
|
|
|
<el-table v-loading="loading" :data="ViewStockoutHistoryList" @selection-change="handleSelectionChange" max-height="650">
|
|
<el-table-column type="selection" width="55" align="center" />
|
|
<el-table-column width="160" label="出库单号" align="left" prop="stockoutId" />
|
|
<el-table-column width="160" label="出库子单号" align="left" prop="stockoutDetailId" />
|
|
<el-table-column label="出库类型" align="center" prop="outType">
|
|
<template slot-scope="scope">
|
|
<dict-tag :options="dict.type.out_bill_type" :value="scope.row.outType"/>
|
|
</template>
|
|
</el-table-column>
|
|
<el-table-column label="出库状态" align="center" prop="status">
|
|
<template slot-scope="scope">
|
|
<dict-tag :options="dict.type.out_bill_status" :value="scope.row.status"/>
|
|
</template>
|
|
</el-table-column>
|
|
|
|
<el-table-column label="创建人ID" align="center" prop="createManId" width="160"/>
|
|
<el-table-column width="160" label="订单号" align="left" prop="erpStockoutId" />
|
|
<el-table-column label="创建时间" align="center" prop="createDate" width="160" sortable/>
|
|
<el-table-column label="开始时间" align="center" prop="startDate" width="160"/>
|
|
<el-table-column label="完成时间" align="center" prop="finishDate" width="160"/>
|
|
<el-table-column width="160" label="品号" align="left" prop="productId" />
|
|
<el-table-column width="160" label="品名" align="left" prop="productName" />
|
|
<el-table-column width="160" label="出库数量" align="right" prop="quantity" />
|
|
<el-table-column width="160" label="分配数量" align="right" prop="allotQuantity" />
|
|
<el-table-column width="160" label="确认数量" align="right" prop="assignNum" />
|
|
<el-table-column width="160" label="批次号" align="left" prop="lotNo" />
|
|
<el-table-column width="160" label="客商名称" align="left" prop="customerName" />
|
|
<!-- <el-table-column label="物料主键" align="center" prop="productGuid" />-->
|
|
<!-- <el-table-column width="120" label="产品分类" align="left" prop="parentId" />-->
|
|
<el-table-column width="160" label="品号描述" align="left" prop="price" />
|
|
<el-table-column width="160" label="英文描述" align="left" prop="cargoNo" />
|
|
<el-table-column width="160" label="图号" align="left" prop="unit" />
|
|
<el-table-column width="160" label="规格" align="left" prop="spec" />
|
|
<!-- <el-table-column label="型号" align="center" prop="spare1" />-->
|
|
<!-- <el-table-column label="单件净重" align="center" prop="spare2" />-->
|
|
<!-- <el-table-column label="颜色" align="center" prop="spare3" />-->
|
|
<!-- <el-table-column label="序列号" align="center" prop="spare4" />-->
|
|
<!-- <el-table-column label="电压" align="center" prop="spare5" />-->
|
|
<!-- <el-table-column label="功率" align="center" prop="spare6" />-->
|
|
<!-- <el-table-column label="相位" align="center" prop="spare7" />-->
|
|
<!-- <el-table-column label="毛重" align="center" prop="spare8" />-->
|
|
<el-table-column width="160" label="NC号" align="left" prop="spare9" />
|
|
<el-table-column width="160" label="电源线" align="left" prop="spare10" />
|
|
<el-table-column width="160" label="插头" align="left" prop="spare11" />
|
|
<el-table-column width="160" label="接嘴" align="left" prop="spare12" />
|
|
<el-table-column width="160" label="快捷码" align="left" prop="spare13" />
|
|
<el-table-column width="160" label="库存单位编号" align="left" prop="spare14" />
|
|
<el-table-column width="160" label="库存单位名称" align="left" prop="spare15" />
|
|
<el-table-column width="160" label="品号群组" align="left" prop="spare16" />
|
|
<el-table-column width="160" label="归类品" align="left" prop="spare17" />
|
|
<el-table-column width="160" label="计量体系" align="left" prop="spare18" />
|
|
<el-table-column width="160" label="群组名称" align="left" prop="spare19" />
|
|
<el-table-column width="160" label="批号管理" align="left" prop="spare20" />
|
|
<el-table-column width="160" label="状态" align="left" prop="spare21" />
|
|
<el-table-column width="160" label="产品大类" align="left" prop="spare22" />
|
|
<el-table-column width="160" label="产品二类" align="left" prop="spare23" />
|
|
<el-table-column width="160" label="产品线/产品系列" align="left" prop="spare24" />
|
|
<el-table-column width="160" label="BOM状态" align="left" prop="spare25" />
|
|
<el-table-column width="160" label="产品定位" align="left" prop="spare26" />
|
|
<el-table-column width="160" label="电脑板型号" align="left" prop="spare27" />
|
|
<el-table-column width="160" label="非标要求" align="left" prop="spare28" />
|
|
<el-table-column width="160" label="品牌" align="left" prop="spare29" />
|
|
<el-table-column width="160" label="非标颜色" align="left" prop="spare30" />
|
|
<el-table-column width="160" label="主颜色" align="left" prop="spare31" />
|
|
<el-table-column width="160" label="辅助颜色" align="left" prop="spare32" />
|
|
<el-table-column width="160" label="是否标准款" align="left" prop="spare33" />
|
|
<el-table-column width="160" label="包装方式" align="left" prop="spare34" />
|
|
<el-table-column width="160" label="主要包装方式" align="left" prop="spare35" />
|
|
<el-table-column width="160" label="长" align="right" prop="spare36" />
|
|
<el-table-column width="160" label="宽" align="right" prop="spare37" />
|
|
<el-table-column width="160" label="高" align="right" prop="spare38" />
|
|
<el-table-column width="160" label="包装材积" align="right" prop="spare39" />
|
|
<el-table-column width="160" label="描述" align="left" prop="remark" />
|
|
<!-- <el-table-column width="120" label="操作" align="center" class-name="small-padding fixed-width">-->
|
|
<!-- <template slot-scope="scope">-->
|
|
<!-- <el-button-->
|
|
<!-- size="mini"-->
|
|
<!-- type="text"-->
|
|
<!-- icon="el-icon-edit"-->
|
|
<!-- @click="handleUpdate(scope.row)"-->
|
|
<!-- v-hasPermi="['search:ViewStockoutHistory:edit']"-->
|
|
<!-- >修改</el-button>-->
|
|
<!-- <el-button-->
|
|
<!-- size="mini"-->
|
|
<!-- type="text"-->
|
|
<!-- icon="el-icon-delete"-->
|
|
<!-- @click="handleDelete(scope.row)"-->
|
|
<!-- v-hasPermi="['search:ViewStockoutHistory:remove']"-->
|
|
<!-- >删除</el-button>-->
|
|
<!-- </template>-->
|
|
<!-- </el-table-column>-->
|
|
</el-table>
|
|
|
|
<pagination
|
|
v-show="total>0"
|
|
:total="total"
|
|
:page.sync="queryParams.pageNum"
|
|
:limit.sync="queryParams.pageSize"
|
|
@pagination="getList"
|
|
/>
|
|
|
|
<!-- 添加或修改出库单据历史对话框 -->
|
|
<el-dialog :title="title" :visible.sync="open" width="500px" append-to-body>
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="80px">
|
|
<el-form-item label="出库单号" prop="stockoutId">
|
|
<el-input v-model="form.stockoutId" placeholder="请输入出库单号" />
|
|
</el-form-item>
|
|
<el-form-item label="出库类型" prop="outType">
|
|
<el-select v-model="form.outType" placeholder="请选择出库类型">
|
|
<el-option
|
|
v-for="dict in dict.type.out_bill_type"
|
|
:key="dict.value"
|
|
:label="dict.label"
|
|
:value="dict.value"
|
|
></el-option>
|
|
</el-select>
|
|
</el-form-item>
|
|
<el-form-item label="创建日期" prop="createDate">
|
|
<el-input v-model="form.createDate" placeholder="请输入创建日期" />
|
|
</el-form-item>
|
|
<el-form-item label="创建人ID" prop="createManId">
|
|
<el-input v-model="form.createManId" placeholder="请输入创建人ID" />
|
|
</el-form-item>
|
|
<el-form-item label="出库状态" prop="status">
|
|
<el-radio-group v-model="form.status">
|
|
<el-radio
|
|
v-for="dict in dict.type.out_bill_status"
|
|
:key="dict.value"
|
|
:label="dict.value"
|
|
>{{dict.label}}</el-radio>
|
|
</el-radio-group>
|
|
</el-form-item>
|
|
<el-form-item label="出库来源" prop="stockoutSource">
|
|
<el-input v-model="form.stockoutSource" placeholder="请输入出库来源" />
|
|
</el-form-item>
|
|
<el-form-item label="出口" prop="exitId">
|
|
<el-input v-model="form.exitId" placeholder="请输入出口" />
|
|
</el-form-item>
|
|
<el-form-item label="仓库ID" prop="warehouseId">
|
|
<el-input v-model="form.warehouseId" placeholder="请输入仓库ID" />
|
|
</el-form-item>
|
|
<el-form-item label="出库明细ID" prop="stockoutDetailId">
|
|
<el-input v-model="form.stockoutDetailId" placeholder="请输入出库明细ID" />
|
|
</el-form-item>
|
|
<el-form-item label="批次号" prop="lotNo">
|
|
<el-input v-model="form.lotNo" placeholder="请输入批次号" />
|
|
</el-form-item>
|
|
<el-form-item label="出库数量" prop="quantity">
|
|
<el-input v-model="form.quantity" placeholder="请输入出库数量" />
|
|
</el-form-item>
|
|
<el-form-item label="分配数量" prop="allotQuantity">
|
|
<el-input v-model="form.allotQuantity" placeholder="请输入分配数量" />
|
|
</el-form-item>
|
|
<el-form-item label="分配编号" prop="assignNum">
|
|
<el-input v-model="form.assignNum" placeholder="请输入分配编号" />
|
|
</el-form-item>
|
|
<el-form-item label="ERP出库单ID" prop="erpStockoutId">
|
|
<el-input v-model="form.erpStockoutId" placeholder="请输入ERP出库单ID" />
|
|
</el-form-item>
|
|
<el-form-item label="客商编号" prop="entryid">
|
|
<el-input v-model="form.entryid" placeholder="请输入客商编号" />
|
|
</el-form-item>
|
|
<el-form-item label="客商名称" prop="customerName">
|
|
<el-input v-model="form.customerName" placeholder="请输入客商名称" />
|
|
</el-form-item>
|
|
<el-form-item label="物料主键" prop="productGuid">
|
|
<el-input v-model="form.productGuid" placeholder="请输入物料主键" />
|
|
</el-form-item>
|
|
<el-form-item label="品号" prop="productId">
|
|
<el-input v-model="form.productId" placeholder="请输入品号" />
|
|
</el-form-item>
|
|
<el-form-item label="产品分类" prop="parentId">
|
|
<el-input v-model="form.parentId" placeholder="请输入产品分类" />
|
|
</el-form-item>
|
|
<el-form-item label="品号描述" prop="price">
|
|
<el-input v-model="form.price" placeholder="请输入品号描述" />
|
|
</el-form-item>
|
|
<el-form-item label="英文描述" prop="cargoNo">
|
|
<el-input v-model="form.cargoNo" placeholder="请输入英文描述" />
|
|
</el-form-item>
|
|
<el-form-item label="图号" prop="unit">
|
|
<el-input v-model="form.unit" placeholder="请输入图号" />
|
|
</el-form-item>
|
|
<el-form-item label="规格" prop="spec">
|
|
<el-input v-model="form.spec" placeholder="请输入规格" />
|
|
</el-form-item>
|
|
<el-form-item label="描述" prop="remark">
|
|
<el-input v-model="form.remark" placeholder="请输入描述" />
|
|
</el-form-item>
|
|
<el-form-item label="型号" prop="spare1">
|
|
<el-input v-model="form.spare1" placeholder="请输入型号" />
|
|
</el-form-item>
|
|
<el-form-item label="单件净重" prop="spare2">
|
|
<el-input v-model="form.spare2" placeholder="请输入单件净重" />
|
|
</el-form-item>
|
|
<el-form-item label="颜色" prop="spare3">
|
|
<el-input v-model="form.spare3" placeholder="请输入颜色" />
|
|
</el-form-item>
|
|
<el-form-item label="序列号" prop="spare4">
|
|
<el-input v-model="form.spare4" placeholder="请输入序列号" />
|
|
</el-form-item>
|
|
<el-form-item label="电压" prop="spare5">
|
|
<el-input v-model="form.spare5" placeholder="请输入电压" />
|
|
</el-form-item>
|
|
<el-form-item label="功率" prop="spare6">
|
|
<el-input v-model="form.spare6" placeholder="请输入功率" />
|
|
</el-form-item>
|
|
<el-form-item label="品名" prop="productName">
|
|
<el-input v-model="form.productName" placeholder="请输入品名" />
|
|
</el-form-item>
|
|
<el-form-item label="相位" prop="spare7">
|
|
<el-input v-model="form.spare7" placeholder="请输入相位" />
|
|
</el-form-item>
|
|
<el-form-item label="毛重" prop="spare8">
|
|
<el-input v-model="form.spare8" placeholder="请输入毛重" />
|
|
</el-form-item>
|
|
<el-form-item label="NC号" prop="spare9">
|
|
<el-input v-model="form.spare9" placeholder="请输入NC号" />
|
|
</el-form-item>
|
|
<el-form-item label="电源线" prop="spare10">
|
|
<el-input v-model="form.spare10" placeholder="请输入电源线" />
|
|
</el-form-item>
|
|
<el-form-item label="插头" prop="spare11">
|
|
<el-input v-model="form.spare11" placeholder="请输入插头" />
|
|
</el-form-item>
|
|
<el-form-item label="接嘴" prop="spare12">
|
|
<el-input v-model="form.spare12" placeholder="请输入接嘴" />
|
|
</el-form-item>
|
|
<el-form-item label="快捷码" prop="spare13">
|
|
<el-input v-model="form.spare13" placeholder="请输入快捷码" />
|
|
</el-form-item>
|
|
<el-form-item label="库存单位编号" prop="spare14">
|
|
<el-input v-model="form.spare14" placeholder="请输入库存单位编号" />
|
|
</el-form-item>
|
|
<el-form-item label="库存单位名称" prop="spare15">
|
|
<el-input v-model="form.spare15" placeholder="请输入库存单位名称" />
|
|
</el-form-item>
|
|
<el-form-item label="品号群组" prop="spare16">
|
|
<el-input v-model="form.spare16" placeholder="请输入品号群组" />
|
|
</el-form-item>
|
|
<el-form-item label="归类品" prop="spare17">
|
|
<el-input v-model="form.spare17" placeholder="请输入归类品" />
|
|
</el-form-item>
|
|
<el-form-item label="计量体系" prop="spare18">
|
|
<el-input v-model="form.spare18" placeholder="请输入计量体系" />
|
|
</el-form-item>
|
|
<el-form-item label="群组名称" prop="spare19">
|
|
<el-input v-model="form.spare19" placeholder="请输入群组名称" />
|
|
</el-form-item>
|
|
<el-form-item label="批号管理" prop="spare20">
|
|
<el-input v-model="form.spare20" placeholder="请输入批号管理" />
|
|
</el-form-item>
|
|
<el-form-item label="状态" prop="spare21">
|
|
<el-input v-model="form.spare21" placeholder="请输入状态" />
|
|
</el-form-item>
|
|
<el-form-item label="产品大类" prop="spare22">
|
|
<el-input v-model="form.spare22" placeholder="请输入产品大类" />
|
|
</el-form-item>
|
|
<el-form-item label="产品二类" prop="spare23">
|
|
<el-input v-model="form.spare23" placeholder="请输入产品二类" />
|
|
</el-form-item>
|
|
<el-form-item label="产品线/产品系列" prop="spare24">
|
|
<el-input v-model="form.spare24" placeholder="请输入产品线/产品系列" />
|
|
</el-form-item>
|
|
<el-form-item label="BOM状态" prop="spare25">
|
|
<el-input v-model="form.spare25" placeholder="请输入BOM状态" />
|
|
</el-form-item>
|
|
<el-form-item label="产品定位" prop="spare26">
|
|
<el-input v-model="form.spare26" placeholder="请输入产品定位" />
|
|
</el-form-item>
|
|
<el-form-item label="电脑板型号" prop="spare27">
|
|
<el-input v-model="form.spare27" placeholder="请输入电脑板型号" />
|
|
</el-form-item>
|
|
<el-form-item label="非标要求" prop="spare28">
|
|
<el-input v-model="form.spare28" placeholder="请输入非标要求" />
|
|
</el-form-item>
|
|
<el-form-item label="品牌" prop="spare29">
|
|
<el-input v-model="form.spare29" placeholder="请输入品牌" />
|
|
</el-form-item>
|
|
<el-form-item label="非标颜色" prop="spare30">
|
|
<el-input v-model="form.spare30" placeholder="请输入非标颜色" />
|
|
</el-form-item>
|
|
<el-form-item label="主颜色" prop="spare31">
|
|
<el-input v-model="form.spare31" placeholder="请输入主颜色" />
|
|
</el-form-item>
|
|
<el-form-item label="辅助颜色" prop="spare32">
|
|
<el-input v-model="form.spare32" placeholder="请输入辅助颜色" />
|
|
</el-form-item>
|
|
<el-form-item label="是否标准款" prop="spare33">
|
|
<el-input v-model="form.spare33" placeholder="请输入是否标准款" />
|
|
</el-form-item>
|
|
<el-form-item label="包装方式" prop="spare34">
|
|
<el-input v-model="form.spare34" placeholder="请输入包装方式" />
|
|
</el-form-item>
|
|
<el-form-item label="主要包装方式" prop="spare35">
|
|
<el-input v-model="form.spare35" placeholder="请输入主要包装方式" />
|
|
</el-form-item>
|
|
<el-form-item label="长" prop="spare36">
|
|
<el-input v-model="form.spare36" placeholder="请输入长" />
|
|
</el-form-item>
|
|
<el-form-item label="宽" prop="spare37">
|
|
<el-input v-model="form.spare37" placeholder="请输入宽" />
|
|
</el-form-item>
|
|
<el-form-item label="高" prop="spare38">
|
|
<el-input v-model="form.spare38" placeholder="请输入高" />
|
|
</el-form-item>
|
|
<el-form-item label="包装材积" prop="spare39">
|
|
<el-input v-model="form.spare39" placeholder="请输入包装材积" />
|
|
</el-form-item>
|
|
</el-form>
|
|
<div slot="footer" class="dialog-footer">
|
|
<el-button type="primary" @click="submitForm">确 定</el-button>
|
|
<el-button @click="cancel">取 消</el-button>
|
|
</div>
|
|
</el-dialog>
|
|
</div>
|
|
</template>
|
|
|
|
<script>
|
|
import { listViewStockoutHistory, getViewStockoutHistory, delViewStockoutHistory, addViewStockoutHistory, updateViewStockoutHistory } from "@/api/search/ViewStockoutHistory"
|
|
|
|
export default {
|
|
name: "ViewStockoutHistory",
|
|
dicts: ['out_bill_type', 'out_bill_status'],
|
|
data() {
|
|
return {
|
|
// 遮罩层
|
|
loading: true,
|
|
// 选中数组
|
|
ids: [],
|
|
// 非单个禁用
|
|
single: true,
|
|
// 非多个禁用
|
|
multiple: true,
|
|
// 显示搜索条件
|
|
showSearch: true,
|
|
// 总条数
|
|
total: 0,
|
|
// 出库单据历史表格数据
|
|
ViewStockoutHistoryList: [],
|
|
// 弹出层标题
|
|
title: "",
|
|
// 是否显示弹出层
|
|
open: false,
|
|
// 查询参数
|
|
queryParams: {
|
|
pageNum: 1,
|
|
pageSize: 10,
|
|
stockoutId: null,
|
|
outType: null,
|
|
createDate: null,
|
|
createManId: null,
|
|
status: null,
|
|
stockoutSource: null,
|
|
exitId: null,
|
|
warehouseId: null,
|
|
stockoutDetailId: null,
|
|
lotNo: null,
|
|
quantity: null,
|
|
allotQuantity: null,
|
|
assignNum: null,
|
|
erpStockoutId: null,
|
|
entryid: null,
|
|
customerName: null,
|
|
productGuid: null,
|
|
productId: null,
|
|
parentId: null,
|
|
price: null,
|
|
cargoNo: null,
|
|
unit: null,
|
|
spec: null,
|
|
remark: null,
|
|
spare1: null,
|
|
spare2: null,
|
|
spare3: null,
|
|
spare4: null,
|
|
spare5: null,
|
|
spare6: null,
|
|
productName: null,
|
|
spare7: null,
|
|
spare8: null,
|
|
spare9: null,
|
|
spare10: null,
|
|
spare11: null,
|
|
spare12: null,
|
|
spare13: null,
|
|
spare14: null,
|
|
spare15: null,
|
|
spare16: null,
|
|
spare17: null,
|
|
spare18: null,
|
|
spare19: null,
|
|
spare20: null,
|
|
spare21: null,
|
|
spare22: null,
|
|
spare23: null,
|
|
spare24: null,
|
|
spare25: null,
|
|
spare26: null,
|
|
spare27: null,
|
|
spare28: null,
|
|
spare29: null,
|
|
spare30: null,
|
|
spare31: null,
|
|
spare32: null,
|
|
spare33: null,
|
|
spare34: null,
|
|
spare35: null,
|
|
spare36: null,
|
|
spare37: null,
|
|
spare38: null,
|
|
spare39: null,
|
|
startTime: null,
|
|
finishTime: null
|
|
},
|
|
// 表单参数
|
|
form: {},
|
|
// 表单校验
|
|
rules: {
|
|
stockoutId: [
|
|
{ required: true, message: "出库单号不能为空", trigger: "blur" }
|
|
],
|
|
outType: [
|
|
{ required: true, message: "出库类型不能为空", trigger: "change" }
|
|
],
|
|
createDate: [
|
|
{ required: true, message: "创建日期不能为空", trigger: "blur" }
|
|
],
|
|
status: [
|
|
{ required: true, message: "出库状态不能为空", trigger: "change" }
|
|
],
|
|
stockoutDetailId: [
|
|
{ required: true, message: "出库明细ID不能为空", trigger: "blur" }
|
|
],
|
|
}
|
|
}
|
|
},
|
|
created() {
|
|
this.getList()
|
|
},
|
|
methods: {
|
|
/** 查询出库单据历史列表 */
|
|
getList() {
|
|
this.loading = true
|
|
listViewStockoutHistory(this.queryParams).then(response => {
|
|
this.ViewStockoutHistoryList = response.rows
|
|
this.total = response.total
|
|
this.loading = false
|
|
})
|
|
},
|
|
// 取消按钮
|
|
cancel() {
|
|
this.open = false
|
|
this.reset()
|
|
},
|
|
// 表单重置
|
|
reset() {
|
|
this.form = {
|
|
stockoutId: null,
|
|
outType: null,
|
|
createDate: null,
|
|
createManId: null,
|
|
status: null,
|
|
stockoutSource: null,
|
|
exitId: null,
|
|
warehouseId: null,
|
|
stockoutDetailId: null,
|
|
lotNo: null,
|
|
quantity: null,
|
|
allotQuantity: null,
|
|
assignNum: null,
|
|
erpStockoutId: null,
|
|
entryid: null,
|
|
customerName: null,
|
|
productGuid: null,
|
|
productId: null,
|
|
parentId: null,
|
|
price: null,
|
|
cargoNo: null,
|
|
unit: null,
|
|
spec: null,
|
|
remark: null,
|
|
spare1: null,
|
|
spare2: null,
|
|
spare3: null,
|
|
spare4: null,
|
|
spare5: null,
|
|
spare6: null,
|
|
productName: null,
|
|
spare7: null,
|
|
spare8: null,
|
|
spare9: null,
|
|
spare10: null,
|
|
spare11: null,
|
|
spare12: null,
|
|
spare13: null,
|
|
spare14: null,
|
|
spare15: null,
|
|
spare16: null,
|
|
spare17: null,
|
|
spare18: null,
|
|
spare19: null,
|
|
spare20: null,
|
|
spare21: null,
|
|
spare22: null,
|
|
spare23: null,
|
|
spare24: null,
|
|
spare25: null,
|
|
spare26: null,
|
|
spare27: null,
|
|
spare28: null,
|
|
spare29: null,
|
|
spare30: null,
|
|
spare31: null,
|
|
spare32: null,
|
|
spare33: null,
|
|
spare34: null,
|
|
spare35: null,
|
|
spare36: null,
|
|
spare37: null,
|
|
spare38: null,
|
|
spare39: null
|
|
}
|
|
this.resetForm("form")
|
|
},
|
|
/** 搜索按钮操作 */
|
|
handleQuery() {
|
|
this.queryParams.pageNum = 1
|
|
this.getList()
|
|
},
|
|
/** 重置按钮操作 */
|
|
resetQuery() {
|
|
this.resetForm("queryForm")
|
|
this.handleQuery()
|
|
},
|
|
// 多选框选中数据
|
|
handleSelectionChange(selection) {
|
|
this.ids = selection.map(item => item.stockoutId)
|
|
this.single = selection.length!==1
|
|
this.multiple = !selection.length
|
|
},
|
|
/** 新增按钮操作 */
|
|
handleAdd() {
|
|
this.reset()
|
|
this.open = true
|
|
this.title = "添加出库单据历史"
|
|
},
|
|
/** 修改按钮操作 */
|
|
handleUpdate(row) {
|
|
this.reset()
|
|
const stockoutId = row.stockoutId || this.ids
|
|
getViewStockoutHistory(stockoutId).then(response => {
|
|
this.form = response.data
|
|
this.open = true
|
|
this.title = "修改出库单据历史"
|
|
})
|
|
},
|
|
/** 提交按钮 */
|
|
submitForm() {
|
|
this.$refs["form"].validate(valid => {
|
|
if (valid) {
|
|
if (this.form.stockoutId != null) {
|
|
updateViewStockoutHistory(this.form).then(response => {
|
|
this.$modal.msgSuccess("修改成功")
|
|
this.open = false
|
|
this.getList()
|
|
})
|
|
} else {
|
|
addViewStockoutHistory(this.form).then(response => {
|
|
this.$modal.msgSuccess("新增成功")
|
|
this.open = false
|
|
this.getList()
|
|
})
|
|
}
|
|
}
|
|
})
|
|
},
|
|
/** 删除按钮操作 */
|
|
handleDelete(row) {
|
|
const stockoutIds = row.stockoutId || this.ids
|
|
this.$modal.confirm('是否确认删除出库单据历史编号为"' + stockoutIds + '"的数据项?').then(function() {
|
|
return delViewStockoutHistory(stockoutIds)
|
|
}).then(() => {
|
|
this.getList()
|
|
this.$modal.msgSuccess("删除成功")
|
|
}).catch(() => {})
|
|
},
|
|
/** 导出按钮操作 */
|
|
handleExport() {
|
|
this.download('search/ViewStockoutHistory/export', {
|
|
...this.queryParams
|
|
}, `ViewStockoutHistory_${new Date().getTime()}.xlsx`)
|
|
}
|
|
}
|
|
}
|
|
</script>
|
|
<style scoped>
|
|
.el-table >>> .current-row {
|
|
background-color: #f0f9eb;
|
|
}
|
|
.el-form-item >>> .el-form-item__label {
|
|
white-space: nowrap;
|
|
width: auto;
|
|
min-width: fit-content;
|
|
}
|
|
</style>
|