页面修改

This commit is contained in:
zmj 2023-11-29 18:45:48 +08:00
parent 1f0ea2fe29
commit d18961e965
2 changed files with 46 additions and 36 deletions

View File

@ -5,6 +5,7 @@
lineWidth='100' inactiveStyle='color:white' activeStyle="color:white"></u-tabs> lineWidth='100' inactiveStyle='color:white' activeStyle="color:white"></u-tabs>
<view class="" style="height: 20rpx;"> <view class="" style="height: 20rpx;">
</view> </view>
<view class="" v-if="gatherList">
<view class="card" v-for="(item,index) in gatherList.planting" :key="item.id" v-if="page==1" <view class="card" v-for="(item,index) in gatherList.planting" :key="item.id" v-if="page==1"
@click="navgo(`/subpkg/townTask/townGather?type=plant&task_id=${task_id}&index=${index}`)"> @click="navgo(`/subpkg/townTask/townGather?type=plant&task_id=${task_id}&index=${index}`)">
@ -44,6 +45,11 @@
</view> </view>
</view> </view>
</view> </view>
</view>
<!-- <u-popup :show="show" @close="close" :round="10" mode="center" @open="open"> <!-- <u-popup :show="show" @close="close" :round="10" mode="center" @open="open">
<view style="padding: 20rpx;"> <view style="padding: 20rpx;">
<u-button type="primary" @click="navgo(`/subpkg/townTask/townGather?type=plant&task_id=${task_id}`)" <u-button type="primary" @click="navgo(`/subpkg/townTask/townGather?type=plant&task_id=${task_id}`)"

View File

@ -381,7 +381,12 @@
taskId: "", taskId: "",
readonly: false, readonly: false,
landPlanList: ['自己养', '出租', '代养', '租更多地扩大养殖'], landPlanList: ['自己养', '出租', '代养', '租更多地扩大养殖'],
pas_Info: {}, pas_Info: {
planting: [],
supply: []
},
breedingTypeList: [{ breedingTypeList: [{
id: 1, id: 1,
name: "水产" name: "水产"
@ -396,8 +401,8 @@
}, },
], ],
formData: { formData: {
"entityName": "", "entityName": "5",
phone: "", phone: "15884967539",
employee: "", employee: "",
arableLand: "", arableLand: "",
"breeding_training": 1, // "breeding_training": 1, //
@ -595,10 +600,9 @@
this.formData[data.value] = e.detail.value; this.formData[data.value] = e.detail.value;
}, },
async commit() { async commit() {
console.log(this.pas_Info)
if (this.page) { if (this.page) {
this.pas_Info.planting.push(this.formData) this.pas_Info.planting.push(this.formData)
await townMasterTask3Commit({ await townMasterTask3Commit({
id: Number(this.taskId), id: Number(this.taskId),
purchase_sales_info: this.pas_Info purchase_sales_info: this.pas_Info