智慧农业后台管理页面
guoshilong
2022-09-13 d2fecb979d51513e1c14b38b51714f3a2f08255e
农资显示
1 files modified
45 ■■■■■ changed files
src/views/farm/farmingrecord.vue 45 ●●●●● patch | view | raw | blame | history
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
                }