add:增加二次分配代码逻辑
This commit is contained in:
@@ -45,7 +45,7 @@
|
||||
<el-table-column show-overflow-tooltip prop="quanlity_in_box" label="箱内子卷数" align="center" />
|
||||
<el-table-column show-overflow-tooltip prop="package_box_sn" label="木箱号" align="center" />
|
||||
<el-table-column show-overflow-tooltip prop="container_name" label="子卷号" align="center" />
|
||||
<el-table-column show-overflow-tooltip prop="sap_pcsn" label="sap批次" align="center" />
|
||||
<el-table-column show-overflow-tooltip prop="paper_tube_description" label="子卷规格" align="center" />
|
||||
</el-table>
|
||||
</el-card>
|
||||
<div style="margin-bottom: 20px;" />
|
||||
@@ -82,9 +82,10 @@
|
||||
type="primary"
|
||||
icon="el-icon-plus"
|
||||
size="mini"
|
||||
:disabled="isButtonDisabled"
|
||||
@click="divStruct()"
|
||||
>
|
||||
分配
|
||||
分配木箱规格
|
||||
</el-button>
|
||||
</span>
|
||||
</div>
|
||||
@@ -103,10 +104,10 @@
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column show-overflow-tooltip prop="box_group" label="木箱组" align="center" width="130" />
|
||||
<el-table-column show-overflow-tooltip prop="container_name" label="子卷号" align="center" />
|
||||
<el-table-column show-overflow-tooltip prop="sap_pcsn" label="sap批次" align="center" />
|
||||
<el-table-column show-overflow-tooltip prop="paper_tube_description" label="子卷规格" align="center" />
|
||||
</el-table>
|
||||
</el-card>
|
||||
<MaterDiv ref="child" :dialog-show.sync="structShow" :sect-prop="sectProp" @tableChanged="tableChanged" />
|
||||
<MaterDiv ref="child" :dialog-show.sync="structShow" :paper_tube_description="paper_tube_description" :sect-prop="sectProp" @tableChanged="tableChanged" />
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
@@ -150,6 +151,7 @@ export default {
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
isButtonDisabled: false, // 木箱规格分配按钮
|
||||
searchText: '',
|
||||
// 存储搜索前的选中状态
|
||||
previousSelection: [],
|
||||
@@ -164,6 +166,7 @@ export default {
|
||||
stor_id: '',
|
||||
sect_id: '',
|
||||
sectProp: null,
|
||||
paper_tube_description: '',
|
||||
bucketProp: {},
|
||||
structShow: false,
|
||||
bucketObj: null,
|
||||
@@ -299,6 +302,7 @@ export default {
|
||||
// 表格1的行点击事件
|
||||
handleRowClick(scope) {
|
||||
debugger
|
||||
this.isButtonDisabled = !!(scope.status !== '99' || scope.box_group !== '0')
|
||||
const table2 = this.$refs.dis_table
|
||||
const table2Data = Array.from(this.openParam)
|
||||
const groupValue = scope.box_group === '0' ? scope.container_name : scope.box_group
|
||||
@@ -343,7 +347,9 @@ export default {
|
||||
this.$emit('childEvent')
|
||||
},
|
||||
divStruct() {
|
||||
debugger
|
||||
if (this.currentSelection.length > 0 && this.$refs.dis_table.selection.length > 0) {
|
||||
this.paper_tube_description = this.currentSelection[0].paper_tube_description
|
||||
this.structShow = true
|
||||
this.$refs.child.getMsg(false)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user