|
|
|
@ -1,93 +1,172 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="app-container">
|
|
|
|
|
<!--el-form v-show="showSearch" ref="queryForm" :inline="true" :model="queryParams" label-width="100px" size="small">
|
|
|
|
|
<el-form-item label="销售订单编号" prop="saleorderCode">
|
|
|
|
|
<el-form v-show="showSearch" ref="queryForm" :inline="true" :model="queryParams" label-width="100px" size="small">
|
|
|
|
|
|
|
|
|
|
<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
|
|
|
|
|
v-model="queryParams.saleorderCode"
|
|
|
|
|
placeholder="请输入销售订单号"
|
|
|
|
|
clearable
|
|
|
|
|
placeholder="请输入销售订单编号"
|
|
|
|
|
@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>
|
|
|
|
|
<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-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-->
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
v-hasPermi="['mes:barcode:add']"
|
|
|
|
|
icon="el-icon-plus"
|
|
|
|
|
plain
|
|
|
|
|
size="mini"
|
|
|
|
|
type="primary"
|
|
|
|
|
@click="handleAddProductBarcode"
|
|
|
|
|
v-if="addProductBarcodeBtnVisible"
|
|
|
|
|
>新增
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-form-item label="成品规格" prop="materialSpec">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.materialSpec"
|
|
|
|
|
placeholder="请输入成品规格"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
v-hasPermi="['mes:barcode:add']"
|
|
|
|
|
icon="el-icon-plus"
|
|
|
|
|
plain
|
|
|
|
|
size="mini"
|
|
|
|
|
type="primary"
|
|
|
|
|
@click="handleAdd"
|
|
|
|
|
v-if="addBarcodeBtnVisible"
|
|
|
|
|
>{{ addBtnTitle }}
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<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-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
v-hasPermi="['mes:barcode:add']"
|
|
|
|
|
icon="el-icon-plus"
|
|
|
|
|
plain
|
|
|
|
|
size="mini"
|
|
|
|
|
type="primary"
|
|
|
|
|
@click="handleDoorPlaneAdd"
|
|
|
|
|
v-if="addDoorBarcodeBtnVisible"
|
|
|
|
|
>新增门板条码
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
|
<el-button
|
|
|
|
|
type="warning"
|
|
|
|
|
plain
|
|
|
|
|
icon="el-icon-printer"
|
|
|
|
|
size="mini"
|
|
|
|
|
@click="handlePrintBarcodes"
|
|
|
|
|
:disabled="batchPrintBtnDisabled"
|
|
|
|
|
v-hasPermi="['mes:barcode:printProductBarcodes']"
|
|
|
|
|
>打印
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-form-item label="小包条码" prop="prdBarcodeInfo">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="queryParams.prdBarcodeInfo"
|
|
|
|
|
placeholder="请输入小包条码"
|
|
|
|
|
clearable
|
|
|
|
|
@keyup.enter.native="handleQuery"
|
|
|
|
|
/>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-form-item>
|
|
|
|
|
<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-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
|
|
|
|
|
<el-row :gutter="10" class="mb8">
|
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- v-hasPermi="['mes:barcode:add']"-->
|
|
|
|
|
<!-- icon="el-icon-plus"-->
|
|
|
|
|
<!-- plain-->
|
|
|
|
|
<!-- size="mini"-->
|
|
|
|
|
<!-- type="primary"-->
|
|
|
|
|
<!-- @click="handleAddProductBarcode"-->
|
|
|
|
|
<!-- v-if="addProductBarcodeBtnVisible"-->
|
|
|
|
|
<!-- >新增-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- v-hasPermi="['mes:barcode:add']"-->
|
|
|
|
|
<!-- icon="el-icon-plus"-->
|
|
|
|
|
<!-- plain-->
|
|
|
|
|
<!-- size="mini"-->
|
|
|
|
|
<!-- type="primary"-->
|
|
|
|
|
<!-- @click="handleAdd"-->
|
|
|
|
|
<!-- v-if="addBarcodeBtnVisible"-->
|
|
|
|
|
<!-- >{{ addBtnTitle }}-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- v-hasPermi="['mes:barcode:add']"-->
|
|
|
|
|
<!-- icon="el-icon-plus"-->
|
|
|
|
|
<!-- plain-->
|
|
|
|
|
<!-- size="mini"-->
|
|
|
|
|
<!-- type="primary"-->
|
|
|
|
|
<!-- @click="handleDoorPlaneAdd"-->
|
|
|
|
|
<!-- v-if="addDoorBarcodeBtnVisible"-->
|
|
|
|
|
<!-- >新增门板条码-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
|
|
<!-- <el-col :span="1.5">-->
|
|
|
|
|
<!-- <el-button-->
|
|
|
|
|
<!-- type="warning"-->
|
|
|
|
|
<!-- plain-->
|
|
|
|
|
<!-- icon="el-icon-printer"-->
|
|
|
|
|
<!-- size="mini"-->
|
|
|
|
|
<!-- @click="handlePrintBarcodes"-->
|
|
|
|
|
<!-- :disabled="batchPrintBtnDisabled"-->
|
|
|
|
|
<!-- v-hasPermi="['mes:barcode:printProductBarcodes']"-->
|
|
|
|
|
<!-- >打印-->
|
|
|
|
|
<!-- </el-button>-->
|
|
|
|
|
<!-- </el-col>-->
|
|
|
|
|
|
|
|
|
|
<!--right-toolbar :columns="columns" :showSearch.sync="showSearch" @queryTable="getList"></right-toolbar-->
|
|
|
|
|
</el-row>
|
|
|
|
|
|
|
|
|
|
<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[4].visible" align="center" label="条码类型" prop="barcodeType">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.barcode_type" :value="scope.row.barcodeType"/>
|
|
|
|
|
</template>
|
|
|
|
|
</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="planDetailCode" width="110"/>
|
|
|
|
|
<el-table-column v-if="columns[20].visible" align="center" label="销售订单编号" prop="saleorderCode" width="110"/>
|
|
|
|
|
<el-table-column v-if="columns[13].visible" align="center" label="采购订单号" prop="poNo" 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 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[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 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">
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.mes_print_flag" :value="scope.row.printFlag"/>
|
|
|
|
@ -120,15 +199,25 @@
|
|
|
|
|
v-hasPermi="['mes:barcode:regenerateProductBarcode']"
|
|
|
|
|
>重新生成
|
|
|
|
|
</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
|
|
|
|
|
size="mini"
|
|
|
|
|
type="text"
|
|
|
|
|
icon="el-icon-printer"
|
|
|
|
|
@click="handlePrintBarcodes(scope.row)"
|
|
|
|
|
v-if="scope.row.printFlag ==='0'"
|
|
|
|
|
v-hasPermi="['mes:barcode:printBarcode']"
|
|
|
|
|
>打印
|
|
|
|
|
icon="el-icon-info"
|
|
|
|
|
@click="handlePrdBarcodes(scope.row)"
|
|
|
|
|
v-hasPermi="['mes:barcode:prdBarcode']"
|
|
|
|
|
>小包条码
|
|
|
|
|
</el-button>
|
|
|
|
|
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -141,6 +230,31 @@
|
|
|
|
|
@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-form ref="form" :model="form" :rules="rules" label-width="120px">
|
|
|
|
@ -261,7 +375,8 @@
|
|
|
|
|
<el-form ref="addProductBarcodeForm" :model="addProductBarcodeForm" :rules="addProductBarcodeRules"
|
|
|
|
|
label-width="120px">
|
|
|
|
|
<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-form-item>
|
|
|
|
|
|
|
|
|
@ -315,13 +430,14 @@ import {
|
|
|
|
|
delBarcode,
|
|
|
|
|
addProductBarcode,
|
|
|
|
|
printProductBarcodes,
|
|
|
|
|
regenerateProductBarcode
|
|
|
|
|
regenerateProductBarcode,
|
|
|
|
|
listPrdBarcode
|
|
|
|
|
} from "@/api/mes/barcode";
|
|
|
|
|
import addProductPlan from '@//views/mes/productplan/addProductPlan.vue';
|
|
|
|
|
|
|
|
|
|
export default {
|
|
|
|
|
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: {
|
|
|
|
|
'add-ProductPlan': addProductPlan,
|
|
|
|
|
},
|
|
|
|
@ -390,6 +506,7 @@ export default {
|
|
|
|
|
updateBy: null,
|
|
|
|
|
updateTime: null,
|
|
|
|
|
singleFlag: null,
|
|
|
|
|
prdBarcodeInfo:null,
|
|
|
|
|
},
|
|
|
|
|
// 表单参数
|
|
|
|
|
form: {},
|
|
|
|
@ -456,12 +573,18 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
SINGLE_FLAG: {
|
|
|
|
|
YES: '1',//是
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
// 遮罩层
|
|
|
|
|
prdLoading: true,
|
|
|
|
|
prdTitle: '小包条码',
|
|
|
|
|
prdBarcodeList: [],
|
|
|
|
|
prdOpen: false
|
|
|
|
|
};
|
|
|
|
|
},
|
|
|
|
|
mounted() {
|
|
|
|
|
this.addBarcodeBtnVisible = false;
|
|
|
|
|
this.getData();
|
|
|
|
|
// this.addBarcodeBtnVisible = false;
|
|
|
|
|
// this.getData();
|
|
|
|
|
this.getList();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -482,64 +605,64 @@ export default {
|
|
|
|
|
// },
|
|
|
|
|
// },
|
|
|
|
|
methods: {
|
|
|
|
|
getData() {
|
|
|
|
|
if (this.defineData.barcodeType) {
|
|
|
|
|
let barcodeType = this.defineData.barcodeType ? this.defineData.barcodeType : this.BARCODE_TYPE.PRODUCT;
|
|
|
|
|
let bindBarcode = this.defineData.bindBarcode ? this.defineData.bindBarcode : '';
|
|
|
|
|
if (barcodeType === this.BARCODE_TYPE.BACK_PLANE) {
|
|
|
|
|
this.addBtnTitle = "新增背板条码";
|
|
|
|
|
}
|
|
|
|
|
this.form = {
|
|
|
|
|
planId: this.defineData.planId,
|
|
|
|
|
planCode: this.defineData.planCode,
|
|
|
|
|
planDetailCode: this.defineData.planDetailCode,
|
|
|
|
|
batchFlag: '0',
|
|
|
|
|
bindBarcode: bindBarcode,
|
|
|
|
|
barcodeType: barcodeType,
|
|
|
|
|
amount: 1,
|
|
|
|
|
}
|
|
|
|
|
this.queryParams.planDetailCode = this.defineData.planDetailCode;
|
|
|
|
|
if (barcodeType !== this.BARCODE_TYPE.PRODUCT) {
|
|
|
|
|
this.queryParams.barcodeType = null;
|
|
|
|
|
this.queryParams.barcodeTypeStr = this.BARCODE_TYPE.DOOR + "," + this.BARCODE_TYPE.BACK_PLANE;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.queryParams.barcodeType = this.BARCODE_TYPE.PRODUCT;
|
|
|
|
|
this.queryParams.singleFlag = this.SINGLE_FLAG.YES;
|
|
|
|
|
this.addProductBarcodeBtnVisible = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
// getData() {
|
|
|
|
|
// if (this.defineData.barcodeType) {
|
|
|
|
|
// let barcodeType = this.defineData.barcodeType ? this.defineData.barcodeType : this.BARCODE_TYPE.PRODUCT;
|
|
|
|
|
// let bindBarcode = this.defineData.bindBarcode ? this.defineData.bindBarcode : '';
|
|
|
|
|
// if (barcodeType === this.BARCODE_TYPE.BACK_PLANE) {
|
|
|
|
|
// this.addBtnTitle = "新增背板条码";
|
|
|
|
|
// }
|
|
|
|
|
// this.form = {
|
|
|
|
|
// planId: this.defineData.planId,
|
|
|
|
|
// planCode: this.defineData.planCode,
|
|
|
|
|
// planDetailCode: this.defineData.planDetailCode,
|
|
|
|
|
// batchFlag: '0',
|
|
|
|
|
// bindBarcode: bindBarcode,
|
|
|
|
|
// barcodeType: barcodeType,
|
|
|
|
|
// amount: 1,
|
|
|
|
|
// }
|
|
|
|
|
// this.queryParams.planDetailCode = this.defineData.planDetailCode;
|
|
|
|
|
// if (barcodeType !== this.BARCODE_TYPE.PRODUCT) {
|
|
|
|
|
// this.queryParams.barcodeType = null;
|
|
|
|
|
// this.queryParams.barcodeTypeStr = this.BARCODE_TYPE.DOOR + "," + this.BARCODE_TYPE.BACK_PLANE;
|
|
|
|
|
// }
|
|
|
|
|
// } else {
|
|
|
|
|
// this.queryParams.barcodeType = this.BARCODE_TYPE.PRODUCT;
|
|
|
|
|
// this.queryParams.singleFlag = this.SINGLE_FLAG.YES;
|
|
|
|
|
// this.addProductBarcodeBtnVisible = true;
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// },
|
|
|
|
|
/** 查询条码信息列表 */
|
|
|
|
|
getList() {
|
|
|
|
|
this.loading = true;
|
|
|
|
|
listProductBarcode(this.queryParams).then(response => {
|
|
|
|
|
this.barcodeList = response.rows;
|
|
|
|
|
this.total = response.total;
|
|
|
|
|
if (this.queryParams.singleFlag && this.queryParams.singleFlag === this.SINGLE_FLAG.YES) {
|
|
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
if (this.total && this.total > 0) {
|
|
|
|
|
if (this.queryParams.barcodeTypeStr) {
|
|
|
|
|
this.addBarcodeBtnVisible = true;
|
|
|
|
|
this.addDoorBarcodeBtnVisible = true;
|
|
|
|
|
this.barcodeList.forEach(e => {
|
|
|
|
|
if (e.barcodeType === this.BARCODE_TYPE.BACK_PLANE) {
|
|
|
|
|
this.addBarcodeBtnVisible = false;
|
|
|
|
|
} else if (e.barcodeType === this.BARCODE_TYPE.DOOR) {
|
|
|
|
|
this.addDoorBarcodeBtnVisible = false;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.addBarcodeBtnVisible = false;
|
|
|
|
|
}
|
|
|
|
|
} else {
|
|
|
|
|
this.addBarcodeBtnVisible = true;
|
|
|
|
|
this.addDoorBarcodeBtnVisible = true;
|
|
|
|
|
this.handleAdd();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// if (this.queryParams.singleFlag && this.queryParams.singleFlag === this.SINGLE_FLAG.YES) {
|
|
|
|
|
//
|
|
|
|
|
// } else {
|
|
|
|
|
// if (this.total && this.total > 0) {
|
|
|
|
|
// if (this.queryParams.barcodeTypeStr) {
|
|
|
|
|
// this.addBarcodeBtnVisible = true;
|
|
|
|
|
// this.addDoorBarcodeBtnVisible = true;
|
|
|
|
|
// this.barcodeList.forEach(e => {
|
|
|
|
|
// if (e.barcodeType === this.BARCODE_TYPE.BACK_PLANE) {
|
|
|
|
|
// this.addBarcodeBtnVisible = false;
|
|
|
|
|
// } else if (e.barcodeType === this.BARCODE_TYPE.DOOR) {
|
|
|
|
|
// this.addDoorBarcodeBtnVisible = false;
|
|
|
|
|
// }
|
|
|
|
|
// })
|
|
|
|
|
// } else {
|
|
|
|
|
// this.addBarcodeBtnVisible = false;
|
|
|
|
|
// }
|
|
|
|
|
// } else {
|
|
|
|
|
// this.addBarcodeBtnVisible = true;
|
|
|
|
|
// this.addDoorBarcodeBtnVisible = true;
|
|
|
|
|
// this.handleAdd();
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
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>
|
|
|
|
|