|
|
@@ -26,7 +26,7 @@
|
|
26
|
26
|
@click="handlePasteRecognition(recognitionContent)"></u-button>
|
|
27
|
27
|
</view>
|
|
28
|
28
|
</u-form-item>
|
|
29
|
|
- <u-form-item label="商品图片" prop="imgs" borderBottom>
|
|
|
29
|
+ <u-form-item required label="商品图片" prop="goodPicFileList" borderBottom>
|
|
30
|
30
|
<view class="imgs_scroll">
|
|
31
|
31
|
<ImgsRowScroll v-if="formData.goodPicFileList.length > 0" :isShowDeleteIcon="true"
|
|
32
|
32
|
@deleteImgInfo="getDeleteGoodPicInfo" imgMode="aspectFill" :totalWidth="400"
|
|
|
@@ -44,7 +44,7 @@
|
|
44
|
44
|
</u-form-item>
|
|
45
|
45
|
<u-form-item label="商品分类" required prop="type" borderBottom>
|
|
46
|
46
|
<TabSelect :tabList="typeList" :isClear="typeIsClear" @tabChange="handleTabChangeType" labelKey="dictLabel" valueKey="dictValue"
|
|
47
|
|
- :colNum="4" mode="single">
|
|
|
47
|
+ :colNum="4" mode="single" echoInfo="1">
|
|
48
|
48
|
</TabSelect>
|
|
49
|
49
|
</u-form-item>
|
|
50
|
50
|
<u-form-item label="品牌" required prop="dictLabel" class="u-form-item-row" borderBottom
|
|
|
@@ -81,7 +81,7 @@
|
|
81
|
81
|
</u-form-item>
|
|
82
|
82
|
<u-form-item label="商品成色" required prop="productCondition" borderBottom>
|
|
83
|
83
|
<TabSelect :tabList="productConditionList" :isClear="productConditionIsClear"
|
|
84
|
|
- @tabChange="handleTabChangeProductCondition" :colNum="2" mode="single"></TabSelect>
|
|
|
84
|
+ @tabChange="handleTabChangeProductCondition" :colNum="2" mode="single" echoInfo="1"></TabSelect>
|
|
85
|
85
|
</u-form-item>
|
|
86
|
86
|
<u-form-item label="细节图" borderBottom>
|
|
87
|
87
|
<!-- <view class="detail_pic_container"> -->
|
|
|
@@ -114,11 +114,11 @@
|
|
114
|
114
|
</u-form-item>
|
|
115
|
115
|
<u-form-item label="商品属性" required prop="productAttribute" borderBottom>
|
|
116
|
116
|
<TabSelect :tabList="productAttributeList" :colNum="4" mode="single"
|
|
117
|
|
- :isClear="productAttributeIsClear" @tabChange="handleTabChangeProductAttribute">
|
|
|
117
|
+ :isClear="productAttributeIsClear" @tabChange="handleTabChangeProductAttribute" echoInfo="1">
|
|
118
|
118
|
</TabSelect>
|
|
119
|
119
|
</u-form-item>
|
|
120
|
120
|
<u-form-item label="库存数量" required prop="stock" class="u-form-item-row" borderBottom>
|
|
121
|
|
- <u--input v-model="formData.stock" placeholder="请输入" clearable border="none"></u--input>
|
|
|
121
|
+ <u--input v-model="formData.stock" placeholder="请输入" clearable border="none" type="number"></u--input>
|
|
122
|
122
|
</u-form-item>
|
|
123
|
123
|
<u-form-item label="总成本价" class="u-form-item-row" borderBottom>
|
|
124
|
124
|
<u--input v-model="formData.costPrice" placeholder="请输入" clearable border="none"></u--input>
|
|
|
@@ -271,9 +271,9 @@ export default {
|
|
271
|
271
|
formData: {
|
|
272
|
272
|
goodPicFileList: [],//商品图片
|
|
273
|
273
|
desc: '',
|
|
274
|
|
- type: '',
|
|
275
|
|
- dictLabel: '',
|
|
276
|
|
- dictValue: '',
|
|
|
274
|
+ type: '1',
|
|
|
275
|
+ dictLabel: '艾美',
|
|
|
276
|
+ dictValue: '88',
|
|
277
|
277
|
series: '',
|
|
278
|
278
|
model: '',
|
|
279
|
279
|
dialType: '',
|
|
|
@@ -283,11 +283,12 @@ export default {
|
|
283
|
283
|
size: '',
|
|
284
|
284
|
yardage: '',
|
|
285
|
285
|
price: '',
|
|
286
|
|
- productCondition: '',
|
|
|
286
|
+ productCondition: '1',
|
|
287
|
287
|
detailPicFileList: [],//细节图片
|
|
288
|
288
|
// detailVideoFileList:[],
|
|
289
|
289
|
productNo: '',
|
|
290
|
|
- stock: null,
|
|
|
290
|
+ productAttribute: '1',
|
|
|
291
|
+ stock: 1,
|
|
291
|
292
|
costPrice: '',
|
|
292
|
293
|
samePrice: '',
|
|
293
|
294
|
agentPrice: '',
|
|
|
@@ -316,7 +317,7 @@ export default {
|
|
316
|
317
|
continuousWarehousing: [],//是否连续入库 1:是 0:否
|
|
317
|
318
|
rules: {
|
|
318
|
319
|
goodPicFileList: [
|
|
319
|
|
- { required: true, message: '请上传商品图片', trigger: 'blur' },
|
|
|
320
|
+ { required: true, message: '请上传商品图片', trigger: 'change' },
|
|
320
|
321
|
],
|
|
321
|
322
|
desc: [
|
|
322
|
323
|
{ required: true, message: '请输入商品描述', trigger: 'blur' },
|
|
|
@@ -334,7 +335,7 @@ export default {
|
|
334
|
335
|
{ required: true, message: '请选择商品属性', trigger: 'blur' },
|
|
335
|
336
|
],
|
|
336
|
337
|
stock: [
|
|
337
|
|
- { required: true, message: '请输入库存数量', trigger: 'blur' },
|
|
|
338
|
+ { required: true, message: '请输入库存数量' },
|
|
338
|
339
|
],
|
|
339
|
340
|
recycleTime: [
|
|
340
|
341
|
{ required: true, message: '请选择回收时间', trigger: 'blur' },
|
|
|
@@ -459,6 +460,8 @@ export default {
|
|
459
|
460
|
},
|
|
460
|
461
|
// 提交表单
|
|
461
|
462
|
submitForm(submitType) {
|
|
|
463
|
+ console.log(this.formData);
|
|
|
464
|
+
|
|
462
|
465
|
this.$refs.addForm.validate().then((valid) => {
|
|
463
|
466
|
if (valid) {
|
|
464
|
467
|
if (this.formData.title == '') {
|
|
|
@@ -498,9 +501,9 @@ export default {
|
|
498
|
501
|
this.formData = {
|
|
499
|
502
|
goodPicFileList: [],//商品图片
|
|
500
|
503
|
desc: '',
|
|
501
|
|
- type: '',
|
|
502
|
|
- dictLabel: '',
|
|
503
|
|
- dictValue: '',
|
|
|
504
|
+ type: '1',
|
|
|
505
|
+ dictLabel: '艾美',
|
|
|
506
|
+ dictValue: '88',
|
|
504
|
507
|
series: '',
|
|
505
|
508
|
model: '',
|
|
506
|
509
|
dialType: '',
|
|
|
@@ -510,11 +513,12 @@ export default {
|
|
510
|
513
|
size: '',
|
|
511
|
514
|
yardage: '',
|
|
512
|
515
|
price: '',
|
|
513
|
|
- productCondition: '',
|
|
|
516
|
+ productCondition: '1',
|
|
514
|
517
|
detailPicFileList: [],//细节图片
|
|
515
|
518
|
// detailVideoFileList:[],
|
|
516
|
519
|
productNo: '',
|
|
517
|
|
- stock: null,
|
|
|
520
|
+ productAttribute: '1',
|
|
|
521
|
+ stock: 1,
|
|
518
|
522
|
costPrice: '',
|
|
519
|
523
|
samePrice: '',
|
|
520
|
524
|
agentPrice: '',
|