const options = [ { value: 0, label: "未结状态" }, { value: 1, label: "已开票" }, { value: 2, label: "商务已审核" }, { value: 3, label: "财务已审核" }, { value: 4, label: "客户已收票" }, { value: 5, label: "已扣减" }, ]; const state = { title: "状态", type: "string", input: "select", options }; const state2 = Object.assign(Object.assign({}, state), { options: options.filter((a) => a.value > 0) }); const state3 = Object.assign(Object.assign({}, state), { options: options.filter((a) => a.value > 3) }); export default state; export { state2, state3 };