| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111 | 'use strict';/** * 材料调差 * * @author ELlisran * @date 2019/10/20 * @version */// 调差类型const t_type = [    { text: '消耗量', value: 1 },    { text: '费用', value: 2 },];// 工料分类const m_type = [    { text: '分类', value: 1 },    { text: '钢材', value: 2 },    { text: '地材', value: 3 },    { text: '油料', value: 4 },    { text: '水泥', value: 5 },    { text: '半成品', value: 6 },    { text: '砂石料', value: 8 },    { text: '沥青', value: 9 },    { text: '其他', value: 7 },];// 指数调差类型const ex_type = [    { text: '定值', value: 1 },    { text: '变值', value: 2 },];const ex_basic_text = {    bqht: '所选期合同计量金额',    bqbg: '所选期变更计量金额',    bqwc: '所选期完成计量金额',    zdy: '自定义金额',};// 金额const decimal = {    up: 3, // 单价    qty: 3, // 数量    tp: 2, // 金额};const ex_calc = [    {        code: 'bqht',        text: '所选期合同计量金额',        value: '',        select: false,    },    {        code: 'bqbg',        text: '所选期变更计量金额',        value: '',        select: false,    },    {        code: 'bqwc',        text: '所选期完成计量金额',        value: '',        select: true,    },    {        code: 'zdy',        text: '自定义金额',        value: '',        select: false,    },];const is_summary = {    yes: 1,    no: 2,};const qty_source = [    {        value: 1,        name: '完成计量',        key: 'gather_qty',    },    {        value: 2,        name: '合同计量',        key: 'contract_qty',    },    {        value: 3,        name: '完成计量(含不计价变更)',        key: 'gather_minus_qty',    },];const qty_source_value = {    gather_qty: 1,    contract_qty: 2,    gather_minus_qty: 3,};module.exports = {    t_type,    m_type,    ex_type,    is_summary,    ex_calc,    ex_basic_text,    decimal,    qty_source,    qty_source_value,};
 |