export const orderOption = {
    column: [
        {
            label:'商品',
            prop:'goodsInfoId',
            type:'select',
            dicUrl: "/api/mall/goodsinfo/page?isSale=1&size=1000",
            props: {
                label: "goodsName",
                value: "id"
            },
            cascader: ['goodsSpecId'],
            dicFormatter: function (res) {
                return res.data.records;
            },
            rules: [{
                required: true,
                message: "请选择商品",
                trigger: "blur"
            }],
        },
        {
            label:'商品规格',
            prop:'goodsSpecId',
            type:'select',
            dicUrl: "/api/mall/goodsspec/page?goodsIdStr={{goodsInfoId}}&size=1000",
            props: {
                label: "spceName",
                value: "id"
            },
            dicFormatter: function (res) {
                return res.data.records;
            },
            rules: [{
                required: true,
                message: "请选择商品规格",
                trigger: "blur"
            }],
        },
        {
            label:'商品数量',
            prop:'goodsNum',
            rules: [{
                required: true,
                message: "请输入商品数量",
                trigger: "blur"
            }],
        },
        {
            label:'下单用户',
            prop:'userId',
            type:'select',
            dicUrl: "/api/blade-user/page?userType=2&current=1&size=1000",
            filterable:true,
            props: {
                label: "account",
                value: "id"
            },
            dicFormatter: function (res) {
                return res.data.records;
            },
            rules: [{
                required: true,
                message: "请选择下单用户",
                trigger: "blur"
            }],
        },
        {
            label:'备注',
            prop:'remark',
            type:'textarea',
            span: 24,
            minRows:3,
            maxRows:5
        }
    ]
}

export const customOrderOption = {
    column: [
        {
            label:'瓶盖',
            prop:'bottleCapId',
            type:'select',
            dicUrl: "/api/custom/bottlecap/list?status=1&current=1&size=1000",
            filterable:true,
            props: {
                label: "name",
                value: "id"
            },
            dicFormatter: function (res) {
                return res.data.records;
            },
            rules: [{
                required: true,
                message: "请选择瓶盖",
                trigger: "blur"
            }],
        },
        {
            label:'瓶身',
            prop:'bottleBodyId',
            type:'select',
            dicUrl: "/api/custom/bottlebody/list?status=1&current=1&size=1000",
            filterable:true,
            props: {
                label: "name",
                value: "id"
            },
            dicFormatter: function (res) {
                return res.data.records;
            },
            rules: [{
                required: true,
                message: "请选择瓶身",
                trigger: "blur"
            }],
        },
        {
            label:'酒标',
            prop:'bottleLabelId',
            type:'select',
            dicUrl: "/api/custom/bottlelabel/list?status=1&current=1&size=1000",
            filterable:true,
            props: {
                label: "name",
                value: "id"
            },
            dicFormatter: function (res) {
                return res.data.records;
            },
        },
        {
            label:'酒箱',
            prop:'wineCaseId',
            type:'select',
            dicUrl: "/api/custom/winecase/list?status=1&current=1&size=1000",
            filterable:true,
            props: {
                label: "name",
                value: "id"
            },
            dicFormatter: function (res) {
                return res.data.records;
            },
            rules: [{
                required: true,
                message: "请选择酒箱",
                trigger: "blur"
            }],
        },
        {
            label:'酒盒',
            prop:'wineBoxId',
            type:'select',
            dicUrl: "/api/custom/winebox/list?status=1&current=1&size=1000",
            filterable:true,
            props: {
                label: "name",
                value: "id"
            },
            dicFormatter: function (res) {
                return res.data.records;
            }
        },
        {
            label:'手提包',
            prop:'handbagId',
            type:'select',
            dicUrl: "/api/custom/handbag/list?status=1&current=1&size=1000",
            filterable:true,
            props: {
                label: "name",
                value: "id"
            },
            dicFormatter: function (res) {
                return res.data.records;
            }
        },
        {
            label:'基酒',
            prop:'baseWineId',
            type:'select',
            dicUrl: "/api/custom/basewine/list?status=1&current=1&size=1000",
            filterable:true,
            props: {
                label: "name",
                value: "id"
            },
            dicFormatter: function (res) {
                return res.data.records;
            },
            rules: [{
                required: true,
                message: "请选择基酒",
                trigger: "blur"
            }],
        },

        {
            label:'商品数量',
            prop:'quantity',
            rules: [{
                required: true,
                message: "请输入商品数量",
                trigger: "blur"
            }],
        },
        {
            label:'下单用户',
            prop:'userId',
            type:'select',
            dicUrl: "/api/blade-user/page?userType=2&current=1&size=1000",
            filterable:true,
            props: {
                label: "account",
                value: "id"
            },
            dicFormatter: function (res) {
                return res.data.records;
            },
            rules: [{
                required: true,
                message: "请选择下单用户",
                trigger: "blur"
            }],
        },
        {
            label:'备注',
            prop:'remark',
            type:'textarea',
            span: 24,
            minRows:3,
            maxRows:5
        }
    ]
}
