yangfeng
2023-08-11 6291de84d5f68f1f1cd90031c18183a2c1489555
src/views/service/serviceFollowup/index.vue
@@ -62,6 +62,12 @@
    isDetail: {
      type: Boolean,
      default: false
    },
    addConfig: {
      type: Object,
      default: () => {
        return {}
      }
    }
  },
  mixins: [pageMixin],
@@ -117,11 +123,18 @@
        value: "number",
        label: "回访单编号"
      },
      selValueList: []
      selValueList: [],
      keyword: "",
      keywordType: ""
    }
  },
  created() {
    this.setTable()
    if (this.isDetail) {
      console.log(this.addConfig)
      this.keyword = this.addConfig.keyword
      this.keywordType = this.addConfig.keywordType
    }
    this.getData()
  },
  methods: {
@@ -146,11 +159,11 @@
      }
    },
    // 请求数据
    async getData(keyword, keywordType) {
    async getData() {
      this.loading = true
      await getServiceFollowupList({
        keyword: keyword,
        keywordType: keywordType,
        keyword: this.keyword,
        keywordType: this.keywordType,
        page: this.pagerOptions.currPage,
        pageSize: this.pagerOptions.pageSize
      })
@@ -187,7 +200,9 @@
    // 搜索
    searchClick(val, content) {
      console.log(val, content)
      this.getData(content, val.label)
      this.keyword = content
      this.keywordType = val.label
      this.getData()
    },
    resetClick() {
      this.search_map = {}
@@ -197,14 +212,14 @@
    addBtnClick() {
      this.editConfig.visible = true
      this.editConfig.title = "新建"
      this.editConfig.infomation = {}
      this.editConfig.infomation = { ...this.addConfig }
    },
    // 编辑
    handleClick(row) {
      console.log(row)
      this.editConfig.visible = true
      this.editConfig.title = "编辑"
      this.editConfig.infomation = { ...row }
      this.editConfig.infomation = { ...row, service_number: row.ServiceOrder.serviceNumber }
    },
    // 删除
    delClick() {