|
@@ -1009,7 +1009,7 @@ export default {
|
|
|
async printBtnHandler() {
|
|
|
let res = await this.validateAndPrint();
|
|
|
if (!res) {
|
|
|
- this.$message.error("请完善数据");
|
|
|
+ // this.$message.error("请完善数据");
|
|
|
}
|
|
|
},
|
|
|
async readStateChange() {
|
|
@@ -1108,7 +1108,7 @@ export default {
|
|
|
if (isValidate) {
|
|
|
this.setWeight(weight);
|
|
|
} else {
|
|
|
- this.$message.warning("请完善表单数据");
|
|
|
+ // this.$message.warning("请完善表单数据");
|
|
|
}
|
|
|
return isValidate;
|
|
|
},
|
|
@@ -1181,6 +1181,7 @@ export default {
|
|
|
addIsValidate() {
|
|
|
return new Promise((resolve, reject) => {
|
|
|
if (!this.currentRow.lotNum || this.isDisabled) {
|
|
|
+ this.$message.warning("请选择产品");
|
|
|
resolve(false);
|
|
|
}
|
|
|
this.$refs.form.validate(
|
|
@@ -1188,11 +1189,13 @@ export default {
|
|
|
if (valid) {
|
|
|
resolve(true);
|
|
|
} else {
|
|
|
+ this.$message.warning("请完善表单数据");
|
|
|
resolve(false);
|
|
|
}
|
|
|
},
|
|
|
(error) => {
|
|
|
console.log(error);
|
|
|
+ this.$message.warning("请完善表单数据");
|
|
|
resolve(false);
|
|
|
}
|
|
|
);
|
|
@@ -1241,7 +1244,7 @@ export default {
|
|
|
console.log(res);
|
|
|
if (res.code == 200 && res.status == "success") {
|
|
|
this.$message.success(res.msg);
|
|
|
- if (this.excuteType == 1 && this.printAuto) {
|
|
|
+ if (this.excuteType == 1) {
|
|
|
this.tableData.push(printRow);
|
|
|
}
|
|
|
} else {
|