Browse Source

fix:优化

zhangxin 1 week ago
parent
commit
c7092634cc

+ 3 - 1
components/add-inquiry-dialog/index.vue

@@ -23,7 +23,7 @@
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'" class="price" placeholder="价格" border="bottom" v-model="info.price"
26
+            <u--input v-if="editOrAdd === 'edit'" type="number" class="price" placeholder="价格" border="bottom" v-model="info.price"
27 27
                 clearable></u--input>
28 28
             <u--input v-if="editOrAdd === 'edit'" placeholder="备注" border="bottom" v-model="info.remark"
29 29
                 clearable></u--input>
@@ -166,6 +166,7 @@ export default {
166 166
         initData() {
167 167
             this.$nextTick(() => {
168 168
                 this.info = JSON.parse(JSON.stringify(this.editInfo))
169
+                
169 170
                 if(this.isShowChart){
170 171
                     this.chartData = {
171 172
                         categories: this.info.priceChart.map((item, index) => item.userName),
@@ -265,6 +266,7 @@ export default {
265 266
             })
266 267
         },
267 268
         showDialog() {
269
+            
268 270
             if (this.editOrAdd === 'edit' || this.editOrAdd === 'editForm' || this.editOrAdd === 'receptFormAdd') {
269 271
                 this.initData();
270 272
             } else if (this.editOrAdd === 'add') {

+ 10 - 3
pages/clue/post/index.vue

@@ -211,7 +211,7 @@ export default {
211 211
 		// 询价
212 212
 		async handleInquiry(item) {
213 213
 			this.clueId = item.id
214
-			if(Number(item.count) > 0 || Number(item.count) === 0){//null:未生成询价数据 0:已生成询价数据但是没有询过价 >0:询过价人数
214
+			if(Number(item.count) > 0 || item.count === '0'){//null:未生成询价数据 0:已生成询价数据但是没有询过价 >0:询过价人数
215 215
 				const data = {
216 216
 					clueId: item.id,
217 217
 					type:1
@@ -230,10 +230,17 @@ export default {
230 230
 						})
231 231
 					}
232 232
 				})
233
-			}
234
-			else if(!item.count){
233
+			}else if(!item.count){
235 234
 				this.editOrAdd = 'add'
236 235
 				this.isShowChart = false
236
+				this.editInfo = {
237
+					dictLabel:'',
238
+					model:'',
239
+					code:'',
240
+					imgsUrl:[],
241
+					price:'',
242
+					remark:'',
243
+				}
237 244
 				this.$refs.inquiryDialog.showDialog()
238 245
 			}
239 246
 		},

+ 2 - 2
pages/orderDetailRefactored/components/PageThree.vue

@@ -881,7 +881,7 @@ export default {
881 881
           })
882 882
         } else {
883 883
           // 新增模式:设置品牌和图片
884
-          this.pricingEditOrAdd = 'edit'
884
+          this.pricingEditOrAdd = 'receptFormAdd'
885 885
           this.pricingEditInfo = {
886 886
             dictLabel: brandDictLabel,
887 887
             dictValue: brandDictValue,
@@ -896,7 +896,7 @@ export default {
896 896
         }
897 897
       } catch (error) {
898 898
         // 如果没有记录,则新增
899
-        this.pricingEditOrAdd = 'receptFormAdd'
899
+        this.pricingEditOrAdd = 'add'
900 900
         this.pricingEditInfo = {
901 901
           dictLabel: brandDictLabel,
902 902
           dictValue: brandDictValue,