index.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537
  1. <template>
  2. <div class="h-full flex">
  3. <div class="p-5 w-80 pr-0">
  4. <div class="bg-white w-full h-full shadow-md rounded-md flex flex-col">
  5. <div class="flex-1 p-3 overflow-y-auto">
  6. <el-form :model="customerCriteriaForm" label-width="90px" style="max-width: 600px">
  7. <el-form-item label="客户名称">
  8. <el-input v-model="customerCriteriaForm.customName" clearable placeholder="请输入"></el-input>
  9. </el-form-item>
  10. <el-form-item label="客户来源">
  11. <el-select v-model="customerCriteriaForm.customSourceId" placeholder="请选择" clearable>
  12. <el-option v-for="item in fixedData.CustomSources" :key="item.id" :label="item.name" :value="item.id" />
  13. </el-select>
  14. </el-form-item>
  15. <el-form-item :label="isSimpleLabel">
  16. <el-input v-model="customerCriteriaForm.companyPhone" clearable placeholder="请输入"></el-input>
  17. </el-form-item>
  18. <el-form-item label="邮箱">
  19. <el-input v-model="customerCriteriaForm.email" clearable placeholder="请输入"></el-input>
  20. </el-form-item>
  21. <el-form-item label="客户行业">
  22. <el-select v-model="customerCriteriaForm.customerIndustryId" placeholder="请选择" clearable>
  23. <el-option v-for="item in fixedData.CustomIndustry" :key="item.id" :label="item.name"
  24. :value="item.id" />
  25. </el-select>
  26. </el-form-item>
  27. <el-form-item label="客户级别">
  28. <el-select v-model="customerCriteriaForm.customerLevelId" placeholder="请选择" clearable>
  29. <el-option v-for="item in fixedData.CustomLevel" :key="item.id" :label="item.name" :value="item.id" />
  30. </el-select>
  31. </el-form-item>
  32. <el-form-item label="负责人">
  33. <!-- <el-select v-model="customerCriteriaForm.inchargerId" placeholder="请选择" clearable>
  34. <el-option v-for="item in fixedData.Personnel" :key="item.id" :label="item.name" :value="item.id" />
  35. </el-select> -->
  36. <personnel-search v-model="customerCriteriaForm.inchargerId" :size="''" placeholder="请选择"></personnel-search>
  37. </el-form-item>
  38. <el-form-item label="创建时间">
  39. <el-date-picker v-model="customerCriteriaForm.startTime" type="date" placeholder="请选择" :clearable="false"
  40. format="YYYY-MM-DD" value-format="YYYY-MM-DD" />
  41. </el-form-item>
  42. <el-form-item label="">
  43. <el-date-picker v-model="customerCriteriaForm.endTime" type="date" placeholder="请选择" :clearable="false"
  44. format="YYYY-MM-DD" value-format="YYYY-MM-DD" />
  45. </el-form-item>
  46. </el-form>
  47. </div>
  48. <div class="w-full flex p-3 shadow-[0_-3px_5px_0px_rgba(0,0,0,0.2)]">
  49. <El-button class="w-full" @click="resetTable()">重置</El-Button>
  50. <El-button type="primary" class="w-full" @click="searchTable()">搜索</El-Button>
  51. </div>
  52. </div>
  53. </div>
  54. <div class="flex-1 p-5 overflow-auto">
  55. <div class="bg-white w-full h-full p-3 shadow-md rounded-md flex flex-col">
  56. <div class="flex justify-end pb-3">
  57. <el-button type="primary" v-permission="['customerAdd']" @click="editCustomer(false)">新建客户</el-button>
  58. <el-button type="primary" @click="showVisible('batchTransferVisible')"
  59. :disabled="batchTableData.length <= 0">批量转移</el-button>
  60. <el-button type="primary" v-permission="['customerDelete']" @click="batchDeteleItem()" :disabled="batchTableData.length <= 0">批量删除</el-button>
  61. <el-button type="primary" v-permission="['customerRecycle']" @click="showVisible('deteleCustomerVisible')">回收站</el-button>
  62. <el-button type="primary" v-permission="['customerImport']" @click="showVisible('importVisible')">导入</el-button>
  63. <el-button type="primary" v-permission="['customerExport']" @click="exportCustomerTableList()"
  64. :loading="allLoading.exoprtLoading">导出</el-button>
  65. </div>
  66. <div class="flex-1 w-full overflow-hidden">
  67. <el-table ref="customerTableRef" :show-overflow-tooltip="tableShowOverflowTooltip" :data="customerTable" border v-loading="allLoading.customerTableLading"
  68. style="width: 100%;height: 100%;" @selection-change="changeBatch" @sort-change="sortChange">
  69. <el-table-column type="selection" width="55" />
  70. <el-table-column prop="customName" label="客户名称" width="180">
  71. <template #default="scope">
  72. <!-- <el-button link type="primary" size="large" @click.prevent="toCustomerTableDetail(scope.row)">{{
  73. scope.row.customName
  74. }}</el-button> -->
  75. <div class="table-text-textnowrap" @click.prevent="toCustomerTableDetail(scope.row)">{{ scope.row.customName }}</div>
  76. </template>
  77. </el-table-column>
  78. <el-table-column prop="customSourceValue" label="客户来源" width="180"></el-table-column>
  79. <el-table-column prop="companyPhone" :label="isSimpleLabel" width="180"></el-table-column>
  80. <el-table-column prop="email" label="邮箱" width="200"></el-table-column>
  81. <el-table-column prop="customerIndustryValue" label="客户行业" width="180"></el-table-column>
  82. <el-table-column prop="customerLevelValue" label="客户级别" width="180" sortable="custom"></el-table-column>
  83. <el-table-column prop="inchargerName" label="负责人" width="190">
  84. <template #default="scope">
  85. <TextTranslation translationTypes="userName" :translationValue="scope.row.inchargerName" v-if="scope.row.inchargerName"></TextTranslation>
  86. </template>
  87. </el-table-column>
  88. <el-table-column prop="creatorName" label="创建人" width="180">
  89. <template #default="scope">
  90. <TextTranslation translationTypes="userName" :translationValue="scope.row.creatorName"></TextTranslation>
  91. </template>
  92. </el-table-column>
  93. <el-table-column prop="newCreateTime" label="创建时间" width="180"></el-table-column>
  94. <el-table-column label="操作" fixed="right" width="200" v-permission="['customerEdit', 'tasksAdd', 'customerDelete']">
  95. <template #default="scope">
  96. <el-button link type="primary" size="large" v-permission="['customerEdit']" @click="editCustomer(scope.row)">编辑</el-button>
  97. <el-button link type="primary" size="large" v-permission="['tasksAdd']" @click="newTask(scope.row)">新建任务</el-button>
  98. <el-button link type="danger" size="large" v-permission="['customerDelete']"
  99. @click="customerDeteleItem(scope.row.id, scope.row.customName)">删除</el-button>
  100. </template>
  101. </el-table-column>
  102. </el-table>
  103. </div>
  104. <div class="flex justify-end pt-3">
  105. <el-pagination layout="total, prev, pager, next, sizes" :total="customerTotalTable"
  106. :hide-on-single-page="true" @size-change="handleSizeChange" @current-change="handleCurrentChange" />
  107. </div>
  108. </div>
  109. </div>
  110. <!-- 新建客户 -->
  111. <el-dialog v-model="allVisible.editCustomerVisible" width="1000" :show-close="false" top="10vh">
  112. <template #header="{ close, titleId, titleClass }">
  113. <div class="flex justify-between items-center border-b pb-3 dialog-header">
  114. <h4 :id="titleId">{{ allText.editCustomerText }}</h4>
  115. <div>
  116. <el-button type="primary" :loading="allLoading.editCustomerSaveLoading" v-if="!customerTemplateValue.id"
  117. @click="editCustomerSave(true)">保存并新建</el-button>
  118. <el-button type="primary" :loading="allLoading.editCustomerSaveLoading"
  119. @click="editCustomerSave(false)">保存</el-button>
  120. <el-button @click="closeVisible('editCustomerVisible')">取消</el-button>
  121. </div>
  122. </div>
  123. </template>
  124. <div class="h-[60vh] overflow-y-auto scroll-bar pt-3">
  125. <div class="ml-4 mr-4">
  126. <GenerateForm ref="customerTemplateRef" :data="customerTemplate" :value="customerTemplateValue"
  127. :key="customerTemplateRefKey" v-loading="allLoading.customerTemplateRefLoading" />
  128. </div>
  129. </div>
  130. </el-dialog>
  131. <!-- 批量转移 -->
  132. <el-dialog v-model="allVisible.batchTransferVisible" width="600" :show-close="false" top="10vh">
  133. <template #header="{ close, titleId, titleClass }">
  134. <div class="flex justify-between items-center border-b pb-3 dialog-header">
  135. <h4 :id="titleId">{{ allText.transferText }}</h4>
  136. <div>
  137. <el-button type="primary" v-loading="allLoading.transferLoading" @click="transferBusiness()">转移</el-button>
  138. <el-button @click="allVisible.batchTransferVisible = false">取消</el-button>
  139. </div>
  140. </div>
  141. </template>
  142. <div class="scroll-bar m-6">
  143. <div class="flex mb-4">
  144. <div class="w-20 flex items-center justify-end pr-4">转移至:</div>
  145. <!-- <el-select v-model="transferPersonnel" placeholder="请选择" class="flex1">
  146. <el-option v-for="item in fixedData.Personnel" :key="item.id" :label="item.name" :value="item.id" />
  147. </el-select> -->
  148. <personnel-search v-model="transferPersonnel" :size="''" placeholder="请选择"></personnel-search>
  149. </div>
  150. <div class="pl-3 text-[#e94a4a]">转移后,将看不到此客户</div>
  151. </div>
  152. </el-dialog>
  153. <el-dialog v-model="allVisible.importVisible" width="680" :show-close="false" top="10vh">
  154. <template #header="{ close, titleId, titleClass }">
  155. <div class="flex justify-between items-center border-b pb-3 dialog-header">
  156. <h4 :id="titleId">导入产品</h4>
  157. <div class="flex">
  158. <el-upload class="upload-demo mr-3" :limit="1" :show-file-list="false" accept=".xlsx"
  159. :http-request="importBusiness">
  160. <el-button type="primary" :loading="allLoading.importLoading">导入</el-button>
  161. </el-upload>
  162. <el-button @click="allVisible.importVisible = false">取消</el-button>
  163. </div>
  164. </div>
  165. </template>
  166. <div class="p-8">
  167. <div class="ml-4 mr-4">
  168. <div class="flex items-center">1、点击下载 <el-link type="primary"
  169. @click="downloadTemplate(IMPORTMOD, allText.importText)">{{ allText.importText }}</el-link></div>
  170. <div class="mt-4">2、填写excel文件、客户名称必填</div>
  171. </div>
  172. </div>
  173. </el-dialog>
  174. <!-- 任务 -->
  175. <TaskModal :visible="allVisible.taskModalVisible" :edit-form="taskModalForm" :save-loading="taskLoading"
  176. @close="closeVisible('taskModalVisible')" @submit="submitForm" :title="'新建任务'"
  177. :disabled-list="['taskType', 'customId']" />
  178. <!-- 回收站 -->
  179. <DeteleBusiness :visibles="allVisible.deteleCustomerVisible" @closeVisible="closeVisible" />
  180. </div>
  181. </template>
  182. <script lang="ts" setup>
  183. import { ref, reactive, onMounted, inject } from "vue";
  184. import { MOD, GETSYSFILED, GETPERSONNEL, URL_TABLELIST, URL_TEMPLALE, URL_EDITSAVE, URL_DETELER, URL_CLAIM, IMPORTMOD, GETALLCLUE, URL_IMPORTEXELS, URL_EXPORTEXELS } from './api.ts'
  185. import { getAllListByCode, getFromValue, resetFromValue, getFirstDayOfMonth, getLastDayOfMonth, formatDate, getTemplateKey, createTaskFromType, confirmAction, downloadFile, downloadTemplate } from '@/utils/tools'
  186. import { post, get, uploadFile } from "@/utils/request";
  187. import { useRouter, useRoute } from "vue-router";
  188. import { GenerateForm } from '@zmjs/form-design';
  189. import { createTask } from "@/components/TaskModal/taskFunction";
  190. import { ElTable, UploadRequestOptions } from "element-plus";
  191. import { tableShowOverflowTooltip } from '@/utils/globalVariables'
  192. import TaskModal from '@/components/TaskModal/index.vue'
  193. import DeteleBusiness from './component/deteleTables.vue'
  194. import personnelSearch from '@/components/translationComponent/personnelSearch/personnelSearch.vue';
  195. // 定义类型
  196. interface fixedDataInterface {
  197. id: string | number,
  198. companyId: string | number,
  199. code: string,
  200. name: string,
  201. seq: string | number,
  202. }
  203. interface personnelInterface {
  204. id: string | number,
  205. name: string,
  206. phone: string,
  207. jobNumber: string
  208. }
  209. interface customerCriteriaFormType { // 线索筛选条件类型
  210. customName: string,
  211. customSourceId: string | number,
  212. companyPhone: string,
  213. email: string,
  214. customerIndustryId: string | number,
  215. customerLevelId: string | number,
  216. inchargerId: string | number,
  217. isDesc?: string | number,
  218. startTime: string | number,
  219. endTime: string | number,
  220. pageIndex: string | number,
  221. pageFrom: string | number
  222. }
  223. const isSimple = sessionStorage.getItem("isSimple");
  224. const isSimpleLabel = isSimple == "1" ? "联系人电话" : "公司电话";
  225. // 定义变量
  226. const router = useRouter()
  227. const globalPopup = inject<GlobalPopup>('globalPopup')
  228. const customerCriteriaForm = reactive<customerCriteriaFormType>({ // 筛选条件form
  229. customName: '',
  230. customSourceId: '',
  231. companyPhone: '',
  232. email: '',
  233. customerIndustryId: '',
  234. customerLevelId: '',
  235. inchargerId: '',
  236. isDesc: '',
  237. startTime: getFirstDayOfMonth(new Date()),
  238. endTime: formatDate(new Date()),
  239. pageIndex: 1,
  240. pageFrom: 10
  241. })
  242. const customerTable = ref([]) // 线索table数据
  243. const customerTotalTable = ref(0) // 线索 table 数据总数
  244. const allLoading = reactive({
  245. customerTableLading: false,
  246. editCustomerSaveLoading: false,
  247. customerTemplateRefLoading: false,
  248. transferLoading: false,
  249. exoprtLoading: false,
  250. importLoading: false
  251. })
  252. const allVisible = reactive({
  253. editCustomerVisible: false,
  254. taskModalVisible: false,
  255. deteleCustomerVisible: false,
  256. batchTransferVisible: false,
  257. importVisible: false
  258. })
  259. const allText = reactive({
  260. editCustomerText: '新建客户',
  261. transferText: '批量转移',
  262. importText: '客户导入模板.xlsx',
  263. exportText: '客户表导出.xlsx'
  264. })
  265. const fixedData = reactive({
  266. CustomSources: [] as fixedDataInterface[],
  267. CustomIndustry: [] as fixedDataInterface[],
  268. CustomLevel: [] as fixedDataInterface[],
  269. Personnel: [] as personnelInterface[]
  270. })
  271. const customerTemplate = ref({
  272. list: [],
  273. config: {}
  274. })
  275. const customerTemplateRef = ref<typeof GenerateForm>() // 自定义表单dom
  276. const customerTemplateValue = ref<any>({})
  277. const customerTemplateRefKey = ref(1)
  278. const taskModalForm = ref({})
  279. const taskLoading = ref<saveLoadingType>('1')
  280. const batchTableData = ref<any>([])
  281. const customerTableRef = ref<InstanceType<typeof ElTable>>()
  282. const transferPersonnel = ref('')
  283. // 定义方法
  284. function sortChange(data: any) {
  285. customerCriteriaForm.pageIndex = 1
  286. switch (data.order) {
  287. case 'ascending':
  288. customerCriteriaForm.isDesc = 1
  289. break
  290. case 'descending':
  291. customerCriteriaForm.isDesc = 0
  292. break
  293. default:
  294. customerCriteriaForm.isDesc = ''
  295. }
  296. getCustomerTable()
  297. }
  298. async function importBusiness(param: UploadRequestOptions) {
  299. allLoading.importLoading = true
  300. const formData = new FormData();
  301. formData.append('multipartFile', param.file)
  302. const res = await uploadFile(URL_IMPORTEXELS, formData).finally(() => {
  303. allLoading.importLoading = false
  304. })
  305. if (res.code == 'ok') {
  306. globalPopup?.showSuccess('导入成功')
  307. getCustomerTable()
  308. return
  309. }
  310. globalPopup?.showError(res.msg || '')
  311. }
  312. function exportCustomerTableList() {
  313. allLoading.exoprtLoading = true
  314. let valueForm = getFromValue(customerCriteriaForm)
  315. post(URL_EXPORTEXELS, { ...valueForm }).then((res) => {
  316. downloadFile(res.data, allText.exportText)
  317. }).finally(() => {
  318. allLoading.exoprtLoading = false
  319. })
  320. }
  321. function transferBusiness() {
  322. const ids = batchTableData.value.map((item: any) => item.id).join(',')
  323. allLoading.transferLoading = true
  324. post(URL_CLAIM, { ids, inchargerId: transferPersonnel.value }).then(() => {
  325. transferPersonnel.value = ''
  326. globalPopup?.showSuccess('转移成功')
  327. closeVisible('batchTransferVisible')
  328. getCustomerTable()
  329. }).finally(() => {
  330. allLoading.transferLoading = false
  331. })
  332. }
  333. function batchDeteleItem() {
  334. const value = batchTableData.value.map((item: any) => item.id).join(',')
  335. const label = batchTableData.value.map((item: any) => item.customName).join(',')
  336. customerDeteleItem(value, label, true)
  337. }
  338. function customerDeteleItem(value: string | number, label: string, batch: boolean = false) {
  339. confirmAction(`确定${batch ? '批量' : ''}删除【${label}】客户吗?`).then(() => {
  340. post(URL_DETELER, { ids: value }).then(res => {
  341. if (res.code != 'ok') {
  342. globalPopup?.showError(res.msg)
  343. return
  344. }
  345. globalPopup?.showSuccess('删除成功')
  346. changeBatch(false)
  347. getCustomerTable()
  348. }).catch((err) => {
  349. globalPopup?.showError(err.msg)
  350. })
  351. })
  352. }
  353. function submitForm(submitData: any, isClose: boolean) {
  354. taskLoading.value = '2'
  355. createTask(submitData, isClose).then((res) => {
  356. const { saveLoading, isClose } = res
  357. taskLoading.value = saveLoading
  358. allVisible.taskModalVisible = isClose
  359. globalPopup?.showSuccess('新增成功')
  360. }).catch((err) => {
  361. const { saveLoading, isClose, message } = err
  362. taskLoading.value = saveLoading
  363. allVisible.taskModalVisible = isClose
  364. globalPopup?.showError(message)
  365. })
  366. }
  367. function newTask(item: any) {
  368. const { id } = item
  369. taskModalForm.value = { ...createTaskFromType(0), customId: id, }
  370. showVisible('taskModalVisible')
  371. }
  372. function editCustomerSave(flag: boolean) {
  373. customerTemplateRef.value?.getData().then((res: any) => {
  374. allLoading.editCustomerSaveLoading = true
  375. let formVal = {
  376. ...customerTemplateValue.value,
  377. ...res
  378. }
  379. delete formVal.createTime
  380. post(URL_EDITSAVE, { ...formVal }).then((_res) => {
  381. allVisible.editCustomerVisible = flag
  382. globalPopup?.showSuccess('保存成功')
  383. if (flag) {
  384. customerTemplateRef.value?.reset()
  385. }
  386. getCustomerTable()
  387. }).finally(() => {
  388. allLoading.editCustomerSaveLoading = false
  389. })
  390. }).catch((_err: any) => {
  391. console.log(_err)
  392. globalPopup?.showError('请填写完整')
  393. })
  394. }
  395. function editCustomer(row: any) { // row 有数据代表编辑
  396. if (row) {
  397. const { id, companyPhone, customName, inchargerId, createTime, customSourceId, customerIndustryId, customerLevelId, email, telPhone, customDesc, address, contactsName } = row
  398. const formVal = {
  399. id, customName, inchargerId, customerIndustryId, customerLevelId, email, customSourceId,
  400. createTime: formatDate(new Date(createTime)),
  401. telPhone, companyPhone,
  402. address,
  403. customDesc,
  404. contactsName
  405. }
  406. allLoading.customerTemplateRefLoading = true
  407. setTimeout(() => {
  408. customerTemplateRefKey.value++
  409. allLoading.customerTemplateRefLoading = false
  410. }, 1000);
  411. customerTemplateValue.value = formVal
  412. allText.editCustomerText = '编辑客户'
  413. } else { // 没有数据代表新建
  414. setTimeout(() => {
  415. console.log(customerTemplateRef.value)
  416. customerTemplateValue.value = {}
  417. customerTemplateRefKey.value++
  418. }, 200)
  419. allText.editCustomerText = '新增客户'
  420. }
  421. showVisible('editCustomerVisible')
  422. }
  423. function changeBatch(flag: boolean = true) {
  424. if (flag) {
  425. batchTableData.value = customerTableRef.value && customerTableRef.value.getSelectionRows()
  426. } else {
  427. batchTableData.value = []
  428. customerTableRef.value && customerTableRef.value.clearSelection()
  429. }
  430. }
  431. function toCustomerTableDetail(_row: any) {
  432. router.push({ path: `${MOD}/detail`, query: { id: _row.id } })
  433. }
  434. function searchTable() {
  435. getCustomerTable()
  436. }
  437. function resetTable() {
  438. let newResetForm = resetFromValue(customerCriteriaForm, { startTime: getFirstDayOfMonth(new Date()), endTime: formatDate(new Date()), pageIndex: 1, pageFrom: 10 })
  439. Object.assign(customerCriteriaForm, newResetForm)
  440. getCustomerTable()
  441. }
  442. function getCustomerTable() {
  443. let valueForm = getFromValue(customerCriteriaForm)
  444. allLoading.customerTableLading = true
  445. post(URL_TABLELIST, { ...valueForm }).then((res) => {
  446. const { data, total } = res.data
  447. customerTable.value = (data || []).map((item: any) => {
  448. return {
  449. ...item,
  450. newCreateTime: formatDate(new Date(item.createTime)),
  451. }
  452. })
  453. customerTotalTable.value = total
  454. }).finally(() => {
  455. allLoading.customerTableLading = false
  456. })
  457. }
  458. async function getSystemField() {
  459. const systemField = getAllListByCode(['客户来源', '客户行业', '客户级别'])
  460. console.log(systemField, '<==== 123')
  461. for (let i in systemField) {
  462. const { data } = await get(`${GETSYSFILED}?code=${systemField[i]}`)
  463. for (let key of Object.keys(fixedData)) {
  464. if (systemField[i] == key) {
  465. Object.assign(fixedData, { [key]: data })
  466. }
  467. }
  468. }
  469. const { data } = await post(GETPERSONNEL, {})
  470. fixedData.Personnel = data.map((item: any) => {
  471. const { id, name, phone, jobNumber } = item
  472. return {
  473. id, name, phone, jobNumber
  474. }
  475. })
  476. const res = await get(URL_TEMPLALE)
  477. customerTemplate.value = JSON.parse(res.data[0].config)
  478. }
  479. function showVisible(type: keyof typeof allVisible) {
  480. allVisible[type] = true
  481. }
  482. function closeVisible(type: keyof typeof allVisible) {
  483. allVisible[type] = false
  484. }
  485. function handleSizeChange(val: number) {
  486. customerCriteriaForm.pageIndex = 1
  487. customerCriteriaForm.pageFrom = val
  488. getCustomerTable()
  489. }
  490. function handleCurrentChange(val: number) {
  491. customerCriteriaForm.pageIndex = val
  492. getCustomerTable()
  493. }
  494. onMounted(() => {
  495. getSystemField()
  496. getCustomerTable()
  497. })
  498. </script>
  499. <style lang="scss" scoped></style>