|
@@ -123,7 +123,7 @@ export default {
|
123
|
123
|
}),
|
124
|
124
|
Case: {
|
125
|
125
|
get () {
|
126
|
|
- return this.detail.CaseId || this.caseid
|
|
126
|
+ return this.detail.CaseId
|
127
|
127
|
},
|
128
|
128
|
set (val) {
|
129
|
129
|
this.UpdateInfo({ ...this.detail, CaseId: val })
|
|
@@ -172,13 +172,6 @@ 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
|
|
- }
|
182
|
175
|
if ((this.detail.GoodsName || '') === '') {
|
183
|
176
|
this.$message({
|
184
|
177
|
type: 'error',
|
|
@@ -212,8 +205,22 @@ export default {
|
212
|
205
|
if (!this.detail.CaseId || this.detail.CaseId === '') {
|
213
|
206
|
this.detail.CaseId = this.caseid
|
214
|
207
|
}
|
|
208
|
+ if ((this.detail.CaseId || '') === '') {
|
|
209
|
+ this.$message({
|
|
210
|
+ type: 'error',
|
|
211
|
+ message: '案场不能为空'
|
|
212
|
+ })
|
|
213
|
+ return false
|
|
214
|
+ }
|
215
|
215
|
this.AddGoods(this.detail)
|
216
|
216
|
} else {
|
|
217
|
+ if ((this.detail.CaseId || '') === '') {
|
|
218
|
+ this.$message({
|
|
219
|
+ type: 'error',
|
|
220
|
+ message: '案场不能为空'
|
|
221
|
+ })
|
|
222
|
+ return false
|
|
223
|
+ }
|
217
|
224
|
this.UpdateGoods(this.detail)
|
218
|
225
|
}
|
219
|
226
|
this.$message({
|