diff --git a/common/request.js b/common/request.js index d913056..7b99414 100644 --- a/common/request.js +++ b/common/request.js @@ -4,7 +4,7 @@ export function host(host='default',suffix='/plant_manage'){ return( process.env.NODE_ENV === 'development'?{ default:`http://xvff42.natappfree.cc${suffix}` //陈 - // default:`http://mq3s8b.natappfree.cc${suffix}` //马 + // default:`http://6h8nxd.natappfree.cc${suffix}` //马 }:{ default:`http://qv6mj8.natappfree.cc${suffix}` } diff --git a/pages.js b/pages.js index a6d10b4..29ea2be 100644 --- a/pages.js +++ b/pages.js @@ -27,7 +27,6 @@ module.exports = hot((pagesJson)=>{ color:"#999", selectedColor:"#10C176", backgroundColor:"#fff", - // iconWidth:"35rpx", list:[ {pagePath:"pages/home/index",text:"首页",iconPath: "/static/tab_home.png",selectedIconPath: "/static/tab_home_active.png"}, {pagePath:"pages/massif/index",text:"地块管理",iconPath: "/static/tab_massif.png",selectedIconPath: "/static/tab_massif_active.png"}, diff --git a/pages/home/index.vue b/pages/home/index.vue index bfd9f64..a1e0b4e 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -291,7 +291,7 @@ 农资库存 农产品库存 - + 采购申请 入库管理 @@ -340,7 +340,6 @@ import request from '@/common/request.js' }, onLoad() { // this.getMassif() - // this.getPurchase() this.isAdmin && this.getPlantBase() }, onShow(){ @@ -362,11 +361,6 @@ import request from '@/common/request.js' }) } }, - // //获取采购申请数据 - // async getPurchase(){ - // var res=await request("/purchaseMain/purchaseMain/listPlantPurchaseSubByMainId") - // console.log(res,'------------res----------') - // }, //获取基地列表 async getPlantBase(){ var res=await request("/api/plantPlot/getAllPlantBaseInfo",{ diff --git a/pages/massif/add_farming.vue b/pages/massif/add_farming.vue index 182383f..828d268 100644 --- a/pages/massif/add_farming.vue +++ b/pages/massif/add_farming.vue @@ -93,8 +93,8 @@ - 阳光玫瑰种植1号地块 - + {{massif.plotName}} + @@ -114,16 +114,20 @@ :key="k" v-bind="v" :field="k" - :required="!!rules[k]"/> + :required="!!rules[k]" + :value="[]"/> \ No newline at end of file diff --git a/pages/massif/collectList.vue b/pages/massif/collectList.vue index 8d0d7a2..4e1b752 100644 --- a/pages/massif/collectList.vue +++ b/pages/massif/collectList.vue @@ -2,7 +2,7 @@ .container{ min-height:100%; background:#f6f6f6; - padding:30rpx 0; + // padding:30rpx 0; .card{ .name{ diff --git a/pages/massif/mana/farmRecord.vue b/pages/massif/mana/farmRecord.vue index dabdc88..1b1cb96 100644 --- a/pages/massif/mana/farmRecord.vue +++ b/pages/massif/mana/farmRecord.vue @@ -68,7 +68,7 @@ 农资使用情况 - +添加农事 + +添加农事 @@ -83,10 +83,23 @@ \ No newline at end of file diff --git a/pages/massif/mana/index.vue b/pages/massif/mana/index.vue index 9e84348..4fd5021 100644 --- a/pages/massif/mana/index.vue +++ b/pages/massif/mana/index.vue @@ -20,9 +20,9 @@ - - - + + + \ No newline at end of file diff --git a/pages/massif/mana/recovery.vue b/pages/massif/mana/recovery.vue index 2b8efeb..5b1f240 100644 --- a/pages/massif/mana/recovery.vue +++ b/pages/massif/mana/recovery.vue @@ -13,7 +13,7 @@ background:#fff; height:48rpx; font-size:24rpx; - color:#999; + color:#333; border-radius: 8rpx; padding:0 10rpx; min-width:226rpx; @@ -21,6 +21,9 @@ &:before{ transform: rotate(90deg); } + &.noDate{ + color:#999; + } } &:nth-child(2){ color:#999; @@ -30,10 +33,8 @@ } .card{ display:flex; - image{ + .u-transition{ flex-shrink: 0; - width:90rpx; - height:90rpx; margin-right:20rpx; } .detail{ @@ -59,6 +60,9 @@ .info{ font-size: 24rpx; color:#999; + text:nth-child(2){ + margin-left:20rpx; + } } } } @@ -67,27 +71,37 @@ \ No newline at end of file diff --git a/pages/purchase/newSpecs.vue b/pages/purchase/newSpecs.vue index de62a72..48445ae 100644 --- a/pages/purchase/newSpecs.vue +++ b/pages/purchase/newSpecs.vue @@ -64,10 +64,23 @@ 预警值 kg + + \ No newline at end of file diff --git a/pages/purchase/specs.vue b/pages/purchase/specs.vue index ef322f3..231225e 100644 --- a/pages/purchase/specs.vue +++ b/pages/purchase/specs.vue @@ -155,6 +155,7 @@ export default{ data(){ return{ purchase:null, + specList:[], } }, onLoad(options){ @@ -174,6 +175,19 @@ export default{ showCancel:false, }) } + + var res=await request("/api/goods/queryGoodsSpecification",{ + params:{goodsName:this.purchase.goodsName} + }) + if(res.statu){ + this.specList=res.data.map(v=>({label:v.goodsSpecification,value:v.id})) + }else{ + uni.showModal({ + title:"提示", + content:res.msg||"获取规格选项失败!", + showCancel:false, + }) + } }, } } diff --git a/router/purchase.js b/router/purchase.js index 765eb6d..79273ba 100644 --- a/router/purchase.js +++ b/router/purchase.js @@ -1,4 +1,15 @@ module.exports=[ + { + path:"pages/purchase/index", + style:{ + navigationBarTitleText:"采购管理", + navigationBarBackgroundColor:"#10C176", + navigationBarTextStyle:"white", + "app-plus":{ + titleNView:true + } + } + }, { path:"pages/purchase/apply", style:{ diff --git a/uni_modules/d-form/components/d-form/d-form.vue b/uni_modules/d-form/components/d-form/d-form.vue index 6153649..e69da1c 100644 --- a/uni_modules/d-form/components/d-form/d-form.vue +++ b/uni_modules/d-form/components/d-form/d-form.vue @@ -133,7 +133,10 @@ } &/deep/ { .u-form-item__body__left__content{ - margin-left:20rpx; + .u-form-item__body__left__content__required{ + position:initial; + margin-right:4rpx; + } } .u-form-item__body__right__message{ margin-left:0!important; @@ -377,8 +380,8 @@ import {dataType} from 'black-knight/lib/config/tools' this.$emit('imgs',this.imgs.map(v=>({saved:v.url,unsaved:v.tempUrl})[v.type]).join(',')) }, pickerChange(e){ - if(e.value[e.columnIndex].hasOwnProperty('children')){ - this.$refs.picker.setColumnValues(e.columnIndex+1,e.value[0].children||[]) + if(dataType(e.value[e.columnIndex].children, 'array')){ + this.$refs.picker.setColumnValues(e.columnIndex+1,e.value[0].children) } }, },