|
|
@@ -736,7 +736,7 @@ export default {
|
|
|
});
|
|
|
} else {
|
|
|
this.$message.success("撤销成功");
|
|
|
- this.refresh(this.form.id);
|
|
|
+ this.refresh(this.form.id,true);
|
|
|
}
|
|
|
})
|
|
|
.finally(() => {
|
|
|
@@ -878,20 +878,23 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
},
|
|
|
- refresh(id) {
|
|
|
+ refresh(id,type) {
|
|
|
const loading = this.$loading({
|
|
|
lock: true,
|
|
|
text: "加载中",
|
|
|
spinner: "el-icon-loading",
|
|
|
background: "rgba(255,255,255,0.7)"
|
|
|
});
|
|
|
- getDetails({ id: this.detailData.id })
|
|
|
+ getDetails({ id:id })
|
|
|
.then(res => {
|
|
|
if (res.data.data.statusName == "已出库") {
|
|
|
- this.editButton = true;
|
|
|
this.editDisabled = true;
|
|
|
this.optionForm.disabled = true;
|
|
|
}
|
|
|
+ if(type&&!this.editButton){
|
|
|
+ this.editDisabled = false;
|
|
|
+ this.optionForm.disabled = false;
|
|
|
+ }
|
|
|
this.form = res.data.data;
|
|
|
this.filesList = res.data.data.filesList;
|
|
|
})
|
|
|
@@ -931,13 +934,12 @@ export default {
|
|
|
},
|
|
|
//编辑
|
|
|
confirmEditing() {
|
|
|
+ this.editButton = false;
|
|
|
if (this.form.statusName == "待出库" || this.form.statusName == "撤销出库") {
|
|
|
- this.editButton = false;
|
|
|
this.editDisabled = false;
|
|
|
this.optionForm.disabled = false;
|
|
|
}
|
|
|
if (this.form.statusName == "已出库") {
|
|
|
- this.editButton = true;
|
|
|
this.editDisabled = true;
|
|
|
this.optionForm.disabled = true;
|
|
|
}
|