2 lines
1.3 KiB
JavaScript
2 lines
1.3 KiB
JavaScript
import{D as e}from"./dict-enum-CaHgMaDZ.js";function l(t){return[{field:"productName",title:"产品名称"},{field:"productNo",title:"产品条码"},{field:"productUnit",title:"产品单位",cellRender:{name:"CellDict",props:{type:e.CRM_PRODUCT_UNIT}}},{field:"productPrice",title:"产品价格(元)",formatter:"formatAmount2"},{field:"businessPrice",title:"商机价格(元)",formatter:"formatAmount2",visible:t},{field:"contractPrice",title:"合同价格(元)",formatter:"formatAmount2",visible:!t},{field:"count",title:"数量",formatter:"formatAmount3"},{field:"totalPrice",title:"合计金额(元)",formatter:"formatAmount2"}]}function o(){return[{type:"seq",title:"序号",minWidth:50},{field:"productId",title:"产品名称",minWidth:100,slots:{default:"productId"}},{field:"productNo",title:"条码",minWidth:150},{field:"productUnit",title:"单位",minWidth:100,cellRender:{name:"CellDict",props:{type:e.CRM_PRODUCT_UNIT}}},{field:"productPrice",title:"价格(元)",minWidth:100,formatter:"formatAmount2"},{field:"sellingPrice",title:"售价(元)",minWidth:100,slots:{default:"sellingPrice"}},{field:"count",title:"数量",minWidth:100,slots:{default:"count"}},{field:"totalPrice",title:"合计",minWidth:100,formatter:"formatAmount2"},{title:"操作",width:80,fixed:"right",slots:{default:"actions"}}]}export{l as a,o as u};
|