Jelajahi Sumber

修复 1006838 bug单

zhangdan 4 tahun lalu
induk
melakukan
01312f6638
1 mengubah file dengan 3 tambahan dan 3 penghapusan
  1. 3 3
      pages/index/addData.vue

+ 3 - 3
pages/index/addData.vue

@@ -12,7 +12,7 @@
 							<text slot="right" style="color: #000000;">桶(约{{form.gatherNum_chuyu*240}}kg)</text>
 						</u-form-item>
 						<u-form-item prop="gatherNum_jianzhu" label="建筑垃圾:" >
-							<u-input :disabled="isView" @input="numberToFixed('gatherNum_jianzhu',2,999999)" placeholder="请输入" type="number" v-model="form.gatherNum_jianzhu" />
+							<u-input :disabled="isView" @input="numberToFixed('gatherNum_jianzhu',2,999999)" placeholder="请输入" type="digit" v-model="form.gatherNum_jianzhu" />
 							<text slot="right" style="color: #000000;">吨(约{{form.gatherNum_jianzhu*1000}}kg)</text>
 						</u-form-item>
 				</u-form>
@@ -105,8 +105,8 @@
 						const b = res.data.gatherRubbishList.find(item=>item.rubbishType=='GATHER_OTHER')
 						const c = res.data.gatherRubbishList.find(item=>item.rubbishType=='GATHER_KITCHEN')
 						this.form.gatherNum_jianzhu= a ? a.gatherNum : '0'
-						this.form.gatherNum_chuyu= b ? b.gatherNum : '0'
-						this.form.gatherNum_other= c ? c.gatherNum : '0'
+						this.form.gatherNum_chuyu= c ? c.gatherNum : '0'
+						this.form.gatherNum_other= b ? b.gatherNum : '0'
 						this.form.remarks=res.data.remarks
 						this.photograph=res.data.imageUrlList || []
 					}