diff --git a/pages/home/index.vue b/pages/home/index.vue
index 949a660..fdaa7e5 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -196,7 +196,10 @@
margin:20rpx 0;
padding-bottom:20rpx;
border-bottom:2rpx solid #D8D8D8;
+ display:flex;
+ align-items: center;
text{
+ flex-shrink: 0;
display: inline-flex;
align-items: center;
&:before{
@@ -207,6 +210,10 @@
&.active{
color:rgba(var(--c),1);
}
+ &.more{
+ color:#999;
+ margin-left:auto;
+ }
}
}
.item{
@@ -321,6 +328,7 @@
农事记录
投入品
+ 更多>>
diff --git a/pages/warehouse/info.vue b/pages/warehouse/info.vue
index 43b4f65..6452a57 100644
--- a/pages/warehouse/info.vue
+++ b/pages/warehouse/info.vue
@@ -87,7 +87,7 @@ import request from '@/common/request.js'
submit(){
this.$refs.form.validate().then(async valid=>{
if(valid){
- var res=await request("/api/AddWarehouseApi/add",{
+ var res=await request("/api/WarehouseManageApi/addOrUpdate",{
method:"post",
body:{
...this.formData,
@@ -107,12 +107,15 @@ import request from '@/common/request.js'
}
})
},
- async getDetail(warehouseId){
- var res=await request("/api/WarehouseManageApi/addOrUpdate",{
- params:{warehouseId}
+ async getDetail(id){
+ var res=await request("/api/WarehouseManageApi/queryById",{
+ params:{id}
})
if(res.statu){
- this.formData=res.data.upper
+ this.formData=res.data
+ this.fields.warehousePic.value=res.data.warehousePic
+ this.formData.warehousePic=res.data.warehousePic?.split?.(",")?.filter?.(v=>v)||[]
+ this.fields.warehouseType.value=[res.data.warehouseType]
}else{
uni.showModal({
title:"提示",