zhangzeli
2022-01-05 1b98ab0d3d007a5a65bdd446483853df34b8919c
优化
8个文件已修改
127 ■■■■■ 已修改文件
src/views/your/accident-manage/accidentManage.vue 41 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/your/addOil-manage/addOilManage.vue 23 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/your/addOilInfo-manage/addOilInfoManage.vue 9 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/your/area-manage/areaManage.vue 33 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/your/car-manage/carManage.vue 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/your/carCost-manage/carCostManage.vue 8 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/your/carInfo-manage/carInfoManage.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/your/carRepairCost-manage/carRepairCostManage.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/your/accident-manage/accidentManage.vue
@@ -276,18 +276,19 @@
            title: "事故描述",
            key: "description",
            width: 150,
            tooltip:true,
          },
          {
            title: "责任认定",
            key: "dutySure",
            width:150,
            sortable: true,
            tooltip:true,
          },
          {
            title: "解决方案",
            key: "solve",
            minWidth: 150,
            sortable: true,
            tooltip:true,
          },
          {
            title: "操作",
@@ -298,15 +299,15 @@
            render: (h, params) => {
              return h("div", [
                h(
                        "a",
                        {
                          on: {
                            click: () => {
                              this.edit(params.row);
                            },
                          },
                        },
                        "编辑"
                  "a",
                  {
                    on: {
                      click: () => {
                        this.edit(params.row);
                      },
                    },
                  },
                  "编辑"
                ),
                h("Divider", {
                  props: {
@@ -314,15 +315,15 @@
                  },
                }),
                h(
                        "a",
                        {
                          on: {
                            click: () => {
                              this.remove(params.row);
                            },
                          },
                        },
                        "删除"
                  "a",
                  {
                    on: {
                      click: () => {
                        this.remove(params.row);
                      },
                    },
                  },
                  "删除"
                ),
              ]);
            },
src/views/your/addOil-manage/addOilManage.vue
@@ -323,7 +323,10 @@
          {
            title: "备注",
            key: "remarks",
            minWidth: 150,
            width: 150,
            render: (h, params) => {
              return h("div",params.row.remarks=="undefined" ? '':params.row.remarks);
            }
          },
          {
            title: "操作",
@@ -333,15 +336,15 @@
            render: (h, params) => {
              return h("div", [
                h(
                        "a",
                        {
                          on: {
                            click: () => {
                              this.edit(params.row);
                            },
                          },
                        },
                        "编辑"
                  "a",
                  {
                    on: {
                      click: () => {
                        this.edit(params.row);
                      },
                    },
                  },
                  "编辑"
                ),
                h("Divider", {
                  props: {
src/views/your/addOilInfo-manage/addOilInfoManage.vue
@@ -247,21 +247,18 @@
            title: "加油卡号",
            key: "addOilCode",
            width: 130,
            sortable: true,
            align: "center",
          },
          {
            title: "加油日期",
            key: "addDate",
            width: 120,
            sortable: true,
            align: "center",
          },
          {
            title: "加油金额(元)",
            key: "money",
            minWidth: 130,
            sortable: true,
            align: "center",
            render: (h, params) => {
              return h("div",params.row.money==0 ? '':params.row.money);
@@ -271,7 +268,6 @@
            title: "加油量(升)",
            key: "amount",
            width: 130,
            sortable: true,
            align: "center",
            render: (h, params) => {
              return h("div",params.row.amount==0 ? '':params.row.amount);
@@ -281,7 +277,6 @@
            title: "行使里程(KM)",
            key: "mileage",
            minWidth: 130,
            sortable: true,
            align: "center",
            render: (h, params) => {
              return h("div",params.row.mileage==0 ? '':params.row.mileage);
@@ -292,13 +287,15 @@
            key: "oilWear",
            minWidth: 150,
            align: "center",
            sortable: true,
          },
          {
            title: "备注",
            key: "remarks",
            align: "center",
            minWidth: 150,
            render: (h, params) => {
              return h("div",params.row.remarks=="undefined" ? '':params.row.remarks);
            }
          },
        ],
        data: [],
src/views/your/area-manage/areaManage.vue
@@ -95,13 +95,13 @@
        <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" style="height: 350px"
      <Table :loading="loading" border :columns="columns3" :data="data3" ref="table"
             sortable="custom" @on-sort-change="changeSort" @on-selection-change="changeSelect">
      </Table>
      <Row type="flex" justify="end" class="page">
        <Page :current="searchForm.pageNumber" :total="total2"
                :page-size="searchForm.pageSize"
                @on-change="changePage"
                @on-change="changePage1"
                @on-page-size-change="changePageSize"
                :page-size-opts="[10, 20, 50]"
                size="small"
@@ -158,7 +158,7 @@
          </Col>
          <Col span="12">
            <FormItem label="联系方式" prop="phone">
              <Input v-model="customerForm.phone" type="number"/>
              <Input v-model="customerForm.phone"/>
            </FormItem>
          </Col>
        </Row>
@@ -440,7 +440,6 @@
          title: "操作",
          key: "action",
          align: "center",
          render: (h, params) => {
            return h("div", [
              h(
@@ -504,23 +503,23 @@
        {
          title: "商户名称",
          key: "name",
          width: 100,
          tooltip:true,
          width: 200,
        },
        {
          title: "商户编号",
          key: "code",
          minWidth: 120,
          key: "licence",
          minWidth: 140,
        },
        {
          title: "联系方式",
          key: "phone",
          width: 140,
          width: 135,
        },
        {
          title: "状态",
          key: "status",
          width:100,
          sortable: true,
          render: (h, params) => {
            let re = "";
            if (params.row.status == 0) {
@@ -543,16 +542,6 @@
              ]);
            }
          },
        },
        {
          title: "上次配送日期",
          key: "lastTime",
          width: 150,
        },
        {
          title: "商户注册地址",
          key: "registeredAddress",
          width: 180,
        },
        {
          title: "联系人",
@@ -676,6 +665,11 @@
      this.getDataList();
      this.clearSelectAll();
    },
    changePage1(v) {
      this.searchForm.pageNumber = v;
      this.getCustomerList(this.areaSectionId);
      this.clearSelectAll();
    },
    changePageSize(v) {
      this.searchForm.pageSize = v;
      this.getDataList();
@@ -729,6 +723,7 @@
      this.loading = true;
      this.searchForm.areaSectionId=areaSectionId;
      getCustomer(this.searchForm).then((res) => {
        console.log(this.searchForm)
        this.loading = false;
        if (res.success) {
          this.data3 = res.result.records;
src/views/your/car-manage/carManage.vue
@@ -375,13 +375,15 @@
          title: "排量",
          key: "displacement",
          width: 100,
          sortable: true,
        },
        {
          title: "加油卡号",
          key: "addOilCode",
          minWidth: 120,
          sortable: true,
          render: (h, params) => {
            return h("div",params.row.addOilCode=="undefined" ? '':params.row.addOilCode);
          }
        },
        {
          title: "购置年份",
src/views/your/carCost-manage/carCostManage.vue
@@ -247,21 +247,18 @@
            title: "加油卡号",
            key: "addOilCode",
            width: 120,
            sortable: true,
            align: "center",
          },
          {
            title: "加油日期",
            key: "addDate",
            width: 120,
            sortable: true,
            align: "center",
          },
          {
            title: "加油量(升)",
            key: "amount",
            width: 130,
            sortable: true,
            align: "center",
            render: (h, params) => {
              return h("div",params.row.amount==0 ? '':params.row.amount);
@@ -271,7 +268,6 @@
            title: "含税金额(元)",
            key: "money",
            width: 140,
            sortable: true,
            align: "center",
            render: (h, params) => {
              return h("div",params.row.money==0 ? '':params.row.money);
@@ -281,28 +277,24 @@
            title: "过路过桥费(元)",
            key: "",
            width: 150,
            sortable: true,
            align: "center",
          },
          {
            title: "年审费(元)",
            key: "",
            width: 130,
            sortable: true,
            align: "center",
          },
          {
            title: "洗车停车费(元)",
            key: "",
            width: 150,
            sortable: true,
            align: "center",
          },
          {
            title: "保险费含(车船税)",
            key: "",
            width: 170,
            sortable: true,
            align: "center",
          },
        ],
src/views/your/carInfo-manage/carInfoManage.vue
@@ -259,16 +259,15 @@
            key: "carNo",
            width: 120,
            render: (h, params) => {
              return h("div",params.row.car.carNo);
              return h("div",params.row.car.carNo=="undefined" ? '':params.row.car.carNo);
            }
          },
          {
            title: "加油卡号",
            key: "addOilCode",
            width: 140,
            sortable: true,
            render: (h, params) => {
              return h("div",params.row.car.addOilCode);
              return h("div",params.row.car.addOilCode=="undefined" ? '':params.row.car.addOilCode);
            }
          },
          {
src/views/your/carRepairCost-manage/carRepairCostManage.vue
@@ -248,14 +248,12 @@
            title: "开始使用日期",
            key: "buyYear",
            width: 150,
            sortable: true,
            align: "center",
          },
          {
            title: "使用年限",
            key: "usefulLife",
            width: 140,
            sortable: true,
            align: "center",
            render: (h, params) => {
              return h("div",1);
@@ -265,14 +263,12 @@
            title: "本期行使里程(KM)",
            key: "mileage",
            width: 180,
            sortable: true,
            align: "center",
          },
          {
            title: "累计行使里程(KM)",
            key: "allMileage",
            width: 180,
            sortable: true,
            align: "center",
          },
          {