|
|
@ -1,11 +1,88 @@
|
|
|
|
<template>
|
|
|
|
<template>
|
|
|
|
<div class="app-container">
|
|
|
|
<div class="app-container">
|
|
|
|
<!--el-form v-show="showSearch" ref="queryForm" :inline="true" :model="queryParams" label-width="100px" size="small">
|
|
|
|
<el-form v-show="showSearch" ref="queryForm" :inline="true" :model="queryParams" label-width="100px" size="small">
|
|
|
|
<el-form-item label="销售订单编号" prop="saleorderCode">
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="生产计划编号" prop="planCode">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.planCode"
|
|
|
|
|
|
|
|
placeholder="请输入生产计划编号"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="计划明细编号" prop="planDetailCode">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.planDetailCode"
|
|
|
|
|
|
|
|
placeholder="请输入计划明细编号"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="销售订单号" prop="saleorderCode">
|
|
|
|
<el-input
|
|
|
|
<el-input
|
|
|
|
v-model="queryParams.saleorderCode"
|
|
|
|
v-model="queryParams.saleorderCode"
|
|
|
|
|
|
|
|
placeholder="请输入销售订单号"
|
|
|
|
|
|
|
|
clearable
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="物料条码" prop="barcodeInfo">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.barcodeInfo"
|
|
|
|
|
|
|
|
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="printFlag">
|
|
|
|
|
|
|
|
<el-select v-model="queryParams.printFlag" placeholder="请选择打印标识" clearable>
|
|
|
|
|
|
|
|
<el-option
|
|
|
|
|
|
|
|
v-for="dict in dict.type.mes_print_flag"
|
|
|
|
|
|
|
|
:key="dict.value"
|
|
|
|
|
|
|
|
:label="dict.label"
|
|
|
|
|
|
|
|
:value="dict.value"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</el-select>
|
|
|
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item label="小包条码" prop="prdBarcodeInfo">
|
|
|
|
|
|
|
|
<el-input
|
|
|
|
|
|
|
|
v-model="queryParams.prdBarcodeInfo"
|
|
|
|
|
|
|
|
placeholder="请输入小包条码"
|
|
|
|
clearable
|
|
|
|
clearable
|
|
|
|
placeholder="请输入销售订单编号"
|
|
|
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
@ -15,79 +92,81 @@
|
|
|
|
<el-button icon="el-icon-search" size="mini" type="primary" @click="handleQuery">搜索</el-button>
|
|
|
|
<el-button icon="el-icon-search" size="mini" type="primary" @click="handleQuery">搜索</el-button>
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
<el-button icon="el-icon-refresh" size="mini" @click="resetQuery">重置</el-button>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-->
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
<el-button
|
|
|
|
<!-- <el-button-->
|
|
|
|
v-hasPermi="['mes:barcode:add']"
|
|
|
|
<!-- v-hasPermi="['mes:barcode:add']"-->
|
|
|
|
icon="el-icon-plus"
|
|
|
|
<!-- icon="el-icon-plus"-->
|
|
|
|
plain
|
|
|
|
<!-- plain-->
|
|
|
|
size="mini"
|
|
|
|
<!-- size="mini"-->
|
|
|
|
type="primary"
|
|
|
|
<!-- type="primary"-->
|
|
|
|
@click="handleAddProductBarcode"
|
|
|
|
<!-- @click="handleAddProductBarcode"-->
|
|
|
|
v-if="addProductBarcodeBtnVisible"
|
|
|
|
<!-- v-if="addProductBarcodeBtnVisible"-->
|
|
|
|
>新增
|
|
|
|
<!-- >新增-->
|
|
|
|
</el-button>
|
|
|
|
<!-- </el-button>-->
|
|
|
|
</el-col>
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
<el-button
|
|
|
|
<!-- <el-button-->
|
|
|
|
v-hasPermi="['mes:barcode:add']"
|
|
|
|
<!-- v-hasPermi="['mes:barcode:add']"-->
|
|
|
|
icon="el-icon-plus"
|
|
|
|
<!-- icon="el-icon-plus"-->
|
|
|
|
plain
|
|
|
|
<!-- plain-->
|
|
|
|
size="mini"
|
|
|
|
<!-- size="mini"-->
|
|
|
|
type="primary"
|
|
|
|
<!-- type="primary"-->
|
|
|
|
@click="handleAdd"
|
|
|
|
<!-- @click="handleAdd"-->
|
|
|
|
v-if="addBarcodeBtnVisible"
|
|
|
|
<!-- v-if="addBarcodeBtnVisible"-->
|
|
|
|
>{{ addBtnTitle }}
|
|
|
|
<!-- >{{ addBtnTitle }}-->
|
|
|
|
</el-button>
|
|
|
|
<!-- </el-button>-->
|
|
|
|
</el-col>
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
<el-button
|
|
|
|
<!-- <el-button-->
|
|
|
|
v-hasPermi="['mes:barcode:add']"
|
|
|
|
<!-- v-hasPermi="['mes:barcode:add']"-->
|
|
|
|
icon="el-icon-plus"
|
|
|
|
<!-- icon="el-icon-plus"-->
|
|
|
|
plain
|
|
|
|
<!-- plain-->
|
|
|
|
size="mini"
|
|
|
|
<!-- size="mini"-->
|
|
|
|
type="primary"
|
|
|
|
<!-- type="primary"-->
|
|
|
|
@click="handleDoorPlaneAdd"
|
|
|
|
<!-- @click="handleDoorPlaneAdd"-->
|
|
|
|
v-if="addDoorBarcodeBtnVisible"
|
|
|
|
<!-- v-if="addDoorBarcodeBtnVisible"-->
|
|
|
|
>新增门板条码
|
|
|
|
<!-- >新增门板条码-->
|
|
|
|
</el-button>
|
|
|
|
<!-- </el-button>-->
|
|
|
|
</el-col>
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
<el-button
|
|
|
|
<!-- <el-button-->
|
|
|
|
type="warning"
|
|
|
|
<!-- type="warning"-->
|
|
|
|
plain
|
|
|
|
<!-- plain-->
|
|
|
|
icon="el-icon-printer"
|
|
|
|
<!-- icon="el-icon-printer"-->
|
|
|
|
size="mini"
|
|
|
|
<!-- size="mini"-->
|
|
|
|
@click="handlePrintBarcodes"
|
|
|
|
<!-- @click="handlePrintBarcodes"-->
|
|
|
|
:disabled="batchPrintBtnDisabled"
|
|
|
|
<!-- :disabled="batchPrintBtnDisabled"-->
|
|
|
|
v-hasPermi="['mes:barcode:printProductBarcodes']"
|
|
|
|
<!-- v-hasPermi="['mes:barcode:printProductBarcodes']"-->
|
|
|
|
>打印
|
|
|
|
<!-- >打印-->
|
|
|
|
</el-button>
|
|
|
|
<!-- </el-button>-->
|
|
|
|
</el-col>
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
|
|
|
|
<!--right-toolbar :columns="columns" :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar-->
|
|
|
|
<!--right-toolbar :columns="columns" :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar-->
|
|
|
|
</el-row>
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="loading" :data="barcodeList" @selection-change="handleSelectionChange">
|
|
|
|
<el-table v-loading="loading" :data="barcodeList" @selection-change="handleSelectionChange">
|
|
|
|
<el-table-column align="center" type="selection" width="55"/>
|
|
|
|
<!-- <el-table-column align="center" type="selection" width="55"/>-->
|
|
|
|
<el-table-column v-if="columns[0].visible" align="center" label="主键标识" prop="barcodeId"/>
|
|
|
|
<el-table-column v-if="columns[0].visible" align="center" label="主键标识" prop="barcodeId"/>
|
|
|
|
<el-table-column v-if="columns[4].visible" align="center" label="条码类型" prop="barcodeType">
|
|
|
|
<el-table-column v-if="columns[4].visible" align="center" label="条码类型" prop="barcodeType">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<dict-tag :options="dict.type.barcode_type" :value="scope.row.barcodeType"/>
|
|
|
|
<dict-tag :options="dict.type.barcode_type" :value="scope.row.barcodeType"/>
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
<el-table-column v-if="columns[17].visible" align="center" label="派工单号" prop="planCode" width="110"/>
|
|
|
|
<el-table-column v-if="columns[17].visible" align="center" label="生产计划编号" prop="planCode" width="110"/>
|
|
|
|
<el-table-column v-if="columns[17].visible" align="center" label="明细编号" prop="planDetailCode" width="110"/>
|
|
|
|
<el-table-column v-if="columns[17].visible" align="center" label="计划明细编号" prop="planDetailCode"
|
|
|
|
<el-table-column v-if="columns[20].visible" align="center" label="销售订单编号" prop="saleorderCode" width="110"/>
|
|
|
|
width="110"/>
|
|
|
|
<el-table-column v-if="columns[13].visible" align="center" label="采购订单号" prop="poNo" width="100"/>
|
|
|
|
<el-table-column v-if="columns[20].visible" align="center" label="销售订单号" prop="saleorderCode" width="110"/>
|
|
|
|
<el-table-column v-if="columns[5].visible" align="center" label="条码内容" prop="barcodeInfo" width="100"/>
|
|
|
|
<el-table-column v-if="columns[5].visible" align="center" label="成品条码" prop="barcodeInfo" width="100"/>
|
|
|
|
<el-table-column v-if="columns[8].visible" align="center" label="物料名称" prop="materialName" width="100"/>
|
|
|
|
<el-table-column align="center" label="成品编码" prop="materialCode" width="100"/>
|
|
|
|
|
|
|
|
<el-table-column align="center" label="成品名称" prop="materialName" width="100"/>
|
|
|
|
|
|
|
|
<el-table-column align="center" label="成品规格" prop="materialSpec" width="100"/>
|
|
|
|
<el-table-column label="打印标识" align="center" prop="printFlag">
|
|
|
|
<el-table-column label="打印标识" align="center" prop="printFlag">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<template slot-scope="scope">
|
|
|
|
<dict-tag :options="dict.type.mes_print_flag" :value="scope.row.printFlag"/>
|
|
|
|
<dict-tag :options="dict.type.mes_print_flag" :value="scope.row.printFlag"/>
|
|
|
@ -120,15 +199,25 @@
|
|
|
|
v-hasPermi="['mes:barcode:regenerateProductBarcode']"
|
|
|
|
v-hasPermi="['mes:barcode:regenerateProductBarcode']"
|
|
|
|
>重新生成
|
|
|
|
>重新生成
|
|
|
|
</el-button-->
|
|
|
|
</el-button-->
|
|
|
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
|
|
|
<!-- size="mini"-->
|
|
|
|
|
|
|
|
<!-- type="text"-->
|
|
|
|
|
|
|
|
<!-- icon="el-icon-printer"-->
|
|
|
|
|
|
|
|
<!-- @click="handlePrintBarcodes(scope.row)"-->
|
|
|
|
|
|
|
|
<!-- v-if="scope.row.printFlag ==='0'"-->
|
|
|
|
|
|
|
|
<!-- v-hasPermi="['mes:barcode:printBarcode']"-->
|
|
|
|
|
|
|
|
<!-- >打印-->
|
|
|
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
<el-button
|
|
|
|
size="mini"
|
|
|
|
size="mini"
|
|
|
|
type="text"
|
|
|
|
type="text"
|
|
|
|
icon="el-icon-printer"
|
|
|
|
icon="el-icon-info"
|
|
|
|
@click="handlePrintBarcodes(scope.row)"
|
|
|
|
@click="handlePrdBarcodes(scope.row)"
|
|
|
|
v-if="scope.row.printFlag ==='0'"
|
|
|
|
v-hasPermi="['mes:barcode:prdBarcode']"
|
|
|
|
v-hasPermi="['mes:barcode:printBarcode']"
|
|
|
|
>小包条码
|
|
|
|
>打印
|
|
|
|
|
|
|
|
</el-button>
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table-column>
|
|
|
|
</el-table>
|
|
|
|
</el-table>
|
|
|
@ -141,6 +230,31 @@
|
|
|
|
@pagination="getList"
|
|
|
|
@pagination="getList"
|
|
|
|
/>
|
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--小包条码信息查看dialog-->
|
|
|
|
|
|
|
|
<el-dialog :title="prdTitle" :visible.sync="prdOpen" append-to-body width="600px">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-table v-loading="prdLoading" :data="prdBarcodeList" @selection-change="handleSelectionChange">
|
|
|
|
|
|
|
|
<el-table-column label="小包条码" align="center" prop="prdBarcodeInfo"/>
|
|
|
|
|
|
|
|
<el-table-column label="喷码标识" align="center" prop="printFlag">
|
|
|
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
|
|
|
<dict-tag :options="dict.type.mes_prdbarcode_spurt_flag" :value="scope.row.printFlag"/>
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="绑定托盘号" align="center" prop="palletInfoCode"/>
|
|
|
|
|
|
|
|
<el-table-column label="创建时间" align="center" prop="creatTime">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="喷印时间" align="center" prop="printTime">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
<el-table-column label="绑定时间" align="center" prop="bindTime">
|
|
|
|
|
|
|
|
</el-table-column>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-table>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</el-dialog>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- 添加或修改条码信息对话框 -->
|
|
|
|
<!-- 添加或修改条码信息对话框 -->
|
|
|
|
<el-dialog :title="title" :visible.sync="open" append-to-body width="500px">
|
|
|
|
<el-dialog :title="title" :visible.sync="open" append-to-body width="500px">
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
|
|
|
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
|
|
|
@ -261,7 +375,8 @@
|
|
|
|
<el-form ref="addProductBarcodeForm" :model="addProductBarcodeForm" :rules="addProductBarcodeRules"
|
|
|
|
<el-form ref="addProductBarcodeForm" :model="addProductBarcodeForm" :rules="addProductBarcodeRules"
|
|
|
|
label-width="120px">
|
|
|
|
label-width="120px">
|
|
|
|
<el-form-item label="原材料条码" prop="productBarcode">
|
|
|
|
<el-form-item label="原材料条码" prop="productBarcode">
|
|
|
|
<el-input v-model="addProductBarcodeForm.productBarcode" placeholder="请扫描或输入原材料条码" suffix-icon="el-icon-full-screen">
|
|
|
|
<el-input v-model="addProductBarcodeForm.productBarcode" placeholder="请扫描或输入原材料条码"
|
|
|
|
|
|
|
|
suffix-icon="el-icon-full-screen">
|
|
|
|
</el-input>
|
|
|
|
</el-input>
|
|
|
|
</el-form-item>
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
@ -315,13 +430,14 @@ import {
|
|
|
|
delBarcode,
|
|
|
|
delBarcode,
|
|
|
|
addProductBarcode,
|
|
|
|
addProductBarcode,
|
|
|
|
printProductBarcodes,
|
|
|
|
printProductBarcodes,
|
|
|
|
regenerateProductBarcode
|
|
|
|
regenerateProductBarcode,
|
|
|
|
|
|
|
|
listPrdBarcode
|
|
|
|
} from "@/api/mes/barcode";
|
|
|
|
} from "@/api/mes/barcode";
|
|
|
|
import addProductPlan from '@//views/mes/productplan/addProductPlan.vue';
|
|
|
|
import addProductPlan from '@//views/mes/productplan/addProductPlan.vue';
|
|
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
export default {
|
|
|
|
name: "Barcode",
|
|
|
|
name: "Barcode",
|
|
|
|
dicts: ['bind_status', 'active_flag', 'barcode_type', 'mes_print_flag'],
|
|
|
|
dicts: ['bind_status', 'active_flag', 'barcode_type', 'mes_print_flag','mes_prdbarcode_spurt_flag'],
|
|
|
|
components: {
|
|
|
|
components: {
|
|
|
|
'add-ProductPlan': addProductPlan,
|
|
|
|
'add-ProductPlan': addProductPlan,
|
|
|
|
},
|
|
|
|
},
|
|
|
@ -352,7 +468,7 @@ export default {
|
|
|
|
|
|
|
|
|
|
|
|
addProductBarcodeTitle: '新增成品条码',
|
|
|
|
addProductBarcodeTitle: '新增成品条码',
|
|
|
|
addProductBarcodeForm: {},
|
|
|
|
addProductBarcodeForm: {},
|
|
|
|
addProductBarcodeRules: {
|
|
|
|
addProductBarcodeRules: {
|
|
|
|
productBarcode: [
|
|
|
|
productBarcode: [
|
|
|
|
{required: true, message: "原材料条码不能为空", trigger: "blur"}
|
|
|
|
{required: true, message: "原材料条码不能为空", trigger: "blur"}
|
|
|
|
],
|
|
|
|
],
|
|
|
@ -390,6 +506,7 @@ export default {
|
|
|
|
updateBy: null,
|
|
|
|
updateBy: null,
|
|
|
|
updateTime: null,
|
|
|
|
updateTime: null,
|
|
|
|
singleFlag: null,
|
|
|
|
singleFlag: null,
|
|
|
|
|
|
|
|
prdBarcodeInfo:null,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
// 表单参数
|
|
|
|
// 表单参数
|
|
|
|
form: {},
|
|
|
|
form: {},
|
|
|
@ -456,12 +573,18 @@ export default {
|
|
|
|
},
|
|
|
|
},
|
|
|
|
SINGLE_FLAG: {
|
|
|
|
SINGLE_FLAG: {
|
|
|
|
YES: '1',//是
|
|
|
|
YES: '1',//是
|
|
|
|
}
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 遮罩层
|
|
|
|
|
|
|
|
prdLoading: true,
|
|
|
|
|
|
|
|
prdTitle: '小包条码',
|
|
|
|
|
|
|
|
prdBarcodeList: [],
|
|
|
|
|
|
|
|
prdOpen: false
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
mounted() {
|
|
|
|
this.addBarcodeBtnVisible = false;
|
|
|
|
// this.addBarcodeBtnVisible = false;
|
|
|
|
this.getData();
|
|
|
|
// this.getData();
|
|
|
|
this.getList();
|
|
|
|
this.getList();
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
@ -482,64 +605,64 @@ export default {
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
// },
|
|
|
|
methods: {
|
|
|
|
methods: {
|
|
|
|
getData() {
|
|
|
|
// getData() {
|
|
|
|
if (this.defineData.barcodeType) {
|
|
|
|
// if (this.defineData.barcodeType) {
|
|
|
|
let barcodeType = this.defineData.barcodeType ? this.defineData.barcodeType : this.BARCODE_TYPE.PRODUCT;
|
|
|
|
// let barcodeType = this.defineData.barcodeType ? this.defineData.barcodeType : this.BARCODE_TYPE.PRODUCT;
|
|
|
|
let bindBarcode = this.defineData.bindBarcode ? this.defineData.bindBarcode : '';
|
|
|
|
// let bindBarcode = this.defineData.bindBarcode ? this.defineData.bindBarcode : '';
|
|
|
|
if (barcodeType === this.BARCODE_TYPE.BACK_PLANE) {
|
|
|
|
// if (barcodeType === this.BARCODE_TYPE.BACK_PLANE) {
|
|
|
|
this.addBtnTitle = "新增背板条码";
|
|
|
|
// this.addBtnTitle = "新增背板条码";
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
this.form = {
|
|
|
|
// this.form = {
|
|
|
|
planId: this.defineData.planId,
|
|
|
|
// planId: this.defineData.planId,
|
|
|
|
planCode: this.defineData.planCode,
|
|
|
|
// planCode: this.defineData.planCode,
|
|
|
|
planDetailCode: this.defineData.planDetailCode,
|
|
|
|
// planDetailCode: this.defineData.planDetailCode,
|
|
|
|
batchFlag: '0',
|
|
|
|
// batchFlag: '0',
|
|
|
|
bindBarcode: bindBarcode,
|
|
|
|
// bindBarcode: bindBarcode,
|
|
|
|
barcodeType: barcodeType,
|
|
|
|
// barcodeType: barcodeType,
|
|
|
|
amount: 1,
|
|
|
|
// amount: 1,
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
this.queryParams.planDetailCode = this.defineData.planDetailCode;
|
|
|
|
// this.queryParams.planDetailCode = this.defineData.planDetailCode;
|
|
|
|
if (barcodeType !== this.BARCODE_TYPE.PRODUCT) {
|
|
|
|
// if (barcodeType !== this.BARCODE_TYPE.PRODUCT) {
|
|
|
|
this.queryParams.barcodeType = null;
|
|
|
|
// this.queryParams.barcodeType = null;
|
|
|
|
this.queryParams.barcodeTypeStr = this.BARCODE_TYPE.DOOR + "," + this.BARCODE_TYPE.BACK_PLANE;
|
|
|
|
// this.queryParams.barcodeTypeStr = this.BARCODE_TYPE.DOOR + "," + this.BARCODE_TYPE.BACK_PLANE;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
} else {
|
|
|
|
// } else {
|
|
|
|
this.queryParams.barcodeType = this.BARCODE_TYPE.PRODUCT;
|
|
|
|
// this.queryParams.barcodeType = this.BARCODE_TYPE.PRODUCT;
|
|
|
|
this.queryParams.singleFlag = this.SINGLE_FLAG.YES;
|
|
|
|
// this.queryParams.singleFlag = this.SINGLE_FLAG.YES;
|
|
|
|
this.addProductBarcodeBtnVisible = true;
|
|
|
|
// this.addProductBarcodeBtnVisible = true;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
//
|
|
|
|
},
|
|
|
|
// },
|
|
|
|
/** 查询条码信息列表 */
|
|
|
|
/** 查询条码信息列表 */
|
|
|
|
getList() {
|
|
|
|
getList() {
|
|
|
|
this.loading = true;
|
|
|
|
this.loading = true;
|
|
|
|
listProductBarcode(this.queryParams).then(response => {
|
|
|
|
listProductBarcode(this.queryParams).then(response => {
|
|
|
|
this.barcodeList = response.rows;
|
|
|
|
this.barcodeList = response.rows;
|
|
|
|
this.total = response.total;
|
|
|
|
this.total = response.total;
|
|
|
|
if (this.queryParams.singleFlag && this.queryParams.singleFlag === this.SINGLE_FLAG.YES) {
|
|
|
|
// if (this.queryParams.singleFlag && this.queryParams.singleFlag === this.SINGLE_FLAG.YES) {
|
|
|
|
|
|
|
|
//
|
|
|
|
} else {
|
|
|
|
// } else {
|
|
|
|
if (this.total && this.total > 0) {
|
|
|
|
// if (this.total && this.total > 0) {
|
|
|
|
if (this.queryParams.barcodeTypeStr) {
|
|
|
|
// if (this.queryParams.barcodeTypeStr) {
|
|
|
|
this.addBarcodeBtnVisible = true;
|
|
|
|
// this.addBarcodeBtnVisible = true;
|
|
|
|
this.addDoorBarcodeBtnVisible = true;
|
|
|
|
// this.addDoorBarcodeBtnVisible = true;
|
|
|
|
this.barcodeList.forEach(e => {
|
|
|
|
// this.barcodeList.forEach(e => {
|
|
|
|
if (e.barcodeType === this.BARCODE_TYPE.BACK_PLANE) {
|
|
|
|
// if (e.barcodeType === this.BARCODE_TYPE.BACK_PLANE) {
|
|
|
|
this.addBarcodeBtnVisible = false;
|
|
|
|
// this.addBarcodeBtnVisible = false;
|
|
|
|
} else if (e.barcodeType === this.BARCODE_TYPE.DOOR) {
|
|
|
|
// } else if (e.barcodeType === this.BARCODE_TYPE.DOOR) {
|
|
|
|
this.addDoorBarcodeBtnVisible = false;
|
|
|
|
// this.addDoorBarcodeBtnVisible = false;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
})
|
|
|
|
// })
|
|
|
|
} else {
|
|
|
|
// } else {
|
|
|
|
this.addBarcodeBtnVisible = false;
|
|
|
|
// this.addBarcodeBtnVisible = false;
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
} else {
|
|
|
|
// } else {
|
|
|
|
this.addBarcodeBtnVisible = true;
|
|
|
|
// this.addBarcodeBtnVisible = true;
|
|
|
|
this.addDoorBarcodeBtnVisible = true;
|
|
|
|
// this.addDoorBarcodeBtnVisible = true;
|
|
|
|
this.handleAdd();
|
|
|
|
// this.handleAdd();
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
this.loading = false;
|
|
|
|
this.loading = false;
|
|
|
|
});
|
|
|
|
});
|
|
|
@ -791,6 +914,16 @@ export default {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
},
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
handlePrdBarcodes(row) {
|
|
|
|
|
|
|
|
this.prdLoading = true;
|
|
|
|
|
|
|
|
this.prdOpen = true;
|
|
|
|
|
|
|
|
listPrdBarcode({'mesBarcodeInfo': row.barcodeInfo}).then(response => {
|
|
|
|
|
|
|
|
this.prdBarcodeList = response.data;
|
|
|
|
|
|
|
|
this.prdLoading = false;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|
|
|
|
</script>
|
|
|
|
</script>
|
|
|
|