/**
 * Created by Zhong on 2017/11/16.
 */

//默认的小数位数,用于定义用户可编辑的字段（入库），用户不可编辑的字段在前端defaultDecima._def中定义即可
const defaultDecimal = {
    bills: {unitPrice: 2, totalPrice: 0},
    ration: {quantity: 3, unitPrice: 2, totalPrice: 0},
    glj: {quantity: 3, unitPriceHasMix: 2, unitPrice: 3},
    feeRate: 3,
    quantity_detail: 4,
    material:5,//三材系数
    process: 6
};
const displaySetting = {
    autoHeight:true,
    billsAutoHeight:true,
    rationAutoHeight:true,
    disPlayMainMaterial:false
};

const tenderSetting = {
    gljPriceTenderCoe:1, //工料机单价调整系数
    calcPriceOption:'coeBase'//根据调整系数计算报价
};

const calcOptions={
    calc_main:true,
    calc_add:true,
    calc_est:true
}
/*
* 单位工程清单工程量精度模板
* */
const billsQuantityDecimal = [
    {unit: '其他未列单位', decimal: 3},
    {unit: 't', decimal: 3},
    {unit: '吨', decimal: 3},
    {unit: 'km', decimal: 3},
    {unit: '千米', decimal: 3},
    {unit: 'm', decimal: 3},
    {unit: '米', decimal: 3},
    {unit: 'm2', decimal: 3},
    {unit: '平方米', decimal: 3},
    {unit: 'm3', decimal: 3},
    {unit: '立方米', decimal: 3},
    {unit: 'kg', decimal: 3},
    {unit: '千克', decimal: 3},
    {unit: '公斤', decimal: 3},
    {unit: '元', decimal: 3},
    {unit: '工日', decimal: 3},
    {unit: '台班', decimal: 3},
    {unit: '个', decimal: 3},
    {unit: '件', decimal: 3},
    {unit: '根', decimal: 3},
    {unit: '组', decimal: 3},
    {unit: '宗', decimal: 3},
    {unit: '付', decimal: 3},
    {unit: '处', decimal: 3},
    {unit: '系统', decimal: 3},
    {unit: '部', decimal: 3},
    {unit: '台', decimal: 3},
    {unit: '辆', decimal: 3},
    {unit: '套', decimal: 3},
    {unit: '株', decimal: 3},
    {unit: '从', decimal: 3},
    {unit: '缸', decimal: 3},
    {unit: '支', decimal: 3},
    {unit: '只', decimal: 3},
    {unit: '块', decimal: 3},
    {unit: '座', decimal: 3},
    {unit: '对', decimal: 3},
    {unit: '份', decimal: 3},
    {unit: '樘', decimal: 3},
    {unit: '攒', decimal: 3},
    {unit: '榀', decimal: 3}
];

//项目属性基本信息
const basicInformation = [
    {dispName: '基本信息', key: 'basicInfo', items: [
        {dispName: '合同号', key: 'contractNum', value: ''},
       // {dispName: '工程专业', key: 'engineering', value: ''},//只读，用户新建单位工程时选择的值
        {dispName: '建设地点', key: 'constructionPlace', value: ''},
        {dispName: '质量标准', key: 'qualityStandard', value: ''},
        {dispName: '工程类别', key: 'projectCategory', value: ''},
        {dispName: '建设日期', key: 'constructionDate', value: ''},
        {dispName: '工程规模', key: 'projectScale', value: ''},
        {dispName: '总建筑面积(m2)', key: 'grossArea', value: ''},
        {dispName: '建设单位', key: 'constructionUnit', value: ''},
        {dispName: '设计单位', key: 'designUnit', value: ''},
        {dispName: '施工单位', key: 'buildingUnit', value: ''},
        {dispName: '监理单位', key: 'supervisingUnit', value: ''},
        {dispName: '审核单位', key: 'auditUnit', value: ''},
        {dispName: '建设单位审核人', key: 'constructionUnitAudit', value: ''},
        {dispName: '设计单位负责人', key: 'designUnitPrincipal', value: ''},
        {dispName: '施工单位编制人', key: 'buildingUnitAuthor', value: ''},
        {dispName: '监理单位审核人', key: 'supervisingUnitAuditor', value: ''},
        {dispName: '审核单位审核人', key: 'auditUnitAuditor', value: ''},
        {dispName: '编制时间', key: 'establishDate', value: ''}
    ]},
    {dispName: '招标信息', key: 'biddingInfo', items: [
        {dispName: '招标人', key: 'bidInviter', value: ''},
        {dispName: '法定代表人或其他授权人', key: 'representative', value: ''},
        {dispName: '造价工程师', key: 'costEngineer', value: ''}
    ]},
    {dispName: '投标信息', key: 'bidInfo', items: [
        {dispName: '投标人', key: 'bidder', value: ''},
        {dispName: '法定代表人或其授权人', key: 'representative', value: ''},
        {dispName: '造价工程师', key: 'costEngineer', value: ''}
    ]},
    {dispName: '工程造价咨询信息', key: 'engineeringCostConsultationInfo', items: [
        {dispName: '工程造价咨询人', key: 'consultant', value: ''},
        {dispName: '法定代表人或其授权人', key: 'representative', value: ''},
        {dispName: '造价工程师', key: 'costEngineer', value: ''}
    ]}
];

const projectFeature = [
    {dispName: '工程专业', key: 'engineering', value: ''},//只读，用户新建单位工程时选择的值
    {dispName: '工程类型', key: 'projType', value: ''},
    {dispName: '结构类型', key: 'structureType', value: ''},
    {dispName: '基础类型', key: 'baseType', value: ''},
    {dispName: '建筑特征', key: 'buildingFeature', value: ''},
    {dispName: '建筑面积(m2)', key: 'buildingArea', value: ''},
    {dispName: '其中地下室建筑面积(m2)', key: 'basementBuildingArea', value: ''},
    {dispName: '总层数', key: 'totalFloors', value: ''},
    {dispName: '地下室层数(+/-0.00以下)', key: 'basementFloors', value: ''},
    {dispName: '建筑层数(+/-0.00以下)', key: 'buildingFloors', value: ''},
    {dispName: '建筑物总高度(m)', key: 'buildingHeight', value: ''},
    {dispName: '地下室总高度(m)', key: 'basementHeight', value: ''},
    {dispName: '首层高度(m)', key: 'firstFloorHeight', value: ''},
    {dispName: '裙楼高度(m)', key: 'podiumBuildingHeight', value: ''},
    {dispName: '标准层高度(m)', key: 'standardFloorHeight', value: ''},
    {dispName: '基础材料及装饰', key: 'baseMaterial', value: ''},
    {dispName: '楼地面材料及装饰', key: 'flooringMaterial', value: ''},
    {dispName: '外墙材料及装饰', key: 'exteriorWallMaterial', value: ''},
    {dispName: '屋面材料及装饰', key: 'roofingMaterial', value: ''},
    {dispName: '门窗材料及装饰', key: 'doorsWindowsMaterial', value: ''}
];

const bookmarkSetting = {
    settingList :[
        {background:"E2F2C5",describe:""},
        {background:"F9E2CF",describe:""},
        {background:"F2EFD9",describe:""},
        {background:"F5D1DA",describe:""},
        {background:"E3E3E3",describe:""},
        {background:"B6F3F2",describe:""},
        {background:"ECE0F5",describe:""}
    ],
    selected:"E2F2C5"
};

export {defaultDecimal, billsQuantityDecimal, basicInformation, projectFeature,displaySetting,calcOptions,tenderSetting,bookmarkSetting};
