From d2fecb979d51513e1c14b38b51714f3a2f08255e Mon Sep 17 00:00:00 2001
From: guoshilong <123456>
Date: Tue, 13 Sep 2022 15:06:14 +0800
Subject: [PATCH] 农资显示
---
src/views/farm/farmingrecord.vue | 45 ++++++++++++++++++++++++++++++++++++++++++---
1 files changed, 42 insertions(+), 3 deletions(-)
diff --git a/src/views/farm/farmingrecord.vue b/src/views/farm/farmingrecord.vue
index 0069e9f..35c6a1e 100644
--- a/src/views/farm/farmingrecord.vue
+++ b/src/views/farm/farmingrecord.vue
@@ -42,6 +42,7 @@
save,
} from "@/api/farm/farmingrecord"
import { getLandList } from "@/api/land/land"
+import { getStrainList } from "@/api/farmplant/strain"
import { getUserList } from "@/api/system/user"
import { selectStockFa } from "@/api/stockfactory/stockfactory"
import { mapGetters } from "vuex"
@@ -129,8 +130,37 @@
prop: "landName",
display: false,
},
+ // {
+ // label: "品种",
+ // prop: "strainId",
+ // searchSpan: 4,
+ // search: true,
+ // type: "tree",
+ // hide: true,
+ // dicData: [],
+ // props: {
+ // label: "strainName",
+ // value: "id",
+ // },
+ // // change: (val) => {
+ // // this.strainId = val.value
+ // // },
+ // labelWidth: 110,
+ // rules: [
+ // {
+ // required: true,
+ // message: "请选择品种",
+ // trigger: "blur",
+ // },
+ // ],
+ // },
+ // {
+ // label:"品种",
+ // prop:"strainName",
+ // display:false
+ // },
{
- label:"农资",
+ label:"详情",
prop:"content",
labelWidth: 110,
editDisplay:false,
@@ -140,11 +170,12 @@
prop: "stockId",
type: "tree",
hide:true,
+ editDisabled:true,
// hide:true,
dicData: [],
props: {
- label: "dictValue",
- value: "dictKey",
+ label: "spn",
+ value: "stockId1",
},
labelWidth: 110,
rules: [
@@ -318,6 +349,13 @@
landIdcolumn.dicData = res.data.data
}
})
+ // //获取农产品数据
+ // getStrainList(0).then((res) => {
+ // if (res.data.code == 200) {
+ // var strainId = that.findObject(that.option.column, "strainId")
+ // strainId.dicData = res.data.data
+ // }
+ // })
//获取操作人
const user = {
tenantId: this.userInfo.tenant_id,
@@ -331,6 +369,7 @@
//获取农资
selectStockFa().then((res) => {
if (res.data.code == 200) {
+ console.log(res.data.data)
var stockIdcolumn = that.findObject(that.option.column, "stockId")
stockIdcolumn.dicData = res.data.data
}
--
Gitblit v1.9.3