//打开货物类型
columnsGoodsShow(){//console.log(this.suoyin1)
this.columnsgoods_show = true;//如果没有选中过就不走里面
if(this.suoyin1.length != 0){//通过索引拿到数据表中选中的二级类全部数据
let obj1 = this.columnsgoods[0].values[this.suoyin1[0]]//将当前选中的一级类数据和二级类数据赋值给数据表
this.columnsgoods= [{values: this.columnsgoods[0].values},{values: obj1.children}]this.$nextTick(function(){//通过索引在数据表中找到选中的那一项
this.$refs.ppkk.setIndexes(this.suoyin1)
})
}
},//改变货物类型
onChangegoods(picker, values,index) {//values会得到当前选中的一级和二级,因为一级下带有所有的二级,所以在children中找
picker.setColumnValues(1, values[0].children.filter(item =>item.text));
},//货物类型确认按钮
onConfirmgoods(value, index) {//console.log(value, index)
this.goodstypeval = value[0].text + '-' + value[1].text;this.CategoryParentID = value[0].id;//一级id
this.CategoryID =