|
|
|
@ -7,65 +7,65 @@
|
|
|
|
|
<div class="chart">
|
|
|
|
|
<div class="whiteTable">
|
|
|
|
|
<el-table
|
|
|
|
|
:cell-style="{textAlign:'center'}"
|
|
|
|
|
:data="tableData"
|
|
|
|
|
:header-cell-style="{textAlign:'center'}"
|
|
|
|
|
:max-height="19.13 * vw"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
:cell-style="{textAlign:'center'}"
|
|
|
|
|
:data="tableData"
|
|
|
|
|
:header-cell-style="{textAlign:'center'}"
|
|
|
|
|
:max-height="19.13 * vw"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="序号"
|
|
|
|
|
type="index"
|
|
|
|
|
width="50"
|
|
|
|
|
label="序号"
|
|
|
|
|
type="index"
|
|
|
|
|
width="50"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="派工单号"
|
|
|
|
|
prop="planCode"
|
|
|
|
|
label="派工单号"
|
|
|
|
|
prop="planCode"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="物料名称"
|
|
|
|
|
prop="materialName"
|
|
|
|
|
width="100"
|
|
|
|
|
label="物料名称"
|
|
|
|
|
prop="materialName"
|
|
|
|
|
width="100"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="计划"
|
|
|
|
|
prop="planAmount"
|
|
|
|
|
width="100"
|
|
|
|
|
label="计划"
|
|
|
|
|
prop="planAmount"
|
|
|
|
|
width="100"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="实际"
|
|
|
|
|
prop="completeAmount"
|
|
|
|
|
width="100"
|
|
|
|
|
label="实际"
|
|
|
|
|
prop="completeAmount"
|
|
|
|
|
width="100"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="差异"
|
|
|
|
|
prop="difference"
|
|
|
|
|
width="100"
|
|
|
|
|
label="差异"
|
|
|
|
|
prop="difference"
|
|
|
|
|
width="100"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
{{ scope.row.planAmount - scope.row.completeAmount }}
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="交付时间"
|
|
|
|
|
prop="planDeliveryDate"
|
|
|
|
|
width="150"
|
|
|
|
|
label="交付时间"
|
|
|
|
|
prop="planDeliveryDate"
|
|
|
|
|
width="150"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="操作"
|
|
|
|
|
width="120"
|
|
|
|
|
label="操作"
|
|
|
|
|
width="120"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
size="small"
|
|
|
|
|
type="text"
|
|
|
|
|
@click="getDetail(scope)"
|
|
|
|
|
size="small"
|
|
|
|
|
type="text"
|
|
|
|
|
@click="getDetail(scope)"
|
|
|
|
|
>
|
|
|
|
|
明细
|
|
|
|
|
</el-button>
|
|
|
|
@ -104,93 +104,93 @@
|
|
|
|
|
<div class="chart">
|
|
|
|
|
<div class="whiteTable">
|
|
|
|
|
<el-table
|
|
|
|
|
:cell-style="{textAlign:'center'}"
|
|
|
|
|
:data="tableData1"
|
|
|
|
|
:header-cell-style="{textAlign:'center'}"
|
|
|
|
|
:max-height="19.13 * vw"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
:cell-style="{textAlign:'center'}"
|
|
|
|
|
:data="tableData1"
|
|
|
|
|
:header-cell-style="{textAlign:'center'}"
|
|
|
|
|
:max-height="19.13 * vw"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
|
|
|
|
|
>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="序号"
|
|
|
|
|
type="index"
|
|
|
|
|
width="50"
|
|
|
|
|
label="序号"
|
|
|
|
|
type="index"
|
|
|
|
|
width="50"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="派工单号"
|
|
|
|
|
prop="planCode"
|
|
|
|
|
width="80"
|
|
|
|
|
label="派工单号"
|
|
|
|
|
prop="planCode"
|
|
|
|
|
width="80"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="明细编号"
|
|
|
|
|
prop="planDetailCode"
|
|
|
|
|
label="明细编号"
|
|
|
|
|
prop="planDetailCode"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="开始时间"
|
|
|
|
|
prop="realBeginTime"
|
|
|
|
|
width="120"
|
|
|
|
|
label="开始时间"
|
|
|
|
|
prop="realBeginTime"
|
|
|
|
|
width="120"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="结束时间"
|
|
|
|
|
prop="realEndTime"
|
|
|
|
|
width="120"
|
|
|
|
|
label="结束时间"
|
|
|
|
|
prop="realEndTime"
|
|
|
|
|
width="120"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="状态"
|
|
|
|
|
prop="createTime"
|
|
|
|
|
width="80"
|
|
|
|
|
label="状态"
|
|
|
|
|
prop="createTime"
|
|
|
|
|
width="80"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.mes_plan_detail_status" :value="scope.row.planDetailStatus"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="操作"
|
|
|
|
|
width="160"
|
|
|
|
|
label="操作"
|
|
|
|
|
width="160"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-button
|
|
|
|
|
v-if="scope.row.planDetailStatus !== '3' && scope.row.planDetailStatus !== '9'"
|
|
|
|
|
size="small"
|
|
|
|
|
type="text"
|
|
|
|
|
@click="planExecute(scope.row)"
|
|
|
|
|
v-if="scope.row.planDetailStatus !== '3' && scope.row.planDetailStatus !== '9'"
|
|
|
|
|
size="small"
|
|
|
|
|
type="text"
|
|
|
|
|
@click="planExecute(scope.row)"
|
|
|
|
|
>
|
|
|
|
|
{{ scope.row.planDetailStatus === '1' ? '开始' : '完成' }}
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
v-if="scope.row.planDetailStatus === PLAN_DETAIL_STATUS.STARTED"
|
|
|
|
|
size="small"
|
|
|
|
|
type="text"
|
|
|
|
|
@click="getMaterials(scope) "
|
|
|
|
|
v-if="scope.row.planDetailStatus === PLAN_DETAIL_STATUS.STARTED"
|
|
|
|
|
size="small"
|
|
|
|
|
type="text"
|
|
|
|
|
@click="getMaterials(scope) "
|
|
|
|
|
>
|
|
|
|
|
领料
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
@click="handleMaterialConfirmForm(scope)"
|
|
|
|
|
size="small"
|
|
|
|
|
type="text"
|
|
|
|
|
v-if="scope.row.planDetailStatus === PLAN_DETAIL_STATUS.STARTED"
|
|
|
|
|
@click="handleMaterialConfirmForm(scope)"
|
|
|
|
|
size="small"
|
|
|
|
|
type="text"
|
|
|
|
|
v-if="scope.row.planDetailStatus === PLAN_DETAIL_STATUS.STARTED"
|
|
|
|
|
>
|
|
|
|
|
扫描
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="small"
|
|
|
|
|
type="text"
|
|
|
|
|
@click="returnMaterial(scope)"
|
|
|
|
|
v-if="scope.row.planDetailStatus !== PLAN_DETAIL_STATUS.TO_START"
|
|
|
|
|
size="small"
|
|
|
|
|
type="text"
|
|
|
|
|
@click="returnMaterial(scope)"
|
|
|
|
|
v-if="scope.row.planDetailStatus !== PLAN_DETAIL_STATUS.TO_START"
|
|
|
|
|
>
|
|
|
|
|
退库
|
|
|
|
|
</el-button>
|
|
|
|
|
<el-button
|
|
|
|
|
size="small"
|
|
|
|
|
type="text"
|
|
|
|
|
@click="print(scope.row)"
|
|
|
|
|
v-if="scope.row.planDetailStatus === PLAN_DETAIL_STATUS.FINISHED || scope.row.planDetailStatus === PLAN_DETAIL_STATUS.ABNORMAL_FINISHED"
|
|
|
|
|
size="small"
|
|
|
|
|
type="text"
|
|
|
|
|
@click="print(scope.row)"
|
|
|
|
|
v-if="scope.row.planDetailStatus === PLAN_DETAIL_STATUS.FINISHED || scope.row.planDetailStatus === PLAN_DETAIL_STATUS.ABNORMAL_FINISHED"
|
|
|
|
|
>
|
|
|
|
|
条码
|
|
|
|
|
</el-button>
|
|
|
|
@ -221,16 +221,16 @@
|
|
|
|
|
<el-row>
|
|
|
|
|
<el-button type="primary">首页</el-button>
|
|
|
|
|
<el-button type="success" @click="handleProductInstock">成品入库</el-button>
|
|
|
|
|
<!--el-button type="warning" @click="connectSerialPort" ref="connectSerialBtn">连接条码枪</el-button-->
|
|
|
|
|
<el-button type="warning" @click="handleProductOutstock">成品出库</el-button>
|
|
|
|
|
<!--el-button type="info">最小化</el-button-->
|
|
|
|
|
<el-button type="danger" @click="logout">退出</el-button>
|
|
|
|
|
</el-row>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
:visible.sync="dialogVisible"
|
|
|
|
|
title="领料"
|
|
|
|
|
width="40%">
|
|
|
|
|
:visible.sync="dialogVisible"
|
|
|
|
|
title="领料"
|
|
|
|
|
width="40%">
|
|
|
|
|
<el-form ref="form" :model="form" label-width="80px">
|
|
|
|
|
<el-form-item label="派工单号">
|
|
|
|
|
<el-input v-model="form.planCode" disabled></el-input>
|
|
|
|
@ -249,65 +249,65 @@
|
|
|
|
|
</el-form-item>
|
|
|
|
|
</el-form>
|
|
|
|
|
<el-table
|
|
|
|
|
:cell-style="{textAlign:'center'}"
|
|
|
|
|
:data="form.wmsRawOutstockDetailList"
|
|
|
|
|
:header-cell-style="{textAlign:'center'}"
|
|
|
|
|
max-height="19.13vw"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
:cell-style="{textAlign:'center'}"
|
|
|
|
|
:data="form.wmsRawOutstockDetailList"
|
|
|
|
|
:header-cell-style="{textAlign:'center'}"
|
|
|
|
|
max-height="19.13vw"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="物料编号"
|
|
|
|
|
prop="materialCode"
|
|
|
|
|
label="物料编号"
|
|
|
|
|
prop="materialCode"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="物料名称"
|
|
|
|
|
prop="materialName"
|
|
|
|
|
label="物料名称"
|
|
|
|
|
prop="materialName"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="安全库存"
|
|
|
|
|
prop="safeFlag"
|
|
|
|
|
label="安全库存"
|
|
|
|
|
prop="safeFlag"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<dict-tag :options="dict.type.mes_safe_flag" :value="scope.row.safeFlag"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="可用库存数量"
|
|
|
|
|
prop="availableAmount"
|
|
|
|
|
label="可用库存数量"
|
|
|
|
|
prop="availableAmount"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="占用库存数量"
|
|
|
|
|
prop="unavailableAmount"
|
|
|
|
|
label="占用库存数量"
|
|
|
|
|
prop="unavailableAmount"
|
|
|
|
|
>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="领取数量"
|
|
|
|
|
prop="planAmount"
|
|
|
|
|
width="120"
|
|
|
|
|
label="领取数量"
|
|
|
|
|
prop="planAmount"
|
|
|
|
|
width="120"
|
|
|
|
|
>
|
|
|
|
|
<template slot-scope="scope">
|
|
|
|
|
<el-input-number
|
|
|
|
|
v-model="scope.row.planAmount"
|
|
|
|
|
:min="0"
|
|
|
|
|
controls-position="right"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
v-model="scope.row.planAmount"
|
|
|
|
|
:min="0"
|
|
|
|
|
controls-position="right"
|
|
|
|
|
style="width: 100%"
|
|
|
|
|
>
|
|
|
|
|
</el-input-number>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
<el-table-column
|
|
|
|
|
label="操作"
|
|
|
|
|
width="160"
|
|
|
|
|
label="操作"
|
|
|
|
|
width="160"
|
|
|
|
|
>
|
|
|
|
|
<template slot="header" slot-scope="scope">
|
|
|
|
|
<el-input
|
|
|
|
|
v-model="searchMaterialValue"
|
|
|
|
|
placeholder="输入物料名称搜索"
|
|
|
|
|
size="mini"
|
|
|
|
|
@change="searchMaterial"/>
|
|
|
|
|
v-model="searchMaterialValue"
|
|
|
|
|
placeholder="输入物料名称搜索"
|
|
|
|
|
size="mini"
|
|
|
|
|
@change="searchMaterial"/>
|
|
|
|
|
</template>
|
|
|
|
|
</el-table-column>
|
|
|
|
|
</el-table>
|
|
|
|
@ -328,9 +328,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
:visible.sync="productInstockVisible"
|
|
|
|
|
title="成品入库"
|
|
|
|
|
width="40%">
|
|
|
|
|
:visible.sync="productInstockVisible"
|
|
|
|
|
:title="productInstockTitle"
|
|
|
|
|
width="40%">
|
|
|
|
|
<el-form ref="productInstockForm" :model="productInstockForm" :rules="productInstockRules" label-width="80px">
|
|
|
|
|
<el-form-item label="成品条码" prop="materialBarcode">
|
|
|
|
|
<el-input v-model="productInstockForm.materialBarcode" suffix-icon="el-icon-full-screen"></el-input>
|
|
|
|
@ -344,9 +344,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<el-dialog
|
|
|
|
|
:visible.sync="materialConfirmVisible"
|
|
|
|
|
title="确认物料使用"
|
|
|
|
|
width="40%">
|
|
|
|
|
:visible.sync="materialConfirmVisible"
|
|
|
|
|
title="确认物料使用"
|
|
|
|
|
width="40%">
|
|
|
|
|
<el-form ref="materialConfirmForm" :model="materialConfirmForm" :rules="materialConfirmRules" label-width="80px">
|
|
|
|
|
<el-form-item label="计划ID" prop="planId" v-if="false">
|
|
|
|
|
<el-input v-model="materialConfirmForm.planId"></el-input>
|
|
|
|
@ -378,7 +378,8 @@
|
|
|
|
|
<el-input v-model="returnModelForm.materialName" autocomplete="off" disabled></el-input>
|
|
|
|
|
</el-form-item-->
|
|
|
|
|
<el-form-item label="物料条码">
|
|
|
|
|
<el-input placeholder="请扫描或输入物料条码" v-model="returnModelForm.materialBarcode" suffix-icon="el-icon-full-screen">
|
|
|
|
|
<el-input placeholder="请扫描或输入物料条码" v-model="returnModelForm.materialBarcode"
|
|
|
|
|
suffix-icon="el-icon-full-screen">
|
|
|
|
|
</el-input>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="仓库">
|
|
|
|
@ -388,7 +389,8 @@
|
|
|
|
|
</el-select>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="数量" prop="planAmount">
|
|
|
|
|
<el-input-number v-model="returnModelForm.planAmount" controls-position="right" :min="1" style="width: 260px"></el-input-number>
|
|
|
|
|
<el-input-number v-model="returnModelForm.planAmount" controls-position="right" :min="1"
|
|
|
|
|
style="width: 260px"></el-input-number>
|
|
|
|
|
</el-form-item>
|
|
|
|
|
<el-form-item label="退库类型" prop="taskType">
|
|
|
|
|
<el-select v-model="returnModelForm.taskType" placeholder="请选择退库类型" style="width: 260px">
|
|
|
|
@ -421,6 +423,8 @@ import {
|
|
|
|
|
insertProductPlanDetails,
|
|
|
|
|
startProductPlanDetail,
|
|
|
|
|
fourthFloorProduceInstock,
|
|
|
|
|
check4thFloorProduceOutstock,
|
|
|
|
|
fourthFloorProduceOutstock,
|
|
|
|
|
scanMaterial2Confirm, applyRawReturn
|
|
|
|
|
} from "@/api/board";
|
|
|
|
|
import {monitorSerialData} from "@/utils/serial"
|
|
|
|
@ -461,7 +465,13 @@ export default {
|
|
|
|
|
tableData: [],
|
|
|
|
|
tableData1: [],
|
|
|
|
|
|
|
|
|
|
productInstockType: null,//类型,出库还是入库
|
|
|
|
|
PRODUCT_INSTOCK_TYPE: {
|
|
|
|
|
INSTOCK: "1",//入库
|
|
|
|
|
OUTSTOCK: "2",//出库
|
|
|
|
|
},
|
|
|
|
|
productInstockVisible: false,
|
|
|
|
|
productInstockTitle:'',
|
|
|
|
|
productInstockForm: {
|
|
|
|
|
materialBarcode: null
|
|
|
|
|
},
|
|
|
|
@ -497,11 +507,11 @@ export default {
|
|
|
|
|
],
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
PLAN_DETAIL_STATUS:{
|
|
|
|
|
TO_START : '1',
|
|
|
|
|
STARTED : '2',
|
|
|
|
|
FINISHED : '3',
|
|
|
|
|
ABNORMAL_FINISHED : '9'
|
|
|
|
|
PLAN_DETAIL_STATUS: {
|
|
|
|
|
TO_START: '1',
|
|
|
|
|
STARTED: '2',
|
|
|
|
|
FINISHED: '3',
|
|
|
|
|
ABNORMAL_FINISHED: '9'
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
@ -764,8 +774,6 @@ export default {
|
|
|
|
|
// },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
async logout() {
|
|
|
|
|
this.$confirm('确定退出系统吗?', '提示', {
|
|
|
|
|
confirmButtonText: '确定',
|
|
|
|
@ -817,20 +825,20 @@ export default {
|
|
|
|
|
startProductPlanDetail({
|
|
|
|
|
planDetailId: e.planDetailId
|
|
|
|
|
})
|
|
|
|
|
.finally(() => {
|
|
|
|
|
this.getDetail({row: {planId: e.planId}})
|
|
|
|
|
getProductPlans({pageNum: this.nowNum1, pageSize: 5}).then(e => {
|
|
|
|
|
this.tableData = e.rows
|
|
|
|
|
this.totalNum1 = Math.ceil(e.total / 5)
|
|
|
|
|
})
|
|
|
|
|
.finally(() => {
|
|
|
|
|
this.getDetail({row: {planId: e.planId}})
|
|
|
|
|
getProductPlans({pageNum: this.nowNum1, pageSize: 5}).then(e => {
|
|
|
|
|
this.tableData = e.rows
|
|
|
|
|
this.totalNum1 = Math.ceil(e.total / 5)
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'info',
|
|
|
|
|
message: '已取消'
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'info',
|
|
|
|
|
message: '已取消'
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
if (e.planDetailStatus === '2') {
|
|
|
|
|
this.$confirm('是否完成计划', '确认', {
|
|
|
|
@ -841,20 +849,20 @@ export default {
|
|
|
|
|
completeProductPlanDetail({
|
|
|
|
|
planDetailId: e.planDetailId
|
|
|
|
|
})
|
|
|
|
|
.finally(() => {
|
|
|
|
|
this.getDetail({row: {planId: e.planId}})
|
|
|
|
|
getProductPlans({pageNum: this.nowNum1, pageSize: 5}).then(e => {
|
|
|
|
|
this.tableData = e.rows
|
|
|
|
|
this.totalNum1 = Math.ceil(e.total / 5)
|
|
|
|
|
})
|
|
|
|
|
.finally(() => {
|
|
|
|
|
this.getDetail({row: {planId: e.planId}})
|
|
|
|
|
getProductPlans({pageNum: this.nowNum1, pageSize: 5}).then(e => {
|
|
|
|
|
this.tableData = e.rows
|
|
|
|
|
this.totalNum1 = Math.ceil(e.total / 5)
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'info',
|
|
|
|
|
message: '已取消'
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'info',
|
|
|
|
|
message: '已取消'
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
// 生成/获取明细
|
|
|
|
@ -883,12 +891,12 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'info',
|
|
|
|
|
message: '已取消'
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
.catch(() => {
|
|
|
|
|
this.$message({
|
|
|
|
|
type: 'info',
|
|
|
|
|
message: '已取消'
|
|
|
|
|
});
|
|
|
|
|
})
|
|
|
|
|
} else {
|
|
|
|
|
this.tableData1 = res.rows
|
|
|
|
|
this.totalNum2 = Math.ceil(res.total / 5)
|
|
|
|
@ -912,7 +920,7 @@ export default {
|
|
|
|
|
wmsRawOutstockDetailList: []
|
|
|
|
|
}
|
|
|
|
|
// 获取仓库信息
|
|
|
|
|
getWarehouses({"warehouseFloor": 4,"mesAreaType" : 4}).then(e => {
|
|
|
|
|
getWarehouses({"warehouseFloor": 4, "mesAreaType": 4}).then(e => {
|
|
|
|
|
this.warehouseList = e.data
|
|
|
|
|
this.form.warehouseId = e.data[0]?.warehouseId
|
|
|
|
|
this.searchMaterial("");
|
|
|
|
@ -977,6 +985,19 @@ export default {
|
|
|
|
|
|
|
|
|
|
/** 成品入库按钮操作 */
|
|
|
|
|
handleProductInstock() {
|
|
|
|
|
this.productInstockTitle = "成品入库";
|
|
|
|
|
this.productInstockType = this.PRODUCT_INSTOCK_TYPE.INSTOCK;
|
|
|
|
|
this.handleProductStock();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
/** 成品出库按钮操作 */
|
|
|
|
|
handleProductOutstock() {
|
|
|
|
|
this.productInstockTitle = "成品出库";
|
|
|
|
|
this.productInstockType = this.PRODUCT_INSTOCK_TYPE.OUTSTOCK;
|
|
|
|
|
this.handleProductStock();
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
handleProductStock() {
|
|
|
|
|
this.resetProductInstock();
|
|
|
|
|
this.productInstockVisible = true;
|
|
|
|
|
if (!this.checkSerialConnected()) {
|
|
|
|
@ -993,22 +1014,28 @@ export default {
|
|
|
|
|
showCancelButton: true,
|
|
|
|
|
type: 'warning'
|
|
|
|
|
}).then(() => {
|
|
|
|
|
console.log("dddd")
|
|
|
|
|
this.connectSerial(this.setSerialData);
|
|
|
|
|
}).catch(() => {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
submitProductInstock() {
|
|
|
|
|
this.$refs["productInstockForm"].validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
fourthFloorProduceInstock(this.productInstockForm).then(response => {
|
|
|
|
|
this.$modal.msgSuccess("入库成功");
|
|
|
|
|
this.cancelProductInstock();
|
|
|
|
|
});
|
|
|
|
|
if (this.productInstockType === this.PRODUCT_INSTOCK_TYPE.INSTOCK) {
|
|
|
|
|
fourthFloorProduceInstock(this.productInstockForm).then(response => {
|
|
|
|
|
this.$modal.msgSuccess("入库成功");
|
|
|
|
|
this.cancelProductInstock();
|
|
|
|
|
});
|
|
|
|
|
} else if (this.productInstockType === this.PRODUCT_INSTOCK_TYPE.OUTSTOCK) {
|
|
|
|
|
check4thFloorProduceOutstock(this.productInstockForm.materialBarcode).then(response => {
|
|
|
|
|
fourthFloorProduceOutstock(this.productInstockForm).then(response => {
|
|
|
|
|
this.$modal.msgSuccess("出库成功");
|
|
|
|
|
this.cancelProductInstock();
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
@ -1096,7 +1123,7 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
setReturnModelForm() {
|
|
|
|
|
getWarehouses({
|
|
|
|
|
mesAreaType : 3, //4楼装配区域
|
|
|
|
|
mesAreaType: 3, //4楼装配区域
|
|
|
|
|
//warehouseFloor: 4,
|
|
|
|
|
//materialBarcode: this.returnModelForm.materialBarcode
|
|
|
|
|
}).then(e => {
|
|
|
|
@ -1107,7 +1134,7 @@ export default {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
if(this.WarehousesList && this.WarehousesList.length>0){
|
|
|
|
|
if (this.WarehousesList && this.WarehousesList.length > 0) {
|
|
|
|
|
this.returnModelForm.warehouseId = this.WarehousesList[0].value;
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
@ -1161,7 +1188,7 @@ export default {
|
|
|
|
|
this.materialConfirmForm.materialBarcode = this.serialData;
|
|
|
|
|
} else if (this.productInstockVisible) {
|
|
|
|
|
this.productInstockForm.materialBarcode = this.serialData;
|
|
|
|
|
} else if(this.returnModelVisible){
|
|
|
|
|
} else if (this.returnModelVisible) {
|
|
|
|
|
this.returnModelForm.materialBarcode = this.serialData;
|
|
|
|
|
}
|
|
|
|
|
// console.log(this.serialData)
|
|
|
|
|