From c2ae92f87484a2613850fa5d029b3d7595a5c7b0 Mon Sep 17 00:00:00 2001
From: yunuo970428 <405378304@qq.com>
Date: Fri, 19 Jul 2024 11:13:22 +0800
Subject: [PATCH 1/3] =?UTF-8?q?=E5=AE=8C=E5=96=84=E9=A2=84=E7=BA=A6?=
=?UTF-8?q?=E5=8D=95=E7=AE=A1=E7=90=86--=E9=80=89=E6=8B=A9=E5=AE=A2?=
=?UTF-8?q?=E6=88=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
yxt-as-ui/src/api/Common/dictcommons.js | 4 +-
.../publicPage/selectCustomer.vue} | 57 +++++++++++--------
.../preregistration/preregistrationAdd.vue | 8 +--
3 files changed, 40 insertions(+), 29 deletions(-)
rename yxt-as-ui/src/{views/operation/preregistration/relation/customer.vue => components/publicPage/selectCustomer.vue} (81%)
diff --git a/yxt-as-ui/src/api/Common/dictcommons.js b/yxt-as-ui/src/api/Common/dictcommons.js
index 5605ca996a..ada3b6ff3b 100644
--- a/yxt-as-ui/src/api/Common/dictcommons.js
+++ b/yxt-as-ui/src/api/Common/dictcommons.js
@@ -159,9 +159,9 @@ export function getServiceItemListPage(data) {
}
// 查询分页列表 -- 客户列表
-export function customerListPage(params) {
+export function customerList(params) {
return request({
- url: '/yxtcrm/apiadmin/v1/crmcustomer/customerListPage',
+ url: '/as/v1/ascustomervehicle/customerList',
method: 'post',
data: params,
headers: {
diff --git a/yxt-as-ui/src/views/operation/preregistration/relation/customer.vue b/yxt-as-ui/src/components/publicPage/selectCustomer.vue
similarity index 81%
rename from yxt-as-ui/src/views/operation/preregistration/relation/customer.vue
rename to yxt-as-ui/src/components/publicPage/selectCustomer.vue
index 3b8f69f0ac..ac80e69d81 100644
--- a/yxt-as-ui/src/views/operation/preregistration/relation/customer.vue
+++ b/yxt-as-ui/src/components/publicPage/selectCustomer.vue
@@ -10,7 +10,7 @@
@@ -68,7 +70,7 @@
import Pagination from '@/components/pagination'
import pageye from '@/components/pagination/pageye'
import ButtonBar from '@/components/ButtonBar'
-import { customerListPage } from '@/api/Common/dictcommons'
+import { customerList, typeValues } from '@/api/Common/dictcommons'
export default {
name: 'Customer',
@@ -95,6 +97,7 @@ export default {
tableKey: 0,
list: [],
sids: [], // 用于导出的时候保存已选择的SIDs
+ merType: [],
FormLoading: false,
listLoading: false,
// 翻页
@@ -103,12 +106,13 @@ export default {
size: 5,
total: 0,
params: {
- orgPath: '',
- name: '',
+ customerName: '',
vehMark: '',
+ vinNo: '',
mobile: '',
- orgName: '',
- vinNo: ''
+ customerTypeKey: '',
+ billType: '',
+ useOrgSid: ''
}
}
}
@@ -117,6 +121,13 @@ export default {
this.$refs['btnbar'].setButtonList(this.btnList)
},
methods: {
+ init() {
+ typeValues({ type: 'customerType' }).then((res) => {
+ if (res.success) {
+ this.merType = res.data
+ }
+ })
+ },
// 搜索条件效果
clicksearchShow() {
this.isSearchShow = !this.isSearchShow
@@ -142,11 +153,16 @@ export default {
var pageindex = index + 1 + pagestart
return pageindex
},
+ showData(deptSid, type) {
+ this.init()
+ this.listQuery.params.useOrgSid = deptSid
+ this.listQuery.params.billType = type // type工单类型
+ this.getList()
+ },
// 查询列表信息
getList() {
this.listLoading = true
- this.listQuery.params.orgPath = window.sessionStorage.getItem('defaultOrgPath')
- customerListPage(this.listQuery).then(response => {
+ customerList(this.listQuery).then((response) => {
this.listLoading = false
if (response.success) {
this.list = response.data.records
@@ -164,19 +180,14 @@ export default {
},
// 点击重置
handleReset() {
- this.listQuery = {
- current: 1,
- size: 5,
- total: 0,
- params: {
- orgPath: '',
- name: '',
- vehMark: '',
- mobile: '',
- orgName: '',
- vinNo: ''
- }
- }
+ this.listQuery.current = 1
+ this.listQuery.total = 0
+ this.listQuery.size = 5
+ this.listQuery.params.customerName = ''
+ this.listQuery.params.vehMark = ''
+ this.listQuery.params.vinNo = ''
+ this.listQuery.params.mobile = ''
+ this.listQuery.params.customerTypeKey = ''
this.getList()
},
handleConfirm(row) {
diff --git a/yxt-as-ui/src/views/operation/preregistration/preregistrationAdd.vue b/yxt-as-ui/src/views/operation/preregistration/preregistrationAdd.vue
index 82334fae0c..52567b4ba1 100644
--- a/yxt-as-ui/src/views/operation/preregistration/preregistrationAdd.vue
+++ b/yxt-as-ui/src/views/operation/preregistration/preregistrationAdd.vue
@@ -141,19 +141,19 @@
-