|
|
|
@ -299,7 +299,7 @@ export default {
|
|
|
|
|
// 表单重置
|
|
|
|
|
reset() {
|
|
|
|
|
this.form = {
|
|
|
|
|
ID: null,
|
|
|
|
|
id: null,
|
|
|
|
|
procureCode: null,
|
|
|
|
|
materialCode: null,
|
|
|
|
|
materialName: null,
|
|
|
|
@ -341,8 +341,8 @@ export default {
|
|
|
|
|
/** 修改按钮操作 */
|
|
|
|
|
handleUpdate(row) {
|
|
|
|
|
this.reset();
|
|
|
|
|
const ID = row.id || this.ids
|
|
|
|
|
getBpprocure(ID).then(response => {
|
|
|
|
|
const id = row.id || this.ids
|
|
|
|
|
getBpprocure(id).then(response => {
|
|
|
|
|
this.form = response.data;
|
|
|
|
|
this.open = true;
|
|
|
|
|
this.title = "修改白坯原材料采购单";
|
|
|
|
@ -352,7 +352,7 @@ export default {
|
|
|
|
|
submitForm() {
|
|
|
|
|
this.$refs["form"].validate(valid => {
|
|
|
|
|
if (valid) {
|
|
|
|
|
if (this.form.ID != null) {
|
|
|
|
|
if (this.form.id != null) {
|
|
|
|
|
updateBpprocure(this.form).then(response => {
|
|
|
|
|
this.$modal.msgSuccess("修改成功");
|
|
|
|
|
this.open = false;
|
|
|
|
|