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-item>
<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 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>

5
pages/massif/agrSpecs.vue

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

Loading…
Cancel
Save