|
@@ -165,7 +165,7 @@ export default {
|
|
|
md: 6,
|
|
|
isShow: this.formData.type.length > 0 && this.formData.type.indexOf('商品') < 0,
|
|
|
name: 'el-select',
|
|
|
- options: this.websitList,
|
|
|
+ options: this.websitList.map(item => ({ ...item, label: `(${item.value})${item.label}` })),
|
|
|
attributes: { filterable: true, placeholder: '请选择', disabled: this.formDialogType == 1 },
|
|
|
formItemAttributes: {
|
|
|
label: '所属网点',
|
|
@@ -254,7 +254,7 @@ export default {
|
|
|
value: item.websitId,
|
|
|
data: item
|
|
|
}))
|
|
|
- if (this.websitList.length) {
|
|
|
+ if (this.websitList.length === 1 && type === 'add') {
|
|
|
this.formData.websitId = this.websitList[0].websitId
|
|
|
this.formData.websitName = this.websitList[0].websitName
|
|
|
}
|