diff --git a/pages/baseMana/formReacord.vue b/pages/baseMana/formReacord.vue index d6d12ed..631545d 100644 --- a/pages/baseMana/formReacord.vue +++ b/pages/baseMana/formReacord.vue @@ -96,7 +96,7 @@ 负责人:{{v.principal}} 记录时间:{{v.time}} - + diff --git a/pages/home/index.vue b/pages/home/index.vue index 7409286..b9e2efe 100644 --- a/pages/home/index.vue +++ b/pages/home/index.vue @@ -356,7 +356,7 @@ 投入品 {{v.userName}}{{new Date(v.time).format('yyyy-MM-dd')}}日完成了{{v.plotName}}{{v.farmWorkName}}任务 - + diff --git a/pages/massif/index.vue b/pages/massif/index.vue index 4ffd106..82c9d12 100644 --- a/pages/massif/index.vue +++ b/pages/massif/index.vue @@ -103,7 +103,7 @@ - + diff --git a/pages/massif/info.vue b/pages/massif/info.vue index 10a56b3..fdf2a18 100644 --- a/pages/massif/info.vue +++ b/pages/massif/info.vue @@ -31,7 +31,7 @@ import request from '@/common/request' data(){ return{ fields:{ - plantBaseInfoId:{label:"基地名称",type:"select",columns:[[]],value:[]}, + plantBaseInfoId:{label:"基地名称",type:"select",columns:[[]],value:[],disabled:this.$store.getters['userInfo'].roleCode=="baseAdmin"}, plotNumber:{label:"地块编号"}, plotName:{label:"地块名称"}, drawArea:{label:"地块面积(亩)",type:'digit'}, @@ -73,9 +73,17 @@ import request from '@/common/request' eventChannel:null, } }, - onLoad(options){ - this.init() - if(options.id)this.getDetail(options.id); + async onLoad(options){ + await this.init() + if(options.id){ + this.getDetail(options.id) + }else if(this.$store.getters['userInfo'].roleCode=="baseAdmin"){ + var baseVal=this.fields.plantBaseInfoId.columns[0].find(v=>v.value==this.$store.state.plantBaseInfoId) + if(baseVal){ + this.formData.plantBaseInfoId=baseVal.value + this.fields.plantBaseInfoId.value=[baseVal.value] + } + } this.eventChannel=this.getOpenerEventChannel() }, methods:{ diff --git a/pages/massif/mana/plantPlan.vue b/pages/massif/mana/plantPlan.vue index ef7f8a4..538706a 100644 --- a/pages/massif/mana/plantPlan.vue +++ b/pages/massif/mana/plantPlan.vue @@ -132,7 +132,7 @@ 已结束 - + diff --git a/pages/massif/mana/recovery.vue b/pages/massif/mana/recovery.vue index f3bfe5c..ae05e10 100644 --- a/pages/massif/mana/recovery.vue +++ b/pages/massif/mana/recovery.vue @@ -108,7 +108,7 @@ - + {{v.detailedType}} {{v.supplier}} - + diff --git a/pages/purchase/detail.vue b/pages/purchase/detail.vue index c219a8f..4cef750 100644 --- a/pages/purchase/detail.vue +++ b/pages/purchase/detail.vue @@ -73,7 +73,7 @@ {{v.detailedType}} {{v.supplier}} {{v.packing}} - + diff --git a/pages/stock/already.vue b/pages/stock/already.vue index 116c2da..b1b16db 100644 --- a/pages/stock/already.vue +++ b/pages/stock/already.vue @@ -87,7 +87,7 @@ 领用时间:{{new Date(v.collectingTime).format("yyyy-MM-dd")}} {{v.num}}{{(v.specDescribe.match(/\/(.+)/)||['',''])[1]}} - + diff --git a/pages/stock/list.vue b/pages/stock/list.vue index f8af516..ded161c 100644 --- a/pages/stock/list.vue +++ b/pages/stock/list.vue @@ -217,21 +217,8 @@ - + - \ No newline at end of file diff --git a/pages/stock/mana.vue b/pages/stock/mana.vue index 550498c..5af2748 100644 --- a/pages/stock/mana.vue +++ b/pages/stock/mana.vue @@ -147,7 +147,7 @@ - + diff --git a/pages/stock/record.vue b/pages/stock/record.vue index 60b7383..d63471e 100644 --- a/pages/stock/record.vue +++ b/pages/stock/record.vue @@ -75,7 +75,7 @@ {{v.supplierName}} {{v.number}}袋(共{{v.equivalentAmount}}{{v.unit}}) - +