| | |
| | | <Form |
| | | ref="accidentForm" |
| | | :model="accidentForm" |
| | | :label-width="80" |
| | | :label-width="100" |
| | | :rules="accidentFormValidate" |
| | | > |
| | | <FormItem label="车辆" prop="carId"> |
| | |
| | | { |
| | | title: "车牌号", |
| | | key: "carNo", |
| | | width: 100, |
| | | width: 120, |
| | | sortable: true, |
| | | }, |
| | | { |
| | | title: "加油卡号", |
| | | key: "addOilCode", |
| | | width: 100, |
| | | sortable: true, |
| | | }, |
| | | { |
| | | title: "加油日期", |
| | | key: "addDate", |
| | | width: 150, |
| | | width: 120, |
| | | sortable: true, |
| | | }, |
| | | { |
| | |
| | | { |
| | | title: "加油金额", |
| | | key: "money", |
| | | minWidth: 100, |
| | | minWidth: 120, |
| | | sortable: true, |
| | | }, |
| | | { |
| | | title: "加油时里程", |
| | | key: "mileage", |
| | | minWidth: 100, |
| | | minWidth: 130, |
| | | sortable: true, |
| | | }, |
| | | { |
| | |
| | | this.loading = false; |
| | | if (res.success) { |
| | | this.data = res.result.records; |
| | | this.total = res.result.length; |
| | | this.total = res.result.total; |
| | | } |
| | | }); |
| | | }, |
| | |
| | | <Button @click="addEquipment" type="primary" icon="md-add">添加片区段</Button> |
| | | <Button @click="init" icon="md-refresh">刷新</Button> |
| | | </Row> |
| | | <Table :loading="loading" border :columns="columns2" :data="data2" ref="table" |
| | | sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"> |
| | | |
| | | |
| | | <Table :loading="loading" border :columns="columns2" :data="data2" ref="table" style="height: 400px" > |
| | | sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect" > |
| | | </Table> |
| | | </Modal> |
| | | <Modal :title="modalTitle3" v-model="customerVisible" :mask-closable="false" :width="1050"> |
| | |
| | | <Input v-model="searchForm.name" suffix="ios-search" @on-change="getCustList" placeholder="输入商户名称搜索" clearable style="width: 250px" |
| | | /> |
| | | </Row> |
| | | <Table :loading="loading" border :columns="columns3" :data="data3" ref="table" |
| | | <Table :loading="loading" border :columns="columns3" :data="data3" ref="table" style="height: 350px" |
| | | sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect"> |
| | | </Table> |
| | | <Row type="flex" justify="end" class="page"> |
| | |
| | | ></Page> |
| | | </Row> |
| | | </Modal> |
| | | <Modal :title="modalTitle" v-model="addEquipmentVisible" :mask-closable="false" :width="500"> |
| | | <Modal :title="modalTitle" v-model="addEquipmentVisible" :mask-closable="false" :width="500" > |
| | | <Form ref="areaSectionForm" :model="areaSectionForm" :label-width="80" :rules="areaSectionFormValidate"> |
| | | <FormItem label="片区名称" prop="code"> |
| | | <Input v-model="areaSectionForm.code" /> |
| | | <Input v-model="areaSectionForm.name" /> |
| | | </FormItem> |
| | | |
| | | </Form> |
| | |
| | | </div> |
| | | </Modal> |
| | | <Modal :title="modalTitle" v-model="addCustomerVisible" :mask-closable="false" :width="550"> |
| | | <Form ref="customerForm" :model="customerForm" :label-width="80" :rules="areaSectionFormValidate"> |
| | | <Form ref="customerForm" :model="customerForm" :label-width="120" :rules="areaSectionFormValidate"> |
| | | <FormItem label="商户名称" prop="name"> |
| | | <Input v-model="customerForm.name" /> |
| | | </FormItem> |
| | |
| | | <FormItem label="联系人" prop="linker"> |
| | | <Input v-model="customerForm.linker" /> |
| | | </FormItem> |
| | | <FormItem label="零售许可证信息" prop="licence"> |
| | | <FormItem label="零售许可证信息" prop="licence" > |
| | | <Input v-model="customerForm.licence" /> |
| | | </FormItem> |
| | | </Form> |
| | |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: "分段编号或名称", |
| | | key: "code", |
| | | title: "分段名称", |
| | | key: "name", |
| | | }, |
| | | { |
| | | title: "操作", |
| | |
| | | this.searchForm.endTime = this.selectDate(this.value[1]); |
| | | this.page=false; |
| | | }else{ |
| | | this.searchForm.beginTime = ""; |
| | | this.searchForm.endTime = ""; |
| | | var date = new Date(); |
| | | this.searchForm.endTime = this.selectDate(date); |
| | | this.value[1] = this.searchForm.endTime; |
| | | date.setDate(1); |
| | | this.value[0] = date; |
| | | this.searchForm.beginTime = this.selectDate(date); |
| | | } |
| | | getOilExcel(this.searchForm).then((res) => { |
| | | this.loading = false; |
| | |
| | | this.searchForm.beginTime = this.selectDate(this.value[0]); |
| | | this.searchForm.endTime = this.selectDate(this.value[1]); |
| | | }else{ |
| | | this.searchForm.beginTime = ""; |
| | | this.searchForm.endTime = ""; |
| | | var date = new Date(); |
| | | this.searchForm.endTime = this.selectDate(date); |
| | | this.value[1] = this.searchForm.endTime; |
| | | date.setDate(1); |
| | | this.value[0] = date; |
| | | this.searchForm.beginTime = this.selectDate(date); |
| | | } |
| | | getCar(this.searchForm).then((res) => { |
| | | this.loading = false; |
| | |
| | | this.searchForm.endTime = this.selectDate(this.value[1]); |
| | | this.page=false; |
| | | }else{ |
| | | this.searchForm.beginTime = ""; |
| | | this.searchForm.endTime = ""; |
| | | var date = new Date(); |
| | | this.searchForm.endTime = this.selectDate(date); |
| | | this.value[1] = this.searchForm.endTime; |
| | | date.setDate(1); |
| | | this.value[0] = date; |
| | | this.searchForm.beginTime = this.selectDate(date); |
| | | } |
| | | getInfo(this.searchForm).then((res) => { |
| | | this.loading = false; |
| | |
| | | { |
| | | title: "商户名称", |
| | | key: "customerName", |
| | | width: 100, |
| | | width: 240, |
| | | }, |
| | | { |
| | | title: "接货人", |
| | |
| | | { |
| | | title: "内容", |
| | | key: "content", |
| | | width: 200, |
| | | tooltip:true, |
| | | width: 230, |
| | | }, |
| | | { |
| | | title: "反馈时间", |
| | | key: "createTime", |
| | | width: 240, |
| | | width: 200, |
| | | sortable: true, |
| | | render: (h, params) => { |
| | | return h("div",params.row.createTime.substr(0,10)); |
| | | } |
| | | }, |
| | | { |
| | | title: "反馈商户", |
| | | key: "name", |
| | | width: 150, |
| | | width: 260, |
| | | }, |
| | | { |
| | | title: "操作", |