Parcourir la source

feat:询价/核价历史优化 v1.4.3

zhangxin il y a 5 jours
Parent
commit
c4ad1d7fba

+ 5 - 0
components/add-inquiry-dialog/index.scss

@@ -49,6 +49,11 @@
49
 	.img_wrap{
49
 	.img_wrap{
50
 		display: flex;
50
 		display: flex;
51
 	}
51
 	}
52
+	.price_wrap{
53
+		display: grid;
54
+		grid-template-columns: 0.5fr 1fr;
55
+		gap: 10rpx;
56
+	}
52
 	.history_wrap{
57
 	.history_wrap{
53
 		max-height: 300rpx;
58
 		max-height: 300rpx;
54
 		overflow: auto;
59
 		overflow: auto;

+ 9 - 6
components/add-inquiry-dialog/index.vue

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

+ 2 - 2
manifest.json

@@ -2,8 +2,8 @@
2
     "name" : "小葫芦",
2
     "name" : "小葫芦",
3
     "appid" : "__UNI__DDAE2E0",
3
     "appid" : "__UNI__DDAE2E0",
4
     "description" : "",
4
     "description" : "",
5
-    "versionName" : "1.4.2",
6
-    "versionCode" : 142,
5
+    "versionName" : "1.4.3",
6
+    "versionCode" : 143,
7
     "transformPx" : false,
7
     "transformPx" : false,
8
     "app-plus" : {
8
     "app-plus" : {
9
         "webView" : {
9
         "webView" : {