Browse Source

修改 页面显示字段

master
邓宏 2 years ago
parent
commit
6d35ba9403
  1. 2
      pages/massif/add_farming.vue
  2. 5
      pages/massif/agrSpecs.vue

2
pages/massif/add_farming.vue

@ -166,7 +166,7 @@
<u-swipe-action v-for="(v,k) in formData.inputList" :key="k"> <u-swipe-action v-for="(v,k) in formData.inputList" :key="k">
<u-swipe-action-item> <u-swipe-action-item>
<view> <view>
<text>{{v.parentName}}</text> <text>{{v.name}}</text> <text>{{v.total}}</text> <text>{{v.goodsType}}</text> <text>{{v.substanceName}}</text> <text>{{v.total}}</text>
</view> </view>
<view slot="button" class="u-swipe-action-item__right__button"> <view slot="button" class="u-swipe-action-item__right__button">
<button class="cu-btn bg-red" style="margin:auto;" @click="formData.inputList.splice(k,1)">删除</button> <button class="cu-btn bg-red" style="margin:auto;" @click="formData.inputList.splice(k,1)">删除</button>

5
pages/massif/agrSpecs.vue

@ -171,6 +171,7 @@
<text>{{agrDetail.goodsDetailType}}</text> <text>{{agrDetail.supplier}}</text> <text>{{agrDetail.goodsDetailType}}</text> <text>{{agrDetail.supplier}}</text>
</view> </view>
</view> </view>
<view class="card"> <view class="card">
<u-form class="inline" labelWidth="auto" ref="form" errorType="toast" :model="formData" :rules="rules"> <u-form class="inline" labelWidth="auto" ref="form" errorType="toast" :model="formData" :rules="rules">
<d-form <d-form
@ -256,8 +257,8 @@ export default {
this.eventChannel.emit("update", { this.eventChannel.emit("update", {
...this.formData, ...this.formData,
total: `${parseFloat(this.specsVal.num)*parseFloat(this.specsVal.specs[0])}${this.specsVal.specs[1]}`, total: `${parseFloat(this.specsVal.num)*parseFloat(this.specsVal.specs[0])}${this.specsVal.specs[1]}`,
parentName: this.agrDetail.parentName, goodsType: this.agrDetail.goodsType,
name: this.agrDetail.name, substanceName: this.agrDetail.substanceName,
}) })
uni.navigateBack() uni.navigateBack()
} }

Loading…
Cancel
Save