diff --git a/src/views/wms/outorder/index.vue b/src/views/wms/outorder/index.vue index 6da8610a..68eff00f 100644 --- a/src/views/wms/outorder/index.vue +++ b/src/views/wms/outorder/index.vue @@ -586,12 +586,19 @@ export default { } var bull = _this.selectedRows.some((item) => { // console.log(item.stationNo == undefined || item.stationNo == '',item.stationNo) - return item.stationNo == undefined || item.stationNo == '' + return item.productionLineCode == undefined || item.productionLineCode == '' }) + if (bull) { _this.$modal.msgError("请选择包装线"); return } + + _this.selectedRows.forEach(function(row) { + // 在这里处理每个元素 + row.stationNo = row.productionLineCode; + console.log(row); + }); if (this.form.ID != null) { // updateOutorder(this.form).then(response => { // this.$modal.msgSuccess("修改成功");