Commit a4564991 by zhangtw

申领、入库页面调整

parent a568381b
...@@ -271,8 +271,6 @@ export default { ...@@ -271,8 +271,6 @@ export default {
data () { data () {
return { return {
// 表单验证规则 // 表单验证规则
inboundRules: {
},
importShow: false, importShow: false,
impBtnDisabled: false, impBtnDisabled: false,
// 时间范围数组 // 时间范围数组
...@@ -731,6 +729,10 @@ export default { ...@@ -731,6 +729,10 @@ export default {
this.inboundModal.saving = false this.inboundModal.saving = false
return return
} }
if (this.inboundModal.details === null || this.inboundModal.details.length < 1) {
this.$Message.warning('请至少入库一条用品')
return
}
// 2. 验证明细数据 // 2. 验证明细数据
const invalidDetails = this.inboundModal.details.filter(detail => { const invalidDetails = this.inboundModal.details.filter(detail => {
return !detail.inbound_quantity || detail.inbound_quantity <= 0 return !detail.inbound_quantity || detail.inbound_quantity <= 0
......
...@@ -506,8 +506,7 @@ export default { ...@@ -506,8 +506,7 @@ export default {
} }
} }
}, },
{ title: '单位', key: 'unit' }, { title: '单位', key: 'unit' }
{ title: '备注', key: 'issue_remark' }
], ],
approveDetailColumns: [ approveDetailColumns: [
{ title: '物料名称', key: 'material_name' }, { title: '物料名称', key: 'material_name' },
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论