@ -153,6 +153,17 @@
v - hasPermi = "['wms:stocktotal:transferProduct']"
v - hasPermi = "['wms:stocktotal:transferProduct']"
> 转库存
> 转库存
< / e l - b u t t o n >
< / e l - b u t t o n >
< el -button
size = "mini"
type = "text"
icon = "el-icon-shopping-cart-1"
v - if = "scope.row.materialClassfication=== MATERIAL_CLASSFICATION.VIRTUAL"
@ click = "handleViewMaterialInfos(scope.row)"
v - hasPermi = "['wms:stocktotal:list']"
> 物料明细
< / e l - b u t t o n >
< / template >
< / template >
< / e l - t a b l e - c o l u m n >
< / e l - t a b l e - c o l u m n >
@ -286,6 +297,20 @@
< / div >
< / div >
< / e l - d i a l o g >
< / e l - d i a l o g >
< el -dialog title = "物料明细" :visible.sync ="materialListOpen" width = "560px" append -to -body >
< el -table :data ="materialList" >
< el -table -column label = "序号" type = "index" align = "center" / >
< el -table -column label = "物料编码" align = "center" prop = "materialCode" / >
< el -table -column label = "物料名称" align = "center" prop = "materialName" / >
< el -table -column label = "物料规格" align = "center" prop = "materialSpec" / >
< / e l - t a b l e >
< / e l - d i a l o g >
< / div >
< / div >
< / template >
< / template >
@ -297,9 +322,10 @@ import {
listProductstock ,
listProductstock ,
transferRaw ,
transferRaw ,
transferRawStockTotal ,
transferRawStockTotal ,
transferProductStockTotal
transferProductStockTotal ,
selectMaterialInfosByVirtualMaterialId
} from "@/api/wms/stocktotal" ;
} from "@/api/wms/stocktotal" ;
import { addWmslocation, getWarehouses, updateWmslocation } from "@//api/wms/wmslocation" ;
import { getWarehouses, } from "@//api/wms/wmslocation" ;
import selectSaleOrder from '@//views/mes/saleOrder/selectSaleOrder.vue' ;
import selectSaleOrder from '@//views/mes/saleOrder/selectSaleOrder.vue' ;
export default {
export default {
@ -416,6 +442,9 @@ export default {
} ,
} ,
selectSaleOrderVisible : false ,
selectSaleOrderVisible : false ,
materialListOpen : false ,
materialList : [ ]
} ;
} ;
} ,
} ,
watch : {
watch : {
@ -608,6 +637,7 @@ export default {
/ / 库 位 库 存 明 细 信 息 多 选 框 选 中 数 据
/ / 库 位 库 存 明 细 信 息 多 选 框 选 中 数 据
handleRawStockSelectionChange ( selection ) {
handleRawStockSelectionChange ( selection ) {
return ;
let index = 0 ;
let index = 0 ;
selection . forEach ( row => {
selection . forEach ( row => {
index = this . rawstockList . indexOf ( row ) ;
index = this . rawstockList . indexOf ( row ) ;
@ -633,6 +663,10 @@ export default {
/** 提交选择销售订单按钮 */
/** 提交选择销售订单按钮 */
submitSelectSaleOrderForm ( ) {
submitSelectSaleOrderForm ( ) {
let selectedRow = this . $refs . selectSaleOrderRef . selectedRow ;
let selectedRow = this . $refs . selectSaleOrderRef . selectedRow ;
if ( selectedRow . materialId !== this . form . materialId ) {
this . $modal . msgWarning ( "请选择相同物料的销售订单" ) ;
return ;
}
this . $set ( this . form , "saleorderCode" , selectedRow . saleorderCode ) ;
this . $set ( this . form , "saleorderCode" , selectedRow . saleorderCode ) ;
this . $set ( this . form , "saleOrderId" , selectedRow . saleOrderId ) ;
this . $set ( this . form , "saleOrderId" , selectedRow . saleOrderId ) ;
this . selectSaleOrderVisible = false ;
this . selectSaleOrderVisible = false ;
@ -693,11 +727,19 @@ export default {
this . transferType = "1" ;
this . transferType = "1" ;
this . form . index = ( this . stocktotalList . findIndex ( item => item . stockTotalId === row . stockTotalId ) ) + 1 ;
this . form . index = ( this . stocktotalList . findIndex ( item => item . stockTotalId === row . stockTotalId ) ) + 1 ;
this . form . stockTotalId = row . stockTotalId ;
this . form . stockTotalId = row . stockTotalId ;
this . form . materialId = row . materialId ;
this . rawStockInfosStr = "序号:" + this . form . index + " 物料编码:" + row . materialCode + " 物料名称:" + row . materialName + " 物料规格:" + row . materialSpec + " 可转数量:" + ( row . totalAmount - ( row . occupyAmount ? row . occupyAmount : 0 ) ) + " 销售订单:" + ( row . saleorderCode ? row . saleorderCode : "无" ) ;
this . rawStockInfosStr = "序号:" + this . form . index + " 物料编码:" + row . materialCode + " 物料名称:" + row . materialName + " 物料规格:" + row . materialSpec + " 可转数量:" + ( row . totalAmount - ( row . occupyAmount ? row . occupyAmount : 0 ) ) + " 销售订单:" + ( row . saleorderCode ? row . saleorderCode : "无" ) ;
this . open = true ;
this . open = true ;
} ,
} ,
handleViewMaterialInfos ( row ) {
this . materialListOpen = true ;
selectMaterialInfosByVirtualMaterialId ( { materialId : row . materialId } ) . then ( response => {
this . materialList = response . rows ;
} ) ;
}
}
}
} ;
} ;
< / script >
< / script >