@ -25,20 +25,44 @@
< / e l - f o r m - i t e m >
< / e l - f o r m >
< div style = "text-align: center" >
< el -button type = "success" v-if ="(!$route.query || $route.query.id==='2')" :disabled="form.planDetailStatus === '已完成' || !form.planDetailCode" @click="getMaterials('0')" > 领 料
< el -button type = "success" v -if = " ( ! $ route.query | | $ route.query.id = = = ' 2 ' ) "
: disabled = "form.planDetailStatus === '已完成' || !form.planDetailCode"
@ click = "getMaterials('0')" > 领料
< / e l - b u t t o n >
< el -button type = "warning" v-if ="(!$route.query || $route.query.id==='2')" :disabled="form.planDetailStatus === '已完成' || !form.planDetailCode" @click="handleMaterialConfirmForm()" > 扫 描
< el -button type = "info" v -if = " ( ! $ route.query | | $ route.query.id = = = ' 2 ' ) "
: disabled = "form.planDetailStatus === '已完成' || !form.planDetailCode"
@ click = "completeCollectMaterials()" > 完成领料
< / e l - b u t t o n >
< el -button type = "danger" @click ="returnMaterial()" v-if ="(!$route.query || $route.query.id==='2')" :disabled="!form.planDetailCode" > 退 料
< el -button type = "warning" v -if = " ( ! $ route.query | | $ route.query.id = = = ' 2 ' ) "
: disabled = "form.planDetailStatus === '已完成' || !form.planDetailCode"
@ click = "handleMaterialConfirmForm()" > 扫描
< / e l - b u t t o n >
< el -button type = "primary" v-if ="($route.query && $route.query.id) !== '2'" :disabled="form.planDetailStatus === '已完成' || !form.planDetailCode" @click="getMaterials('1')" >
< el -button type = "danger" @click ="returnMaterial()" v -if = " ( ! $ route.query | | $ route.query.id = = = ' 2 ' ) "
: disabled = "!form.planDetailCode" > 退料
< / e l - b u t t o n >
< el -button type = "info" @click ="completeReturnMaterials()" v -if = " ( ! $ route.query | | $ route.query.id = = = ' 2 ' ) "
: disabled = "!form.planDetailCode" > 完成退料
< / e l - b u t t o n >
< el -button type = "primary" v -if = " ( $ route.query & & $ route.query.id ) ! = = ' 2 ' "
: disabled = "form.planDetailStatus === '已完成' || !form.planDetailCode"
@ click = "getMaterials('1')" >
领柜体
< / e l - b u t t o n >
< el -button v-if ="($route.query && $route.query.id) !== '2'" type="info" :disabled="form.planDetailStatus === '已完成' || !form.planDetailCode" @click="handleBindBarcode" > 绑 定
< el -button type = "danger" v -if = " ( $ route.query & & $ route.query.id ) ! = = ' 2 ' "
: disabled = "form.planDetailStatus === '已完成' || !form.planDetailCode"
@ click = "print()" >
条码
< / e l - b u t t o n >
< el -button v-if ="($route.query && $route.query.id) !== '2'" type="warning" :disabled="form.planDetailStatus === '已完成' || !form.planDetailCode" @click="handleRawBack" > 返 库
<!-- el - button v - if = "($route.query && $route.query.id) !== '2'" type = "info"
: disabled = "form.planDetailStatus === '已完成' || !form.planDetailCode"
@ click = "handleBindBarcode" > 绑定
< / e l - b u t t o n - - >
< el -button v -if = " ( $ route.query & & $ route.query.id ) ! = = ' 2 ' " type = "warning"
: disabled = "form.planDetailStatus === '已完成' || !form.planDetailCode" @ click = "handleRawBack" > 返库
< / e l - b u t t o n >
< el -button : disabled = "form.planDetailStatus === '已完成' || !form.planDetailCode" type = "success"
@ click = "finish" > 完成
< / e l - b u t t o n >
< el -button : disabled = "form.planDetailStatus === '已完成' || !form.planDetailCode" type = "primary" @click ="finish" > 完 成 < / el -button >
< el -popover
v - if = "($route.query && $route.query.id) !== '2'"
v - model = "assignModel"
@ -61,11 +85,12 @@
< div style = "float:right;margin-top: 8px" >
< el -button type = "primary" :loading ="submitAssignLoading" @click ="completeStation" > 确 定 < / el -button >
< / div >
< el -button slot = "reference" type = "success" : disabled = "form.planDetailStatus === '已完成' || !form.planDetailCode" >下发
< / e l - b u t t o n >
<!-- el - button slot = "reference" type = "success" : disabled = "form.planDetailStatus === '已完成' || !form.planDetailCode" >下发
< / e l - b u t t o n -- >
< / e l - p o p o v e r >
< / div >
< / div >
< / div >
@ -156,19 +181,10 @@
size = "small"
style = "margin-right: 12px"
type = "text"
@ click = "SOP(scope.row)"
@ click = "SOP(scope.row)"
>
SOP预览
< / e l - b u t t o n >
< el -button
v - if = "($route.query && $route.query.id) !== '2'"
size = "small"
style = "margin-right: 12px"
type = "text"
@ click = "print(scope.row)"
>
条码打印
< / e l - b u t t o n >
<!-- < el -button - - >
<!-- size = "small" -- >
<!-- type = "text" -- >
@ -200,7 +216,7 @@
trigger = "click" >
< div >
< div style = "margin: 15px 0;" >
< el -input placeholder = "请扫描或输入 物料 条码" v-model ="input1" class="input-with-select" >
< el -input placeholder = "请扫描或输入 背板 条码" v-model ="input1" class="input-with-select" >
< el -button slot = "append" icon = "el-icon-full-screen" > < / e l - b u t t o n >
< / e l - i n p u t >
< / div >
@ -339,7 +355,7 @@
< / e l - d i a l o g >
< el -dialog :visible.sync ="printModel" class = "dialog" title = "条码打印" width = "80%" >
< div >
< div >
< PrintPage :defineData ="PrintData" v -if = " printModel " / >
< / div >
< div slot = "footer" class = "dialog-footer" >
@ -353,7 +369,7 @@
title = "柜体绑定"
width = "40%" >
< el -form ref = "bindBarcodeForm" :model ="bindBarcodeForm" :rules ="bindBarcodeRules" label -width = " 80px " >
< el -form -item label = " 成品 条码" prop = "productBarcode" >
< el -form -item label = " 背板 条码" prop = "productBarcode" >
< el -input v-model ="bindBarcodeForm.productBarcode" > < / el -input >
< / e l - f o r m - i t e m >
< el -form -item label = "物料条码" prop = "materialBarcode" >
@ -369,16 +385,16 @@
< el -dialog
: visible . sync = "rawBackVisible"
title = "柜体返库"
width = " 40% ">
width = " 500px ">
< el -form ref = "rawBackForm" :model ="rawBackForm" :rules ="rawBackRules" label -width = " 80px " >
< el -form -item label = "返库仓库" prop = "warehouseId" >
< el -select v-model ="rawBackForm.warehouseId" placeholder="请选择返库仓库" >
< el -select v-model ="rawBackForm.warehouseId" placeholder="请选择返库仓库" style="width:380px" >
< el -option v -for = " item in warehouseList " :key ="item.warehouseId" :label ="item.warehouseName"
: value = "item.warehouseId" > < / e l - o p t i o n >
< / e l - s e l e c t >
< / e l - f o r m - i t e m >
< el -form -item label = " 物料 条码" prop = "materialBarcode" >
< el -input v-model ="rawBackForm.materialBarcode" > < / el -input >
< el -form -item label = " 柜体 条码" prop = "materialBarcode" >
< el -input v-model ="rawBackForm.materialBarcode" suffix-icon="el-icon-full-screen" style="width:380px" > < / el -input >
< / e l - f o r m - i t e m >
< / e l - f o r m >
< div slot = "footer" class = "dialog-footer" >
@ -413,34 +429,37 @@
< / e l - d i a l o g >
< el -dialog :visible.sync ="returnModelVisible" title = "退料" width = "25%" >
< el -form ref = "returnModelForm" :model ="returnModelForm" label -width = " 80px " :rules ="returnModelFormRules" >
< el -form -item label = "计划编号" >
< el -form -item label = "计划编号" >
< el -input v -model = " returnModelForm.planCode " autocomplete = "off" disabled > < / e l - i n p u t >
< / e l - f o r m - i t e m >
< el -form -item label = "明细编号" >
< el -form -item label = "明细编号" >
< el -input v -model = " returnModelForm.planDetailCode " autocomplete = "off" disabled > < / e l - i n p u t >
< / e l - f o r m - i t e m >
< el -form -item label = "成品" >
< el -form -item label = "成品" >
< el -input v -model = " returnModelForm.materialName " autocomplete = "off" disabled > < / e l - i n p u t >
< / e l - f o r m - i t e m >
< el -form -item label = "物料条码" >
< el -input placeholder = "请输入内容" v-model ="returnModelForm.materialBarcode" class="input-with-select" @blur="setReturnModelForm" >
< el -form -item label = "物料条码" >
< el -input placeholder = "请输入内容" v -model = " returnModelForm.materialBarcode " class = "input-with-select"
@ blur = "setReturnModelForm" >
< el -button slot = "append" icon = "el-icon-search" > < / e l - b u t t o n >
< / e l - i n p u t >
< / e l - f o r m - i t e m >
< el -form -item label = "仓库" >
< el -select v-model ="returnModelForm.warehouseId" placeholder="请选择仓库" :disabled="!returnModelForm.materialBarcode" >
< el -form -item label = "仓库" >
< el -select v -model = " returnModelForm.warehouseId " placeholder = "请选择仓库"
: disabled = "!returnModelForm.materialBarcode" >
< el -option :label ="i.label" :key ="i.value" :value ="i.value" v-for ="i in WarehousesList" > < / el -option >
< / e l - s e l e c t >
< / e l - f o r m - i t e m >
< el -form -item label = "数量" >
< el -input -number v -model = " returnModelForm.planAmount " controls -position = " right " :min ="1" > < / e l - i n p u t - n u m b e r >
< el -form -item label = "数量" >
< el -input -number v-model ="returnModelForm.planAmount" controls-position="right" :min ="1" > < / el -input -number >
< / e l - f o r m - i t e m >
< el -form -item label = "退库类型" prop = "taskType" >
< el -select v-model ="returnModelForm.taskType" placeholder="请选择退库类型" >
< el -option :label ="i.label" :key ="i.value" :value ="i.value" v-for ="i in dict.type.wms_raw_return_task_type" > < / el -option >
< el -option :label ="i.label" :key ="i.value" :value ="i.value"
v - for = "i in dict.type.wms_raw_return_task_type" > < / e l - o p t i o n >
< / e l - s e l e c t >
< / e l - f o r m - i t e m >
< el -form -item label = "申请原因" >
< el -form -item label = "申请原因" >
< el -input type = "textarea" v-model ="returnModelForm.applyReason" autocomplete="off" > < / el -input >
< / e l - f o r m - i t e m >
< el -form -item >
@ -549,6 +568,7 @@ import PrintPage from '@/views/mes/barcode/endProductIndex'
import Chart from '@/components/board/Chart'
import * as echarts from 'echarts'
import {
getLoginStationInfo ,
completeProductPlanDetail ,
getNewestProductPlanDetail ,
getProductPlans ,
@ -559,7 +579,8 @@ import {
getWarehouses ,
bindBarcode ,
applyRawBack ,
assignTask , scanMaterial2Confirm , applyRawReturn
assignTask , scanMaterial2Confirm , applyRawReturn ,
getNewestOutstockCabinet , completeCollectMaterials , completeReturnMaterials
} from "@/api/board" ;
const setState = ( e ) => {
@ -580,7 +601,7 @@ export default {
Chart ,
PrintPage
} ,
dicts : [ 'wms_raw_return_task_type' , 'mes_safe_flag' ] ,
dicts : [ 'wms_raw_return_task_type' , 'mes_safe_flag' ] ,
data ( ) {
return {
fileList : [ ] ,
@ -588,9 +609,9 @@ export default {
pictureDetailModel : false ,
dialogImageUrl : '' ,
returnModelVisible : false ,
returnModelForm : { } ,
WarehousesList : [ ] ,
input1 : null ,
returnModelForm : { } ,
WarehousesList : [ ] ,
input1 : null ,
PrintData : { } ,
printModel : false ,
assignModel : false ,
@ -598,9 +619,9 @@ export default {
totalNum1 : 0 ,
getMaterialsModel : false ,
applyMaterialTitle : '' ,
planAmount : null ,
maxPlanAmount : 1 ,
taskType : '' ,
planAmount : null ,
maxPlanAmount : 1 ,
taskType : '' ,
dialogVisible : false ,
form : { } ,
form1 : { } ,
@ -622,20 +643,21 @@ export default {
materialConfirmForm : {
materialBarcode : null ,
planId : null ,
planDetailId : null ,
checkAmount : null
planDetailId : null ,
checkAmount : null
} ,
materialConfirmRules : {
materialBarcode : [
{ required : true , message : "物料条码不能为空" , trigger : "blur" }
{ required : true , message : "物料条码不能为空" , trigger : "blur" }
] ,
checkAmount : [
{ required : true , message : "数量不能为空" , trigger : "blur" }
{ required : true , message : "数量不能为空" , trigger : "blur" }
] ,
} ,
tableData : [ ] ,
nowStation : null ,
loginStationInfo : { } ,
stationData : [
{
stationName : '五楼装配工位1' ,
@ -695,189 +717,203 @@ export default {
} ,
returnModelFormRules : {
taskType : [
{ required : true , message : '请选择退库类型' , trigger : 'change' }
{ required : true , message : '请选择退库类型' , trigger : 'change' }
] ,
} ,
}
} ,
async mounted ( ) {
setInterval ( ( ) => {
this . $notify . info ( {
title : '通知' ,
message : '通知公告' ,
position : 'bottom-right' ,
duration : 0
} ) ;
} , 60 * 1000 )
getProductPlans ( { pageNum : this . nowNum1 , pageSize : 5 } ) . then ( e => {
this . tableData = e . rows
this . totalNum1 = Math . ceil ( e . total / 5 )
this . tableClick ( e . rows [ 0 ] )
} )
this . $refs . chart2 . setData ( {
tooltip : {
trigger : 'axis' ,
axisPointer : {
/ / 坐 标 轴 指 示 器 , 坐 标 轴 触 发 有 效
type : 'shadow' / / 默 认 为 直 线 , 可 选 为 : ' l i n e ' | ' s h a d o w '
}
} ,
grid : {
left : '0' ,
right : '4%' ,
bottom : '0' ,
top : 20 ,
containLabel : true
} ,
xAxis : {
type : 'category' ,
data : [ 1 , 2 , 3 , 4 , 5 , 6 ] ,
axisLine : {
lineStyle : {
color : 'white'
}
} ,
axisLabel : {
/ / i n t e r v a l : 0 ,
/ / r o t a t e : 4 0 ,
textStyle : {
fontFamily : 'Microsoft YaHei'
}
}
} ,
/ / s e t I n t e r v a l ( ( ) = > {
/ / t h i s . $ n o t i f y . i n f o ( {
/ / t i t l e : ' 通 知 ' ,
/ / m e s s a g e : ' 通 知 公 告 ' ,
/ / p o s i t i o n : ' b o t t o m - r i g h t ' ,
/ / d u r a t i o n : 0
/ / } ) ;
/ / } , 6 0 * 1 0 0 0 )
getLoginStationInfo ( ) . then ( e => {
this . loginStationInfo = e . data ;
this . getProductPlans ( ) ;
this . getChartData ( ) ;
} ) ;
} ,
yAxis : {
type : 'value' ,
axisLine : {
show : false ,
lineStyle : {
color : 'white'
methods : {
getProductPlans ( ) {
getProductPlans ( { pageNum : this . nowNum1 , pageSize : 5 } ) . then ( e => {
this . tableData = e . rows
this . totalNum1 = Math . ceil ( e . total / 5 )
this . tableClick ( e . rows [ 0 ] )
} )
} ,
getChartData ( ) {
this . $refs . chart2 . setData ( {
tooltip : {
trigger : 'axis' ,
axisPointer : {
/ / 坐 标 轴 指 示 器 , 坐 标 轴 触 发 有 效
type : 'shadow' / / 默 认 为 直 线 , 可 选 为 : ' l i n e ' | ' s h a d o w '
}
} ,
splitLine : {
show : false
grid : {
left : '0' ,
right : '4%' ,
bottom : '0' ,
top : 20 ,
containLabel : true
} ,
axisLabel : { }
} ,
series : [
{
name : '数量' ,
label : {
normal : {
show : true ,
position : 'top' ,
textStyle : {
color : '#a8aab0' ,
fontStyle : 'normal' ,
fontFamily : '微软雅黑' ,
fontSize : 0.75 * vw
}
xAxis : {
type : 'category' ,
data : [ 1 , 2 , 3 , 4 , 5 , 6 ] ,
axisLine : {
lineStyle : {
color : 'white'
}
} ,
type : 'bar' ,
barWidth : '30%' ,
barMaxWidth : 50 ,
itemStyle : {
normal : {
color : new echarts . graphic . LinearGradient ( 0 , 0 , 0 , 1 , [
{
offset : 0 ,
color : '#39ffff'
} ,
{
offset : 1 ,
color : '#5affa6'
}
] )
axisLabel : {
/ / i n t e r v a l : 0 ,
/ / r o t a t e : 4 0 ,
textStyle : {
fontFamily : 'Microsoft YaHei'
}
} ,
data : [ 1 , 2 , 3 , 4 , 5 , 6 ]
}
]
} )
this . $refs . chart4 . setData ( {
tooltip : {
trigger : 'axis' ,
axisPointer : {
/ / 坐 标 轴 指 示 器 , 坐 标 轴 触 发 有 效
type : 'shadow' / / 默 认 为 直 线 , 可 选 为 : ' l i n e ' | ' s h a d o w '
}
} ,
grid : {
left : '0' ,
right : '4%' ,
bottom : '0' ,
top : 20 ,
containLabel : true
} ,
xAxis : {
type : 'category' ,
data : [ 1 , 2 , 3 , 4 , 5 , 6 ] ,
axisLine : {
lineStyle : {
color : 'white'
}
} ,
axisLabel : {
/ / i n t e r v a l : 0 ,
/ / r o t a t e : 4 0 ,
textStyle : {
fontFamily : 'Microsoft YaHei'
}
}
} ,
yAxis : {
type : 'value' ,
axisLine : {
show : false ,
lineStyle : {
color : 'white'
yAxis : {
type : 'value' ,
axisLine : {
show : false ,
lineStyle : {
color : 'white'
}
} ,
splitLine : {
show : false
} ,
axisLabel : { }
} ,
series : [
{
name : '数量' ,
label : {
normal : {
show : true ,
position : 'top' ,
textStyle : {
color : '#a8aab0' ,
fontStyle : 'normal' ,
fontFamily : '微软雅黑' ,
fontSize : 0.75 * vw
}
}
} ,
type : 'bar' ,
barWidth : '30%' ,
barMaxWidth : 50 ,
itemStyle : {
normal : {
color : new echarts . graphic . LinearGradient ( 0 , 0 , 0 , 1 , [
{
offset : 0 ,
color : '#39ffff'
} ,
{
offset : 1 ,
color : '#5affa6'
}
] )
}
} ,
data : [ 1 , 2 , 3 , 4 , 5 , 6 ]
}
]
} )
this . $refs . chart4 . setData ( {
tooltip : {
trigger : 'axis' ,
axisPointer : {
/ / 坐 标 轴 指 示 器 , 坐 标 轴 触 发 有 效
type : 'shadow' / / 默 认 为 直 线 , 可 选 为 : ' l i n e ' | ' s h a d o w '
}
} ,
splitLine : {
show : false
grid : {
left : '0' ,
right : '4%' ,
bottom : '0' ,
top : 20 ,
containLabel : true
} ,
axisLabel : { }
} ,
series : [
{
name : '数量' ,
label : {
normal : {
show : true ,
position : 'top' ,
textStyle : {
color : '#a8aab0' ,
fontStyle : 'normal' ,
fontFamily : '微软雅黑' ,
fontSize : 0.75 * vw
}
xAxis : {
type : 'category' ,
data : [ 1 , 2 , 3 , 4 , 5 , 6 ] ,
axisLine : {
lineStyle : {
color : 'white'
}
} ,
type : 'bar' ,
barWidth : '30%' ,
barMaxWidth : 50 ,
itemStyle : {
normal : {
color : new echarts . graphic . LinearGradient ( 0 , 0 , 0 , 1 , [
{
offset : 0 ,
color : '#39ffff'
} ,
{
offset : 1 ,
color : '#5affa6'
}
] )
axisLabel : {
/ / i n t e r v a l : 0 ,
/ / r o t a t e : 4 0 ,
textStyle : {
fontFamily : 'Microsoft YaHei'
}
}
} ,
yAxis : {
type : 'value' ,
axisLine : {
show : false ,
lineStyle : {
color : 'white'
}
} ,
data : [ 1 , 2 , 3 , 4 , 5 , 6 ]
}
]
} )
} ,
methods : {
splitLine : {
show : false
} ,
axisLabel : { }
} ,
series : [
{
name : '数量' ,
label : {
normal : {
show : true ,
position : 'top' ,
textStyle : {
color : '#a8aab0' ,
fontStyle : 'normal' ,
fontFamily : '微软雅黑' ,
fontSize : 0.75 * vw
}
}
} ,
type : 'bar' ,
barWidth : '30%' ,
barMaxWidth : 50 ,
itemStyle : {
normal : {
color : new echarts . graphic . LinearGradient ( 0 , 0 , 0 , 1 , [
{
offset : 0 ,
color : '#39ffff'
} ,
{
offset : 1 ,
color : '#5affa6'
}
] )
}
} ,
data : [ 1 , 2 , 3 , 4 , 5 , 6 ]
}
]
} )
} ,
async logout ( ) {
this . $confirm ( '确定退出系统吗?' , '提示' , {
@ -905,11 +941,11 @@ export default {
this . totalNum1 = Math . ceil ( e . total / 5 )
} )
} ,
async startPlan ( val , materialBarcode ) {
async startPlan ( val , materialBarcode ) {
let data ;
if ( materialBarcode && materialBarcode !== '' ) {
data = await scan2StartNextProductPlanDetail ( { planId : val . planId , materialBarcode : materialBarcode } )
} else {
if ( materialBarcode && materialBarcode !== '' ) {
data = await scan2StartNextProductPlanDetail ( { planId : val . planId , materialBarcode : materialBarcode } )
} else {
data = await startNextProductPlanDetail ( { planId : val . planId } )
}
@ -926,11 +962,11 @@ export default {
this . form . planDetailStatus = setState ( data . data . planDetailStatus )
this . getInfo ( val )
} ,
closePopover ( ) {
closePopover ( ) {
document . body . click ( )
} ,
async startPlan1 ( val ) {
if ( ! this . input1 || this . input1 == null || this . input1 == undefined || this . input1 == '' ) {
if ( ! this . input1 || this . input1 == null || this . input1 == undefined || this . input1 == '' ) {
this . $modal . msgWarning ( "请扫描或输入物料条码" ) ;
return ;
}
@ -959,7 +995,7 @@ export default {
this . form . materialCode = val . materialCode
this . form . materialName = val . materialName
this . form . saleOrderId = val . saleOrderId
if ( data ) {
if ( data ) {
this . form . planDetailStatus = setState ( data . planDetailStatus )
}
@ -1360,7 +1396,7 @@ export default {
this . applyMaterialTitle = "领料" ;
this . planAmount = null ;
this . maxPlanAmount = 1000000000 ;
this . taskType = '1' ; / / 生 产 领 料
this . taskType = '1' ; / / 生 产 领 料
}
this . searchMaterialValue = ''
@ -1373,6 +1409,8 @@ export default {
saleOrderId : this . form ? . saleOrderId ,
applyReason : '' ,
taskType : '1' ,
stationId : this . loginStationInfo . stationId ,
endStationCode : this . loginStationInfo . stationCode ,
wmsRawOutstockDetailList : [ ]
}
/ / 获 取 仓 库 信 息
@ -1430,9 +1468,17 @@ export default {
} )
} ,
print ( val ) {
this . PrintData = val
this . printModel = true
print ( ) {
getNewestOutstockCabinet ( { planDetailCode : this . form . planDetailCode } ) . then ( response => {
if ( ! response . data ) {
this . $modal . msgWarning ( "请先领取柜体" ) ;
return ;
}
this . PrintData = this . form
this . PrintData . bindBarcode = response . data . materialBatch ;
this . PrintData . barcodeType = '4' ; / / 背 板
this . printModel = true
} ) ;
} ,
assignClick ( ) {
this . assignModel = true
@ -1516,14 +1562,13 @@ export default {
} ,
/ / 表 单 重 置
resetMaterialConfirm ( ) {
this . materialConfirmForm = {
materialBarcode : null ,
planId : null ,
planDetailId : null ,
checkAmount : null
planDetailId : null ,
checkAmount : null
} ;
this . resetForm ( "materialConfirmForm" ) ;
} ,
@ -1533,14 +1578,14 @@ export default {
this . materialConfirmForm = {
materialBarcode : null ,
planId : this . form . planId ,
planDetailId : this . form . planDetailId ,
checkAmount : null
planDetailId : this . form . planDetailId ,
checkAmount : null
} ;
this . materialConfirmVisible = true ;
} ,
submitMaterialConfirm ( ) {
submitMaterialConfirm ( ) {
this . $refs [ "materialConfirmForm" ] . validate ( valid => {
if ( valid ) {
scanMaterial2Confirm ( this . materialConfirmForm ) . then ( response => {
@ -1551,7 +1596,7 @@ export default {
} ) ;
} ,
cancelMaterialConfirm ( ) {
cancelMaterialConfirm ( ) {
this . materialConfirmVisible = false ;
this . resetMaterialConfirm ( ) ;
} ,
@ -1559,29 +1604,29 @@ export default {
this . returnModelVisible = true
this . returnModelForm = this . form
} ,
setReturnModelForm ( ) {
setReturnModelForm ( ) {
getWarehouses ( {
warehouseFloor : 5 ,
materialBarcode : this . returnModelForm . materialBarcode
} ) . then ( e => {
this . WarehousesList = e . data . map ( v => {
warehouseFloor : 5 ,
materialBarcode : this . returnModelForm . materialBarcode
} ) . then ( e => {
this . WarehousesList = e . data . map ( v => {
return {
label : v . warehouseName ,
value : v . warehouseId ,
label : v . warehouseName ,
value : v . warehouseId ,
}
} )
} )
} ,
returnModelConfirm ( ) {
returnModelConfirm ( ) {
this . $refs . returnModelForm . validate ( ( valid ) => {
if ( valid ) {
let data = { }
let keys = [ 'warehouseId' , 'planCode' , 'planDetailCode' , 'productId' , 'materialBarcode' , 'planAmount' , 'taskType' , 'applyReason' ]
keys . forEach ( v => {
let keys = [ 'warehouseId' , 'planCode' , 'planDetailCode' , 'productId' , 'materialBarcode' , 'planAmount' , 'taskType' , 'applyReason' ]
keys . forEach ( v => {
data [ v ] = this . returnModelForm [ v ]
} )
applyRawReturn ( data ) . then ( v => {
if ( v . code === 200 ) {
applyRawReturn ( data ) . then ( v => {
if ( v . code === 200 ) {
this . $message ( {
message : '退库成功' ,
type : 'success'
@ -1661,6 +1706,18 @@ export default {
return [ 'png' , 'jpg' , 'jpeg' ] . includes ( name . toLowerCase ( ) )
} ,
completeCollectMaterials ( ) {
completeCollectMaterials ( { endStationCode : this . loginStationInfo . stationCode } ) . then ( v => {
this . $modal . msgSuccess ( "操作成功" ) ;
} )
} ,
completeReturnMaterials ( ) {
completeReturnMaterials ( { endStationCode : this . loginStationInfo . stationCode } ) . then ( v => {
this . $modal . msgSuccess ( "操作成功" ) ;
} )
} ,
}
}
< / script >