|
|
@@ -37,14 +37,16 @@
|
|
37
|
37
|
</view>
|
|
38
|
38
|
</u-form-item>
|
|
39
|
39
|
<u-form-item label="商品描述(详细的描述让用户更好的了解您的产品)" required prop="desc" borderBottom>
|
|
40
|
|
- <u--textarea v-model="formData.desc" clearable placeholder="95新 WHZ19219H
|
|
41
|
|
- CHANEL香奈儿链条单肩包
|
|
|
40
|
+ <u--textarea v-model="formData.desc" clearable placeholder="95新 WHZ19219H CHANEL香奈儿链条单肩包
|
|
42
|
41
|
21开 牛皮 尺寸25 4 15
|
|
43
|
42
|
配件中溯卡" count autoHeight maxlength="250" height="100" confirmType="done"></u--textarea>
|
|
44
|
43
|
</u-form-item>
|
|
|
44
|
+ <u-form-item label="来源" prop="origin" borderBottom>
|
|
|
45
|
+ <u--textarea v-model="formData.origin" clearable placeholder="请输入来源" count autoHeight maxlength="250" height="100" confirmType="done"></u--textarea>
|
|
|
46
|
+ </u-form-item>
|
|
45
|
47
|
<u-form-item label="商品分类" required prop="type" borderBottom>
|
|
46
|
|
- <TabSelect :tabList="typeList" :isClear="typeIsClear" @tabChange="handleTabChangeType" labelKey="dictLabel" valueKey="dictValue"
|
|
47
|
|
- :colNum="4" mode="single" echoInfo="1">
|
|
|
48
|
+ <TabSelect :tabList="typeList" :isClear="typeIsClear" @tabChange="handleTabChangeType"
|
|
|
49
|
+ labelKey="dictLabel" valueKey="dictValue" :colNum="4" mode="single" :echoInfo="echoInfoType">
|
|
48
|
50
|
</TabSelect>
|
|
49
|
51
|
</u-form-item>
|
|
50
|
52
|
<u-form-item label="品牌" required prop="dictLabel" class="u-form-item-row" borderBottom
|
|
|
@@ -81,11 +83,12 @@
|
|
81
|
83
|
</u-form-item>
|
|
82
|
84
|
<u-form-item label="商品成色" required prop="productCondition" borderBottom>
|
|
83
|
85
|
<TabSelect :tabList="productConditionList" :isClear="productConditionIsClear"
|
|
84
|
|
- @tabChange="handleTabChangeProductCondition" :colNum="2" mode="single" echoInfo="1"></TabSelect>
|
|
|
86
|
+ @tabChange="handleTabChangeProductCondition" :colNum="2" mode="single" :echoInfo="echoInfoProductCondition">
|
|
|
87
|
+ </TabSelect>
|
|
85
|
88
|
</u-form-item>
|
|
86
|
89
|
<u-form-item label="细节图" borderBottom>
|
|
87
|
90
|
<!-- <view class="detail_pic_container"> -->
|
|
88
|
|
- <!-- <view>
|
|
|
91
|
+ <!-- <view>
|
|
89
|
92
|
<text class="tip">视频:</text>
|
|
90
|
93
|
<ImgsRowScroll v-if="formData.detailVideoFileList.length > 0" :isShowDeleteIcon="true"
|
|
91
|
94
|
@deleteVideoInfo="getDeleteDetailVideoInfo" imgMode="aspectFill" :totalWidth="400"
|
|
|
@@ -93,16 +96,16 @@
|
|
93
|
96
|
:imageHeight="150" accept="video"></ImgsRowScroll>
|
|
94
|
97
|
<u-upload @afterRead="afterReadDeatilVideo" name="2" multiple :maxCount="10" accept="video"></u-upload>
|
|
95
|
98
|
</view> -->
|
|
96
|
|
- <!-- <view> -->
|
|
97
|
|
- <!-- <text class="tip">图片:</text> -->
|
|
98
|
|
- <view class="imgs_scroll">
|
|
99
|
|
- <ImgsRowScroll v-if="formData.detailPicFileList.length > 0" :isShowDeleteIcon="true"
|
|
100
|
|
- @deleteImgInfo="getDeleteDetailPicInfo" imgMode="aspectFill" :totalWidth="400"
|
|
101
|
|
- :images="formData.detailPicFileList" :previewEnabled="true" :imageWidth="150"
|
|
102
|
|
- :imageHeight="150"></ImgsRowScroll>
|
|
103
|
|
- <u-upload @afterRead="afterReadDetailPic" name="1" multiple :maxCount="10"></u-upload>
|
|
104
|
|
- </view>
|
|
105
|
|
- <!-- </view> -->
|
|
|
99
|
+ <!-- <view> -->
|
|
|
100
|
+ <!-- <text class="tip">图片:</text> -->
|
|
|
101
|
+ <view class="imgs_scroll">
|
|
|
102
|
+ <ImgsRowScroll v-if="formData.detailPicFileList.length > 0" :isShowDeleteIcon="true"
|
|
|
103
|
+ @deleteImgInfo="getDeleteDetailPicInfo" imgMode="aspectFill" :totalWidth="400"
|
|
|
104
|
+ :images="formData.detailPicFileList" :previewEnabled="true" :imageWidth="150"
|
|
|
105
|
+ :imageHeight="150"></ImgsRowScroll>
|
|
|
106
|
+ <u-upload @afterRead="afterReadDetailPic" name="1" multiple :maxCount="10"></u-upload>
|
|
|
107
|
+ </view>
|
|
|
108
|
+ <!-- </view> -->
|
|
106
|
109
|
<!-- </view> -->
|
|
107
|
110
|
</u-form-item>
|
|
108
|
111
|
<u-form-item label="商品标题" borderBottom>
|
|
|
@@ -113,12 +116,14 @@
|
|
113
|
116
|
<u--input v-model="formData.productNo" placeholder="请输入" clearable border="none"></u--input>
|
|
114
|
117
|
</u-form-item>
|
|
115
|
118
|
<u-form-item label="商品属性" required prop="productAttribute" borderBottom>
|
|
116
|
|
- <TabSelect :tabList="productAttributeList" :colNum="4" mode="single"
|
|
117
|
|
- :isClear="productAttributeIsClear" @tabChange="handleTabChangeProductAttribute" echoInfo="1">
|
|
|
119
|
+ <TabSelect :tabList="productAttributeList" :colNum="4" mode="single"
|
|
|
120
|
+ :isClear="productAttributeIsClear" @tabChange="handleTabChangeProductAttribute"
|
|
|
121
|
+ :echoInfo="echoInfoProductAttribute">
|
|
118
|
122
|
</TabSelect>
|
|
119
|
123
|
</u-form-item>
|
|
120
|
124
|
<u-form-item label="库存数量" required prop="stock" class="u-form-item-row" borderBottom>
|
|
121
|
|
- <u--input v-model="formData.stock" placeholder="请输入" clearable border="none" type="number"></u--input>
|
|
|
125
|
+ <u--input v-model="formData.stock" placeholder="请输入" clearable border="none"
|
|
|
126
|
+ type="number"></u--input>
|
|
122
|
127
|
</u-form-item>
|
|
123
|
128
|
<u-form-item label="总成本价" class="u-form-item-row" borderBottom>
|
|
124
|
129
|
<u--input v-model="formData.costPrice" placeholder="请输入" clearable border="none"></u--input>
|
|
|
@@ -140,24 +145,30 @@
|
|
140
|
145
|
<u--input v-model="formData.watchYear" placeholder="请输入" clearable border="none"></u--input>
|
|
141
|
146
|
</u-form-item>
|
|
142
|
147
|
<u-form-item label="鉴定人员" class="u-form-item-row" borderBottom @click="identifyingPersonClick">
|
|
143
|
|
- <Cell :val="formData.identifyingPerson" :isDelete="true" @handleClear="clear('identifyingPerson')"></Cell>
|
|
|
148
|
+ <Cell :val="formData.identifyingPerson" :isDelete="true"
|
|
|
149
|
+ @handleClear="clear('identifyingPerson')"></Cell>
|
|
144
|
150
|
<PersonPicker ref="identifyingPersonPickerRef" title="请选择鉴定人员"
|
|
145
|
151
|
@selectPerson="handleSelectIdentifyingPerson"></PersonPicker>
|
|
146
|
152
|
</u-form-item>
|
|
|
153
|
+ <u-form-item label="是否入库" borderBottom required prop="stockStatus">
|
|
|
154
|
+ <TabSelect :tabList="stockStatusList" :colNum="2" mode="single" :isClear="stockStatusIsClear" :echoInfo="echoInfoStockStatus"
|
|
|
155
|
+ @tabChange="handleTabChangeStockStatus"></TabSelect>
|
|
|
156
|
+ </u-form-item>
|
|
147
|
157
|
<u-form-item label="回收类型" borderBottom>
|
|
148
|
|
- <TabSelect :tabList="recycleTypeList" :colNum="4" mode="single"
|
|
149
|
|
- :isClear="recycleTypeIsClear" @tabChange="handleTabChangeRecycleType">
|
|
|
158
|
+ <TabSelect :tabList="recycleTypeList" :colNum="4" mode="single" :isClear="recycleTypeIsClear"
|
|
|
159
|
+ @tabChange="handleTabChangeRecycleType">
|
|
150
|
160
|
</TabSelect>
|
|
151
|
161
|
</u-form-item>
|
|
152
|
162
|
<u-form-item label="标签" borderBottom>
|
|
153
|
|
- <TabSelect :tabList="labelList" :colNum="4" mode="single"
|
|
154
|
|
- :isClear="labelIsClear" @tabChange="handleTabChangeLabel">
|
|
|
163
|
+ <TabSelect :tabList="labelList" :colNum="5" mode="single" :isClear="labelIsClear"
|
|
|
164
|
+ @tabChange="handleTabChangeLabel">
|
|
155
|
165
|
</TabSelect>
|
|
156
|
166
|
</u-form-item>
|
|
157
|
167
|
<u-form-item label="回收人员" class="u-form-item-row" borderBottom @click="recyclePersonClick">
|
|
158
|
168
|
<!-- <u--input v-model="formData.recyclePerson" disabledColor="#fff" disabled clearable
|
|
159
|
169
|
border="none"></u--input> -->
|
|
160
|
|
- <Cell :val="formData.recyclePerson" :isDelete="true" @handleClear="clear('recyclePerson')"></Cell>
|
|
|
170
|
+ <Cell :val="formData.recyclePerson" :isDelete="true" @handleClear="clear('recyclePerson')">
|
|
|
171
|
+ </Cell>
|
|
161
|
172
|
<PersonPicker ref="recyclePersonPickerRef" title="请选择回收人员"
|
|
162
|
173
|
@selectPerson="handleSelectRecyclePerson"></PersonPicker>
|
|
163
|
174
|
</u-form-item>
|
|
|
@@ -235,17 +246,16 @@
|
|
235
|
246
|
</view>
|
|
236
|
247
|
</u-form-item>
|
|
237
|
248
|
<u-form-item label="付款方式">
|
|
238
|
|
- <TabSelect :tabList="paymentTabList" :echoInfo="payTypeEcho" :colNum="4" mode="single"
|
|
|
249
|
+ <TabSelect :tabList="paymentTabList" :echoInfo="payTypeEcho" :colNum="4" mode="single"
|
|
239
|
250
|
:isClear="payTypeIsClear" @tabChange="handlePayTypeTabChange">
|
|
240
|
251
|
</TabSelect>
|
|
241
|
252
|
</u-form-item>
|
|
242
|
253
|
</u--form>
|
|
243
|
254
|
</view>
|
|
244
|
|
-
|
|
245
|
255
|
</view>
|
|
246
|
|
- <view class="btn_group">
|
|
247
|
|
- <u-button plain type="primary" @click="submitForm('onlyIn')">仅入库</u-button>
|
|
248
|
|
- <u-button type="primary" @click="submitForm('inAndUp')">入库并上架</u-button>
|
|
|
256
|
+ <view :class="['btn_group', {'col-2': formData.stockStatus == '1'}]">
|
|
|
257
|
+ <u-button plain type="primary" @click="submitForm('onlyIn')">{{ formData.stockStatus == '0' ? '待入库' : '仅入库' }}</u-button>
|
|
|
258
|
+ <u-button type="primary" @click="submitForm('inAndUp')" v-if="formData.stockStatus == '1'">入库并上架</u-button>
|
|
249
|
259
|
</view>
|
|
250
|
260
|
</view>
|
|
251
|
261
|
</template>
|
|
|
@@ -271,6 +281,7 @@ export default {
|
|
271
|
281
|
formData: {
|
|
272
|
282
|
goodPicFileList: [],//商品图片
|
|
273
|
283
|
desc: '',
|
|
|
284
|
+ origin: '',
|
|
274
|
285
|
type: '1',
|
|
275
|
286
|
dictLabel: '艾美',
|
|
276
|
287
|
dictValue: '88',
|
|
|
@@ -297,6 +308,7 @@ export default {
|
|
297
|
308
|
watchYear: '',
|
|
298
|
309
|
identifyingPerson: '',
|
|
299
|
310
|
identifyingPersonId: '',
|
|
|
311
|
+ stockStatus: '0',
|
|
300
|
312
|
recycleType: '',
|
|
301
|
313
|
recyclePerson: '',
|
|
302
|
314
|
recyclePersonId: '',
|
|
|
@@ -320,25 +332,28 @@ export default {
|
|
320
|
332
|
{ required: true, message: '请上传商品图片' },
|
|
321
|
333
|
],
|
|
322
|
334
|
desc: [
|
|
323
|
|
- { required: true, message: '请输入商品描述', trigger: 'blur' },
|
|
|
335
|
+ { required: true, message: '请输入商品描述', trigger: ['blur', 'change'] },
|
|
324
|
336
|
],
|
|
325
|
337
|
type: [
|
|
326
|
|
- { required: true, message: '请选择商品分类', trigger: 'blur' },
|
|
|
338
|
+ { required: true, message: '请选择商品分类', trigger: ['blur', 'change'] },
|
|
327
|
339
|
],
|
|
328
|
340
|
dictLabel: [
|
|
329
|
|
- { required: true, message: '请选择品牌', trigger: 'blur' },
|
|
|
341
|
+ { required: true, message: '请选择品牌', trigger: ['blur', 'change'] },
|
|
330
|
342
|
],
|
|
331
|
343
|
productCondition: [
|
|
332
|
|
- { required: true, message: '请选择商品成色', trigger: 'blur' },
|
|
|
344
|
+ { required: true, message: '请选择商品成色', trigger: ['blur', 'change'] },
|
|
333
|
345
|
],
|
|
334
|
346
|
productAttribute: [
|
|
335
|
|
- { required: true, message: '请选择商品属性', trigger: 'blur' },
|
|
|
347
|
+ { required: true, message: '请选择商品属性', trigger: ['blur', 'change'] },
|
|
336
|
348
|
],
|
|
337
|
349
|
stock: [
|
|
338
|
350
|
{ required: true, message: '请输入库存数量' },
|
|
339
|
351
|
],
|
|
|
352
|
+ stockStatus: [
|
|
|
353
|
+ { required: true, message: '请选择是否入库', trigger: [ 'change'] },
|
|
|
354
|
+ ],
|
|
340
|
355
|
recycleTime: [
|
|
341
|
|
- { required: true, message: '请选择回收时间', trigger: 'blur' },
|
|
|
356
|
+ { required: true, message: '请选择回收时间', trigger: ['blur', 'change'] },
|
|
342
|
357
|
],
|
|
343
|
358
|
|
|
344
|
359
|
},
|
|
|
@@ -373,6 +388,16 @@ export default {
|
|
373
|
388
|
value: '4',
|
|
374
|
389
|
},
|
|
375
|
390
|
],
|
|
|
391
|
+ stockStatusList: [
|
|
|
392
|
+ {
|
|
|
393
|
+ name: '待入库',
|
|
|
394
|
+ value: '0',
|
|
|
395
|
+ },
|
|
|
396
|
+ {
|
|
|
397
|
+ name: '已入库',
|
|
|
398
|
+ value: '1',
|
|
|
399
|
+ },
|
|
|
400
|
+ ],
|
|
376
|
401
|
recycleTypeList: [
|
|
377
|
402
|
{
|
|
378
|
403
|
name: '线上',
|
|
|
@@ -391,26 +416,26 @@ export default {
|
|
391
|
416
|
value: '4',
|
|
392
|
417
|
},
|
|
393
|
418
|
],
|
|
394
|
|
- labelList:[
|
|
|
419
|
+ labelList: [
|
|
395
|
420
|
{
|
|
396
|
|
- name:'完美',
|
|
397
|
|
- value:'1',
|
|
|
421
|
+ name: '完美',
|
|
|
422
|
+ value: '1',
|
|
398
|
423
|
},
|
|
399
|
424
|
{
|
|
400
|
|
- name:'普通',
|
|
401
|
|
- value:'2',
|
|
|
425
|
+ name: '普通',
|
|
|
426
|
+ value: '2',
|
|
402
|
427
|
},
|
|
403
|
428
|
{
|
|
404
|
|
- name:'瑕疵',
|
|
405
|
|
- value:'3',
|
|
|
429
|
+ name: '瑕疵',
|
|
|
430
|
+ value: '3',
|
|
406
|
431
|
},
|
|
407
|
432
|
{
|
|
408
|
|
- name:'假货',
|
|
409
|
|
- value:'4',
|
|
|
433
|
+ name: '假货',
|
|
|
434
|
+ value: '4',
|
|
410
|
435
|
},
|
|
411
|
436
|
{
|
|
412
|
|
- name:'亏损',
|
|
413
|
|
- value:'5',
|
|
|
437
|
+ name: '亏损',
|
|
|
438
|
+ value: '5',
|
|
414
|
439
|
},
|
|
415
|
440
|
],
|
|
416
|
441
|
paymentTabList: [
|
|
|
@@ -443,25 +468,44 @@ export default {
|
|
443
|
468
|
productConditionIsClear: false,//商品成色是否清空
|
|
444
|
469
|
productAttributeIsClear: false,//商品属性是否清空
|
|
445
|
470
|
recycleTypeIsClear: false,//回收类型是否清空
|
|
|
471
|
+ stockStatusIsClear: false,//是否入库是否清空
|
|
446
|
472
|
labelIsClear: false,//商品标签是否清空
|
|
447
|
473
|
payTypeIsClear: false,//付款方式是否清空
|
|
448
|
|
- payTypeEcho: ''//付款方式识别回显
|
|
449
|
|
-
|
|
|
474
|
+ payTypeEcho: '',//付款方式识别回显
|
|
|
475
|
+ echoInfoType:'',//入库回显的时候 类型回显
|
|
|
476
|
+ echoInfoProductAttribute:'',//入库回显的时候 商品属性回显
|
|
|
477
|
+ echoInfoProductCondition:'',//入库回显的时候 商品成色回显
|
|
|
478
|
+ echoInfoStockStatus:'',//入库回显的时候 是否入库回显
|
|
450
|
479
|
}
|
|
451
|
480
|
},
|
|
452
|
|
- onLoad() {
|
|
|
481
|
+ onLoad(options) {
|
|
453
|
482
|
this.getTypeList();
|
|
|
483
|
+ this.$nextTick(()=>{
|
|
|
484
|
+ if(options.formType == 'add'){
|
|
|
485
|
+ this.clearForm()
|
|
|
486
|
+ }else if(options.formType == 'edit'){
|
|
|
487
|
+ uni.$u.api.wareHouseDetail({
|
|
|
488
|
+ id: options.id,
|
|
|
489
|
+ userId: this.$store.state.user.userInfo.userId,
|
|
|
490
|
+ }).then(res => {
|
|
|
491
|
+ const key = ['costPrice','dictLabel','dictValue','goodPicFileList','indexntifuCode','origin','stockStatus']
|
|
|
492
|
+ key.forEach(item => {
|
|
|
493
|
+ this.formData[item] = res.data[item]
|
|
|
494
|
+ })
|
|
|
495
|
+ this.recycleTime = this.$dayjs(res.data.recycleTime).format('YYYY-MM-DD') || ''
|
|
|
496
|
+ this.echoInfoType = res.data.type || '1'
|
|
|
497
|
+ });
|
|
|
498
|
+ }
|
|
|
499
|
+ })
|
|
454
|
500
|
},
|
|
455
|
501
|
methods: {
|
|
456
|
|
- getTypeList(){
|
|
|
502
|
+ getTypeList() {
|
|
457
|
503
|
this.$getDicts("crm_form_category").then(res => {
|
|
458
|
504
|
this.typeList = res
|
|
459
|
505
|
})
|
|
460
|
506
|
},
|
|
461
|
507
|
// 提交表单
|
|
462
|
508
|
submitForm(submitType) {
|
|
463
|
|
- console.log(this.formData);
|
|
464
|
|
-
|
|
465
|
509
|
this.$refs.addForm.validate().then((valid) => {
|
|
466
|
510
|
if (valid) {
|
|
467
|
511
|
if (this.formData.title == '') {
|
|
|
@@ -470,13 +514,10 @@ export default {
|
|
470
|
514
|
this.formData.recycleTime = this.$dayjs(this.formData.recycleTime).format('YYYY-MM-DD')
|
|
471
|
515
|
const data = {
|
|
472
|
516
|
...this.formData,
|
|
473
|
|
- submitType: submitType, //提交类型 onlyIn:仅入库 inAndUp:入库并上架
|
|
|
517
|
+ submitType: submitType, //提交类型 onlyIn:仅入库/暂存入库 inAndUp:入库并上架
|
|
474
|
518
|
continuousWarehousing: this.continuousWarehousing[0] || '0',//是否连续入库 1:是 0:否
|
|
475
|
519
|
}
|
|
476
|
|
- console.log(data);
|
|
477
|
|
-
|
|
478
|
520
|
uni.$u.api.wareHouseAdd(data).then(res => {
|
|
479
|
|
- console.log(res);
|
|
480
|
521
|
if (res.code === 200) {
|
|
481
|
522
|
uni.$u.toast('新增成功');
|
|
482
|
523
|
if (data.continuousWarehousing == '0') {
|
|
|
@@ -501,6 +542,7 @@ export default {
|
|
501
|
542
|
this.formData = {
|
|
502
|
543
|
goodPicFileList: [],//商品图片
|
|
503
|
544
|
desc: '',
|
|
|
545
|
+ origin: '',
|
|
504
|
546
|
type: '1',
|
|
505
|
547
|
dictLabel: '艾美',
|
|
506
|
548
|
dictValue: '88',
|
|
|
@@ -527,6 +569,7 @@ export default {
|
|
527
|
569
|
watchYear: '',
|
|
528
|
570
|
identifyingPerson: '',
|
|
529
|
571
|
identifyingPersonId: '',
|
|
|
572
|
+ stockStatus: '0',
|
|
530
|
573
|
recycleType: '',
|
|
531
|
574
|
label: '',
|
|
532
|
575
|
recyclePerson: '',
|
|
|
@@ -545,14 +588,17 @@ export default {
|
|
545
|
588
|
productDescPicFileList: [],//商品备注图片
|
|
546
|
589
|
payType: '',
|
|
547
|
590
|
}
|
|
548
|
|
- this.typeIsClear = true;
|
|
549
|
|
- this.productConditionIsClear = true;
|
|
550
|
|
- this.productAttributeIsClear = true;
|
|
551
|
591
|
this.recycleTypeIsClear = true;
|
|
552
|
592
|
this.payTypeIsClear = true;
|
|
553
|
593
|
this.labelIsClear = true;
|
|
|
594
|
+ this.echoInfoType = '1';//类型默认第一项
|
|
|
595
|
+ this.echoInfoProductCondition = '1';//商品成色默认第一项
|
|
|
596
|
+ this.echoInfoProductAttribute = '1';//商品属性默认第一项
|
|
|
597
|
+ this.echoInfoStockStatus = '0';//是否入库默认第一项
|
|
554
|
598
|
this.continuousWarehousing = [];
|
|
555
|
|
- this.$refs.addForm.resetFields();
|
|
|
599
|
+ this.$nextTick(()=>{
|
|
|
600
|
+ this.$refs.addForm.resetFields();
|
|
|
601
|
+ })
|
|
556
|
602
|
},
|
|
557
|
603
|
// 选择品牌
|
|
558
|
604
|
handleSelectedBrand(info) {
|
|
|
@@ -601,6 +647,10 @@ export default {
|
|
601
|
647
|
this.formData.productAttribute = e;
|
|
602
|
648
|
this.$refs.addForm.validateField('productAttribute')
|
|
603
|
649
|
},
|
|
|
650
|
+ // 是否入库
|
|
|
651
|
+ handleTabChangeStockStatus(e) {
|
|
|
652
|
+ this.formData.stockStatus = e;
|
|
|
653
|
+ },
|
|
604
|
654
|
// 回收类型
|
|
605
|
655
|
handleTabChangeRecycleType(e) {
|
|
606
|
656
|
this.formData.recycleType = e;
|
|
|
@@ -761,7 +811,7 @@ export default {
|
|
761
|
811
|
this.formData.dictLabel = result['品牌'];
|
|
762
|
812
|
}
|
|
763
|
813
|
if (result['来源']) {
|
|
764
|
|
- this.formData.desc = result['来源'];
|
|
|
814
|
+ this.formData.origin = result['来源'];
|
|
765
|
815
|
}
|
|
766
|
816
|
if (result['实价']) {
|
|
767
|
817
|
this.formData.costPrice = result['实价'];
|
|
|
@@ -806,5 +856,5 @@ export default {
|
|
806
|
856
|
}
|
|
807
|
857
|
</script>
|
|
808
|
858
|
<style lang="scss" scoped>
|
|
809
|
|
-@import '../styles/add.scss';
|
|
|
859
|
+@import '../styles/edit.scss';
|
|
810
|
860
|
</style>
|