| | |
| | | <!-- 日签收率的表 --> |
| | | <div v-show="switchnum === 1"> |
| | | <Table :loading="loading" border :columns="columns" :data="data" ref="table" sortable="custom" |
| | | :span-method="handleSpan" @on-sort-change="changeSort" @on-selection-change="changeSelect"></Table> |
| | | :span-method="handleSpan" @on-sort-change="changeSort" @on-selection-change="changeSelect" height="600"></Table> |
| | | </div> |
| | | <!-- 月签收率的表 --> |
| | | <div v-show="switchnum === 2"> |
| | | <Table :loading="loading" border :columns="columnsMonth" :data="monthData" sortable="custom" |
| | | :span-method="handleSpan" @on-sort-change="changeSort" @on-selection-change="changeSelect"> |
| | | :span-method="handleSpan" @on-sort-change="changeSort" @on-selection-change="changeSelect" height="600"> |
| | | </Table> |
| | | </div> |
| | | <div v-show="switchnum === 1"> |
| | |
| | | width: 100, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: "年月", |
| | | key: "sendMonth", |
| | | minWidth: 120, |
| | | align: "center", |
| | | }, |
| | | // { |
| | | // title: "年月", |
| | | // key: "sendMonth", |
| | | // minWidth: 120, |
| | | // align: "center", |
| | | // }, |
| | | { |
| | | title: "01段", |
| | | // key: "oneBatch", |
| | |
| | | { |
| | | title: "车牌号", |
| | | key: "carName", |
| | | width: 120, |
| | | width: 140, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: "司机", |
| | | key: "userName", |
| | | width: 100, |
| | | width: 140, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: "配送员", |
| | | key: "name", |
| | | width: 100, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: "年月", |
| | | key: "sendMonth", |
| | | minWidth: 120, |
| | | align: "center", |
| | | }, |
| | | // { |
| | | // title: "配送员", |
| | | // key: "name", |
| | | // width: 100, |
| | | // align: "center", |
| | | // }, |
| | | // { |
| | | // title: "年月", |
| | | // key: "sendMonth", |
| | | // minWidth: 120, |
| | | // align: "center", |
| | | // }, |
| | | { |
| | | title: "01段", |
| | | minWidth: 140, |
| | | width: 140, |
| | | align: "center", |
| | | children: [ |
| | | { |
| | | title: '月份', |
| | | align: 'center', |
| | | key: 'sendDate', |
| | | minWidth: 120, |
| | | width: 120, |
| | | className: 'no_border', |
| | | render: (h, params) => { |
| | | console.log(params.row.childone); |
| | |
| | | title: '月签收率', |
| | | align: 'center', |
| | | key: 'proportion', |
| | | minWidth: 120, |
| | | width: 120, |
| | | className: 'no_border Sign', |
| | | render: (h, params) => { |
| | | return h("div", [ |
| | |
| | | title: '月份', |
| | | align: 'center', |
| | | key: 'model', |
| | | minWidth: 120, |
| | | width: 120, |
| | | className: 'no_border', |
| | | render: (h, params) => { |
| | | return h("div", [ |
| | |
| | | title: '月签收率', |
| | | align: 'center', |
| | | // key: 'proportion', |
| | | minWidth: 120, |
| | | width: 120, |
| | | className: 'no_border Sign', |
| | | render: (h, params) => { |
| | | return h("div", [ |
| | |
| | | title: '月份', |
| | | align: 'center', |
| | | key: 'model', |
| | | minWidth: 120, |
| | | width: 120, |
| | | className: 'no_border', |
| | | render: (h, params) => { |
| | | return h("div", [ |
| | |
| | | title: '月签收率', |
| | | align: 'center', |
| | | // key: 'model', |
| | | minWidth: 120, |
| | | width: 120, |
| | | className: 'no_border Sign', |
| | | render: (h, params) => { |
| | | return h("div", [ |
| | |
| | | title: '月份', |
| | | align: 'center', |
| | | key: 'model', |
| | | minWidth: 120, |
| | | width: 120, |
| | | className: 'no_border', |
| | | render: (h, params) => { |
| | | return h("div", [ |
| | |
| | | title: '月签收率', |
| | | align: 'center', |
| | | // key: 'model', |
| | | minWidth: 120, |
| | | width: 120, |
| | | className: 'no_border Sign', |
| | | render: (h, params) => { |
| | | return h("div", [ |
| | |
| | | title: '月份', |
| | | align: 'center', |
| | | key: 'model', |
| | | minWidth: 120, |
| | | width: 120, |
| | | className: 'no_border', |
| | | render: (h, params) => { |
| | | return h("div", [ |
| | |
| | | title: '月签收率', |
| | | align: 'center', |
| | | // key: 'model', |
| | | minWidth: 120, |
| | | width: 120, |
| | | className: 'no_border Sign', |
| | | render: (h, params) => { |
| | | return h("div", [ |
| | |
| | | // 页码 |
| | | pageNum: 1, |
| | | // 每页条数 |
| | | pageSize: 18, |
| | | pageSize: 36, |
| | | // 车牌号 |
| | | carNo: "", |
| | | // 开始日期 |
| | |
| | | this.init(); |
| | | }, |
| | | }; |
| | | </script> |
| | | </script> |