|
@@ -317,6 +317,13 @@ export default {
|
|
|
this.$errorMsg('物料不能为空')
|
|
|
return
|
|
|
}
|
|
|
+ for (let i = 0; i < this.tableData.length; i++) {
|
|
|
+ if (!this.tableData[i].number) {
|
|
|
+ this.$errorMsg('物料不能为空')
|
|
|
+ return
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
const policyIds = this.policyList.map(k => k.id).join(',')
|
|
|
const materialIds = this.tableData.map(k => k.id).join(',')
|
|
|
cancalMaterialPolicy({
|