|
|
@@ -23,17 +23,20 @@
|
|
23
|
23
|
:previewEnabled="true" :imageWidth="150" :imageHeight="150"></imgs-row-scroll>
|
|
24
|
24
|
<u-upload @afterRead="afterRead" name="3" multiple :maxCount="10"></u-upload>
|
|
25
|
25
|
</view>
|
|
26
|
|
- <u--input v-if="editOrAdd === 'edit'" type="number" class="price" placeholder="价格" border="bottom" v-model="info.price"
|
|
27
|
|
- clearable></u--input>
|
|
28
|
|
- <u--input v-if="editOrAdd === 'edit'" placeholder="备注" border="bottom" v-model="info.remark"
|
|
29
|
|
- clearable></u--input>
|
|
|
26
|
+ <view class="price_wrap">
|
|
|
27
|
+ <u--input v-if="editOrAdd === 'edit'" type="number" class="price" placeholder="价格" border="bottom" v-model="info.price"
|
|
|
28
|
+ clearable></u--input>
|
|
|
29
|
+ <u--input v-if="editOrAdd === 'edit'" placeholder="备注" border="bottom" v-model="info.remark"
|
|
|
30
|
+ clearable></u--input>
|
|
|
31
|
+ </view>
|
|
30
|
32
|
<qiun-data-charts v-if="isShowChart" type="column" :chartData="chartData" canvasId="priceChart" :opts="opts" :ontouch="true"
|
|
31
|
33
|
width="700rpx" height="600rpx" backgroundColor="#fff" />
|
|
32
|
34
|
<view v-if="isShowHistory" class="history_wrap">
|
|
33
|
35
|
<view class="title">
|
|
34
|
|
- 询价历史
|
|
|
36
|
+ {{ type === 1 ? '询价历史' : '核价历史' }}
|
|
35
|
37
|
</view>
|
|
36
|
38
|
<u-cell v-for="(item, index) in historyList" :key="index" :title="(index+1)+'. ¥'+item.price" :value="'备注:'+ (item.remark || '无') "></u-cell>
|
|
|
39
|
+ <u-empty v-if="historyList.length === 0"></u-empty>
|
|
37
|
40
|
</view>
|
|
38
|
41
|
</u-modal>
|
|
39
|
42
|
<brandList ref="brandListRef" @selectedBrand="handleSelectedBrand"></brandList>
|
|
|
@@ -179,7 +182,7 @@ export default {
|
|
179
|
182
|
};
|
|
180
|
183
|
}
|
|
181
|
184
|
if(this.isShowHistory){
|
|
182
|
|
- this.historyList = JSON.parse(this.info.myPriceHistory)
|
|
|
185
|
+ this.historyList = JSON.parse(this.info.myPriceHistory) || []
|
|
183
|
186
|
}
|
|
184
|
187
|
this.showModal = true;
|
|
185
|
188
|
})
|