| | |
| | | </div> |
| | | </div> |
| | | <div class="table_list"> |
| | | <PIMTable :column="tableColumn" :tableData="tableData" :page="page" :handleSelectionChange="handleSelectionChange" |
| | | <PIMTable :column="tableColumn" :tableData="tableData" :page="page" :isSelection="true" :handleSelectionChange="handleSelectionChange" |
| | | :tableLoading="tableLoading" @pagination="pagination" :total="total"></PIMTable> |
| | | </div> |
| | | <el-dialog v-model="dialogFormVisible" :title="operationType === 'add' ? '新增客户信息' : '编辑客户信息'" width="70%" @close="closeDia"> |
| | |
| | | const tableColumn = ref([ |
| | | { |
| | | label: '客户名称', |
| | | prop: 'customerName' |
| | | prop: 'customerName', |
| | | }, |
| | | { |
| | | label: '纳税人识别码', |
| | |
| | | { |
| | | dataType: "action", |
| | | label: "操作", |
| | | align: 'center', |
| | | operation: [ |
| | | { |
| | | name: "编辑", |
| | |
| | | } |
| | | ElMessageBox.confirm( |
| | | '选中的内容将被删除,是否确认删除?', |
| | | '导出', { |
| | | '删除提示', { |
| | | confirmButtonText: '确认', |
| | | cancelButtonText: '取消', |
| | | type: 'warning', |
| | | } |
| | | ).then(() => { |
| | | tableLoading.value = true |
| | | delCustomer(ids).then(res => { |
| | | proxy.$modal.msgSuccess("删除成功") |
| | | getList() |
| | | }).finally(() => { |
| | | tableLoading.value = false |
| | | }) |
| | | getList() |
| | | }).catch(() => { |
| | | proxy.$modal.msg("已取消") |
| | | }) |