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