|
|
|
@ -4,6 +4,7 @@
|
|
|
|
|
:width="900"
|
|
|
|
|
:visible="visible"
|
|
|
|
|
:confirmLoading="confirmLoading"
|
|
|
|
|
:maskClosable="false"
|
|
|
|
|
cancelText="关闭"
|
|
|
|
|
okText="保存"
|
|
|
|
|
@ok="handleSubmit"
|
|
|
|
@ -137,9 +138,7 @@ import {
|
|
|
|
|
if (this.goodsCategory) {
|
|
|
|
|
const arr = []
|
|
|
|
|
this.goodsCategory.map((item, index) => {
|
|
|
|
|
if (!arr.includes(item.goodsCategory)) {
|
|
|
|
|
arr.push(item.goodsCategory)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
return arr
|
|
|
|
|
} else {
|
|
|
|
@ -190,6 +189,7 @@ import {
|
|
|
|
|
},
|
|
|
|
|
goodsCategorySelect(value) {
|
|
|
|
|
const index = this.goodsCategoryArr.indexOf(value)
|
|
|
|
|
debugger
|
|
|
|
|
this.form.setFieldsValue({
|
|
|
|
|
goodsCategory: this.goodsCategory[index].goodsCategory || '',
|
|
|
|
|
goodsCategoryName: this.goodsCategory[index].goodsCategoryName || ''
|
|
|
|
|