kongdeqiang
2023-03-14 a0654f2c21511a0e16b977427a563a3ccdfd1fba
src/views/your/customerReceive-manage/customerReceive.vue
@@ -12,9 +12,9 @@
          openTip ? "关闭提示" : "开启提示"
          }}</Button>
        <Input
                v-model="searchForm.name"
                v-model="searchForm2.name"
                suffix="ios-search"
                @on-change="getDataList"
                @on-change="getDataList2"
                placeholder="输入商户名称搜索"
                clearable
                style="width: 250px"
@@ -216,6 +216,14 @@
          order: "desc", // 默认排序方式
          key: "",
        },
        searchForm2: {
          // 搜索框初始化对象
          pageNumber: 1, // 当前页数
          pageSize: 10, // 页面大小
          sort: "createTime", // 默认排序字段
          order: "desc", // 默认排序方式
          key: "",
        },
        addOilForm: {
          status : '0'
        },
@@ -243,7 +251,7 @@
          {
            title: "商户名称",
            key: "customerName",
            width: 100,
            width: 240,
          },
          {
            title: "接货人",
@@ -445,6 +453,16 @@
          }
        });
      },
      getDataList2() {
        this.loading = true;
        getCustomerReceive(this.searchForm2).then((res) => {
          this.loading = false;
          if (res.success) {
            this.data = res.result.records;
            this.total = res.result.total;
          }
        });
      },
      getPermList() {
        this.treeLoading = true;
        getAllPermissionList().then((res) => {
@@ -522,7 +540,7 @@
      addOil() {
        this.getAllCar();
        this.modalType = 0;
        this.modalTitle = "添加加油记录";
        this.modalTitle = "添加记录";
        this.$refs.addOilForm.resetFields();
        delete this.addOilForm.id;
        this.roleModalVisible = true;
@@ -531,7 +549,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 +559,6 @@
        }
        let str = JSON.stringify(v);
        let roleInfo = JSON.parse(str);
        this.addOilForm = roleInfo;
        this.roleModalVisible = true;
      },
@@ -866,4 +883,4 @@
      this.init();
    },
  };
</script>
</script>