gaoluyang
2025-02-15 461e375dad5b7150f731367c4b6f9c36cf9d6469
客户管理联调
已修改3个文件
38 ■■■■■ 文件已修改
src/components/Table/lims-table.vue 21 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/structural/capabilityAndLaboratory/capability/index.vue 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/system/customer/index.vue 13 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/Table/lims-table.vue
@@ -71,7 +71,7 @@
                      size="mini"
                      v-show="o.showHide ? o.showHide(scope.row) : true"
                      :disabled="o.disabled ? o.disabled(scope.row) : false"
                      :icon="o.icon | iconFn(scope.row, o)"
                      :icon="iconFn(o)"
                      :plain="o.plain"
                      :style="{ 'color': o.name === '删除' ? '#f56c6c' : o.color }"
                      :type="o.type | typeFn(scope.row)"
@@ -167,11 +167,6 @@
  export default {
    name: 'ZTTable',
    filters: {
      iconFn(val, row) {
        if (typeof (val) === 'function') {
          return val(row);
        } else return val;
      },
      typeFn(val, row) {
        // console.log(val, row, '11111111');
        if (typeof (val) === 'function') {
@@ -277,6 +272,20 @@
    },
    methods: {
      iconFn(row) {
        if (row.name === '编辑') {
          return 'el-icon-edit'
        } else if (row.name === '删除') {
          return 'el-icon-delete'
        } else if (row.name === '查看') {
          return 'el-icon-view'
        } else {
          return row.icon
        }
        // if (typeof (val) === 'function') {
        //   return val(row);
        // } else return val;
      },
      formatType(val, format) {
        if (typeof (format) === 'function') {
          return format(val);
src/views/structural/capabilityAndLaboratory/capability/index.vue
@@ -159,7 +159,6 @@
            {
              name: '编辑',
              type: 'text',
              icon: 'el-icon-edit',
              clickFun: (row) => {
                this.editForm(row);
              },
@@ -167,7 +166,6 @@
            {
              name: '删除',
              type: 'text',
              icon: 'el-icon-delete',
              clickFun: (row) => {
                this.delete(row);
              },
@@ -251,7 +249,6 @@
            {
              name: '编辑',
              type: 'text',
              icon: 'el-icon-edit',
              clickFun: (row) => {
                this.editTestObjectForm(row);
              },
@@ -259,7 +256,6 @@
            {
              name: '删除',
              type: 'text',
              icon: 'el-icon-delete',
              clickFun: (row) => {
                this.deleteTest(row);
              },
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");
    },