src/views/dispatchChild/data.js
@@ -52,6 +52,30 @@
    //     disabled: true,
    // },
    {
        label: "保安员",
        prop: "name",
        type: "tree",
        // width: 70,
        labelWidth: 120,
        searchSpan: 3,
        multiple: true,
        search: true,
        // cell: true,
        // hide: true,
        props: {
            label: "realName",
            value: "id",
        },
        dicUrl: `/api/blade-user/page-security-units?deptId={{key}}`,
        rules: [
            {
                required: true,
                message: "请选择保安",
                trigger: "blur",
            },
        ],
    },
    {
        label: "联系人",
        prop: "linkman",
        span: 11,
@@ -97,21 +121,43 @@
    //     // editDisplay: false,
    //     // addDisplay: false
    // },
    // {
    //     label: "保安公司",
    //     prop: "deptId",
    //     labelWidth: 120,
    //     searchLabelWidth: 120,
    //     searchSpan: 4,
    //     dicUrl:
    //         "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
    //     props: {
    //         label: "title",
    //         value: "id",
    //     },
    //     search: true,
    //     overHidden: true,
    //     type: "select",
    //     rules: [
    //         {
    //             required: true,
    //             message: "请输入保安公司",
    //             trigger: "blur",
    //         },
    //     ],
    // },
    {
        label: "保安公司",
        prop: "deptId",
        search: true,
        labelWidth: 120,
        searchLabelWidth: 120,
        type: "select",
        searchSpan: 4,
        dicUrl:
            "/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697",
        cascaderItem: ["name"],
        props: {
            label: "title",
            value: "id",
        },
        search: true,
        overHidden: true,
        type: "select",
        width: 180,
        dicUrl: `/api/blade-system/dept/security_lazy-tree?parentId=1413470343230877697`,
        rules: [
            {
                required: true,
@@ -144,19 +190,46 @@
        rules: [
            {
                required: true,
                message: "请输入保安公司",
                message: "请输入派遣单位",
                trigger: "blur",
            },
        ],
    },
    {
        label: "保安人名称",
        label: "保安员",
        prop: "name",
        search: true,
        searchSpan: 4,
        searchLabelWidth: 120
        addDisplay: false,
        editDisplay: false,
        // .
        // overHidden: true
    }, {
    },
    // {
    //     label: "保安员",
    //     prop: "name",
    //     type: "select",
    //     width: 70,
    //     labelWidth: 120,
    //     searchSpan: 3,
    //     search: true,
    //     hide: true,
    //     // cell: true,
    //     // hide: true,
    //     props: {
    //         label: "realName",
    //         value: "id",
    //     },
    //     dicUrl: `/api/blade-user/page-security-units?deptId={{key}}`,
    //     rules: [
    //         {
    //             required: true,
    //             message: "请选择保安",
    //             trigger: "blur",
    //         },
    //     ],
    // },
    {
        label: "身份证",
        prop: "cardid",
        // search: true,
@@ -174,8 +247,8 @@
        label: "派遣时间",
        prop: "dispatchertime",
        type: "date",
        format: "yyyy-MM-dd hh:mm:ss",
        valueFormat: "timestamp",
        format: "yyyy-MM-dd",
        valueFormat: "yyyy-MM-dd",
        search: true,
        searchSpan: 4,
        // overHidden: true
@@ -183,8 +256,8 @@
        label: "结束时间",
        prop: "endTime",
        type: "date",
        format: "yyyy-MM-dd hh:mm:ss",
        valueFormat: "timestamp",
        format: "yyyy-MM-dd",
        valueFormat: "yyyy-MM-dd",
        // search: true,
        // searchSpan: 5,
        // overHidden: true