add:增加二次分配代码逻辑
This commit is contained in:
@@ -16,7 +16,7 @@
|
||||
clearable
|
||||
style="width: 200px"
|
||||
size="mini"
|
||||
placeholder="输入木箱物料名称"
|
||||
placeholder="输入关键词搜索"
|
||||
prefix-icon="el-icon-search"
|
||||
class="filter-item"
|
||||
/> </el-col>
|
||||
@@ -38,8 +38,13 @@
|
||||
@select-all="onSelectAll"
|
||||
>
|
||||
<el-table-column type="selection" width="55" />
|
||||
<el-table-column prop="material_code" label="木箱规格" />
|
||||
<el-table-column prop="box_no" label="木箱号" />
|
||||
<el-table-column prop="material_code" label="物料编码" />
|
||||
<el-table-column prop="material_name" label="物料名称" />
|
||||
<el-table-column prop="box_length" label="木箱长度" />
|
||||
<el-table-column prop="box_width" label="木箱宽度" />
|
||||
<el-table-column prop="box_high" label="木箱高度" />
|
||||
<el-table-column prop="num" label="最大装卷数" />
|
||||
</el-table>
|
||||
<!--分页组件-->
|
||||
<pagination />
|
||||
@@ -47,6 +52,36 @@
|
||||
<el-button @click="dialogVisible = false">取 消</el-button>
|
||||
<el-button type="primary" @click="submit">确 定</el-button>
|
||||
</span>
|
||||
<el-dialog
|
||||
:visible.sync="dialogVisible1"
|
||||
width="28%"
|
||||
append-to-body
|
||||
@close="dialogVisible1 = false"
|
||||
>
|
||||
<template v-slot:title>
|
||||
<span class="warning-text1">提醒</span>
|
||||
</template>
|
||||
<br>
|
||||
<br>
|
||||
<span class="warning-text">
|
||||
请仔细核对子卷与木箱规格是否匹配,
|
||||
<br>
|
||||
<br>
|
||||
<span class="red-text">木箱长度为:{{ this.box_length }}</span>,
|
||||
<br>
|
||||
<br>
|
||||
<span class="red-text">子卷规格为:{{ this.paper_tube_description }}</span>,
|
||||
<br>
|
||||
<br>
|
||||
点击确定后将立即生成木箱出库任务,无法更改!
|
||||
</span>
|
||||
<br>
|
||||
<br>
|
||||
<span slot="footer" class="dialog-footer">
|
||||
<el-button @click="dialogVisible1 = false">取消</el-button>
|
||||
<el-button type="primary" @click="confirmSubmit">确定</el-button>
|
||||
</span>
|
||||
</el-dialog>
|
||||
</el-dialog>
|
||||
</template>
|
||||
|
||||
@@ -63,10 +98,10 @@ export default {
|
||||
return CRUD({
|
||||
title: '木箱规格',
|
||||
optShow: {},
|
||||
url: 'api/Materialbase',
|
||||
idField: 'material_id',
|
||||
sort: 'material_id,desc',
|
||||
query: { box: '木箱', search: 'MX', material_id: '' },
|
||||
url: 'api/pdmBiSubpackagerelation/queryBoxSpec',
|
||||
idField: 'box_id',
|
||||
sort: 'material_name,desc',
|
||||
query: { material_id: '' },
|
||||
crudMethod: { ...crudMaterattr }
|
||||
})
|
||||
},
|
||||
@@ -78,12 +113,18 @@ export default {
|
||||
},
|
||||
sectProp: {
|
||||
type: Object
|
||||
},
|
||||
paperTubeDescription: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
box_length: '',
|
||||
classes: [],
|
||||
dialogVisible: false,
|
||||
dialogVisible1: false,
|
||||
sect: {},
|
||||
checkrow: {},
|
||||
rows: [],
|
||||
@@ -170,14 +211,39 @@ export default {
|
||||
submit() {
|
||||
debugger
|
||||
this.rows = this.$refs.table.selection
|
||||
this.box_length = this.rows[0].box_length
|
||||
if (this.rows.length <= 0) {
|
||||
this.$message('请先选择木箱信息')
|
||||
return
|
||||
}
|
||||
this.dialogVisible1 = true
|
||||
},
|
||||
confirmSubmit() {
|
||||
this.dialogVisible1 = false
|
||||
this.$emit('update:dialogShow', false)
|
||||
this.$emit('tableChanged', this.checkrow)
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.warning-text {
|
||||
color: black;
|
||||
text-align: left;
|
||||
font-size: 18px;
|
||||
display: block;
|
||||
}
|
||||
.red-text {
|
||||
color: red;
|
||||
text-align: left;
|
||||
font-size: 17px;
|
||||
font-weight: bold;
|
||||
}
|
||||
.warning-text1 {
|
||||
color: orange;
|
||||
text-align: left;
|
||||
font-size: 19px;
|
||||
display: block;
|
||||
font-weight: bold;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user