|
@ -49,6 +49,11 @@ |
|
|
:height="'100%'" |
|
|
:height="'100%'" |
|
|
:header-cell-style="{ background: '#e3f0ff',color:'#333'}" |
|
|
:header-cell-style="{ background: '#e3f0ff',color:'#333'}" |
|
|
style="width: 100%"> |
|
|
style="width: 100%"> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
type="index" |
|
|
|
|
|
label="序号" |
|
|
|
|
|
width="50px" |
|
|
|
|
|
></el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="chassisNumber" |
|
|
prop="chassisNumber" |
|
|
label="底盘组" |
|
|
label="底盘组" |
|
@ -57,9 +62,22 @@ |
|
|
prop="itemCode" |
|
|
prop="itemCode" |
|
|
label="物料代码" |
|
|
label="物料代码" |
|
|
></el-table-column> |
|
|
></el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="itemName" |
|
|
|
|
|
label="物料名称" |
|
|
|
|
|
></el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="itemDesc1" |
|
|
|
|
|
label="物料描述1" |
|
|
|
|
|
></el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="configuration" |
|
|
|
|
|
label="配置" |
|
|
|
|
|
></el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="creationTime" |
|
|
prop="creationTime" |
|
|
label="时间" |
|
|
label="时间" |
|
|
|
|
|
width="160px" |
|
|
> |
|
|
> |
|
|
<template slot-scope="scope"> |
|
|
<template slot-scope="scope"> |
|
|
{{ formatDate(scope.row.creationTime) }} |
|
|
{{ formatDate(scope.row.creationTime) }} |
|
@ -79,6 +97,22 @@ |
|
|
prop="itemCode" |
|
|
prop="itemCode" |
|
|
label="Kitting组别Bom" |
|
|
label="Kitting组别Bom" |
|
|
></el-table-column> |
|
|
></el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="chassisIndex" |
|
|
|
|
|
label="底盘序号" |
|
|
|
|
|
></el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="itemName" |
|
|
|
|
|
label="物料名称" |
|
|
|
|
|
></el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="itemDesc1" |
|
|
|
|
|
label="物料描述1" |
|
|
|
|
|
></el-table-column> |
|
|
|
|
|
<el-table-column |
|
|
|
|
|
prop="configuration" |
|
|
|
|
|
label="配置" |
|
|
|
|
|
></el-table-column> |
|
|
<el-table-column |
|
|
<el-table-column |
|
|
prop="qty" |
|
|
prop="qty" |
|
|
label="KittingBom数量" |
|
|
label="KittingBom数量" |
|
@ -97,7 +131,12 @@ |
|
|
</template> |
|
|
</template> |
|
|
<script> |
|
|
<script> |
|
|
import { getPageList,postCreate } from '@/api/wms-api' |
|
|
import { getPageList,postCreate } from '@/api/wms-api' |
|
|
import { ChassisGetListWithNextCount,pageLockToLogin,pageLockToLogout } from '@/api/wms-pad' |
|
|
import { |
|
|
|
|
|
ChassisGetListWithNextCount, |
|
|
|
|
|
pageLockToLogin, |
|
|
|
|
|
pageLockToLogout, |
|
|
|
|
|
getKittingChassisBom |
|
|
|
|
|
} from '@/api/wms-pad' |
|
|
import { formatTimeStrToStr } from "@/utils/formatTime" |
|
|
import { formatTimeStrToStr } from "@/utils/formatTime" |
|
|
import store from '@/store' |
|
|
import store from '@/store' |
|
|
export default { |
|
|
export default { |
|
@ -293,8 +332,37 @@ export default { |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
this.centerChassisList[0].canSelect = true |
|
|
this.centerChassisList[0].canSelect = true |
|
|
this.rightBottomBomData = this.currentKittingInfo.details |
|
|
// 初始化右下数据 |
|
|
this.loading = false |
|
|
let _ChassisBomData = {} |
|
|
|
|
|
let _Chassis_index = {} |
|
|
|
|
|
this.rightTopChassisGroup.forEach((Citem,Ckey)=>{ |
|
|
|
|
|
_ChassisBomData[Citem.chassisNumber] = Citem.itemCode |
|
|
|
|
|
_Chassis_index[Citem.chassisNumber] = Number(Ckey) + 1 |
|
|
|
|
|
}) |
|
|
|
|
|
// 初始化右下角底盘序号与右上数据序号相对应 |
|
|
|
|
|
getKittingChassisBom(this.currentKittingInfo.code,_ChassisBomData) |
|
|
|
|
|
.then(res=>{ |
|
|
|
|
|
let _rightData = [] |
|
|
|
|
|
this.currentKittingInfo.details.forEach(item=>{ |
|
|
|
|
|
let _item = JSON.parse(JSON.stringify(item)) |
|
|
|
|
|
res.forEach((rItem,rIndex)=>{ |
|
|
|
|
|
if(rItem.itemCode == _item.itemCode){ |
|
|
|
|
|
let _chassisIndex = [] |
|
|
|
|
|
rItem.chassisNumberList.forEach((litem,lindex)=>{ |
|
|
|
|
|
_chassisIndex.push(_Chassis_index[litem]) |
|
|
|
|
|
}) |
|
|
|
|
|
_item.chassisIndex = _chassisIndex.join(",") |
|
|
|
|
|
} |
|
|
|
|
|
}) |
|
|
|
|
|
_rightData.push(_item) |
|
|
|
|
|
}) |
|
|
|
|
|
this.rightBottomBomData = _rightData |
|
|
|
|
|
this.loading = false |
|
|
|
|
|
}) |
|
|
|
|
|
.catch(err => { |
|
|
|
|
|
this.rightBottomBomData = JSON.parse(JSON.stringify(this.currentKittingInfo.details)) |
|
|
|
|
|
this.loading = false |
|
|
|
|
|
}) |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
this.loading = false |
|
|
this.loading = false |
|
|
}) |
|
|
}) |
|
|