zhangxin пре 1 недеља
родитељ
комит
c7092634cc

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

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

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

@@ -211,7 +211,7 @@ export default {
211
 		// 询价
211
 		// 询价
212
 		async handleInquiry(item) {
212
 		async handleInquiry(item) {
213
 			this.clueId = item.id
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
 				const data = {
215
 				const data = {
216
 					clueId: item.id,
216
 					clueId: item.id,
217
 					type:1
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
 				this.editOrAdd = 'add'
234
 				this.editOrAdd = 'add'
236
 				this.isShowChart = false
235
 				this.isShowChart = false
236
+				this.editInfo = {
237
+					dictLabel:'',
238
+					model:'',
239
+					code:'',
240
+					imgsUrl:[],
241
+					price:'',
242
+					remark:'',
243
+				}
237
 				this.$refs.inquiryDialog.showDialog()
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
         } else {
882
         } else {
883
           // 新增模式:设置品牌和图片
883
           // 新增模式:设置品牌和图片
884
-          this.pricingEditOrAdd = 'edit'
884
+          this.pricingEditOrAdd = 'receptFormAdd'
885
           this.pricingEditInfo = {
885
           this.pricingEditInfo = {
886
             dictLabel: brandDictLabel,
886
             dictLabel: brandDictLabel,
887
             dictValue: brandDictValue,
887
             dictValue: brandDictValue,
@@ -896,7 +896,7 @@ export default {
896
         }
896
         }
897
       } catch (error) {
897
       } catch (error) {
898
         // 如果没有记录,则新增
898
         // 如果没有记录,则新增
899
-        this.pricingEditOrAdd = 'receptFormAdd'
899
+        this.pricingEditOrAdd = 'add'
900
         this.pricingEditInfo = {
900
         this.pricingEditInfo = {
901
           dictLabel: brandDictLabel,
901
           dictLabel: brandDictLabel,
902
           dictValue: brandDictValue,
902
           dictValue: brandDictValue,