refactor(wms): 移除钢卷号重复校验并替换部门选择组件
移除多个组件中关于钢卷号重复的远程校验逻辑,改为本地校验 将部门选择从DictSelect替换为el-select组件,直接从API获取部门数据
This commit is contained in:
@@ -395,31 +395,6 @@ export default {
|
||||
this.title = "修改收货单";
|
||||
});
|
||||
},
|
||||
/** 提交按钮 */
|
||||
submitForm() {
|
||||
this.$refs["form"].validate(valid => {
|
||||
if (valid) {
|
||||
this.buttonLoading = true;
|
||||
if (this.form.waybillId != null) {
|
||||
updateDeliveryWaybill(this.form).then(response => {
|
||||
this.$modal.msgSuccess("修改成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}).finally(() => {
|
||||
this.buttonLoading = false;
|
||||
});
|
||||
} else {
|
||||
addDeliveryWaybill(this.form).then(response => {
|
||||
this.$modal.msgSuccess("新增成功");
|
||||
this.open = false;
|
||||
this.getList();
|
||||
}).finally(() => {
|
||||
this.buttonLoading = false;
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
},
|
||||
/** 导出按钮操作 */
|
||||
handleExport() {
|
||||
this.download('wms/deliveryWaybill/export', {
|
||||
|
||||
Reference in New Issue
Block a user