|
|
|
@ -10,15 +10,6 @@
|
|
|
|
|
:loading="loading"
|
|
|
|
|
>保存
|
|
|
|
|
</el-button>
|
|
|
|
|
<!-->-->
|
|
|
|
|
<!--<el-button-->
|
|
|
|
|
<!--type="primary"-->
|
|
|
|
|
<!--@click.native="saveOrder('2')"-->
|
|
|
|
|
<!--:loading="loading"-->
|
|
|
|
|
<!-->未配货提交-->
|
|
|
|
|
<!--</el-button-->
|
|
|
|
|
<!-->-->
|
|
|
|
|
|
|
|
|
|
<el-button
|
|
|
|
|
type="primary"
|
|
|
|
|
@click.native="saveOrder('3')"
|
|
|
|
@ -575,11 +566,11 @@ export default {
|
|
|
|
|
this.submitFunction(status);
|
|
|
|
|
} else {
|
|
|
|
|
for (let i = 0; i < this.codeArray.length; i++) {
|
|
|
|
|
if (this.$isBlank(this.codeArray[i].batchNo)) {
|
|
|
|
|
if (!this.codeArray[i].allowNoBatch) {
|
|
|
|
|
return this.$message.error('批次号不能为空');
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
// if (this.$isBlank(this.codeArray[i].batchNo)) {
|
|
|
|
|
// if (!this.codeArray[i].allowNoBatch) {
|
|
|
|
|
// return this.$message.error('批次号不能为空');
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
if (this.$isBlank(this.codeArray[i].productDate) && this.$isBlank(this.codeArray[i].expireDate)) {
|
|
|
|
|
return this.$message.error('生产日期与失效日期不能全部为空');
|
|
|
|
|
}
|
|
|
|
@ -935,36 +926,36 @@ export default {
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
saveCodeArray(index, row) {
|
|
|
|
|
if (this.$isBlank(row.batchNo)) {
|
|
|
|
|
return this.$message.error('批次号不能为空');
|
|
|
|
|
}
|
|
|
|
|
if (this.$isBlank(row.productDate)) {
|
|
|
|
|
return this.$message.error('生产日期不能为空');
|
|
|
|
|
}
|
|
|
|
|
if (this.$isBlank(row.expireDate)) {
|
|
|
|
|
return this.$message.error('失效日期不能为空');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this.$refs.multipleTable.setCurrentRow();
|
|
|
|
|
this.currentRow = {};
|
|
|
|
|
this.selectedIndex = "";
|
|
|
|
|
this.iCount = 0;
|
|
|
|
|
|
|
|
|
|
this.detailLoading = true;
|
|
|
|
|
// row.count = row.reCount;
|
|
|
|
|
let tQuery = row;
|
|
|
|
|
uploadStockOrderDetail(tQuery).then((response) => {
|
|
|
|
|
this.detailLoading = false;
|
|
|
|
|
if (response.code === 20000) {
|
|
|
|
|
this.$message.success("修改完成");
|
|
|
|
|
this.getStockOrderDetailList();
|
|
|
|
|
this.$refs.inputRef.focus();
|
|
|
|
|
} else {
|
|
|
|
|
this.$message.error(response.message);
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
// saveCodeArray(index, row) {
|
|
|
|
|
// if (this.$isBlank(row.batchNo)) {
|
|
|
|
|
// return this.$message.error('批次号不能为空');
|
|
|
|
|
// }
|
|
|
|
|
// if (this.$isBlank(row.productDate)) {
|
|
|
|
|
// return this.$message.error('生产日期不能为空');
|
|
|
|
|
// }
|
|
|
|
|
// if (this.$isBlank(row.expireDate)) {
|
|
|
|
|
// return this.$message.error('失效日期不能为空');
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// this.$refs.multipleTable.setCurrentRow();
|
|
|
|
|
// this.currentRow = {};
|
|
|
|
|
// this.selectedIndex = "";
|
|
|
|
|
// this.iCount = 0;
|
|
|
|
|
//
|
|
|
|
|
// this.detailLoading = true;
|
|
|
|
|
// // row.count = row.reCount;
|
|
|
|
|
// let tQuery = row;
|
|
|
|
|
// uploadStockOrderDetail(tQuery).then((response) => {
|
|
|
|
|
// this.detailLoading = false;
|
|
|
|
|
// if (response.code === 20000) {
|
|
|
|
|
// this.$message.success("修改完成");
|
|
|
|
|
// this.getStockOrderDetailList();
|
|
|
|
|
// this.$refs.inputRef.focus();
|
|
|
|
|
// } else {
|
|
|
|
|
// this.$message.error(response.message);
|
|
|
|
|
// }
|
|
|
|
|
// });
|
|
|
|
|
// },
|
|
|
|
|
deleteCodeArray(index, row) {
|
|
|
|
|
this.$confirm("此操作将永久删除该数据, 是否继续?", "提示", {
|
|
|
|
|
confirmButtonText: "确定",
|
|
|
|
|