diff --git a/pages/home/index.vue b/pages/home/index.vue
index 93382f3..4911b6e 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -316,13 +316,13 @@
农事
-
+
投入品
-
+
diff --git a/pages/massif/plant_info.vue b/pages/massif/plant_info.vue
index 74443da..93adcbb 100644
--- a/pages/massif/plant_info.vue
+++ b/pages/massif/plant_info.vue
@@ -32,7 +32,7 @@ export default {
fields:{
harvestNum:{label:"采收数量",suffix:'kg',type:"digit"},
harvestBatch:{label:"收获批次号",btnText:"生成", btnFun:()=>this.formData.harvestBatch=`CS${new Date().format('yyyyMMdd')}${new Date().getTime()}`},
- principal:{label:"负责人",type:"select",columns:[],value:[]},
+ principal:{label:"负责人",disabled:true},
harvestTime:{label:"采收时间",type:"calendar"},
status:{label:"采收状态",type:"select",columns:[],value:[]},
warehouseId:{label:"仓库",type:"select",columns:[],value:[]},
@@ -40,7 +40,7 @@ export default {
formData:{
harvestNum:"",
harvestBatch:"",
- principal:"",
+ principal: this.$store.getters.userInfo.realname,
harvestTime:"",
status:"",
warehouseId:"",
@@ -67,16 +67,6 @@ export default {
},
methods:{
async init(){
- var res=await request("/api/plantHarvest/getUser")
- if(res.statu){
- this.fields.principal.columns=[res.data.map(v=>({label:v,value:v}))]
- }else{
- uni.showModal({
- title:"提示",
- content:res.msg||"获取负责人选项失败!",
- showCancel:false,
- })
- }
//仓库 下拉选
var res=await request("/api/plantHarvest/getWarehouse",{
params:{