bug修复
This commit is contained in:
parent
98688dc658
commit
d1cab7e2fd
@ -116,8 +116,10 @@
|
|||||||
selectProductCateValue: function (newValue) {
|
selectProductCateValue: function (newValue) {
|
||||||
if (newValue != null && newValue.length === 2) {
|
if (newValue != null && newValue.length === 2) {
|
||||||
this.value.productCategoryId = newValue[1];
|
this.value.productCategoryId = newValue[1];
|
||||||
|
this.value.productCategoryName= this.getCateNameById(this.value.productCategoryId);
|
||||||
} else {
|
} else {
|
||||||
this.value.productCategoryId = null;
|
this.value.productCategoryId = null;
|
||||||
|
this.value.productCategoryName=null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -154,6 +156,18 @@
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
getCateNameById(id){
|
||||||
|
let name=null;
|
||||||
|
for(let i=0;i<this.productCateOptions.length;i++){
|
||||||
|
for(let j=0;i<this.productCateOptions[i].children.length;j++){
|
||||||
|
if(this.productCateOptions[i].children[j].value===id){
|
||||||
|
name=this.productCateOptions[i].children[j].label;
|
||||||
|
return name;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return name;
|
||||||
|
},
|
||||||
handleNext(formName){
|
handleNext(formName){
|
||||||
this.$refs[formName].validate((valid) => {
|
this.$refs[formName].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
@ -216,7 +216,7 @@
|
|||||||
:visible.sync="editSkuInfo.dialogVisible"
|
:visible.sync="editSkuInfo.dialogVisible"
|
||||||
width="40%">
|
width="40%">
|
||||||
<span>商品货号:</span>
|
<span>商品货号:</span>
|
||||||
<span>{{editSkuInfo.productName}}</span>
|
<span>{{editSkuInfo.productSn}}</span>
|
||||||
<el-input placeholder="按sku编号搜索" v-model="editSkuInfo.keyword" size="small" style="width: 50%;margin-left: 20px">
|
<el-input placeholder="按sku编号搜索" v-model="editSkuInfo.keyword" size="small" style="width: 50%;margin-left: 20px">
|
||||||
<el-button slot="append" icon="el-icon-search" @click="handleSearchEditSku"></el-button>
|
<el-button slot="append" icon="el-icon-search" @click="handleSearchEditSku"></el-button>
|
||||||
</el-input>
|
</el-input>
|
||||||
@ -301,7 +301,7 @@
|
|||||||
editSkuInfo:{
|
editSkuInfo:{
|
||||||
dialogVisible:false,
|
dialogVisible:false,
|
||||||
productId:null,
|
productId:null,
|
||||||
productName:'',
|
productSn:'',
|
||||||
productAttributeCategoryId:null,
|
productAttributeCategoryId:null,
|
||||||
stockList:[],
|
stockList:[],
|
||||||
productAttr:[],
|
productAttr:[],
|
||||||
@ -435,7 +435,7 @@
|
|||||||
handleShowSkuEditDialog(index,row){
|
handleShowSkuEditDialog(index,row){
|
||||||
this.editSkuInfo.dialogVisible=true;
|
this.editSkuInfo.dialogVisible=true;
|
||||||
this.editSkuInfo.productId=row.id;
|
this.editSkuInfo.productId=row.id;
|
||||||
this.editSkuInfo.productName=row.name;
|
this.editSkuInfo.productSn=row.productSn;
|
||||||
this.editSkuInfo.productAttributeCategoryId = row.productAttributeCategoryId;
|
this.editSkuInfo.productAttributeCategoryId = row.productAttributeCategoryId;
|
||||||
this.editSkuInfo.keyword=null;
|
this.editSkuInfo.keyword=null;
|
||||||
fetchSkuStockList(row.id,{keyword:this.editSkuInfo.keyword}).then(response=>{
|
fetchSkuStockList(row.id,{keyword:this.editSkuInfo.keyword}).then(response=>{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user