/* * @Author: lixiong * @Date: 2019-08-21 14:35:07 * @Last Modified by: lixiong * @Last Modified time: 2019-08-21 17:35:48 */ /** * 产品名称下拉列表 */ import ApiModel from '@comprehensive/serve/core/ApiModel' export default options => { // 接口地址,required const api = 'server/qryProdList' return new ApiModel({ api, request(params) { return this.post(params) }, computedItem(item) { let { productCode, productName, ...other } = item return { ...other, label: productName, value: productCode } } }) }