|
|
|
@ -313,10 +313,11 @@ |
|
|
|
<el-header style="width: 880px;height: 200px;padding: 0 0 0 0"> |
|
|
|
<span style="font-size: 12px" >可选物料</span> |
|
|
|
<el-table |
|
|
|
key="otherInboundTablePart1" |
|
|
|
height="200px" |
|
|
|
:data="partList1" |
|
|
|
border |
|
|
|
ref="partTable1" |
|
|
|
ref="partTable1Other" |
|
|
|
@selection-change="selectionPart1" |
|
|
|
highlight-current-row |
|
|
|
style="width: 100%"> |
|
|
|
@ -329,22 +330,22 @@ |
|
|
|
<el-table-column |
|
|
|
prop="partNo" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
min-width="80" |
|
|
|
align="left" |
|
|
|
min-width="100" |
|
|
|
label="物料编码"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="partDesc" |
|
|
|
header-align="center" |
|
|
|
align="left" |
|
|
|
min-width="120" |
|
|
|
min-width="300" |
|
|
|
label="物料名称"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="unit" |
|
|
|
header-align="center" |
|
|
|
align="left" |
|
|
|
min-width="120" |
|
|
|
min-width="100" |
|
|
|
label="物料单位"> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
@ -370,10 +371,11 @@ |
|
|
|
<span style="font-size: 12px" >已选物料</span> |
|
|
|
<div class="rq"> |
|
|
|
<el-table |
|
|
|
key="otherInboundTable" |
|
|
|
height="200px" |
|
|
|
:data="partList2" |
|
|
|
border |
|
|
|
ref="partTable2" |
|
|
|
ref="partTable2Other" |
|
|
|
@selection-change="selectionPart2" |
|
|
|
highlight-current-row |
|
|
|
style="width: 100%"> |
|
|
|
@ -386,22 +388,22 @@ |
|
|
|
<el-table-column |
|
|
|
prop="partNo" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
min-width="80" |
|
|
|
align="left" |
|
|
|
min-width="100" |
|
|
|
label="物料编码"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="partDesc" |
|
|
|
header-align="center" |
|
|
|
align="left" |
|
|
|
min-width="120" |
|
|
|
min-width="300" |
|
|
|
label="物料名称"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
min-width="100" |
|
|
|
align="right" |
|
|
|
min-width="80" |
|
|
|
label="要求入库数量"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input |
|
|
|
@ -412,18 +414,48 @@ |
|
|
|
</el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="" |
|
|
|
header-align="center" |
|
|
|
align="left" |
|
|
|
min-width="100" |
|
|
|
label="关联单号"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input |
|
|
|
:controls="false" |
|
|
|
v-model="scope.row.relatedOrderNo" |
|
|
|
style="height: 11px; width: 98%;"> |
|
|
|
</el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="" |
|
|
|
header-align="center" |
|
|
|
align="left" |
|
|
|
min-width="100" |
|
|
|
label="关联单行号"> |
|
|
|
<template slot-scope="scope"> |
|
|
|
<el-input |
|
|
|
:controls="false" |
|
|
|
v-model="scope.row.relatedOrderLineNo" |
|
|
|
style="height: 11px; width: 98%;"> |
|
|
|
</el-input> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
</el-footer> |
|
|
|
</el-container> |
|
|
|
|
|
|
|
<el-container v-else-if="detailSearchData.orderType === '生产入库'"> |
|
|
|
<el-header style="width: 880px;height: 200px;padding: 0 0 0 0"> |
|
|
|
<span style="font-size: 12px" >可选物料</span> |
|
|
|
<el-table |
|
|
|
key="productionInboundTablePart1" |
|
|
|
height="200px" |
|
|
|
:data="partList1" |
|
|
|
border |
|
|
|
ref="partTable1" |
|
|
|
ref="partTable1Production" |
|
|
|
@selection-change="selectionPart1" |
|
|
|
highlight-current-row |
|
|
|
style="width: 100%"> |
|
|
|
@ -451,7 +483,7 @@ |
|
|
|
prop="partDesc" |
|
|
|
header-align="center" |
|
|
|
align="left" |
|
|
|
min-width="200" |
|
|
|
min-width="300" |
|
|
|
label="物料名称"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
@ -505,10 +537,11 @@ |
|
|
|
<span style="font-size: 12px" >已选物料</span> |
|
|
|
<div class="rq"> |
|
|
|
<el-table |
|
|
|
key="productionInboundTable" |
|
|
|
height="200px" |
|
|
|
:data="partList2" |
|
|
|
border |
|
|
|
ref="partTable2" |
|
|
|
ref="partTable2Production" |
|
|
|
@selection-change="selectionPart2" |
|
|
|
highlight-current-row |
|
|
|
style="width: 100%"> |
|
|
|
@ -521,22 +554,22 @@ |
|
|
|
<el-table-column |
|
|
|
prop="relatedOrderNo" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
min-width="80" |
|
|
|
align="left" |
|
|
|
min-width="100" |
|
|
|
label="生产订单"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="partNo" |
|
|
|
header-align="center" |
|
|
|
align="center" |
|
|
|
min-width="80" |
|
|
|
align="left" |
|
|
|
min-width="100" |
|
|
|
label="物料编码"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
prop="partDesc" |
|
|
|
header-align="center" |
|
|
|
align="left" |
|
|
|
min-width="150" |
|
|
|
min-width="300" |
|
|
|
label="物料名称"> |
|
|
|
</el-table-column> |
|
|
|
<el-table-column |
|
|
|
@ -1406,12 +1439,22 @@ |
|
|
|
|
|
|
|
// 可选物料 |
|
|
|
partClickRow1 (row) { |
|
|
|
this.$refs.partTable1.toggleRowSelection(row) |
|
|
|
const tableRef = this.detailSearchData.orderType === '其他入库' |
|
|
|
? this.$refs.partTable1Other |
|
|
|
: this.$refs.partTable1Production |
|
|
|
if (tableRef) { |
|
|
|
tableRef.toggleRowSelection(row) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
// 已有物料 |
|
|
|
partClickRow2 (row) { |
|
|
|
this.$refs.partTable2.toggleRowSelection(row) |
|
|
|
const tableRef = this.detailSearchData.orderType === '其他入库' |
|
|
|
? this.$refs.partTable2Other |
|
|
|
: this.$refs.partTable2Production |
|
|
|
if (tableRef) { |
|
|
|
tableRef.toggleRowSelection(row) |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
|
selectionPart1 (val) { |
|
|
|
@ -1440,6 +1483,7 @@ |
|
|
|
this.partSelections1.forEach(item => { |
|
|
|
this.partList2.push(item) |
|
|
|
}) |
|
|
|
console.log(this.partList2) |
|
|
|
this.searchTypeChange() |
|
|
|
}, |
|
|
|
|
|
|
|
|