diff --git a/pages/massif/add_farming.vue b/pages/massif/add_farming.vue index 997dcdd..7f8f141 100644 --- a/pages/massif/add_farming.vue +++ b/pages/massif/add_farming.vue @@ -173,9 +173,6 @@ - @@ -226,10 +223,6 @@ export default { rules:{ farmingTime:{required:true,message:"操作日期必填!",trigger:'blur'}, farmingPlanId:{required:true,message:"种植计划必选!",trigger:'blur'}, - images:{required:true,validator(rule,val,call){ - if(!this.fields.images.value)call(new Error("请上传农事图片!")); - else call() - },trigger:'blur'}, }, massif:{}, tempType:"", @@ -242,6 +235,8 @@ export default { this.formData.plotId=options.plotId this.init() this.getMassifDetail() + //添加监听 + this.$provise.on("forming_agr",e=>e(this.formData.inputList)) }, methods:{ async init(){ @@ -348,5 +343,8 @@ export default { } }, }, + onUnload(){ + this.$provise.off('forming_agr') + }, } \ No newline at end of file diff --git a/pages/massif/agrSpecs.vue b/pages/massif/agrSpecs.vue index 2dcffc5..1ad60ed 100644 --- a/pages/massif/agrSpecs.vue +++ b/pages/massif/agrSpecs.vue @@ -52,66 +52,44 @@ } } } + .u-form{ + &>.u-form-item{ + &/deep/ { + .u-form-item__body__left{ + .u-form-item__body__left__content{ + .u-form-item__body__left__content__required{ + position:initial; + margin-right:4rpx; + } + } + } + .u-form-item__body__right__message{ + margin-left:0!important; + } + } + } + .plant-youbian{ + padding:18rpx 18rpx; + border-radius: 24rpx; + width:100%; + display:flex; + align-items: center; + flex-direction: row-reverse; + justify-content: space-between; + background:#F7F7F7; + margin-top:14rpx; + color:rgb(48,49,51); + &.noData{ + color:rgb(192, 196, 204); + } + &:before{ + transform: rotate(90deg); + color:rgb(48,49,51); + } + } + } } - // .u-popup{ - // .u-popup__content{ - // &>.btns{ - // display:flex; - // justify-content: space-between; - // padding:10rpx; - // } - - // picker-view{ - // height:500rpx; - // picker-view-column{ - // view.item{ - // padding:0 30rpx; - // display:flex; - // flex-direction: column; - // justify-content: space-evenly; - // .name{ - // display:flex; - // align-items: center; - // text{ - // font-size:16rpx; - // &:first-child{ - // color:#fff; - // background:#10C176; - // border-radius:0 20rpx 0 20rpx; - // width:80rpx; - // height:34rpx; - // text-align: center; - // line-height: 34rpx; - // margin-right:16rpx; - // } - // &:nth-child(2){ - // font-weight: bold; - // font-size:20rpx; - // } - // &:nth-child(3){ - // color:#999; - // margin-left:6rpx; - // } - // } - // } - // .company{ - // font-size:16rpx; - // &:before{ - // content:attr(data-name); - // color:#FBA83C; - // margin-right:20rpx; - // } - // &:after{ - // content:attr(data-company); - // color:#999999; - // } - // } - // } - // } - // } - // } - // } .agr-picker{ padding:0 30rpx; display:flex; @@ -173,17 +151,15 @@ - - + + + {{formData.specDescribe||"请选择规格"}} + + + +