|
|
|
@ -71,7 +71,7 @@
|
|
|
|
|
:disabled="single"
|
|
|
|
|
@click="handleUpdateAttached"
|
|
|
|
|
v-hasPermi="['wms:attached:edit']"
|
|
|
|
|
>修改附属属性</el-button
|
|
|
|
|
>新增/修改附属属性</el-button
|
|
|
|
|
>
|
|
|
|
|
</el-col>
|
|
|
|
|
<el-col :span="1.5">
|
|
|
|
@ -559,6 +559,7 @@ import {
|
|
|
|
|
addProduct,
|
|
|
|
|
updateProduct,
|
|
|
|
|
updateProductAttached,
|
|
|
|
|
addProductAttached,
|
|
|
|
|
} from "@/api/wms/product";
|
|
|
|
|
import { syncProductSAP } from "@/api/technology/proroute";
|
|
|
|
|
|
|
|
|
@ -814,8 +815,14 @@ export default {
|
|
|
|
|
this.form.id = response.data.id;
|
|
|
|
|
this.form.iei = response.data.iei;
|
|
|
|
|
this.form.manStandar = response.data.manStandar;
|
|
|
|
|
this.form.productCode = response.data.productCode.slice(7,18);
|
|
|
|
|
console.log(this.form.productCode);
|
|
|
|
|
this.openAttached = true;
|
|
|
|
|
this.title = "查看产品信息";
|
|
|
|
|
if(this.form.id == null){
|
|
|
|
|
this.title = "新增产品附属信息";
|
|
|
|
|
}else{
|
|
|
|
|
this.title = "修改产品附属信息";
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
|
|
|
|
@ -831,6 +838,12 @@ export default {
|
|
|
|
|
this.openAttached = false;
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
|
|
|
|
}else {
|
|
|
|
|
addProductAttached(this.form).then((response) => {
|
|
|
|
|
this.$modal.msgSuccess("新增产品附属信息成功");
|
|
|
|
|
this.openAttached = false;
|
|
|
|
|
this.getList();
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|