change - 原材料条码收料批量新增、收料通知单添加条码生成标识、批量选择收料通知单
parent
8dc394ef1a
commit
b64f0dcfbc
@ -0,0 +1,176 @@
|
|||||||
|
<template>
|
||||||
|
<div class="app-container">
|
||||||
|
<el-form :model="queryParams" ref="queryForm" size="small" :inline="true" v-show="showSearch" label-width="98px">
|
||||||
|
<el-form-item label="收料单据号" prop="billNo">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.billNo"
|
||||||
|
placeholder="请输入收料单据号"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="采购订单编号" prop="poNo">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.poNo"
|
||||||
|
placeholder="请输入采购订单编"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="物料编码" prop="materialCode">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.materialCode"
|
||||||
|
placeholder="请输入物料编码"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="物料名称" prop="materialName">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.materialName"
|
||||||
|
placeholder="请输入物料名称"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="物料规格" prop="materialSpec">
|
||||||
|
<el-input
|
||||||
|
v-model="queryParams.materialSpec"
|
||||||
|
placeholder="请输入物料规格"
|
||||||
|
clearable
|
||||||
|
@keyup.enter.native="handleQuery"
|
||||||
|
/>
|
||||||
|
</el-form-item>
|
||||||
|
<el-form-item label="条码生成标识" prop="hasBarcodeFlag">
|
||||||
|
<el-select v-model="queryParams.hasBarcodeFlag" placeholder="请选择常备条码生成标识" clearable>
|
||||||
|
<el-option
|
||||||
|
v-for="dict in dict.type.mes_material_bind_flag"
|
||||||
|
:key="dict.value"
|
||||||
|
:label="dict.label"
|
||||||
|
:value="dict.value"
|
||||||
|
/>
|
||||||
|
</el-select>
|
||||||
|
</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-table v-loading="loading" :data="purchaseReceiveBillList"
|
||||||
|
@selection-change="handleSelectionChange"
|
||||||
|
:row-key="row => row.receiveBillId"
|
||||||
|
ref="purchaseReceiveBillRef"
|
||||||
|
>
|
||||||
|
<el-table-column type="selection" width="50" />
|
||||||
|
<!-- <el-table-column label="ERPID" align="center" prop="erpId" />-->
|
||||||
|
<el-table-column label="条码生成标识" align="center" prop="hasBarcodeFlag" width="100">
|
||||||
|
<template slot-scope="scope">
|
||||||
|
<dict-tag :options="dict.type.mes_material_bind_flag" :value="scope.row.hasBarcodeFlag"/>
|
||||||
|
</template>
|
||||||
|
</el-table-column>
|
||||||
|
<el-table-column label="收料单据号" align="center" prop="billNo" />
|
||||||
|
<el-table-column label="采购订单号" align="center" prop="poNo" />
|
||||||
|
<el-table-column label="物料编码" align="center" prop="materialCode" />
|
||||||
|
<el-table-column label="物料名称" align="center" prop="materialName" />
|
||||||
|
<el-table-column label="物料规格" align="center" prop="materialSpec" />
|
||||||
|
<el-table-column label="实到数量" align="center" prop="actLandAmount" width="80"/>
|
||||||
|
<el-table-column label="ERP最后修改日期" align="center" prop="erpModifyDate" width="180">
|
||||||
|
</el-table-column>
|
||||||
|
</el-table>
|
||||||
|
|
||||||
|
<pagination
|
||||||
|
v-show="total>0"
|
||||||
|
:total="total"
|
||||||
|
:page.sync="queryParams.pageNum"
|
||||||
|
:limit.sync="queryParams.pageSize"
|
||||||
|
@pagination="getList"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script>
|
||||||
|
import { listPurchaseReceiveBill } from "@/api/mes/purchaseReceiveBill";
|
||||||
|
|
||||||
|
export default {
|
||||||
|
name: "PurchaseReceiveBillBatch",
|
||||||
|
dicts: ['mes_material_bind_flag'],
|
||||||
|
data() {
|
||||||
|
return {
|
||||||
|
// 遮罩层
|
||||||
|
loading: true,
|
||||||
|
// 选中数组
|
||||||
|
selectedRows: [],
|
||||||
|
selectedRowIds: [],
|
||||||
|
// 显示搜索条件
|
||||||
|
showSearch: true,
|
||||||
|
// 总条数
|
||||||
|
total: 0,
|
||||||
|
// 收料通知单表格数据
|
||||||
|
purchaseReceiveBillList: [],
|
||||||
|
// 查询参数
|
||||||
|
queryParams: {
|
||||||
|
pageNum: 1,
|
||||||
|
pageSize: 10,
|
||||||
|
erpId: null,
|
||||||
|
fentryId: null,
|
||||||
|
billNo: null,
|
||||||
|
poNo: null,
|
||||||
|
documentStatus: null,
|
||||||
|
materialId: null,
|
||||||
|
materialCode: null,
|
||||||
|
materialName: null,
|
||||||
|
materialSpec: null,
|
||||||
|
fsBillId: null,
|
||||||
|
fsId: null,
|
||||||
|
actLandAmount: null,
|
||||||
|
actReceiveAmount: null,
|
||||||
|
approveDate: null,
|
||||||
|
erpModifyDate: null,
|
||||||
|
purchaseOrgId: null,
|
||||||
|
tondBase: null,
|
||||||
|
price: null,
|
||||||
|
supplierId: null,
|
||||||
|
hasBarcodeFlag: '0',
|
||||||
|
},
|
||||||
|
// 表单参数
|
||||||
|
form: {},
|
||||||
|
// 表单校验
|
||||||
|
rules: {
|
||||||
|
materialCode: [
|
||||||
|
{ required: true, message: "物料编码;对应FMaterialId.FNumber不能为空", trigger: "blur" }
|
||||||
|
],
|
||||||
|
}
|
||||||
|
};
|
||||||
|
},
|
||||||
|
created() {
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
methods: {
|
||||||
|
/** 查询收料通知单列表 */
|
||||||
|
getList() {
|
||||||
|
this.loading = true;
|
||||||
|
listPurchaseReceiveBill(this.queryParams).then(response => {
|
||||||
|
this.purchaseReceiveBillList = response.rows;
|
||||||
|
this.total = response.total;
|
||||||
|
this.loading = false;
|
||||||
|
});
|
||||||
|
},
|
||||||
|
/** 搜索按钮操作 */
|
||||||
|
handleQuery() {
|
||||||
|
this.queryParams.pageNum = 1;
|
||||||
|
this.getList();
|
||||||
|
},
|
||||||
|
/** 重置按钮操作 */
|
||||||
|
resetQuery() {
|
||||||
|
this.resetForm("queryForm");
|
||||||
|
this.handleQuery();
|
||||||
|
},
|
||||||
|
// 多选框选中数据
|
||||||
|
handleSelectionChange(selection) {
|
||||||
|
this.selectedRows = selection;
|
||||||
|
this.selectedRowIds = selection.map(item => item.receiveBillId);
|
||||||
|
},
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
Loading…
Reference in New Issue