submitForm() {
this.$refs["formAdd"].validate(valid => {
if (valid) {
addWhole(this.formAdd).then(response => {
this.$modal.msgSuccess("新增成功");
this.getList();
// 20230703修改 =========新增成功后,清空数据=========
// this.reset();
// 20230703修改 =========新增成功后,清空数据,光标自动定位到整表号(自动定位到第一个文本框 整表号)=========
this.$refs.barCode.focus();
this.formAdd.barCode =" "
this.formAdd.baseNumber =" "
this.formAdd.customer =" "
this.formAdd.notes =" "
this.formAdd.operator =" "
// this.formAdd.externalVersion = "H051 2023052023050400003"; // 外板批次号
// this.formAdd.softwareVersion = "6019"; // 外板软件版本号
// this.formAdd.hardwareVersion = "HYX-CSGD-FA029-B1.0"; // 外板硬件版本号
// this.formAdd.surfaceOrientation = this.formAdd.data;
});
}
});
},