zhangzeli
2022-01-05 7220683e68d6cdccd1a7358aee7824b37f2b8e98
车辆加油卡号
3个文件已修改
19 ■■■■ 已修改文件
src/views/your/area-manage/areaManage.vue 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/your/car-manage/carManage.vue 13 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/your/customerReceive-manage/customerReceive.vue 5 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/your/area-manage/areaManage.vue
@@ -928,6 +928,7 @@
      let str = JSON.stringify(v);
      let roleInfo = JSON.parse(str);
      this.areaForm = roleInfo;
      console.log(this.areaForm);
      this.roleModalVisible = true;
    },
    editEquipment(v) {
src/views/your/car-manage/carManage.vue
@@ -80,6 +80,9 @@
        <FormItem label="牌照" prop="carNo">
          <Input v-model="carForm.carNo" />
        </FormItem>
        <FormItem label="加油卡号" prop="addOilCode">
          <Input v-model="carForm.addOilCode" type="number"/>
        </FormItem>
        <FormItem label="驾驶人" prop="userId">
          <Select v-model="carForm.userId" filterable>
            <Option v-for="item in userList" :value="item.id" :key="item.id">{{ item.nickname }}</Option>
@@ -377,6 +380,12 @@
        {
          title: "购置年份",
          key: "buyYear",
          minWidth: 120,
          sortable: true,
        },
        {
          title: "加油卡号",
          key: "addOilCode",
          minWidth: 120,
          sortable: true,
        },
@@ -750,6 +759,7 @@
                this.$Message.success("操作成功");
                this.getDataList();
                this.roleModalVisible = false;
                this.carForm={};
              }
            });
          } else {
@@ -760,6 +770,7 @@
                this.$Message.success("操作成功");
                this.getDataList();
                this.roleModalVisible = false;
                this.carForm={};
              }
            });
          }
@@ -780,6 +791,7 @@
                this.getEquipmentList(this.carId);
                this.addEquipmentVisible = false;
                this.getEquipmentList(this.carId);
                this.equipmentForm={};
              }
            });
          } else {
@@ -790,6 +802,7 @@
                this.$Message.success("操作成功");
                this.getEquipmentList(this.carId);
                this.addEquipmentVisible = false;
                this.equipmentForm={};
              }
            });
          }
src/views/your/customerReceive-manage/customerReceive.vue
@@ -522,7 +522,7 @@
      addOil() {
        this.getAllCar();
        this.modalType = 0;
        this.modalTitle = "添加加油记录";
        this.modalTitle = "添加记录";
        this.$refs.addOilForm.resetFields();
        delete this.addOilForm.id;
        this.roleModalVisible = true;
@@ -531,7 +531,7 @@
        this.getAllCar();
        this.addDate = v.addDate;
        this.modalType = 1;
        this.modalTitle = "编辑加油信息";
        this.modalTitle = "编辑信息";
        this.$refs.addOilForm.resetFields();
        // 转换null为""
        for (let attr in v) {
@@ -541,7 +541,6 @@
        }
        let str = JSON.stringify(v);
        let roleInfo = JSON.parse(str);
        this.addOilForm = roleInfo;
        this.roleModalVisible = true;
      },