diff --git a/src/views/modules/orderIssure/newSoIssueNotify.vue b/src/views/modules/orderIssure/newSoIssueNotify.vue index 8b50318..ca6c4f7 100644 --- a/src/views/modules/orderIssure/newSoIssueNotify.vue +++ b/src/views/modules/orderIssure/newSoIssueNotify.vue @@ -1051,7 +1051,7 @@ export default { columnLabel: '物料编码', columnHidden: false, columnImage: false, - columnSortable: false, + columnSortable: true, sortLv: 0, status: true, fixed: false, diff --git a/src/views/modules/orderIssure/searchIssureNotify.vue b/src/views/modules/orderIssure/searchIssureNotify.vue index a435fc5..ac86ebf 100644 --- a/src/views/modules/orderIssure/searchIssureNotify.vue +++ b/src/views/modules/orderIssure/searchIssureNotify.vue @@ -172,6 +172,18 @@ + + + + 修改 + 删除 + + @@ -273,6 +285,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 全数领料 + + + + + + 保存 + 关闭 + + + { + this.bomLoadFlag = false + if (data.code === 0) { + this.sobomList = data.rows + for (let i = 0; i < this.sobomList.length; i++) { + this.sobomList[i].itemNo = inData.itemNo + } + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定' + }) + } + }).catch(() => { + this.bomLoadFlag = false + this.$message.error('获取物料明细失败') + }) + }, + // 全数领料 + qtyAllForBom(row) { + row.qtyToIssue = row.qtyRequired + }, + // 保存物料明细 + saveMaterialDetail() { + for (let i = 0; i < this.sobomList.length; i++) { + if ( + this.sobomList[i].qtyToIssue === '' || + this.sobomList[i].qtyToIssue == null + ) { + this.sobomList[i].qtyToIssue = 0 + } + this.sobomList[i].notifyNo = this.currentRow.notifyNo + this.sobomList[i].site = this.currentRow.site || this.$store.state.user.site + } + + let materialList = this.sobomList.filter((item) => item.qtyToIssue > 0) + if (materialList.length == 0) { + this.$alert('没有需要保存的内容!', '提示', { + confirmButtonText: '确定', + }) + return false + } + saveMaterialDetail(materialList).then(({ data }) => { + if (data.code === 0) { + this.materialModalFlag = false + this.refreshCurrentTabTable() + this.$message.success('操作成功') + } else { + this.$alert(data.msg, '错误', { + confirmButtonText: '确定', + }) + } + }) + }, @@ -1513,6 +1692,12 @@ text-align: right !important; } +.yzzTable /deep/.el-table .cell { + line-height: 20px; + font-size: 12px; + height: 20px; +} + .single-line-multi-select >>> .el-select__tags { display: flex; flex-wrap: nowrap;