|
@@ -63,7 +63,7 @@
|
63
|
63
|
<div style="width:50%">
|
64
|
64
|
<el-select v-model="detailSpecs" multiple placeholder="请选择" style="width:100%;">
|
65
|
65
|
<el-option
|
66
|
|
- v-for="item in (Case === '' ? [] : specs.list)"
|
|
66
|
+ v-for="item in ((Case || '') === '' ? [] : specs.list)"
|
67
|
67
|
:key="item.SpecId"
|
68
|
68
|
:label="item.SpecName"
|
69
|
69
|
:value="item.SpecId">
|
|
@@ -78,7 +78,7 @@
|
78
|
78
|
<div style="width:50%">
|
79
|
79
|
<el-select v-model="TypeId" placeholder="请选择商品类型">
|
80
|
80
|
<el-option
|
81
|
|
- v-for="item in (Case === '' ? [] : types.list)"
|
|
81
|
+ v-for="item in ((Case || '') === '' ? [] : types.list)"
|
82
|
82
|
:key="item.TypeId"
|
83
|
83
|
:label="item.TypeName"
|
84
|
84
|
:value="item.TypeId">
|
|
@@ -172,6 +172,13 @@ export default {
|
172
|
172
|
return x.ImgUrl
|
173
|
173
|
}
|
174
|
174
|
}).join(',')
|
|
175
|
+ if ((this.detail.CaseId || '') === '') {
|
|
176
|
+ this.$message({
|
|
177
|
+ type: 'error',
|
|
178
|
+ message: '案场不能为空'
|
|
179
|
+ })
|
|
180
|
+ return false
|
|
181
|
+ }
|
175
|
182
|
if ((this.detail.GoodsName || '') === '') {
|
176
|
183
|
this.$message({
|
177
|
184
|
type: 'error',
|
|
@@ -202,16 +209,6 @@ export default {
|
202
|
209
|
}
|
203
|
210
|
if ((this.detail.GoodsId || '') === '') {
|
204
|
211
|
this.detail.OrgId = this.orgid
|
205
|
|
- if (!this.detail.CaseId || this.detail.CaseId === '') {
|
206
|
|
- this.detail.CaseId = this.caseid
|
207
|
|
- }
|
208
|
|
- if ((this.detail.CaseId || '') === '') {
|
209
|
|
- this.$message({
|
210
|
|
- type: 'error',
|
211
|
|
- message: '案场不能为空'
|
212
|
|
- })
|
213
|
|
- return false
|
214
|
|
- }
|
215
|
212
|
this.AddGoods(this.detail)
|
216
|
213
|
} else {
|
217
|
214
|
if ((this.detail.CaseId || '') === '') {
|