Browse Source

2026-01-26

新增项目物料时BU不能为空
master
fengyuan_yang 1 month ago
parent
commit
db448601d4
  1. 6
      src/views/modules/project/projectInfo/com_project_info_part.vue

6
src/views/modules/project/projectInfo/com_project_info_part.vue

@ -2759,7 +2759,11 @@ import {downLoadFile, queryFileId, readPartFromFile} from "../../../../api/part/
* 新增项目物料 * 新增项目物料
*/ */
saveProjectPartModal () { saveProjectPartModal () {
if (this.partList2.every(x => x.customerPartNo == null || x.customerPartNo === '')) {
if (this.partList2.some(x => x.buNo == null || x.buNo === '')) {
this.$message.warning('BU不能为空!')
return
}
if (this.partList2.some(x => x.customerPartNo == null || x.customerPartNo === '')) {
this.$message.warning('客户料号不能为空!') this.$message.warning('客户料号不能为空!')
return return
} }

Loading…
Cancel
Save