Commit fb1ef4e5 authored by 我在何方's avatar 我在何方

新增商品异常修复

parent 6674dc0e
...@@ -328,6 +328,7 @@ export default { ...@@ -328,6 +328,7 @@ export default {
packagingList: getDictDatas(DICT_TYPE.ECW_PACKAGING_TYPE), packagingList: getDictDatas(DICT_TYPE.ECW_PACKAGING_TYPE),
locationList: getDictDatas(DICT_TYPE.ECW_CONTAINER_LOCATION), locationList: getDictDatas(DICT_TYPE.ECW_CONTAINER_LOCATION),
preferentialList:[], preferentialList:[],
exceptionProductId:0//新增商品异常传的id
}; };
}, },
...@@ -372,9 +373,10 @@ export default { ...@@ -372,9 +373,10 @@ export default {
if(this.$route.query.typeId != this.queryParams.typeId){ if(this.$route.query.typeId != this.queryParams.typeId){
this.queryParams.typeId = +this.$route.query.typeId || null this.queryParams.typeId = +this.$route.query.typeId || null
} }
//新增商品异常跳转商品修改
if(this.$route.query.prodId){ if(this.$route.query.prodId){
console.log(this.$route.query.prodId) this.exceptionProductId = this.$route.query.prodId
this.handleUpdate({id:this.$route.query.prodId}) this.handleUpdate({id:this.$route.query.prodId})
} }
this.getList() this.getList()
}, },
...@@ -382,8 +384,8 @@ export default { ...@@ -382,8 +384,8 @@ export default {
console.log(111) console.log(111)
//新增商品异常跳转商品修改 //新增商品异常跳转商品修改
if(this.$route.query.prodId){ if(this.$route.query.prodId){
console.log(this.$route.query.prodId) this.exceptionProductId = this.$route.query.prodId
this.handleUpdate({id:this.$route.query.prodId}) this.handleUpdate({id:this.$route.query.prodId})
} }
let typeId = this.$route.query.typeId; let typeId = this.$route.query.typeId;
if (typeId) { if (typeId) {
...@@ -532,6 +534,9 @@ export default { ...@@ -532,6 +534,9 @@ export default {
this.form.attrId = this.form.attrArray.join(','); this.form.attrId = this.form.attrArray.join(',');
// 修改的提交 // 修改的提交
if (this.form.id != null) { if (this.form.id != null) {
if(this.exceptionProductId){
this.form.productId = this.exceptionProductId
}
updateProduct(this.form).then(response => { updateProduct(this.form).then(response => {
this.$modal.msgSuccess(this.$t("修改成功")); this.$modal.msgSuccess(this.$t("修改成功"));
this.open = false; this.open = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment