| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393 |
- import { number } from "echarts"
- export const option = {
- searchShow: true,
- searchMenuSpan: 8,
- align: "center",
- searchSpan: 8,
- tip: false,
- border: true,
- index: true,
- addBtn: false,
- viewBtn: false,
- editBtn: false,
- delBtn: false,
- menu: true,
- menuWidth: 100,
- searchIcon: true,
- searchIndex: 2,
- showSummary: true,
- summaryText: "合计",
- expand: true, //是否有展开表格
- sumColumnList: [
- {
- name: "debitAmount",
- type: "sum"
- },
- {
- name: "deliveringAmount",
- type: "sum"
- },
- {
- name: "balanceAmount",
- type: "sum"
- },
- {
- name: "settlmentAmount",
- type: "sum"
- }
- ],
- column: [
- {
- label: "客户名称",
- prop: "corpId",
- width:165,
- overHidden: true,
- search: true,
- hide:true,
- index: 1
- },
- {
- label: "客户名称",
- prop: "corpName",
- width:165,
- overHidden: true,
- index: 1
- },
- {
- label: "编号",
- prop: "sysNo",
- overHidden: true,
- index: 3
- },
- {
- label: "联系人",
- prop: "contacts",
- overHidden: true,
- search: true,
- index: 3
- },
- {
- label: "电话",
- prop: "contactsTel",
- search: true,
- overHidden: true,
- index: 3
- },
- {
- label: "设备名称",
- prop: "deviceJson",
- search: true,
- overHidden: true,
- index: 3
- },
- {
- label: "设备数量",
- prop: "equipmentNumber",
- overHidden: true,
- index: 4
- },
- {
- label: "维修次数",
- prop: "maintenanceSecond",
- index: 12
- },
- // {
- // label: "功能分类",
- // prop: "categoryitem",
- // type: "select",
- // props: {
- // label: "dictValue",
- // value: "dictValue"
- // },
- // dicUrl: "/api/blade-system/dict-biz/dictionary?code=functional_classification",
- // index:12
- // },
- {
- label: "合同起",
- prop: "signingDateStart",
- width: 120,
- index: 12
- },
- {
- label: "合同止",
- prop: "signingDateEnd",
- search: true,
- type:'date',
- format: "yyyy-MM-dd",
- valueFormat: 'yyyy-MM-dd HH:mm:ss',
- width: 120,
- index: 12
- },
- {
- label: "更新时间",
- prop: "updateTime",
- width: 160,
- index: 12
- },
- {
- label: "更新人",
- prop: "updateUser",
- width: 160,
- index: 12
- },
- {
- label: "备注",
- prop: "remarks",
- index: 12
- }
- ]
- }
- export const optionXiala = {
- align: "center",
- addBtn: false,
- refreshBtn: false,
- editBtn: false,
- delBtn: false,
- border: true,
- menuWidth: 120,
- stripe: true,
- index: true,
- header:false,
- indexSlot: true,
- showSummary: false,
- columnBtn:false,
- column: [
- {
- label: "设备名称",
- prop: "cname",
- width:'250px',
- overHidden: true
- },
- {
- label: "设备编号",
- prop: "code",
- overHidden: true
- },
- {
- label: "设备描述",
- prop: "equipmentDescribe",
- cell: true,
- overHidden: true
- },
- {
- label: "出厂日期",
- prop: "exitDate",
- overHidden: true
- },
- {
- label: "保养日期",
- prop: "maintenanceDate",
- overHidden: true
- },
- {
- label: "维修次数",
- prop: "maintenanceSecond",
- overHidden: true
- },
- {
- label: "工厂",
- prop: "factoryName",
- overHidden: true
- },
- {
- label: "规格",
- prop: "specs",
- },
- {
- label: "备注",
- prop: "remarks",
- cell: true,
- overHidden: true
- },
- ]
- }
- export const optionList = {
- align: "center",
- addBtn: false,
- refreshBtn: false,
- editBtn: false,
- delBtn: false,
- border: true,
- menuWidth: 200,
- stripe: true,
- index: true,
- indexSlot: true,
- showSummary: true,
- summaryText: "合计",
- sumColumnList: [
- {
- name: "amount",
- type: "sum"
- },
- {
- name: "storageAmount",
- type: "sum"
- },
- {
- name: "storageInQuantity",
- type: "sum"
- },
- {
- name: "actualQuantity",
- type: "sum"
- }
- ],
- column: [
- {
- label: "设备名称",
- hide:true,
- prop: "cname",
- width:'250px',
- overHidden: true
- },
- {
- label: "设备编号",
- prop: "code",
- width:'200px',
- overHidden: true
- },
- {
- label: "设备名",
- prop: "equipmentDescribe",
- cell: true,
- width:'200px',
- overHidden: true
- },
- {
- label: "出厂日期",
- prop: "exitDate",
- overHidden: true
- },
- {
- label: "保养日期",
- prop: "maintenanceDate",
- overHidden: true
- },
- {
- label: "安装日期",
- prop: "installDate",
- overHidden: true
- },
- {
- label: "维修次数",
- prop: "maintenanceSecond",
- overHidden: true
- },
- {
- label: "工厂",
- prop: "factoryName",
- overHidden: true,
- cell: true,
- },
- {
- label: "功能分类",
- prop: "categoryitem",
- hide:true,
- type: "select",
- props: {
- label: "dictValue",
- value: "dictValue"
- },
- dicUrl: "/api/blade-system/dict-biz/dictionary?code=functional_classification",
- overHidden: true
- },
- {
- label: "设备分类",
- prop: "goodsTypeId",
- hide:true,
- type: 'select',
- dicData: [],
- props: {
- label: 'title',
- value: 'id'
- },
- },
- {
- label: "规格",
- prop: "specs",
- cell:true,
- },
- {
- label: "品牌",
- prop: "brand",
- type: "select",
- props: {
- label: "cname",
- value: "cname"
- },
- dicData: [],
- cell: true,
- change:(val)=>{
- for(let item of val.column.dicData) {
- if (val.value == item.cname) {
- val.row.brandId = item.id
- break;
- }
- }
- }
- },
- {
- label: "备注",
- prop: "remarks",
- cell: true,
- overHidden: true
- },
- ]
- }
- export const feeOption = {
- align: "center",
- addBtn: false,
- refreshBtn: false,
- editBtn: false,
- delBtn: false,
- border: true,
- menuWidth: 120,
- stripe: true,
- index: true,
- indexSlot: true,
- column: [
- {
- label: "付款单号",
- prop: "sysNo",
- overHidden: true
- },
- {
- label: "付款日期",
- prop: "settlementDate",
- type: "datetime",
- format: "yyyy-MM-dd HH:mm:ss",
- valueFormat: "yyyy-MM-dd HH:mm:ss",
- overHidden: true
- },
- {
- label: "付款金额",
- prop: "amount",
- cell: true,
- overHidden: true
- },
- {
- label: "付款账户",
- prop: "account",
- type: "select",
- props: {
- label: "dictValue",
- value: "dictValue"
- },
- dicData:[],
- cell: true,
- overHidden: true
- },
- {
- label: "备注",
- prop: "remark",
- cell: true,
- overHidden: true
- }
- ]
- }
|