Browse Source

2025-10-14

收货入库任务通知入库明细新增关联单号和关联单行号
master
fengyuan_yang 3 months ago
parent
commit
18bdf83445
  1. 86
      src/views/modules/qc/inboundNotification.vue

86
src/views/modules/qc/inboundNotification.vue

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

Loading…
Cancel
Save