gaoluyang
2025-02-15 461e375dad5b7150f731367c4b6f9c36cf9d6469
src/views/system/customer/index.vue
@@ -18,7 +18,7 @@
      </div>
    </div>
    <div>
      <lims-table :tableData="tableData" :column="column" :page="page" :tableLoading="tableLoading"></lims-table>
      <lims-table :tableData="tableData" :column="column" :page="page" :tableLoading="tableLoading" @pagination="pagination"></lims-table>
    </div>
    <el-dialog :title="formTitle" :visible.sync="addDia" width="450px">
      <el-form ref="userForm" :model="user" :rules="userRules" label-position="right" label-width="100px">
@@ -111,7 +111,9 @@
      formTitle: '',
      addDia: false,
      addPower: true,
      user: {},
      user: {
        company: ''
      },
      userRules: {
        company: [{ required: true, message: '请输入客户名称', trigger: 'blur' }],
        companyEn: [{ required: true, message: '请输入客户名称EN', trigger: 'blur' }],
@@ -146,12 +148,16 @@
      this.queryParams.company = ''
      this.getList()
    },
    pagination () {
    },
    openFormDia (type, row) {
      this.addDia = true
      this.user = {}
      this.formTitle = type === 'add' ? '新增客户' : '编辑客户'
      this.operationType = type
      if (type === 'edit') {
        this.user = row
        this.user = this.HaveJson(row)
      }
    },
    customAdd() {
@@ -183,6 +189,7 @@
      })
    },
    reset () {
      this.user = {}
      this.addDia = false
      this.resetForm("userForm");
    },